-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathexchanges.h
49 lines (39 loc) · 992 Bytes
/
exchanges.h
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
41
42
43
44
45
46
47
48
struct exchange_settings {
char* host;
int port;
char* url;
char* wsproto;
char* subscribe;
};
// bitstamp USD BTC tested & working
const exchange_settings bitstampUSDBTC = {
"ws.pusherapp.com",
80,
"/app/de504dc5763aeef9ff52?protocol=7",
"pusher",
"{\"event\": \"pusher:subscribe\", \"data\": {\"channel\": \"live_trades\"}}"
};
// UNTESTED
const exchange_settings bitstampEURBTC = {
"ws.pusherapp.com",
80,
"/app/de504dc5763aeef9ff52",
"pusher",
"{\"event\": \"pusher:subscribe\", \"data\": {\"channel\": \"live_trades_btceur\"}}"
};
// UNTESTED
const exchange_settings gdaxUSDBTC = {
"ws-feed-public.sandbox.gdax.com",
80,
"/",
"websocket",
"{\"type\": \"subscribe\", \"channels\": [{\"name\": \"ticker\",\"product_ids\": [\"BTC-USD\"]}]}"
};
// new UNTESTED
const exchange_settings bitfinexUSDBTC = {
"api.bitfinex.com",
443,
"/ws/2",
"websocket",
"{\"event\":\"subscribe\",\"channel\":\"trades\",\"symbol\":\"tBTCUSD\" }"
};