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

https://github.com/peerchemist/oandaohlc

A simple and tiny OHLC data downloader for Oanda.
https://github.com/peerchemist/oandaohlc

Last synced: about 1 month ago
JSON representation

A simple and tiny OHLC data downloader for Oanda.

Awesome Lists containing this project

README

          

# oandaohlc

A tiny program which connects to Oanda API and downloads OHLC candle data, normalizes it and dumps it into a sqlite database.

## Build

> cargo build --release

### Cross build

> cross build --release --target arm-unknown-linux-gnueabihf

## Setup

Export OANDA_ACCOUNT_ID and OANDA_ACCESS_TOKEN to env.

## Run

```
Usage: oandaohlc [OPTIONS]

Options:
-d, --db
Database name [default: oanda.db]
-g, --granularity [...]
Granularity (D, W, M), defaults to all if not provided [default: D W M] [possible values: d, w, m]
--oanda-account-id
OANDA Account ID (overrides env variable)
--oanda-access-token
OANDA Access Token (overrides env variable)
--tickers
Comma-separated list of tickers (whitelist), e.g., --tickers natgas_usd,xau_usd,eur_usd
-h, --help
Print help
-V, --version
Print version
```