Giter Club home page Giter Club logo

Comments (18)

henningms avatar henningms commented on May 31, 2024 1

Not sure what's happening, but I figured out why my own POST attempt failed. I forgot the / before API in the signature string.

from bitfinex.net.

JKorf avatar JKorf commented on May 31, 2024

Hi, I'm not sure why that would happen. It's working for me.

Could you maybe provide me with an ApiKey/secret that is no longer active and wasn't working? Make sure it is no longer active. I can then check if there are some differences when encoding them compared to my own.

from bitfinex.net.

henningms avatar henningms commented on May 31, 2024

Hmm, weird.

Revoked API key:
Key: gXJWyEY53IwPk425jytbAGRsyw7NPvLkM5LCdA2o4eM
Secret: TtXWNOzAyC3tUTlkYhW8UgqZkF857Eyej9JYKvKU2si

from bitfinex.net.

JKorf avatar JKorf commented on May 31, 2024

I don't really see anything wrong. Can you put log verbosity on debug and share the logging you get?

from bitfinex.net.

henningms avatar henningms commented on May 31, 2024
2018.04.16 12:05:13:597 | Info | Loglevel set to Debug
2018.04.16 12:05:16:163 | Debug | Sending signed request to https://api.bitfinex.com/v2/auth/r/orders/tBTCUSD/hist
2018.04.16 12:05:16:806 | Warning | Server returned an error: ["error",10100,"apikey: invalid"]

That's what I get when logging debug, so not a lot more. So you can retrieve order history with your api key(s)? Weird.

(This is with an active key)

from bitfinex.net.

henningms avatar henningms commented on May 31, 2024

I'm sorry, I actually get nonce: small error when using the checked out code. I modified the nonce a bit when I first started testing.

Although changing the nonce to become higher result in the apikey invalid error so yeah. No luck there hmm.

from bitfinex.net.

JKorf avatar JKorf commented on May 31, 2024

I can retrieve it with my keys yes. Maybe it has something to do with localization. What culture and timezone is your computer in?

Nonce: small indicates a nonce that is smaller than a previously provided one. Nonce should always be higher than the ones before, so if you sent a high nonce earlier you'll need to wait till that time is passed or you'll have to use a higher nonce from now on.

from bitfinex.net.

henningms avatar henningms commented on May 31, 2024

I'm in Norway which is UTC+2 right now.

from bitfinex.net.

JKorf avatar JKorf commented on May 31, 2024

Your own post attempt?

from bitfinex.net.

henningms avatar henningms commented on May 31, 2024

I've tried to write my own little snippet for retrieving orders history. Unable to get it to work I tried your library, but I seemed to get the same error. I'll try to debug using your library now that I got my own code working.

from bitfinex.net.

JKorf avatar JKorf commented on May 31, 2024

I see. Please let me know if you find anything. Hard to debug on this side if nothing is breaking ;)

from bitfinex.net.

JKorf avatar JKorf commented on May 31, 2024

Have you managed to find out why your own snippet is working but the lib doesn't? Would be great if I could fix it.

from bitfinex.net.

henningms avatar henningms commented on May 31, 2024

Hi, no, I will do a diff of the two requests later today!

from bitfinex.net.

henningms avatar henningms commented on May 31, 2024

Figured out. It has to do with the nonce apparently.

Could you test for me on your end if you replace the nonce generation from

private string nonce => Math.Round((DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalMilliseconds * 10).ToString(CultureInfo.InvariantCulture);

to this one:

private string nonce => ((long)((DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalMilliseconds * 1000)).ToString();

and see if it works fine on your end? Using the original code I either get a nonce too small or a nonce invalid due to the string becoming "1.543435663+E9".

from bitfinex.net.

JKorf avatar JKorf commented on May 31, 2024

Seems to work fine for me, I've changed it to in the latest version being pushed now. Thanks for your help on this!

from bitfinex.net.

tree1891 avatar tree1891 commented on May 31, 2024

I have same issue when call GetWalletsAsync().

from bitfinex.net.

tree1891 avatar tree1891 commented on May 31, 2024

Because of postParametersPosition = PostParameters.InUri, WriteParamBody can not be called.

from bitfinex.net.

JKorf avatar JKorf commented on May 31, 2024

This has been fixed in the latest version again.

from bitfinex.net.

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.