Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pluveto/coin-dc


https://github.com/pluveto/coin-dc

Last synced: 4 days ago
JSON representation

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: