-
Notifications
You must be signed in to change notification settings - Fork 0
/
gbp-usd.adapter.json
58 lines (58 loc) · 1.89 KB
/
gbp-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
{
"adapterHash": "0x3c3440344e9537f2155fa7414b065229331ec8f77b6f9dfb9e3e4538aefe7a2e",
"name": "GBP-USD",
"decimals": 8,
"feeds": [
{
"name": "Dunamu-GBP-USD",
"definition": {
"url": "https://quotation-api-cdn.dunamu.com/v1/forex/recent?codes=FRX.GBPUSD",
"headers": {
"Content-Type": "application/json"
},
"method": "GET",
"reducers": [
{ "function": "INDEX", "args": 0 },
{ "function": "PARSE", "args": ["usDollarRate"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Yahoo-GBP-USD",
"definition": {
"url": "https://query1.finance.yahoo.com/v7/finance/spark?symbols=GBPUSD%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": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
},
{
"name": "Daum-GBP-USD",
"definition": {
"url": "https://finance.daum.net/api/exchanges/FRX.GBPUSD",
"location": "kr",
"headers": {
"Content-Type": "application/json",
"referer": "https://finance.daum.net/exchanges/FRX.GBPUSD",
"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": ["usDollarRate"] },
{ "function": "POW10", "args": 8 },
{ "function": "ROUND" }
]
}
}
]
}