Skip to content

Commit

Permalink
added requirements.txt and icecream for nice print statements
Browse files Browse the repository at this point in the history
added local test script to be able to run multiple test on symbols and time frames at once and find the best one according to a chosen metric value.

All you need to:
. import your strategy
. be sure to import all needed candles
. (un)comment, add, change symbols and time frames as needed

!!! jesse-ai/jesse#435 is a requirement for this test script
  • Loading branch information
kakulukia committed Apr 10, 2024
1 parent 05912ec commit 6a1ddd6
Show file tree
Hide file tree
Showing 4 changed files with 468 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,19 @@ cd docker
docker-compose up
```

That's it! Now open [localhost:9000](http://localhost:9000) in your browser to see the dashboard.
That's it! Now open [localhost:9000](http://localhost:9000) in your browser to see the dashboard.

## Usage on the command line

You can also run commands from the command line. For example, to run the backtest:

```sh
python test-strategy.py
```

For that to work, you need to have the environment dependencies installed.
You can install them by running:

```sh
pip install -r requirements.txt
```
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tool.poetry]
name = "renten-bot"
version = "0.1.0"
description = ""
authors = ["Andy <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"
jesse = "^0.46.1"
icecream = "^2.1.3"
numba = "^0.59.1"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
331 changes: 331 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,331 @@
# This file was autogenerated by uv via the following command:
# uv pip compile pyproject.toml -o requirements.txt
aiofiles==0.7.0
# via jesse
aiohttp==3.9.3
# via
# jesse-dydx-v3-python
# web3
aioredis==1.3.1
# via jesse
aiosignal==1.3.1
# via aiohttp
anyio==3.7.1
# via starlette
appdirs==1.4.4
# via yfinance
arrow==1.2.1
# via jesse
asttokens==2.4.1
# via icecream
async-timeout==4.0.3
# via aioredis
attrs==23.2.0
# via
# aiohttp
# jsonschema
# pytest
# referencing
beautifulsoup4==4.12.3
# via yfinance
bitarray==2.9.2
# via eth-account
blinker==1.4
# via jesse
certifi==2024.2.2
# via requests
charset-normalizer==3.3.2
# via requests
click==8.0.3
# via
# jesse
# uvicorn
colorama==0.4.6
# via icecream
contourpy==1.2.1
# via matplotlib
cycler==0.12.1
# via matplotlib
cytoolz==0.12.1
# via
# eth-utils
# jesse-dydx-v3-python
dateparser==1.0.0
# via jesse-dydx-v3-python
deprecated==1.2.14
# via redis
ecdsa==0.19.0
# via jesse-dydx-v3-python
eth-abi==5.1.0
# via
# eth-account
# web3
eth-account==0.8.0
# via
# jesse-dydx-v3-python
# web3
eth-hash==0.7.0
# via
# eth-utils
# web3
eth-keyfile==0.6.1
# via eth-account
eth-keys==0.4.0
# via
# eth-account
# eth-keyfile
# jesse-dydx-v3-python
eth-rlp==0.3.0
# via eth-account
eth-typing==3.5.2
# via
# eth-abi
# eth-keys
# eth-utils
# web3
eth-utils==2.3.1
# via
# eth-abi
# eth-account
# eth-keyfile
# eth-keys
# eth-rlp
# rlp
# web3
executing==2.0.1
# via icecream
fastapi==0.74.0
# via jesse
fonttools==4.51.0
# via matplotlib
frozendict==2.4.1
# via yfinance
frozenlist==1.4.1
# via
# aiohttp
# aiosignal
h11==0.14.0
# via uvicorn
hexbytes==0.3.1
# via
# eth-account
# eth-rlp
# web3
hiredis==2.3.2
# via aioredis
html5lib==1.1
# via yfinance
icecream==2.1.3
idna==3.6
# via
# anyio
# requests
# yarl
iniconfig==2.0.0
# via pytest
jesse==0.46.1
jesse-dydx-v3-python==1.0.4
# via jesse
jsonschema==4.21.1
# via web3
jsonschema-specifications==2023.12.1
# via jsonschema
kiwisolver==1.4.5
# via matplotlib
llvmlite==0.42.0
# via numba
lru-dict==1.3.0
# via web3
lxml==5.2.1
# via yfinance
matplotlib==3.7.4
# via
# jesse
# mplfinance
# quantstats
# seaborn
mplfinance==0.12.8b6
# via jesse
mpmath==1.0.0
# via
# jesse-dydx-v3-python
# sympy
multidict==6.0.5
# via
# aiohttp
# yarl
multitasking==0.0.11
# via yfinance
newtulipy==0.4.6
# via jesse
numba==0.59.1
numpy==1.23.0
# via
# contourpy
# jesse
# matplotlib
# newtulipy
# numba
# pandas
# patsy
# pywavelets
# quantstats
# scipy
# seaborn
# statsmodels
# ta-lib
# yfinance
numpy-groupies==0.9.14
# via jesse
packaging==24.0
# via
# matplotlib
# pytest
# redis
# statsmodels
pandas==1.4.0
# via
# jesse
# mplfinance
# quantstats
# seaborn
# statsmodels
# yfinance
parsimonious==0.10.0
# via eth-abi
patsy==0.5.6
# via statsmodels
peewee==3.14.8
# via jesse
pillow==10.3.0
# via matplotlib
pluggy==1.4.0
# via pytest
protobuf==5.26.1
# via web3
psycopg2-binary==2.9.9
# via jesse
py==1.11.0
# via pytest
pycryptodome==3.20.0
# via
# eth-hash
# eth-keyfile
pydantic==1.10.15
# via fastapi
pydash==6.0.0
# via jesse
pygments==2.17.2
# via icecream
pyparsing==3.1.2
# via matplotlib
pytest==6.2.5
# via jesse
python-dateutil==2.9.0.post0
# via
# arrow
# dateparser
# matplotlib
# pandas
python-dotenv==0.19.2
# via jesse
pytz==2024.1
# via
# dateparser
# pandas
# yfinance
pyunormalize==15.1.0
# via web3
pywavelets==1.2.0
# via jesse
quantstats==0.0.47
# via jesse
redis==4.1.4
# via jesse
referencing==0.34.0
# via
# jsonschema
# jsonschema-specifications
regex==2023.12.25
# via
# dateparser
# parsimonious
requests==2.31.0
# via
# jesse
# jesse-dydx-v3-python
# web3
# yfinance
rlp==3.0.0
# via
# eth-account
# eth-rlp
rpds-py==0.18.0
# via
# jsonschema
# referencing
scipy==1.13.0
# via
# jesse
# quantstats
# statsmodels
seaborn==0.13.2
# via quantstats
simplejson==3.16.0
# via jesse
six==1.16.0
# via
# asttokens
# ecdsa
# html5lib
# patsy
# python-dateutil
sniffio==1.3.1
# via anyio
soupsieve==2.5
# via beautifulsoup4
starlette==0.17.1
# via fastapi
statsmodels==0.14.0
# via jesse
sympy==1.6
# via jesse-dydx-v3-python
ta-lib==0.4.28
# via jesse
tabulate==0.8.9
# via
# jesse
# quantstats
timeloop==1.0.2
# via jesse
toml==0.10.2
# via pytest
toolz==0.12.1
# via cytoolz
typing-extensions==4.11.0
# via
# eth-typing
# pydantic
# web3
tzlocal==5.2
# via dateparser
urllib3==2.2.1
# via requests
uvicorn==0.23.2
# via jesse
web3==6.10.0
# via jesse-dydx-v3-python
webencodings==0.5.1
# via html5lib
websocket-client==1.2.3
# via jesse
websockets==12.0
# via
# jesse
# web3
wrapt==1.16.0
# via deprecated
yarl==1.9.4
# via aiohttp
yfinance==0.2.28
# via quantstats
Loading

0 comments on commit 6a1ddd6

Please sign in to comment.