Skip to main content

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.

Metadata

Release files for backtesting-server 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for backtesting-server 0.7.0
File Size Uploaded
backtesting_server-0.7.0.tar.gz 10.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for backtesting-server 0.7.0
File Interpreter ABI Platform
backtesting_server-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.7 kB

Release files / backtesting_server-0.7.0.tar.gz

Download URL backtesting_server-0.7.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1498146fc7db8af8332db6f455693791a23a4df1fb889411f37a9a84f844abeb
BLAKE2b-256 checksum
How to use checksums
92599d5278f4e01ff1735873492202c73e946a7cef9bde485a0acc1a53162714
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.3 Windows/10

Release files / backtesting_server-0.7.0-py3-none-any.whl

Download URL backtesting_server-0.7.0-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86b121cc29aeb63a6167638e7733856dc93c9f407aaffca1bdccb81920ca772e
BLAKE2b-256 checksum
How to use checksums
f522bf2b8bc7c3203d1ecb165bf4f04a9645c3c67a82e2eb8e20384516ec09dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.3 Windows/10

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page