Send backtest results for jesse trade to discord
Project description
Jesse discord reporting library
Post the results of backtests to a discord channel using a webhook.
The library is published on pypi here: https://pypi.org/project/JesseReportDiscord/
So that to install you can run from a command line in your operating system:
pip install JesseReportDiscord
Update:
pip install JesseReportDiscord --upgrade
Once it's installed you just add the following lines to your Jesse strategy:
import JesseReportDiscord
def terminate(self):
JesseReportDiscord.sendJesseReportToDiscord('https://discordapp.com/api/webhooks/your/generated/webhook')
Where https://discordapp.com/api/webhooks/your/generated/webhook is the url of the webhook you generate in the discord server's channel settings.
It publishes everything that you get after enabling all the options for your backtest (except debug logs) and a little more:
- strategy name,
- routes,
- hyperparameters,
- git branch,
- git commit SHA,
- json report,
- csv report (dates updated to human readable),
- legacy chart,
- quantstats report,
- tradingview pine editor script
- summary metrics
Note that if the attachment files are too large for discord (8MB) they will be zipped into a zip archive. In case they are still too large the archive will be broken up into several uploads with the index _n for each file where n is incrementing. To recombine these for example in wondows download all the parts and then run:
Downloads> COPY /B cb611e9b-458d-4450-a6c4-bfc19b194559_1.tvreport.html.zip + cb611e9b-458d-4450-a6c4-bfc19b194559_2.tvreport.html.zip test.zip
The library will break the upload up into several consecutive posts in case it can't all fit into one.
Users can add any number of additonal reports with a second argument passed as a map for example:
JesseReportDiscord.sendJesseReportToDiscord('http://mydiscordgeneratedwebhook', {'tvreport.html':'relative/path/to/custom/report.html'})
Don't use the in built indexes which are 'json', 'html', 'tradingview', 'csv' unless you want to overwrite those.
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
Hashes for JesseReportDiscord-1.0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f5d40f860fe78741f2c484bba664a788451d985dea112e5004a75ac9254adbc |
|
MD5 | eeac7d20e8957682a367ff7dd70efd70 |
|
BLAKE2b-256 | 31d68c0045f1bb2fefe6a2fcd268dbe91f1f18e93c7957cc635fccdbb49af057 |
Hashes for JesseReportDiscord-1.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b8f0e3c92070fdbd71feb5f6ac1993b231ead1b5ad5d8f2d93ab4311557c539 |
|
MD5 | cb0b4e513863d36de88427f8d6b6be96 |
|
BLAKE2b-256 | 16077677f40a7daa710e7e66096f61d34035bd2f4884d3224f8ff31ceec8286a |