-
Notifications
You must be signed in to change notification settings - Fork 0
/
arbs.go
129 lines (125 loc) · 2.27 KB
/
arbs.go
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
package main
import (
"fmt"
"strings"
)
func ExTicksFromSlice(ticks []string) ([]ExTick, error) {
var exTicks []ExTick
for _, tick := range ticks {
split := strings.SplitN(tick, "-", 2)
if len(split) != 2 {
return nil, fmt.Errorf("invalid tick: %s", tick)
}
exchange := split[0]
ticker := split[1]
exTick := ExTick{Exchange(exchange), ticker}
exTicks = append(exTicks, exTick)
}
return exTicks, nil
}
var arbs = map[string][]string{
"eth-btc": {
"binance-ETHBTC",
"bitfinex-ETHBTC",
"coinbase-ETH-BTC",
"gateio-ETH_BTC",
"huobi-ethbtc",
"kraken-XETHXXBT",
"kucoin-ETH-BTC",
"okx-ETH-BTC",
//"bitstamp-ETH/BTC",
},
"btc-usdt": {
"coinbase-BTC-USDT",
//"bitstamp-BTC/USDT",
"huobi-btcusdt",
"kucoin-BTC-USDT",
"binance-BTCUSDT",
"gateio-BTC_USDT",
"bitfinex-BTCUST",
"bybit-BTCUSDT",
"kraken-XBTUSDT",
"okx-BTC-USDT",
},
"eth-usdt": {
"binance-ETHUSDT",
"bitfinex-ETHUST",
// bitstamp-ETH/USDT,
"bybit-ETHUSDT",
"coinbase-ETH-USDT",
"gateio-ETH_USDT",
"huobi-ethusdt",
"kraken-ETHUSDT",
"kucoin-ETH-USDT",
"okx-ETH-USDT",
},
"bnb-btc": {
"binance-BNBBTC",
"kucoin-BNB-BTC",
"gateio-BNB_BTC",
},
"bnb-usdt": {
"kucoin-BNB-USDT",
"bybit-BNBUSDT",
"okx-BNB-USDT",
"binance-BNBUSDT",
"huobi-bnbusdt",
"gateio-BNB_USDT",
},
"sol-btc": {
"coinbase-SOL-BTC",
"huobi-solbtc",
"binance-SOLBTC",
"bitfinex-SOLBTC",
"okx-SOL-BTC",
},
"sol-usdt": {
"kraken-SOLUSDT",
"kucoin-SOL-USDT",
"gateio-SOL_USDT",
"okx-SOL-USDT",
"bitfinex-SOLUST",
"bybit-SOLUSDT",
"coinbase-SOL-USDT",
"binance-SOLUSDT",
"huobi-solusdt",
},
"sol-eth": {
"coinbase-SOL-ETH",
"kraken-SOLETH",
"okx-SOL-ETH",
"binance-SOLETH",
},
"xrp-btc": {
//"bitstamp-XRP/BTC",
"huobi-xrpbtc",
"kucoin-XRP-BTC",
"gateio-XRP_BTC",
"bitfinex-XRPBTC",
"binance-XRPBTC",
"okx-XRP-BTC",
},
"xrp-usdt": {
"binance-XRPUSDT",
"huobi-xrpusdt",
"kucoin-XRP-USDT",
"okx-XRP-USDT",
"coinbase-XRP-USDT",
//"bitstamp-XRP/USDT",
"gateio-XRP_USDT",
"bitfinex-XRPUST",
"bybit-XRPUSDT",
"kraken-XRPUSDT",
},
"btc-usdc": {},
"ada-btc": {},
"ada-usdt": {},
"avax-btc": {},
"avax-usdt": {},
"doge-btc": {},
"doge-usdt": {},
"trx-btc": {},
"trx-usdt": {},
"dot-btc": {},
"dot-usdt": {},
}