Band Data Requester
A light-weight node.js tool to query data on BandChain periadically
⭐️ Features
- Support cron-style scheduling
- Support configuration via
json
file - No-installation required with
npx
📦 Prerequisite
You need to create a config.json
file in your machine.
See example config.json
for requesting data from GuanYu devnet every 5 minutes:
💎 Example Usages
npx @bandprotocol/cron-requester config.json
If the config.json
is correctly formatted, you should see something like this:
--------------------------------------------------------
⭐️ Cron is running! Your requests will be executed with cron pattern */5 * * * *
📆 Your first requests will start at Sun Jun 14 2020 19:25:00 GMT+0700
--------------------------------------------------------
⏰ Requests start at 6/14/2020, 7:25:00 PM
∟ ✅ requestId = 180 | oracleScript #1 {"symbol":"BTC","multiplier":1000000}
∟ ✅ requestId = 181 | oracleScript #13 {"base_symbol":"ETH","quote_symbol":"CNY","aggregation_method":"median","multiplier":1000000}
⛳️ [2/2] requests went through
--------------------------------------------------------