Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fx property #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,994 changes: 3,031 additions & 2,963 deletions baobab_configs.json

Large diffs are not rendered by default.

207 changes: 110 additions & 97 deletions config/baobab/CHF-USD.config.json
Original file line number Diff line number Diff line change
@@ -1,100 +1,113 @@
{
"name": "CHF-USD",
"feeds": [
{
"name": "Dunamu-CHF-USD",
"definition": {
"url": "https://quotation-api-cdn.dunamu.com/v1/forex/recent?codes=FRX.CHFUSD",
"headers": {
"Content-Type": "application/json"
"name": "CHF-USD",
"feeds": [
{
"name": "Dunamu-CHF-USD",
"definition": {
"url": "https://quotation-api-cdn.dunamu.com/v1/forex/recent?codes=FRX.CHFUSD",
"headers": {
"Content-Type": "application/json"
},
"method": "GET",
"reducers": [
{
"function": "INDEX",
"args": 0
},
{
"function": "PARSE",
"args": [
"usDollarRate"
]
},
{
"function": "POW10",
"args": 8
},
{
"function": "ROUND"
}
]
}
},
"method": "GET",
"reducers": [
{
"function": "INDEX",
"args": 0
},
{
"function": "PARSE",
"args": ["usDollarRate"]
},
{
"function": "POW10",
"args": 8
},
{
"function": "ROUND"
}
]
}
},
{
"name": "Yahoo-CHF-USD",
"definition": {
"url": "https://query1.finance.yahoo.com/v7/finance/spark?symbols=CHFUSD%3DX",
"headers": {
"Content-Type": "application/json"
{
"name": "Yahoo-CHF-USD",
"definition": {
"url": "https://query1.finance.yahoo.com/v7/finance/spark?symbols=CHFUSD%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"
}
]
}
},
"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-CHF-USD",
"definition": {
"url": "https://finance.daum.net/api/exchanges/FRX.CHFUSD",
"location": "kr",
"headers": {
"Content-Type": "application/json",
"referer": "https://finance.daum.net/exchanges/FRX.CHFUSD",
"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"
}
]
}
}
],
"fetchInterval": 2000,
"aggregateInterval": 3000,
"submitInterval": 15000
}
{
"name": "Daum-CHF-USD",
"definition": {
"url": "https://finance.daum.net/api/exchanges/FRX.CHFUSD",
"location": "kr",
"headers": {
"Content-Type": "application/json",
"referer": "https://finance.daum.net/exchanges/FRX.CHFUSD",
"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"
}
]
}
}
],
"fetchInterval": 2000,
"aggregateInterval": 3000,
"submitInterval": 15000,
"isFx": true
}
3 changes: 2 additions & 1 deletion config/baobab/EUR-USD.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,6 @@
],
"fetchInterval": 2000,
"aggregateInterval": 3000,
"submitInterval": 15000
"submitInterval": 15000,
"isFx": true
}
3 changes: 2 additions & 1 deletion config/baobab/GBP-USD.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,6 @@
],
"fetchInterval": 2000,
"aggregateInterval": 3000,
"submitInterval": 15000
"submitInterval": 15000,
"isFx": true
}
Loading