Giter VIP home page Giter VIP logo

Comments (4)

xargr avatar xargr commented on September 4, 2024 2

I can confirm if you set the disable_time_sync: true , will terminate normally 👍

from ftx-api.

tiagosiebler avatar tiagosiebler commented on September 4, 2024

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.

Thornsnake avatar Thornsnake commented on September 4, 2024

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.

tiagosiebler avatar tiagosiebler commented on September 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.