Comments (4)
I can confirm if you set the disable_time_sync: true
, will terminate normally 👍
from ftx-api.
Thanks for including the steps to reproduce. It's probably the time sync timer, which is automatically started when preparing the rest client. You can try to set it to disable the sync timer feature in the constructor of the rest client:
https://github.com/tiagosiebler/ftx-api/blob/master/src/util/requestUtils.ts#L13
from ftx-api.
What exactly does the time sync do? Fix the few millisecond drift between the Windows clock and the FTX server? Is disabling this feature going to cause any issues in the long run?
Thanks!
from ftx-api.
What exactly does the time sync do? Fix the few millisecond drift between the Windows clock and the FTX server?
Sorry for the late response. Yes, it tries to do exactly this although I'm not convinced on the effectiveness. The time-sync is a mechanism that runs on a timer to estimate latency issues, using that to offset the recv window and attempt to prevent recv window errors due to connection issues outside your control. I'm considering having it disabled by default.
Is disabling this feature going to cause any issues in the long run?
If you're actively ensuring the following, you should be fine:
- your system time is correctly set (e.g using something like ntp)
- you're handling possible recv errors, as they can still happen sometimes (latency can still cause this for example)
from ftx-api.
Related Issues (20)
- getPositions does not work properly when 'showAveragePrice' is false HOT 1
- Support for "dust" endpoints HOT 1
- How do I use websocket to update K-line data? HOT 2
- web client. CORS cross domain request problem HOT 2
- Test net for ftx US? HOT 2
- Try/catch any emit calls
- [ReferenceError: RestClient is not defined] Using webpacked ftxapi HOT 5
- getAccount() gives me 401 Unauthorized / Not logged in: Timestamp too far from current time HOT 8
- getFundingRates should accept params HOT 1
- How can I place futures order with leverage??? HOT 1
- Response types HOT 1
- Is it possible to completely disconnect? HOT 4
- Add funding rates params HOT 1
- How to handle "ping / pong" things? HOT 7
- Exclusive $TKB airdrop for members of the Node.js Algo Traders community on telegram
- WebsocketClient Invalid login credentials, did I hash the secret HOT 3
- WS Client, close all sockets & timers if no wskey is provided
- Use standard params HOT 1
- Possible to getUsdValueSnapshots history for subaccounts? HOT 1
- We should definitely archive this now HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ftx-api.