-
Notifications
You must be signed in to change notification settings - Fork 2
/
Settings.toml
40 lines (34 loc) · 1.1 KB
/
Settings.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
enabled_exchanges = ["bitstamp", "binance"]
# Only one pair is supported at this point.
pair = "BTCUSDT"
#[spot]
#pairs = ["BTCUSDT", "ETHBTC"]
#[futures]
# Would need a mapping of exchage->future(s) market tickers
# eg binance perp futures coin-margined (BTCPERP) vs usd-margined (BTCBUSDPERP or BTCBUSDPERP)
####EXCHANGE CONFIGS####
# note: for now, we assume each have the same kind of ws api - an endpoint and subscription message.
# can implement specific details if/when needed.
# subscription messages are in a mustache template w/ the spot pair described.
[bitstamp]
endpoint = "wss://ws.bitstamp.net"
subscription_message_template = """{
"event": "bts:subscribe",
"data": {
"channel": "order_book_{{pair}}"
}
}"""
receive_timeout_s = 20
[binance]
endpoint = "wss://stream.binance.com:9443/ws"
subscription_message_template = """{
"method": "SUBSCRIBE",
"params": [
"{{pair}}@depth10@100ms"
],
"id": 1
}"""
receive_timeout_s = 1
#[bybit]
#endpoint = "wss://stream.bybit.com/realtime"
#subscription_message_template = """{"op": "subscribe", "args": ["orderBookL2_25.{{pair}}"]}"""