Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
saleh-mir committed Dec 2, 2021
0 parents commit ab495cc
Show file tree
Hide file tree
Showing 10 changed files with 156 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
PASSWORD=password
APP_PORT=9000

POSTGRES_HOST=127.0.0.1
POSTGRES_NAME=jesse_db
POSTGRES_PORT=5432
POSTGRES_USERNAME=jesse_user
POSTGRES_PASSWORD=password

REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=


# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Live Trade Only #
# =============================================================================== #
# Below values don't concern you if you haven't installed the live trade plugin #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

# For all notifications
GENERAL_TELEGRAM_BOT_TOKEN=
GENERAL_TELEGRAM_BOT_CHAT_ID=
GENERAL_DISCORD_WEBHOOK=

# For error notifications only
ERROR_TELEGRAM_BOT_TOKEN=
ERROR_TELEGRAM_BOT_CHAT_ID=
ERROR_DISCORD_WEBHOOK=

# Testnet Binance Futures:
# http://testnet.binancefuture.com
TESTNET_BINANCE_FUTURES_API_KEY=
TESTNET_BINANCE_FUTURES_API_SECRET=

# Binance Futures:
# https://www.binance.com/en/futures/btcusdt
BINANCE_FUTURES_API_KEY=
BINANCE_FUTURES_API_SECRET=

# FTX Futures:
# https://ftx.com/markets/future
FTX_FUTURES_API_KEY=
FTX_FUTURES_API_SECRET=
# leave empty if it's the main account and not a subaccount
FTX_FUTURES_SUBACCOUNT_NAME=
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/_pycache_
/.pytest_cache
/.vscode
/jesse.egg-info
/.idea
/storage/*.key
/storage/*.sqlite
/storage/*.gz
.DS_Store
/.vagrant
/storage/temp/*.pickle
/storage/trades/*.json
/storage/trading-view-pine-editor/*.txt
/storage/temp/optimize/*.pickle
/storage/orders/*.json
/storage/logs/trades/*.json
/storage/logs/collect.txt
/storage/logs/optimize.txt
/storage/logs/live-trade.txt
/storage/logs/paper-trade.txt
/storage/genetics/*.txt
/storage/csv/*.csv
/storage/json/*.json
/storage/charts/*.png
/storage/full-reports/*.html
*.pyc
/__pycache__
/venv
storage/logs/collect.txt
__pycache__
.vscode
/.ipynb_checkpoints
config.py
live-config.py
routes.py
.env
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Jesse.Trade

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# project-template

This is template from which you can create your own Jesse project.

## Usage
Assuming that you already have installed the environment dependencies, you can run the following command to create your project:

```sh
# you can change "my-project" to any name you want
git clone https://github.com/jesse-ai/project-template.git my-project
# to create a .env file of yours
cp .env.example .env
```
Empty file added __init__.py
Empty file.
21 changes: 21 additions & 0 deletions plugins.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from jesse.modes.import_candles_mode.drivers.binance import Binance
from jesse.modes.import_candles_mode.drivers.binance_futures import BinanceFutures
from jesse.modes.import_candles_mode.drivers.binance_inverse_futures import BinanceInverseFutures
from jesse.modes.import_candles_mode.drivers.bitfinex import Bitfinex
from jesse.modes.import_candles_mode.drivers.coinbase import Coinbase
from jesse.modes.import_candles_mode.drivers.testnet_binance_futures import TestnetBinanceFutures
from jesse.modes.import_candles_mode.drivers.bybit_perpetual import BybitPerpetual
from jesse.modes.import_candles_mode.drivers.testnet_bybit_perpetual import TestnetBybitPerpetual
from jesse.modes.import_candles_mode.drivers.ftx_futures import FTXFutures

import_candles_drivers = {
'Binance': Binance,
'Binance Futures': BinanceFutures,
'Binance Inverse Futures': BinanceInverseFutures,
'Testnet Binance Futures': TestnetBinanceFutures,
'Bitfinex': Bitfinex,
'Coinbase': Coinbase,
'Bybit Perpetual': BybitPerpetual,
'Testnet Bybit Perpetual': TestnetBybitPerpetual,
'FTX Futures': FTXFutures,
}
Empty file added storage/__init__.py
Empty file.
Empty file added storage/logs/.gitkeep
Empty file.
19 changes: 19 additions & 0 deletions strategies/ExampleStrategy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from jesse.strategies import Strategy, cached
import jesse.indicators as ta
from jesse import utils

class ExampleStrategy(Strategy):
def should_long(self) -> bool:
return False

def should_short(self) -> bool:
return False

def should_cancel(self) -> bool:
return False

def go_long(self):
pass

def go_short(self):
pass
Empty file added strategies/__init__.py
Empty file.

0 comments on commit ab495cc

Please sign in to comment.