Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pluveto/coin-dc
https://github.com/pluveto/coin-dc
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pluveto/coin-dc
- Owner: pluveto
- Created: 2024-04-29T12:39:13.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-29T13:37:22.000Z (7 months ago)
- Last Synced: 2024-04-30T13:53:41.028Z (7 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
# coin-dc
A program to monitor and send cryptocurrency prices to InfluxDB.
## Environment variables
- `INFLUXDB_URL`: optional, default: "http://localhost:8086"
- `INFLUXDB_TOKEN`: required
- `INFLUXDB_ORG`: optional, default: "MyOrg"
- `INFLUXDB_BUCKET`: optional, default: "MyBucket"
- `INST_ID`: optional, default: "BTC-USDT"
- `INTERVAL`: optional, default: 5 (seconds), 0 means run once and exit## Schema
- Measurement: `coin_price`
- Tags
- `instId` (representing the cryptocurrency pair, e.g. "BTC-USDT")
- Fields
- `idxPx` (representing the index price, e.g. 39275.2)
- Timestamp (set to current time)## Acknowledgements
- API: