an arweave datafeed
currency rates, on Arweave
currency rates, on Arweave
People should query using ARQL for the latest file like this
Tip: you can use https://ibwslcweo3rb.arweave.net/1w40L6Z8WLrRTZiBRcp4qMPaMuJfblUlB9pqovkh5PQ
if you want to quickly test it
{
op: 'and',
expr1: {
op: 'equals',
expr1: 'from',
expr2: 'hjCuCtTDySi9_KNtRxmPIsAyYVrTXeJZNP3R1aHfNPg'
},
expr2: {
op: 'equals',
expr1: 'TIME-HOUR',
expr2: '2019-11-17T15'
}
}
Since it updates hourly, I’ve added a tag called “TIME-HOUR”
TIME-HOUR represents the first part of the ISO8601 time formatting (UTC)
so get the unix time, transform it to ISO8601, and leave just the date & hours
If you think of a better way to do this, let me know
If you want to use this as a template for your project, for whatever reason, it’s simple
{
"debug": true,
"nodeURL": "https://arweave.net",
"appID": "YOUR_OPENEXCHANGERATES_ORG_APPID_HERE",
"walletFile": "/PATH/TO/YOUR/arweave-wallet.json",
"server": {
"host": "localhost",
"port": 5555
}
}
Where:
https://github.com/Dev43/arweave-go -> for the transaction signing & transmitting code
fell free to create an issue
Does your company use arweave-datafeed ? Help keep the project bug-free and feature rich by sending a small donation
Arweave Currency Datafeed is released under the MIT license.