Skip to main content

Backtest engine for algorithmic trading

Project description

Backtest

A backtest engine for developing algorithmic trading strategy.

PyPI

Table of Contents

Installation

pip install backtest

Usage

The following usage is in demo/main.py.

import backtest

if __name__ == '__main__':
    market = 'korea'
    strategy = 'dummy'
    initial_cash = 1_000_000
    ticks_dir = 'ticks'
    ledger_dir = 'ledger'

    backtest.run(market,
                 strategy,
                 ticks_dir,
                 ledger_dir,
                 initial_cash)

Support

Please open an issue for support.

Contributing

Please contribute using Github Flow. Create a branch, add commits, and open a pull request.

Testing

Test codes are located in tests/ based on PyTest framework.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

backtest-0.7.5.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

backtest-0.7.5-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file backtest-0.7.5.tar.gz.

File metadata

  • Download URL: backtest-0.7.5.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for backtest-0.7.5.tar.gz
Algorithm Hash digest
SHA256 74fb19f44c41c39b640b3be5c072bf7a15cf5a810ec453da932de17fd6aa1f81
MD5 dabd2ffbc25d1030b330e0d60e05bb03
BLAKE2b-256 071e0ee885544b35e34548bbfdbdd188d93759e9482a7661c8bba9db8955a755

See more details on using hashes here.

File details

Details for the file backtest-0.7.5-py3-none-any.whl.

File metadata

  • Download URL: backtest-0.7.5-py3-none-any.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for backtest-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7e91953de78ff093020f948f7bf7b5c8a31fac9bc3c72d0ebe01d7013a6d7165
MD5 b36bc245b79fdbda15b63b0a4020bb3f
BLAKE2b-256 22f89ccf7863dc926126bc5abf3f6a58474e322ef47fd53159271522970dc863

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page