Giter Club home page Giter Club logo

ahr999-dc's Introduction

# AHR999 Indicator Collector

A program to fetch and store AHR999 indicators from the Coinank API into InfluxDB.

## Environment Variables

- `INFLUXDB_URL`: Optional, defaults to "http://localhost:8086"
- `INFLUXDB_TOKEN`: Required, used for authentication with InfluxDB
- `INFLUXDB_ORG`: Optional, defaults to "MyOrg"
- `INFLUXDB_BUCKET`: Optional, defaults to "MyBucket"
- `INTERVAL`: Optional, defaults to 8 (hours), setting to 0 means run once and exit

## Data Collection

The program fetches the following data points from the Coinank API:

- `ahr999`: The AHR999 indicator value
- `avg`: The average value
- `value`: The value field

## Schema

The data is stored in InfluxDB using the following schema:

- Measurement: `ahr999`
- Tags:
  - None
- Fields:
  - `ahr999` (float, the AHR999 indicator value)
  - `avg` (float, the 200 day investment cost average value)
  - `value` (float, the value field)
- Timestamp: Uses the `date` field from the API response, converted from milliseconds to a proper timestamp.

## Acknowledgements

- API: <https://coinank.com/indicatorapi/getAhr999Table>

ahr999-dc's People

Contributors

pluveto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.