{"id":22687325,"url":"https://github.com/dead-beef/backtest","last_synced_at":"2025-03-29T15:43:03.270Z","repository":{"id":131249640,"uuid":"101024267","full_name":"dead-beef/backtest","owner":"dead-beef","description":null,"archived":false,"fork":false,"pushed_at":"2018-02-09T09:11:38.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T16:32:15.157Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/dead-beef.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-22T05:23:32.000Z","updated_at":"2017-08-22T05:26:02.000Z","dependencies_parsed_at":"2023-03-10T16:45:36.763Z","dependency_job_id":null,"html_url":"https://github.com/dead-beef/backtest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dead-beef%2Fbacktest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dead-beef%2Fbacktest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dead-beef%2Fbacktest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dead-beef%2Fbacktest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dead-beef","download_url":"https://codeload.github.com/dead-beef/backtest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246207491,"owners_count":20740723,"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":[],"created_at":"2024-12-09T23:17:58.722Z","updated_at":"2025-03-29T15:43:03.253Z","avatar_url":"https://github.com/dead-beef.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# backtest\n\n## Overview\n\n## Requirements\n\n- [`Python 2`](https://www.python.org/)\n- [`TA-Lib`](http://ta-lib.org/)\n\n## Installation\n\n```\npython setup.py install\n```\n\n## Usage\n\n### Test\n\n```\nbacktest ...\npython -m backtest ...\n```\n\n```\nusage: backtest [-h] [-p PAIR] [-P AMOUNT AMOUNT] [-b DATETIME]\n                [-e DATETIME] [-i TIME] [-v] [-np] [-nP]\n                data strategy [strategy ...]\n\npositional arguments:\n  data\n  strategy\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -p PAIR, --pair PAIR  primary currency pair\n  -P AMOUNT AMOUNT, --portfolio AMOUNT AMOUNT\n                        starting portfolio\n  -b DATETIME, --begin DATETIME\n                        start time (default: data start time)\n  -e DATETIME, --end DATETIME\n                        end time (default: data end time)\n  -i TIME, --interval TIME\n                        interval (default: data interval)\n  -v, --verbose         log strategy operations\n  -np, --no-progress\n  -nP, --no-plot\n```\n\n### Data\n\n```\nbacktest-data ...\npython -m backtest.data ...\n```\n\n```\nusage: backtest-data [-h] {plot,get} ...\n\npositional arguments:\n  {plot,get}\n\noptional arguments:\n  -h, --help  show this help message and exit\n```\n\n```\nusage: backtest-data plot [-h] [-i] [-d DATASET [DATASET ...]]\n                          [-p {high,low,open,close} [{high,low,open,close} ...]]\n                          file\n\npositional arguments:\n  file\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -i, --info            print metadata and exit\n  -d DATASET [DATASET ...], --dataset DATASET [DATASET ...]\n                        select datasets (default: all)\n  -p {high,low,open,close} [{high,low,open,close} ...], --price {high,low,open,close} [{high,low,open,close} ...]\n                        select prices (default: all)\n```\n\n```\nusage: backtest-data get [-h] [-b DATETIME] [-e DATETIME] [-i TIME] [-p PAIR]\n                         [-s {poloniex}] [-o PATH]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -b DATETIME, --begin DATETIME\n                        start time (%Y-%m-%d | %Y-%m-%d %H:%M | timestamp)\n                        (default: current time - 6 months)\n  -e DATETIME, --end DATETIME\n                        end time (%Y-%m-%d | %Y-%m-%d %H:%M | timestamp)\n                        (default: current time)\n  -i TIME, --interval TIME\n                        interval (\u003cvalue\u003e\u003cs | m | h | d\u003e) (default: 4h)\n  -p PAIR, --pair PAIR  currency pair (default: btc_usd)\n  -s {poloniex}, --source {poloniex}\n                        data source (default: poloniex)\n  -o PATH, --output PATH\n                        output file/directory (default:\n                        \u003csource\u003e_\u003cpair\u003e_\u003cstart\u003e_\u003cend\u003e_\u003cinterval\u003e.npz)\n```\n\n## Testing\n\n```\npython setup.py test\n```\n\n```\npython -m unittest discover tests\n```\n\n## Licenses\n\n* [`backtest`](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdead-beef%2Fbacktest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdead-beef%2Fbacktest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdead-beef%2Fbacktest/lists"}