Arbitrage
Spot potential arbitrage opportunities with the best bid and ask prices of an instrument across all exchanges.
You can see the current best bid and best ask for any cryptocurrency pair that trades vs USD, e.g. BTCUSD, ETHUSD, across every covered exchange that allows trading in that pair.
The subscription also returns the current bid-ask spread on that exchange, and the amount currently at the best bid and best ask.
This allows you to determine arbitrage possibilities, find the exchange with the best spread and see how an asset is trading on different exchanges. You can also use the spread of different instruments and exchanges to calibrate market-making strategies and execution algorithms.
Subscribe using the name of the currency and the instrument type (spot or perpetual).
1
ws.send({action: 'subscribe', channel: ['BTCUSD spot'.arbitrage]})
Copied!

Arbitrage Returns

The return from a subscription looks like the below:
1
{
2
"exchange":"deribit",
3
"bestBidPrice":57339,
4
"bestAskPrice":57339.5,
5
"bestBidAmount":16010,
6
"bestAskAmount":159120,
7
"spread":0.5
8
}{
9
"exchange":"delta",
10
"bestBidPrice":57354.5,
11
"bestAskPrice":57363,
12
"bestBidAmount":18641,
13
"bestAskAmount":11071,
14
"spread":8.5
15
}{
16
"exchange":"bybit",
17
"bestBidPrice":57339.5,
18
"bestAskPrice":57340,
19
"bestBidAmount":6227067,
20
"bestAskAmount":8095652,
21
"spread":0.5
22
}{
23
"exchange":"bybit",
24
"bestBidPrice":57339.5,
25
"bestAskPrice":57340,
26
"bestBidAmount":6267589,
27
"bestAskAmount":8098152,
28
"spread":0.5
29
}{
30
"exchange":"phemex",
31
"bestBidPrice":57337,
32
"bestAskPrice":57337.5,
33
"bestBidAmount":763435,
34
"bestAskAmount":1703166,
35
"spread":0.5
36
}{
37
"exchange":"deribit",
38
"bestBidPrice":57334,
39
"bestAskPrice":57336.5,
40
"bestBidAmount":10,
41
"bestAskAmount":8000,
42
"spread":2.5
43
}{
44
"exchange":"huobi-dm-swap",
45
"bestBidPrice":57329.8,
46
"bestAskPrice":57329.9,
47
"bestBidAmount":13171,
48
"bestAskAmount":3946,
49
"spread":0.09999999999854481
50
}{
51
"exchange":"bybit",
52
"bestBidPrice":57339.5,
53
"bestAskPrice":57340,
54
"bestBidAmount":5869163,
55
"bestAskAmount":8273993,
56
"spread":0.5
57
}{
58
"exchange":"coinflex",
59
"bestBidPrice":57349,
60
"bestAskPrice":57359,
61
"bestBidAmount":0.014,
62
"bestAskAmount":0.035,
63
"spread":10
64
}{
65
"exchange":"phemex",
66
"bestBidPrice":57337,
67
"bestAskPrice":57337.5,
68
"bestBidAmount":642897,
69
"bestAskAmount":1766022,
70
"spread":0.5
71
}{
72
"exchange":"delta",
73
"bestBidPrice":57339,
74
"bestAskPrice":57347.5,
75
"bestBidAmount":18641,
76
"bestAskAmount":11071,
77
"spread":8.5
78
}{
79
"exchange":"gate-io-futures",
80
"bestBidPrice":57358.5,
81
"bestAskPrice":57358.6,
82
"bestBidAmount":221655,
83
"bestAskAmount":6508,
84
"spread":0.09999999999854481
85
}
Copied!
Last modified 6mo ago
Copy link