Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tried to use the console example to place trade, API responds auth: invalid, code: 10100 #37

Open
jcbit opened this issue Dec 11, 2019 · 1 comment

Comments

@jcbit
Copy link

jcbit commented Dec 11, 2019

Output on screeen:

|=======================|
| BITFINEX CLIENT |
|=======================|

[17:26:06.558 DBG] ====================================
[17:26:06.680 DBG] STARTING
[17:26:06.680 DBG] ====================================
[17:26:06.972 DBG] [WEBSOCKET Bitfinex-1] Starting..
[17:26:08.491 INF] Reconnection happened, type: Websocket.Client.Models.ReconnectionInfo
[17:26:08.593 INF] Info received version: 2, reconnection happened, resubscribing to streams
[17:26:08.606 DBG] Authenticating
[17:26:15.490 DBG] Sending sell request
[17:26:15.851 ERR] [BFX WEBSOCKET CLIENT] Error received - message: auth: invalid, code: 10100
[17:26:15.858 INF] Pong received! Id: 123456
[17:26:15.877 INF] Authenticated: True
[17:26:15.950 INF] Wallet BTC balance: 0.000478960589130397 type: Exchange

@Marfusios
Copy link
Owner

Hello @jcbit ,

you have to wait for the successful authentication and only then call send requests.
There is a stream:

client.Streams.AuthenticationStream.Subscribe(auth => Log.Information($"Authenticated: {auth.IsAuthenticated}"));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants