An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        





Jesse


Algo-trading was πŸ˜΅β€πŸ’«, we made it 🀩


# Jesse
[![PyPI](https://img.shields.io/pypi/v/jesse)](https://pypi.org/project/jesse)
[![Downloads](https://pepy.tech/badge/jesse)](https://pepy.tech/project/jesse)
[![Docker Pulls](https://img.shields.io/docker/pulls/salehmir/jesse)](https://hub.docker.com/r/salehmir/jesse)
[![GitHub](https://img.shields.io/github/license/jesse-ai/jesse)](https://github.com/jesse-ai/jesse)
[![coverage](https://codecov.io/gh/jesse-ai/jesse/graph/badge.svg)](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:

[![Jesse Overview](https://img.youtube.com/vi/0EqN3OOqeJM/0.jpg)](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_sma

def should_short(self) -> bool:
# Fast SMA below Slow SMA
return self.fast_sma < self.slow_sma

def 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**.