Comments (18)
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.
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.
Hmm, weird.
Revoked API key:
Key: gXJWyEY53IwPk425jytbAGRsyw7NPvLkM5LCdA2o4eM
Secret: TtXWNOzAyC3tUTlkYhW8UgqZkF857Eyej9JYKvKU2si
from bitfinex.net.
I don't really see anything wrong. Can you put log verbosity on debug and share the logging you get?
from bitfinex.net.
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.
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.
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.
I'm in Norway which is UTC+2 right now.
from bitfinex.net.
Your own post attempt?
from bitfinex.net.
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.
I see. Please let me know if you find anything. Hard to debug on this side if nothing is breaking ;)
from bitfinex.net.
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.
Hi, no, I will do a diff of the two requests later today!
from bitfinex.net.
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.
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.
I have same issue when call GetWalletsAsync().
from bitfinex.net.
Because of postParametersPosition = PostParameters.InUri, WriteParamBody can not be called.
from bitfinex.net.
This has been fixed in the latest version again.
from bitfinex.net.
Related Issues (20)
- Deserialize error on WalletTransfer HOT 1
- Unable to cast object of type JValue to type JArray HOT 1
- Keep Funding function HOT 8
- CloseMarginFundingAsync method error HOT 1
- KeyNotFoundException - The given key 'cs' was not present in the dictionary. HOT 2
- There is not valid symbols HOT 2
- Get bulk updates for Books/Raw books web sockets
- Error on wallet transfer HOT 1
- Deserialization exception after the call ClosePositionAsync HOT 1
- OrderBook HOT 3
- WalletTransfer always successful HOT 1
- PlaceOrderAsync for REST x WebSocket (missing overloads on WebSocket - cancelTime is critical) HOT 1
- enum OrderFlags | missing values (critical: ReduceOnly) HOT 3
- Multiple Flags for the PlaceOrderAsync(x) method in WebSocket HOT 1
- client.GeneralApi.Funding.GetFundingLoansAsync error. HOT 1
- Symbol Precision not available in v7 HOT 2
- Possible to subscribe to BalanceInfo web socket handler HOT 1
- Topic is not returned anymore on candle (kline) updates HOT 3
- BitfinexSocketClientSpotApi.SubscribeToUserUpdatesAsync needs BitfinexSocketEvent instead of DataEvent as per previous version. HOT 1
- "gid: Invalid" error when using BitfinexSocketClientSpotApi.PlaceOrderAsync( 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 bitfinex.net.