Streaming (WS, Websocket support): Orderbooks, Trades, Balances...
See original GitHub issueI would like to see a new market property called balances, that would function the same way as symbols. When you call fetchBalances(), then the balances property would get filled with an associative array of currencies with balances (free, used, total, available, etc.).
Balances would also be updated via websocket (when available) or by repeated calls to the API, depending on rate limits.
Ultimately, we could do something like:
kraken.fetchBalances();
let myAvailableBTC = kraken.balance.available['BTC'];
let myTotalBTC = kraken.balance.total['BTC'];
Issue Analytics
- State:
- Created 6 years ago
- Reactions:22
- Comments:346 (206 by maintainers)
Top Results From Across the Web
Manual — ccxt 2.4.71 documentation
This is the list of exchanges in CCXT Pro with support for WebSockets APIs. ... the stream of private trades of the user;...
Read more >Binance WebSocket Order Book Updates - Now 10x Faster
Binance WebSocket API has now been upgraded from 1000ms to 100ms to support faster order book data. Detailed information below:.
Read more >Change Log – Binance API Documentation - GitHub Pages
New connection method for WEBSOCKET. Base Url is wss://fstream-auth.binance.com; Streams can be access either in a single raw stream or a combined ...
Read more >WebSocket API - BitMEX
Connecting. Connect your websocket client to wss://ws.bitmex.com/realtime . You can get a basic idea of how to use our websocket API by sending...
Read more >Gemini WebSocket API Reference
Gemini offers two WebSocket APIs for streaming data: ... WebSocketApp("wss://api.sandbox.gemini.com/v1/order/events", on_message=on_message, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Let’s see… I posted the above answer to satisfy the crowd 48 hours ago exactly.
Since then, I took a sleep two times for approx 6 hours, that is 12 hours in total, 36 hours remaining. I also took several meals and did some other things that took approx 4 hours in total, 32 hours remaining. I did some work to earn money for living, that took approx 8 hours of time, nobody, except a few people who donated (thanks and respect to them), actually pays for the opensource work, remember? ) So, in order to have something to eat, we have to work on other projects as well.
That gives us a remaining time of 32-8 = 24 hours, one full day to work on ccxt. Then I spent approximately 4 hours answering how is it going to different people here and there. That is 20 hours left for the actual work. Within that time I closed 20 new issues (answered them, some of them multiple times), and merged approximately 30 pull requests with various bugfixes, enhancements and edits to the existing codebase. That is roughly 20 minutes per one issue/pull request. Some of them require intense communication and take longer, some are closed faster.
Now, I can’t imagine how you could possibly have any serious progress on this particular issue within that timeframe. And my answer and attitude towards this type of questions is fully expressed in this comment: https://gist.github.com/kroitor/aabecc346a5bded6ead7a82205d8ffc1#gistcomment-2335076
Basically, the progress of this open source project is also open, so whenever you wonder how is it going, take a look into commit history )
@Helmi hi! This issue is still open, we are working on it and hope to deliver it soon. We are closing in to v2, as you may see from our versioning, where we will be introducing a major refactoring and many new features ) Our WS implementation will not only stream balances, but also fills, orders, and all that stuff, where available. Stay tuned for more updates! )