Adding of SMS toggle, consumer orders and Influx DB class
Project description
tradingtools
Basic trading tools used repeatedly in algo trading applications. Setting as a package enables imports to be performed.
pip install git+https://github.com/pedrostanton/toolbox.git
functions
| Function | Description |
|---|---|
| min_increments | function to get and return the number of decimal places a product quotes at or base min size |
| get_min_increments | function to get and return all the minimum increasements for all products on an exchange |
| exchange_connections | function to get and return authorised client logins for trading exchanges |
| full_average_changes | function to create data frame of average changes, by looping through each row and running the average changes function against each sub data set. Then updating with DataFrame.update() |
| average_changes | function for calculating the differences between two periods as a percentage. |
| merge_frames_drop_cols | function to merge together many dataframes which have calculated average gains |
| full_buy_sell_signal | function to create a dataframe of buy sell signals for a time range (index of peroids) |
| buy_sell_signal | function to get a buy sell signal from a single time peroid, comparing the average gains of assets |
| returns | function for calculating returns on a backtest with buy (1) or sell signals (2) |
classes
| Class | Description |
|---|---|
| Consumer | class to connect to rabbit mq and start consuming from an exchange or queue |
| Consumer func: start_sms_producer | function to make a connection to rabbit for a producer which will send sms messages |
| Consumer func: send_sms | function to send a message to sms consumer (which will be sent as an SMS) |
| InfluxDB | class to connect to Influx DB and perform functions |
| InfluxDB func: get_hloc | returns a High Low Open Close data set |
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
pdtoolbox-0.0.5.tar.gz
(9.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pdtoolbox-0.0.5-py3-none-any.whl
(10.1 kB
view details)
File details
Details for the file pdtoolbox-0.0.5.tar.gz.
File metadata
- Download URL: pdtoolbox-0.0.5.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4f52925b8b5da005fafb01e66f9eb105fcebc0434ae8a7a476b936d67b81847
|
|
| MD5 |
f7e3718f72d5b765b3acda0a67e2b0e6
|
|
| BLAKE2b-256 |
8794b7c1336a9c19445f923ec22e535eca1f4a9ca422240869e6d7e594ebdd99
|
File details
Details for the file pdtoolbox-0.0.5-py3-none-any.whl.
File metadata
- Download URL: pdtoolbox-0.0.5-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da5474714ee18e9bc4b199a228026bf7dcd1c3b2b460bada9d44344cc77f6197
|
|
| MD5 |
80f417fabe8e282e059606cdced0a1ce
|
|
| BLAKE2b-256 |
efb86067173c2513e3e59f8cd47cd1d40de7a4f1c2583a57ece3e6e8899df2d3
|