question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Binance Future Websocket (CCXT PRO)

See original GitHub issue
  • OS: Ubuntu
  • Programming Language version: Python
  • CCXT version: 1.38.26
  • CCXT PRO version: 0.4.55

Using CCXT Pro, we are able to watch the orders websocket stream in Binance exchange (Spot mode):

order_updates = await exchange.watch_orders()

This code detects order updates and works well for SPOT mode. However it is not working for Future ( No order update events received).

Is Future mode websocket not supported yet or is there something wrong with our code ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
safwen1commented, Feb 2, 2021

@kroitor Thanks for the update. While testing the new feature we discovered that the Binance Spot watcher is not working anymore.

Concerned File : /python/ccxtpro/binance.py

message = self.safe_value(message, 'o', message)

The ‘o’ key of the object message contains the infos of a Futures websocket message, however for the spot it will only contain the order type (MARKET/LIMIT)

Would you like me to open up another issue for this ?

1reaction
safwen1commented, Feb 2, 2021

@kroitor Issue resolved. Thanks again.

Read more comments on GitHub >

github_iconTop 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. ... exchange = ccxtpro.binance({'newUpdates': True}) while True: trades =...
Read more >
FAQ - CCXT Pro
CCXT Pro abstracts away the WebSocket protocol so you can use it without needing to know the low level details. It can handle...
Read more >
CCXT Pro + WebSockets - Medium
We will continue to develop both CCXT and CCXT Pro in the coming future adding more exchanges and unifying WebSocket methods.
Read more >
Change Log – Binance API Documentation - GitHub Pages
The BLVT NAV system is working relatively with Binance Futures, so the endpoint is based on futures websocket service. <tokenName>@tokenNav for BLVT Info ......
Read more >
Data just 'stops' using websockets API for Spot market.
I have a python application which connects to the Binance Spot Market Websockets API. (using the ccxt.pro libarary).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found