-
Notifications
You must be signed in to change notification settings - Fork 0
/
dai-usdt.adapter.json
85 lines (85 loc) · 2.55 KB
/
dai-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
{
"adapterHash": "0xe7c32b05629473ed4f0f2f654aebeb2abf980b22ead3c6324c1ebccc33c36b33",
"name": "DAI-USDT",
"decimals": 8,
"feeds": [
{
"name": "Binance-DAI-USDT",
"definition": {
"url": "https://api.binance.com/api/v3/avgPrice?symbol=DAIUSDT",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["price"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Crypto-DAI-USDT",
"definition": {
"url": "https://api.crypto.com/v2/public/get-ticker?instrument_name=DAI_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": "Coinbase-DAI-USDT",
"definition": {
"url": "https://api.coinbase.com/v2/exchange-rates?currency=DAI",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["data", "rates", "USDT"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Gateio-DAI-USDT",
"definition": {
"url": "https://api.gateio.ws/api/v4/spot/tickers?currency_pair=DAI_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-DAI-USDT",
"definition": {
"url": "https://api.coinex.com/v1/market/ticker?market=DAIUSDT",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["data", "ticker", "last"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "UniswapV3-DAI-USDT",
"definition": {
"chainId": "1",
"address": "0x48da0965ab2d2cbf1c17c09cfb5cbe67ad5b1406",
"type": "UniswapPool",
"token0Decimals": 18,
"token1Decimals": 6
}
}
]
}