-
Notifications
You must be signed in to change notification settings - Fork 0
/
ksp-krw.adapter.json
36 lines (35 loc) · 1.12 KB
/
ksp-krw.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
{
"adapterHash": "0xbc6e5d9102a9e78e8ff1b9c0b1ba77b4eff3a1f01f06603839af973d3af81072",
"name": "KSP-KRW",
"decimals": 8,
"feeds": [
{
"name": "Coinone-KSP-KRW",
"definition": {
"url": "https://api.coinone.co.kr/public/v2/ticker_new/KRW/KSP",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["tickers"] },
{ "function": "INDEX", "args": 0 },
{ "function": "PARSE", "args": ["last"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Korbit-KSP-KRW",
"definition": {
"url": "https://api.korbit.co.kr/v1/ticker/detailed?currency_pair=ksp_krw",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["last"]},
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
}
]
}