-
Notifications
You must be signed in to change notification settings - Fork 0
/
krw-usd.adapter.json
75 lines (75 loc) · 2.52 KB
/
krw-usd.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
{
"adapterHash": "0xdbe621ecb5bad0e1fca858f101d17c8e7d314c60587e7592453370d5cc36784a",
"name": "KRW-USD",
"decimals": 8,
"feeds": [
{
"name": "Dunamu-KRW-USD",
"definition": {
"url": "https://quotation-api-cdn.dunamu.com/v1/forex/recent?codes=FRX.KRWUSD",
"headers": {
"Content-Type": "application/json"
},
"method": "GET",
"reducers": [
{ "function": "INDEX", "args": 0 },
{ "function": "PARSE", "args": ["basePrice"] },
{ "function": "DIVFROM", "args": 1 },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Yahoo-KRW-USD",
"definition": {
"url": "https://query1.finance.yahoo.com/v7/finance/spark?symbols=USDKRW%3DX",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["spark", "result"] },
{ "function": "INDEX", "args": 0 },
{ "function": "PARSE", "args": ["response"] },
{ "function": "INDEX", "args": 0 },
{ "function": "PARSE", "args": ["meta", "regularMarketPrice"] },
{ "function": "DIVFROM", "args": 1 },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Naver-KRW-USD",
"definition": {
"url": "https://m.stock.naver.com/front-api/v1/marketIndex/productDetail?category=exchange&reutersCode=FX_USDKRW",
"headers": { "Content-Type": "application/json" },
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["result", "calcPrice"] },
{ "function": "DIVFROM", "args": 1 },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Daum-KRW-USD",
"definition": {
"url": "https://finance.daum.net/api/exchanges/FRX.KRWUSD",
"location": "kr",
"headers": {
"Content-Type": "application/json",
"referer": "https://finance.daum.net/exchanges/FRX.KRWUSD",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
},
"method": "GET",
"reducers": [
{ "function": "PARSE", "args": ["basePrice"] },
{ "function": "DIVFROM", "args": 1 },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
}
]
}