history
history copied to clipboard
Download and warehouse historical trading data
History
Download and warehouse historical trading data
Install
Add history to your list of dependencies in mix.exs
def deps do
[
{:history, "~> 0.0.23"}
]
end
Usage
$ docker-compose up
Visit history.localhost
When running the application with docker-compose you will need to enter the basic auth development credentials:
username: admin
password: password
Requirements
history requires Elixir 1.12+ & Erlang/OTP 22+
Features
Import Products From Tai

Download Historical Venue Data


Visualize & Explore Data for Market Insights



Venues
| Venues | Trades | Candles | Funding Rates | Predicted Funding Rates | Lending Rates |
|---|---|---|---|---|---|
| FTX | [x] | [x] | [x] | [x] | [x] |
| OkEx | [ ] | [ ] | [ ] | [ ] | [ ] |
| BitMEX | [ ] | [ ] | [ ] | [ ] | [ ] |
| Binance | [ ] | [ ] | [ ] | [ ] | [ ] |
| Deribit | [ ] | [ ] | [ ] | [ ] | [ ] |
| GDAX | [ ] | [ ] | [ ] | [ ] | [ ] |
| Huobi | [ ] | [ ] | [ ] | [ ] | [ ] |
| Bybit | [ ] | [ ] | [ ] | [ ] | [ ] |
| bit.com | [ ] | [ ] | [ ] | [ ] | [ ] |
| Bitfinex | [ ] | [ ] | [ ] | [ ] | [ ] |
| Kraken | [ ] | [ ] | [ ] | [ ] | [ ] |
| CME | [ ] | [ ] | [ ] | [ ] | [ ] |
| Phemex | [ ] | [ ] | [ ] | [ ] | [ ] |
| BTSE | [ ] | [ ] | [ ] | [ ] | [ ] |
| KuCoin | [ ] | [ ] | [ ] | [ ] | [ ] |
| BitMax | [ ] | [ ] | [ ] | [ ] | [ ] |
| MEXC | [ ] | [ ] | [ ] | [ ] | [ ] |
| PrimeXBT | [ ] | [ ] | [ ] | [ ] | [ ] |
| Gate.io | [ ] | [ ] | [ ] | [ ] | [ ] |
| Coinflex | [ ] | [ ] | [ ] | [ ] | [ ] |
| bitFlyer | [ ] | [ ] | [ ] | [ ] | [ ] |
Development
Initial setup:
- Installs
hexandnpmdependencies - Generates migrations for history, workbench and tai
- Runs migrations
- Seeds database
$ docker-compose up db
$ mix setup
$ mix phx.server
Test
$ docker-compose up db
$ mix test
Ecto Database
Reset drops the db, creates a new db & runs the migrations
$ mix ecto.reset
Migrate up
$ mix ecto.migrate
Migrate down
# Last migration
$ mix ecto.rollback
# Last 3 migrations
$ mix ecto.rollback -n 3
Help Wanted :)
If you think this history thing might be worthwhile and you don't see a feature
or venue listed we would love your contributions to add them! Feel free to
drop us an email or open a Github issue.
Authors
- Alex Kwiatkowski - [email protected]
License
history is released under the MIT license