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.
- Host: GitHub
- URL: https://github.com/peerchemist/oandaohlc
- Owner: peerchemist
- License: bsd-3-clause
- Created: 2025-03-20T10:57:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-20T10:58:47.000Z (about 1 year ago)
- Last Synced: 2025-03-20T11:38:44.627Z (about 1 year ago)
- Language: Rust
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```