Skip to main content

Backtest engine for algorithmic trading

Project description

======== Backtest

.. image:: https://img.shields.io/pypi/pyversions/backtest.svg :target: https://pypi.org/project/backtest/ :alt: Python

.. image:: https://img.shields.io/pypi/v/backtest.svg :target: https://pypi.org/project/backtest/ :alt: PyPi

.. image:: https://github.com/yoonbae81/backtest/workflows/test/badge.svg :target: https://github.com/yoonbae81/backtest/actions?query=workflow%3Atest :alt: Test

.. image:: https://github.com/yoonbae81/backtest/workflows/build/badge.svg :target: https://github.com/yoonbae81/backtest/actions?query=workflow%3Abuild :alt: Build

.. image:: https://codecov.io/gh/yoonbae81/backtest/graph/badge.svg :target: http://codecov.io/gh/yoonbae81/backtest :alt: Coverage

.. image:: https://readthedocs.org/projects/backtest/badge/?version=latest :target: https://backtest.readthedocs.io/latest :alt: Docs

.. image:: https://img.shields.io/badge/License-GPLv3-blue.svg :target: https://www.gnu.org/licenses/gpl-3.0 :alt: License: GPL v3

Overview

Backtest is a backtesting_ engine for developing algorithmic trading strategy.

.. _backtesting: https://en.wikipedia.org/wiki/Backtesting

Requirements

  • Python <https://www.python.org/>__ 3.9
  • Numpy <https://numpy.org/>__ 1.18.0
  • Requests <https://requests.readthedocs.io/>__ 2.23.0

Installation

The quick way:

.. code:: bash

$ pip install backtest

See the install section in the documentation at https://backtest.readthedocs.io/en/latest/intro/install.html for more details.

Preparation

Fetching symbols of KOSPI and KOSDAQ exchanges:

.. code:: bash

$ python -m backtest.utils.symbols_krx symbols.json
Fetched 2,820 symbols
Saved in symbols.json

Documentation

Documentation is available online_ and in the docs directory. (also in 한국어_)

.. _online: https://backtest.readthedocs.io/en/latest/ .. _한국어: https://backtest.readthedocs.io/ko/latest/

Support

Please open an issue <https://github.com/yoonbae81/backtest/issues/new>__ for support.

Contributing

Please contribute using Github Flow <https://guides.github.com/introduction/flow/>. Create a branch, add commits, and open a pull request <https://github.com/yoonbae/backtest/compare/>.

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.7.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

backtest-0.7.7-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: backtest-0.7.7.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.9.0b4

File hashes

Hashes for backtest-0.7.7.tar.gz
Algorithm Hash digest
SHA256 02c4e05a257f9b3370fd862e33ad2e8bc3f3ba16a24c70640356b0647da6b219
MD5 534bbc60d19cb3fed0a4460458aff549
BLAKE2b-256 943ffb0ebfb11159cd8de09f21c1fb0061fd5dee68e17cf7129c6c55afb6e858

See more details on using hashes here.

File details

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

File metadata

  • Download URL: backtest-0.7.7-py3-none-any.whl
  • Upload date:
  • Size: 33.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.9.0b4

File hashes

Hashes for backtest-0.7.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fcc932f4a728b3ae8aade4596a6b2e0e456a3ce7ab8b36f852fffcc6d305e162
MD5 36bef2bce4c2f99f9e484672e74ad389
BLAKE2b-256 7f0917198bbbb1ed778b8cda7352b966f8909fe93a5aedbc3f14057653b9b069

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