Giter Site home page Giter Site logo

Comments (5)

mangukiya-ketan avatar mangukiya-ketan commented on June 3, 2024

Yes, I am also getting the same errors, even i tried by different different API Key and Secret Pair, but in Each POST API i am getting "Bitfinex::BadRequestError: Nonce is too small."
Please let us know, if there is some fault from our side in calling those API or anything.
Thank you

from bitfinex-api-rb.

prdn avatar prdn commented on June 3, 2024

from bitfinex-api-rb.

mangukiya-ketan avatar mangukiya-ketan commented on June 3, 2024

Thank you for response, as you told us i tried with new API Key-Secret but still i am getting the same again.

from bitfinex-api-rb.

face avatar face commented on June 3, 2024

Hi, I'm looking into your issue.

I am unable to reproduce this issue on my end. What I tried is generating a new API key, and then used this gem to place orders and check balances.

The Nonce is simply an increasing sequence number. This gem is calculating the Nonce using time.

Some possible causes to the above error:

  1. Using the API keys with different clients might be calculating the Nonce differently (for example, this gem, a Node client, the mobile client, a custom API script might use nanoseconds vs microseconds). Are you using the API keys with any other scripts or clients before the above test?
  2. Using the API key on multiple computers with the clocks time differing could also cause a Nonce error.

Each API key has its own Nonce. So as long as all clients using that key are calculating the Nonce the same way and it is always increasing, you should not see the above error. If you are generating a fresh key and only using in the example you provided, we will need to investigate this further.

from bitfinex-api-rb.

ramror3 avatar ramror3 commented on June 3, 2024

Hi,
I fixed this issue. I defined one method for the nonce. Its working fine now.
Thanks.

from bitfinex-api-rb.

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.