File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change
1
+ import msgspec .json
1
2
from nautilus_trader .adapters .interactive_brokers .config import (
2
3
InteractiveBrokersDataClientConfig ,
3
- InteractiveBrokersExecClientConfig
4
+ InteractiveBrokersExecClientConfig ,
4
5
)
5
6
from nautilus_trader .adapters .interactive_brokers .factories import (
6
7
InteractiveBrokersLiveDataClientFactory ,
7
- InteractiveBrokersLiveExecClientFactory
8
+ InteractiveBrokersLiveExecClientFactory ,
8
9
)
9
10
from nautilus_trader .config import InstrumentProviderConfig , TradingNodeConfig
10
11
from nautilus_trader .live .node import TradingNode
24
25
gateway_port = 4002 ,
25
26
instrument_provider = InstrumentProviderConfig (
26
27
load_all = True ,
27
- filters = tuple (
28
- {
29
- "filters" : (
30
- tuple ({"secType" : "STK" , "symbol" : "SEC0" , "exchange" : "BVME.ETF" }.items ()),
31
- tuple ({"secType" : "STK" , "symbol" : "SMH" , "exchange" : "BVME.ETF" }.items ()),
32
- )
33
- }.items ()
28
+ filters = msgspec .json .encode (
29
+ [
30
+ {"secType" : "STK" , "symbol" : "SEC0" , "exchange" : "BVME.ETF" },
31
+ {"secType" : "STK" , "symbol" : "SMH" , "exchange" : "BVME.ETF" },
32
+ ]
34
33
),
35
34
),
36
35
),
You can’t perform that action at this time.
0 commit comments