https://github.com/jesse-ai/jesse
An advanced crypto trading bot written in Python
https://github.com/jesse-ai/jesse
algo-trading algorithmic-trading bitcoin bot crypto crypto-bot crypto-bot-trading cryptocurrency framework jesse python quantitative-finance quantitative-trading trade trading trading-algorithms trading-bot trading-strategies
Last synced: 7 days ago
JSON representation
An advanced crypto trading bot written in Python
- Host: GitHub
- URL: https://github.com/jesse-ai/jesse
- Owner: jesse-ai
- License: mit
- Created: 2018-11-09T10:38:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-26T20:46:33.000Z (6 months ago)
- Last Synced: 2024-10-29T10:11:05.299Z (6 months ago)
- Topics: algo-trading, algorithmic-trading, bitcoin, bot, crypto, crypto-bot, crypto-bot-trading, cryptocurrency, framework, jesse, python, quantitative-finance, quantitative-trading, trade, trading, trading-algorithms, trading-bot, trading-strategies
- Language: JavaScript
- Homepage: https://jesse.trade
- Size: 24.8 MB
- Stars: 5,628
- Watchers: 183
- Forks: 725
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-systematic-trading - Jesse - ai/jesse) |  | (Backtesting and Live Trading / Cryptocurrencies)
- awesome-systematic-trading - Jesse - commit/jesse-ai/jesse/master)  | Python | - Jesse is an advanced crypto trading framework which aims to simplify researching and defining trading strategies. (Backtest + live trading / Crypto currency focus)
- awesome-crypto-trading-bots - jesse - Jesse is an advanced crypto trading framework which aims to simplify researching and defining trading strategies. (Open source bots)
- awesome-crypto-trading-bots - jesse - Jesse is an advanced crypto trading framework which aims to simplify researching and defining trading strategies. (Open source bots)
- awesome-repositories - jesse-ai/jesse - An advanced crypto trading bot written in Python (JavaScript)
- awesome-quant - jesse - An advanced crypto trading bot written in Python (Python / Trading & Backtesting)
- awesome-quant - jesse
- awesome-quant - jesse
- pytrade.org - jesse - An advanced crypto trading bot written in Python (Curated List / Trading Frameworks (support backtesting and live trading))
README
![]()
Algo-trading was π΅βπ«, we made it π€©# Jesse
[](https://pypi.org/project/jesse)
[](https://pepy.tech/project/jesse)
[](https://hub.docker.com/r/salehmir/jesse)
[](https://github.com/jesse-ai/jesse)
[](https://codecov.io/gh/jesse-ai/jesse)---
Jesse is an advanced crypto trading framework that aims to **simplify** **researching** and defining **YOUR OWN trading strategies** for backtesting, optimizing, and live trading.
## What is Jesse?
Watch this video to get a quick overview of Jesse:[](https://www.youtube.com/watch?v=0EqN3OOqeJM)
## Why Jesse?
In short, Jesse is more **accurate** than other solutions, and way more **simple**.
In fact, it is so simple that in case you already know Python, you can get started today, in **matter of minutes**, instead of **weeks and months**.## Key Features
- π **Simple Syntax**: Define both simple and advanced trading strategies with the simplest syntax in the fastest time.
- π **Comprehensive Indicator Library**: Access a complete library of technical indicators with easy-to-use syntax.
- π **Smart Ordering**: Supports market, limit, and stop orders, automatically choosing the best one for you.
- β° **Multiple Timeframes and Symbols**: Backtest and livetrade multiple timeframes and symbols simultaneously without look-ahead bias.
- π **Self-Hosted and Privacy-First**: Designed with your privacy in mind, fully self-hosted to ensure your trading strategies and data remain secure.
- π‘οΈ **Risk Management**: Built-in helper functions for robust risk management.
- π **Metrics System**: A comprehensive metrics system to evaluate your trading strategy's performance.
- π **Debug Mode**: Observe your strategy in action with a detailed debug mode.
- π§ **Optimize Mode**: Fine-tune your strategies using AI, without needing a technical background.
- π **Leveraged and Short-Selling**: First-class support for leveraged trading and short-selling.
- π **Partial Fills**: Supports entering and exiting positions in multiple orders, allowing for greater flexibility.
- π **Advanced Alerts**: Create real-time alerts within your strategies for effective monitoring.
- π€ **JesseGPT**: Jesse has its own GPT, JesseGPT, that can help you write strategies, optimize them, debug them, and much more.
- π§ **Built-in Code Editor**: Write, edit, and debug your strategies with a built-in code editor.
- πΊ **Youtube Channel**: Jesse has a Youtube channel with screencast tutorials that go through example strategies step by step.## Example Strategy
```py
class SMACrossover(Strategy):
@property
def slow_sma(self):
return ta.sma(self.candles, 200)@property
def fast_sma(self):
return ta.sma(self.candles, 50)def should_long(self) -> bool:
# Fast SMA above Slow SMA
return self.fast_sma > self.slow_smadef should_short(self) -> bool:
# Fast SMA below Slow SMA
return self.fast_sma < self.slow_smadef go_long(self):
# Open long position and use entire balance to buy
qty = utils.size_to_qty(self.balance, self.price, fee_rate=self.fee_rate)self.buy = qty, self.price
def go_short(self):
# Open short position and use entire balance to sell
qty = utils.size_to_qty(self.balance, self.price, fee_rate=self.fee_rate)self.sell = qty, self.price
def update_position(self):
# If there exist long position, but the signal shows Death Cross, then close the position, and vice versa.
if self.is_long and self.fast_sma < self.slow_sma:
self.liquidate()
if self.is_short and self.fast_sma > self.slow_sma:
self.liquidate()
```## Getting Started
Head over to the "getting started" section of the [documentation](https://docs.jesse.trade/docs/getting-started). The
documentation is **short yet very informative**.## Resources
- [β‘οΈ Website](https://jesse.trade)
- [π Documentation](https://docs.jesse.trade)
- [π₯ Youtube channel (screencast tutorials)](https://jesse.trade/youtube)
- [π Help center](https://jesse.trade/help)
- [π¬ Discord community](https://jesse.trade/discord)
- [π€ JesseGPT](https://jesse.trade/gpt) (Requires a free account)## What's next?
You can see the project's **[roadmap here](https://docs.jesse.trade/docs/roadmap.html)**. **Subscribe** to our mailing list at [jesse.trade](https://jesse.trade) to get the good stuff as soon they're released. Don't worry, We won't send you spamβPinky promise.
## Disclaimer
This software is for educational purposes only. USE THE SOFTWARE AT **YOUR OWN RISK**. THE AUTHORS AND ALL AFFILIATES ASSUME **NO RESPONSIBILITY FOR YOUR TRADING RESULTS**. **Do not risk money that you are afraid to lose**. There might be **bugs** in the code - this software DOES NOT come with **ANY warranty**.