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.
How to utilise this package
- Use
pip install backtesting-server
andpip install ig-package
in the command prompt. Note: ig-package is not essential but will be extremely useful. - Import the BacktestingServer object into your script:
from backtesting-server import BacktestingServer
- 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
- Adding methods to upload backtesting strategy results.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file backtesting_server-0.4.0.tar.gz
.
File metadata
- Download URL: backtesting_server-0.4.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.3 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20b201af539b6999d89f3b61d5c23285b1e2a9a6c16bc701d4750519c8c80a37 |
|
MD5 | fee245d75e68a9c2d0648bd7ad1ea8d3 |
|
BLAKE2b-256 | 2775090ffa242dd1b140b1b86b7005506807ad2b9bb4b9c42a9acbe2e2d046cb |
File details
Details for the file backtesting_server-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: backtesting_server-0.4.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.3 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25988412fb6be8cf716bde48396e2fe75d1f54cb6df1a7c6b03cf5355011133f |
|
MD5 | ecc5eed552050b860ce2fcdd2cfed70f |
|
BLAKE2b-256 | 5aabdb41f3faa9f7700c1e4291cc6a47155faf7a168deccd0ac961921a6a5106 |