Comments (5)
Thanks for bringing this to my attention, it should now be fixed from 6f96865 on develop
branch.
I was able to run two Binance data clients, and two Binance execution clients. Let me know how you go when you get a chance.
from nautilus_trader.
I had some time to test simultateous connections to SPOT and PERP on binance and the following issue arised:
2024-04-21T16:01:41.603724782Z [INFO] SPOT_PERP_MM-104.BinanceWebSocketClient: Connected to wss://fstream.binance.com
2024-04-21T16:01:41.603833564Z [INFO] SPOT_PERP_MM-104.DataClient-BINANCE_PERP: Subscribed trades WUSDT.BINANCE
2024-04-21T16:01:41.609275961Z [INFO] SPOT_PERP_MM-104.DataClient-BINANCE_PERP: Subscribed quotes WUSDT.BINANCE
2024-04-21T16:01:41.609327651Z [INFO] SPOT_PERP_MM-104.DataClient-BINANCE_PERP: OrderBook snapshot rebuild for WUSDT.BINANCE @ depth 1000 starting
2024-04-21T16:01:41.897892729Z [INFO] SPOT_PERP_MM-104.DataClient-BINANCE_PERP: OrderBook snapshot rebuild for WUSDT.BINANCE completed
2024-04-21T16:01:41.898032915Z [INFO] SPOT_PERP_MM-104.DataClient-BINANCE_PERP: Subscribed order book deltas WUSDT.BINANCE depth=0
Looks like instruments cannot be routed to correct data provider for subscription, since VENUE for both binance spot and perp is the same.
Maybe PERP and SPOT exchanges should be treated as different venues.
from nautilus_trader.
Yes, this is known and currently the intent is that you would add your two client sets for SPOT and FUTURES, then use the client_id
param for commands to specifically route to those clients, e.g.
client_id=ClientId("BINANCE_PERP")
cpdef void subscribe_quote_ticks(self, InstrumentId instrument_id, ClientId client_id=*)
from nautilus_trader.
@cjdsellers, thanks for the clarification.
I did not notice that client_id was added to the subscribe methods.
from nautilus_trader.
Yes, client_id
has actually been in the API a long time as well. 👍
from nautilus_trader.
Related Issues (20)
- Addition of Sequence Number in QuoteTick HOT 2
- Polygon.io integration HOT 1
- Sandbox: Error on applying OrderFilled due to incorrect venu_order_id HOT 5
- Sandbox: fills are applied multiple times to the same limit order HOT 10
- Timer is panicking when calling `set_time_alert_ns` HOT 9
- Sandbox: fills are generated by internally aggregated bars instead of quote/ticks HOT 4
- Get radis error in trimming stream HOT 8
- Incorrect import for OrderBookImbalance example strategy HOT 1
- Low level backtest in documentation needs some adjustments so it works straight away HOT 2
- Cannot pull out account information in SANDBOX mode HOT 4
- Improve error message when no tick scheme for instrument HOT 3
- Multi-currency support for SANDBOX mode HOT 1
- Orders accepted and not filled in SANDBOX HOT 10
- Latency modeling for sandbox/real-time HOT 1
- Highlevel api tutorial document bugs HOT 1
- Invalid size precision for fill 5 when instrument size precision is 6, on 1.194.0 HOT 4
- Documentation - clang is a "From Source" installation dependency HOT 2
- Backtest in streaming mode doesn't work HOT 6
- How to handle orderbook snapshots HOT 10
- Binance missing candles 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 nautilus_trader.