Skip to main content

Package to interact with MySQL server, recording results of the backtesting.

Project description

Python Package for transferring backtesting data to a MySQL server.

A package allowing transferring of historical price data and strategy results to a MySQL server.

This project is intended to allow users to connect to a MySQL server, transferring backtesting data between the two. Historical data can be uploaded and stored for later use, meaning backtesting won't be limited by the trading API.

Key functions included in this package are:

  • Connecting to the MySQL server.
  • Uploading historical data.

Class diagram

How to utilise this package

  1. Use pip install backtesting-server and pip install ig-package in the command prompt. Note: ig-package is not essential but will be extremely useful.
  2. Import the BacktestingServer object into your script:
    from backtesting-server import BacktestingServer
    
  3. Initialise the BacktestingServer object including your standard server details and your MySQL server details.
 server = BacktestingServer(
  standard_details = {
    "server": "",
    "username": "",
    "password": ""
 }, sql_details = {
    "server": "",
    "username": "",
    "password": ""
 })

How to contribute to this package

This project is fairly specific to my own personal MySQL server and the way I wish to carry out backtesting. However if you do want to contribute to the package, make sure you have your own MySQL server running and have my other IG Package.

Fixing bugs

Please make sure to report any bugs found as issues on Github. If you then want to submit a pull request, make sure to reference the issue.

Future Development

  1. Adding methods to upload backtesting strategy results.

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

backtesting_server-0.6.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

backtesting_server-0.6.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file backtesting_server-0.6.0.tar.gz.

File metadata

  • Download URL: backtesting_server-0.6.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.3 Windows/10

File hashes

Hashes for backtesting_server-0.6.0.tar.gz
Algorithm Hash digest
SHA256 32bad57686678b6431836b4002533d78bcec474863a86c7d9d2b536bd8a9287f
MD5 3c970d349ec8ef63e24166e74ee1a521
BLAKE2b-256 8be5a5d2c59c7bac43a44c067a45b47f83c748676258075ce4674cfe429c3322

See more details on using hashes here.

File details

Details for the file backtesting_server-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for backtesting_server-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 baa8f8918819e6b54657c846fa6d669e26376a93cd6a4f0d5c45a10370ea5b61
MD5 e4003816f3f634310a11e8e331991e35
BLAKE2b-256 70c2cb7a1ad6e290114d56782ec72fdafcbf1258f6034d91f0107e8d6c8e1bd8

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