-
Notifications
You must be signed in to change notification settings - Fork 0
/
uni-usdt.adapter.json
127 lines (127 loc) · 3.91 KB
/
uni-usdt.adapter.json
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
{
"adapterHash": "0x8b3b0d2c88cc190f4d47b3903274b30a74a3594871310639fb5174568e482634",
"name": "UNI-USDT",
"decimals": 8,
"feeds": [
{
"name": "Bybit-UNI-USDT",
"definition": {
"url": "https://api.bybit.com/derivatives/v3/public/tickers?symbol=UNIUSDT",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["result", "list"] },
{ "function": "INDEX", "args": 0 },
{ "function": "PARSE", "args": ["lastPrice"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Binance-UNI-USDT",
"definition": {
"url": "https://api.binance.com/api/v3/avgPrice?symbol=UNIUSDT",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["price"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Kucoin-UNI-USDT",
"definition": {
"url": "https://api.kucoin.com/api/v1/market/orderbook/level1?symbol=UNI-USDT",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["data", "price"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Crypto-UNI-USDT",
"definition": {
"url": "https://api.crypto.com/v2/public/get-ticker?instrument_name=UNI_USDT",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["result", "data"] },
{ "function": "INDEX", "args": 0 },
{ "function": "PARSE", "args": ["a"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Btse-UNI-USDT",
"definition": {
"url": "https://api.btse.com/spot/api/v3.2/price?symbol=UNI-USDT",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "INDEX", "args": 0 },
{ "function": "PARSE", "args": ["indexPrice"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Coinbase-UNI-USDT",
"definition": {
"url": "https://api.coinbase.com/v2/exchange-rates?currency=UNI",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["data", "rates", "USDT"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Gateio-UNI-USDT",
"definition": {
"url": "https://api.gateio.ws/api/v4/spot/tickers?currency_pair=UNI_USDT",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "INDEX", "args": 0 },
{ "function": "PARSE", "args": ["last"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Coinex-UNI-USDT",
"definition": {
"url": "https://api.coinex.com/v1/market/ticker?market=UNIUSDT",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["data", "ticker", "last"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "UniswapV3-UNI-USDT",
"definition": {
"chainId": "1",
"address": "0x3470447f3cecffac709d3e783a307790b0208d60",
"type": "UniswapPool",
"token0Decimals": 18,
"token1Decimals": 6
}
}
]
}