Comments (14)
Hi, do you have/can you provide debug logging of when this happens? By design Bitfinex.NET should resubscribe the subscriptions that were running when the disconnect happened. If this doesn't happen (sometimes), then that's a bug.
from bitfinex.net.
from bitfinex.net.
Hi Jan.
In the Activity log You can see a connection/disconnection logged the day 14 at 19:14:25 - 19:14:28 .
In the candle events log You see that the last 60 min candle event received is at 19:00:00 and then no more events were received.
What I suspect is that connection/disconnection causes the loss of candle subscription.
The version I'm testing was compiled on 12/5/2018 with last available Bitfinex.NET library.
Bitfinex.dll properties says version 1.0.0.0
Best regards.
edc
20180614ActivityLog.txt
20180614CandleEvents.txt
from bitfinex.net.
Right Now Another example:
I logged:
20/06/2018 16.40.38.025
------+++------
Bitfinex Connection Lost
------+++------
20/06/2018 16.40.41.143
------+++------
Bitfinex Connection Restored
------+++------
20/06/2018 16.41.14.850
------+++------
Bitfinex Connection Lost
------+++------
20/06/2018 16.41.17.115
------+++------
Bitfinex Connection Restored
------+++------
And Subscriptions (at least candle subscriptions than in my app fires all the events) are gone.
The 17:00:00 Candle was not logged.
from bitfinex.net.
Hi, I've refactored some of the reconnection handling in the new version (v1.0.13), could you see if this fixes your problems?
from bitfinex.net.
Hi.
I went mad several hours testing some changes that I made and nothing worked.
Then I reverted to 1.012 and everything began to work again.
Apparently 1.013 is broken and candle subscription does not return any data.
from bitfinex.net.
Sorry to hear that, I'll look into it tomorow
from bitfinex.net.
I assume you called the subscribe functions before the Start function in the socket client? I found a bug introduced in version 1.0.13 which caused the subscriptions only to work if called AFTER the start method. This is fixed in 1.0.14, please try that.
from bitfinex.net.
Yes, exactly.
I literally copied your example that makes subscriptions before starting socket.
Thank You.
from bitfinex.net.
Can you confirm that the subscriptions still work after reconnecting?
from bitfinex.net.
Tested.
It works.
Thank You.
from bitfinex.net.
Update:
My system reconnects if it doesn't receive candle updates for 300 secs and, after 3 weeks of 24/7 operation, I can confirm that is working like a charm.
Reconnecting works.
from bitfinex.net.
Great. Do you still have 300s timeouts though? The websocket should reconnect after 15 seconds of not receiving any data, so I would expect that wouldn't be necessary. (server send a heartbeat message every x seconds, which is handled internally in the library)
from bitfinex.net.
Oh Yes.
many connection/disconnections per day, 300 secs timeout and reconnection at least once per day.
See screenshot.
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.