{"id":21088535,"url":"https://github.com/fremantle-industries/history","last_synced_at":"2025-05-16T11:32:40.294Z","repository":{"id":38289296,"uuid":"387089661","full_name":"fremantle-industries/history","owner":"fremantle-industries","description":"Download and warehouse historical trading data","archived":false,"fork":false,"pushed_at":"2023-03-17T14:00:52.000Z","size":3492,"stargazers_count":33,"open_issues_count":31,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T11:44:01.661Z","etag":null,"topics":["cryptocurrency","data-ingestion","data-science","data-visualization","data-warehouse","elixir","trading","trading-algorithms"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fremantle-industries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-18T04:29:11.000Z","updated_at":"2024-12-09T01:57:02.000Z","dependencies_parsed_at":"2023-02-12T02:15:23.788Z","dependency_job_id":null,"html_url":"https://github.com/fremantle-industries/history","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fremantle-industries%2Fhistory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fremantle-industries%2Fhistory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fremantle-industries%2Fhistory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fremantle-industries%2Fhistory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fremantle-industries","download_url":"https://codeload.github.com/fremantle-industries/history/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254522327,"owners_count":22085090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cryptocurrency","data-ingestion","data-science","data-visualization","data-warehouse","elixir","trading","trading-algorithms"],"created_at":"2024-11-19T21:17:50.383Z","updated_at":"2025-05-16T11:32:35.279Z","avatar_url":"https://github.com/fremantle-industries.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# History\n[![Build Status](https://github.com/fremantle-industries/history/workflows/test/badge.svg?branch=main)](https://github.com/fremantle-industries/history/actions?query=workflow%3Atest)\n[![hex.pm version](https://img.shields.io/hexpm/v/history.svg?style=flat)](https://hex.pm/packages/history)\n\nDownload and warehouse historical trading data\n\n## Install\n\nAdd `history` to your list of dependencies in `mix.exs`\n\n```elixir\ndef deps do\n  [\n    {:history, \"~\u003e 0.0.23\"}\n  ]\nend\n```\n\n## Usage\n\n```bash\n$ docker-compose up\n```\n\nVisit [`history.localhost`](http://history.localhost)\n\nWhen running the application with `docker-compose` you will need to enter the basic auth development credentials:\n\n```\nusername: admin\npassword: password\n```\n\n## Requirements\n\n`history` requires Elixir 1.12+ \u0026 Erlang/OTP 22+\n\n## Features\n\n### Import Products From Tai\n\n![import-tai-products](./docs/import-tai-products.png)\n\n### Download Historical Venue Data\n\n![filter-predicted-funding-rate-job](./docs/filter-predicted-funding-rate-job.png)\n\n![predicted-funding-rate-download](./docs/predicted-funding-rate-download.png)\n\n### Visualize \u0026 Explore Data for Market Insights\n\n![home](./docs/history-home.png)\n\n![gainers-and-losers](./docs/history-gainers-losers.png)\n\n![swap-funding-rates](./docs/swap-funding-rates.png)\n\n## Venues\n\n| Venues   | Trades | Candles | Funding Rates | Predicted Funding Rates | Lending Rates |\n| -------- | :----: | :-----: | :-----------: | :---------------------: | :-----------: |\n| FTX      |  [x]   |   [x]   |      [x]      |           [x]           |      [x]      |\n| OkEx     |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| BitMEX   |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| Binance  |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| Deribit  |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| GDAX     |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| Huobi    |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| Bybit    |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| bit.com  |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| Bitfinex |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| Kraken   |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| CME      |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| Phemex   |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| BTSE     |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| KuCoin   |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| BitMax   |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| MEXC     |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| PrimeXBT |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| Gate.io  |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| Coinflex |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n| bitFlyer |  [ ]   |   [ ]   |      [ ]      |           [ ]           |      [ ]      |\n\n## Development\n\nInitial setup:\n\n- Installs `hex` and `npm` dependencies\n- Generates migrations for history, workbench and tai\n- Runs migrations\n- Seeds database\n\n```bash\n$ docker-compose up db\n$ mix setup\n$ mix phx.server\n```\n\n## Test\n\n```bash\n$ docker-compose up db\n$ mix test\n```\n\n## Ecto Database\n\nReset drops the db, creates a new db \u0026 runs the migrations\n\n```bash\n$ mix ecto.reset\n```\n\nMigrate up\n\n```bash\n$ mix ecto.migrate\n```\n\nMigrate down\n\n```bash\n# Last migration\n$ mix ecto.rollback\n# Last 3 migrations\n$ mix ecto.rollback -n 3\n```\n\n## Help Wanted :)\n\nIf you think this `history` thing might be worthwhile and you don't see a feature\nor venue listed we would love your contributions to add them! Feel free to\ndrop us an email or open a Github issue.\n\n## Authors\n\n- Alex Kwiatkowski - alex+git@fremantle.io\n\n## License\n\n`history` is released under the [MIT license](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffremantle-industries%2Fhistory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffremantle-industries%2Fhistory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffremantle-industries%2Fhistory/lists"}