-
Notifications
You must be signed in to change notification settings - Fork 0
/
joy-usdt.adapter.json
49 lines (49 loc) · 1.48 KB
/
joy-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
{
"adapterHash": "0x4bfacc9f10e7e55933dee156d8720f09e89166e46d7be3e7bc9446f6a9ec5a38",
"name": "JOY-USDT",
"decimals": 8,
"feeds": [
{
"name": "Hubio-Joy-USDT",
"definition": {
"url": "https://api.huobi.pro/market/history/kline?period=1min&size=1&symbol=joyusdt",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["data"] },
{ "function": "INDEX", "args": 0 },
{ "function": "PARSE", "args": ["close"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Mexc-Joy-USDT",
"definition": {
"url": "https://api.mexc.com/api/v3/ticker/price?symbol=JOYUSDT",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["price"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Gateio-JOY-USDT",
"definition": {
"url": "https://api.gateio.ws/api/v4/spot/tickers?currency_pair=JOY_USDT",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "INDEX", "args": 0 },
{ "function": "PARSE", "args": ["last"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
}
]
}