├── .editorconfig ├── .gitignore ├── README.md └── docker-compose.yml /.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | charset=utf-8 3 | end_of_line=lf 4 | insert_final_newline=true 5 | indent_style=space 6 | indent_size=2 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Env 2 | .DS_Store 3 | .idea 4 | .vscode 5 | .env 6 | .env.local 7 | **/__pycache__ 8 | 9 | # Db internal files 10 | /dbData 11 | # Jesse strategy & config files 12 | /jesseData/**/storage/json 13 | /jesseData/**/storage/logs 14 | /jesseData/**/storage/charts 15 | /jesseData/**/storage/temp 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Jesse quick start 2 | 3 | Quick start for jesse, all you need is install [docker compose](https://docs.docker.com/compose), clone this repo. 4 | 5 | 6 | ## 1. Start the containers: 7 | ```sh 8 | docker-compose up 9 | ``` 10 | 11 | List the containers to make sure the containers are running: 12 | 13 | ```sh 14 | docker container ls 15 | ``` 16 | 17 | ## 2. Into Jesse container, generate the project scaffold and navigate into the project root directory: 18 | ```sh 19 | docker container exec -it {name_of_the_container} /bin/bash 20 | 21 | cd /home 22 | jesse make-project myBot 23 | cd myBot 24 | ``` 25 | 26 | Setup is done. Find your strategy config and file into jesseData directory, follow the instruction from here [https://docs.jesse.trade/docs/strategies/generating-new-strategy.html](https://docs.jesse.trade/docs/strategies/generating-new-strategy.html) 27 | Web interface for backtesting result chart: `http://localhost:3000` 28 | 29 | ## 3. Install live module (optional) 30 | ```sh 31 | pip install /jesse_live-0.0.2-cp39-cp39-manylinux2010_x86_64.whl 32 | ``` 33 | Then follow the instruction from here: [https://docs.jesse.trade/docs/livetrade.html#installation](https://docs.jesse.trade/docs/livetrade.html#installation) 34 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.8' 2 | 3 | services: 4 | 5 | jesse: 6 | image: salehmir/jesse:latest 7 | depends_on: 8 | - db 9 | - jesse-trades-info 10 | environment: 11 | ENV_DATABASES_POSTGRES_HOST: "db" 12 | tty: true 13 | 14 | # Inject api credentials from host env (only for live): 15 | # ENV_EXCHANGES_TESTNET_BINANCE_FUTURES_API_KEY: ${ENV_EXCHANGES_TESTNET_BINANCE_FUTURES_API_KEY} 16 | # ENV_EXCHANGES_TESTNET_BINANCE_FUTURES_API_SECRET: ${ENV_EXCHANGES_TESTNET_BINANCE_FUTURES_API_SECRET} 17 | 18 | # Inject api credentials from env file (only for live): 19 | # env_file: 20 | # .env 21 | 22 | ports: 23 | - 8888:8888 24 | volumes: 25 | - ./jesseData:/home 26 | # Mount the live package as volume (only for live): 27 | # - ./jesse_live-0.0.2-cp39-cp39-manylinux2010_x86_64.whl:/jesse_live-0.0.2-cp39-cp39-manylinux2010_x86_64.whl 28 | 29 | jesse-trades-info: 30 | image: jessetradesinfo/jesse-trades-info:v0.2.1 31 | depends_on: 32 | - db 33 | environment: 34 | DB_HOST: db 35 | DB_NAME: jesse_db 36 | DB_USER: jesse_user 37 | DB_PASSWORD: password 38 | DB_PORT: 5432 39 | ports: 40 | - 3000:3000 41 | 42 | db: 43 | image: postgres:14-alpine 44 | environment: 45 | POSTGRES_USER: jesse_user 46 | POSTGRES_PASSWORD: password 47 | POSTGRES_DB: jesse_db 48 | POSTGRES_HOST_AUTH_METHOD: password 49 | ports: 50 | - 5432:5432 51 | volumes: 52 | - ./dbData:/var/lib/postgresql/data 53 | --------------------------------------------------------------------------------