Now in early access

Trade on rules,
not on reflexes.

Write your strategy in Python, backtest it on years of data, and let it run 24/7 on your own exchange account.

momentum.py·
·1hPaper · Running

BTC/USDT

66,311.57

MACD 5 13 4

Execution log

  1. 19:00macd=389.66 signal=539.23
  2. 18:00macd=440.11 signal=638.94
  3. 17:00macd=648.45 signal=771.50
  4. 16:00macd=781.23 signal=853.54
  5. 15:00macd=720.57 signal=901.75
  6. 14:00macd=959.72 signal=1022.53
  7. 13:00macd=1211.01 signal=1064.41
  8. 12:00macd=1209.59 signal=966.67
  9. 11:00macd=1075.40 signal=804.73
  10. 10:00macd=1028.13 signal=624.27
  11. 09:00macd=714.98 signal=355.04
Equity
1000.00 +0.0%
Trades
0
BinanceAvailable
CoinbaseComing soon
KrakenComing soon
BinanceAvailable
CoinbaseComing soon
KrakenComing soon
BinanceAvailable
CoinbaseComing soon
KrakenComing soon
BinanceAvailable
CoinbaseComing soon
KrakenComing soon

One Python file, from idea to live

Write the strategy once. Straufi backtests it, paper trades it and runs it on your exchange, without changing a line.

BTC/USDT · 1D · 0.1% feesStrategyBuy & hold
0%
+50%
+100%
+150%
Drawdown
Jan 24Jul 24Jan 25Jul 25
Return
+127.9%
Buy & hold
+86.0%
Max DD
-16.9%
Win rate
60%
Sharpe
1.90
Trades
11

Backtest in seconds

Replay your code on years of market data, fees included, and compare it with buy & hold.

Simulated orders, real prices

Paper first, live when ready

Run on real market data with fake money, then switch to live in one click.

$ straufi login

Work from your terminal

Log in once, then backtest and deploy without leaving your editor.

  1. 14:00:00 → BUY ETH market, 1000.00 USDT
  2. 14:00:00 ETH/USDT: macd=12.33 signal=11.57
  3. 13:00:00 ETH/USDT: macd=9.40 signal=11.06
  4. 13:00:00 BTC/USDT: macd=1211.01 signal=1064.41
  5. 09:00:00 ETH/USDT: macd=15.88 signal=15.85
  6. 09:00:00 BTC/USDT: macd=714.98 signal=355.04

Full observability

Follow every print, order and fill live, timestamped and kept, so you can trace any trade back to the data behind it.

24/7

Every minute of every day

Runs 24/7

The market never closes. Your strategy keeps running while you sleep.

Write a strategy that buys BTC when it drops 2% under its 20-candle average

Writing dip_buyer.py…

Done: it buys 100 USDT of BTC whenever it closes 2% under its 20-candle average. Want me to backtest it?

Code it, or let your AI agent do it

Write Python with pandas and the libraries you know, or describe your strategy to Claude Code or Codex and let it write the file.

Classic strategies, in a few lines

Start from a well-known strategy and make it yours. Watch each one run: the code lights up when it acts on the chart.

mean_reversion.py
1class MeanReversion(Strategy):
2 def run(self) -> None:
3 budgets = self.get_budget()
4
5 for _, instrument in self.instruments():
6 last = self.get_df(instrument).iloc[-1]
7 budget = budgets.get(instrument.broker, {})
8 quote = budget.get(instrument.quote, 0.0)
9 base = budget.get(instrument.base, 0.0)
10
11 print(f"{instrument}: close={last.close} rsi={last.rsi:.1f}")
12
13 # Oversold: below the lower Bollinger Band, with an RSI under 30
14 if last.rsi < 30 and last.close < last.bb_lower and quote > 0:
15 self.place_order(Order(
16 instrument=instrument, type=OrderType.MARKET,
17 side=OrderSide.BUY, quote_volume=quote,
18 ))
19 # Overbought: above the upper Bollinger Band, with an RSI over 70
20 elif last.rsi > 70 and last.close > last.bb_upper and base > 0:
21 self.place_order(Order(
22 instrument=instrument, type=OrderType.MARKET,
23 side=OrderSide.SELL, volume=base,
24 ))
RSI 7 · BB 10Trades 0+0.0%

Output

  1. BTC/USDT: close=100435.82 rsi=44.9
  2. BTC/USDT: close=100546.37 rsi=46.7
  3. BTC/USDT: close=99796.26 rsi=37.0
  4. BTC/USDT: close=99271.15 rsi=31.7
  5. BTC/USDT: close=98750.65 rsi=27.1
  6. BTC/USDT: close=98812.81 rsi=28.5
  7. BTC/USDT: close=98327.77 rsi=24.2

Frequently Asked Questions

Got questions? We've got answers.

Straufi runs your trading strategies for you. You write a strategy in Python, backtest it on years of market data, try it with paper trading, then let it trade on your own exchange account, around the clock.
A little. A strategy is a short Python file: a config listing its instruments and indicators, and a run function that decides what to do on each candle. You can start from a template, like the mean reversion or trend following strategies, and adjust it.
Your strategy declares its instruments, its indicators and how often it runs. Straufi fetches the candles, computes the indicators and hands your code a DataFrame.
We currently support Binance, with Coinbase and Kraken integrations coming very soon. We're continuously working to expand our exchange support to give you the most flexibility.
Straufi never has direct access to your funds. We use read-and-trade-only API keys from your exchange, we cannot withdraw or transfer your assets under any circumstances. Your funds remain securely on your exchange at all times.
Paper trading simulates real market conditions without using actual money: it's a risk-free sandbox to validate that your strategy works as expected in live markets. Live trading connects to your exchange and executes real orders with real funds. We always recommend starting with paper trading first.
Backtesting is the process of testing your trading strategy against historical market data. It shows you how your strategy would have performed in the past, including returns, drawdowns, win rates, and risk metrics. This helps you evaluate and refine your strategy before committing real capital.
Straufi is currently in early access. During this period, access is free for early adopters. Join our waitlist to secure your spot and be among the first to experience the platform.
Join the waitlist. Once you have access, log in, start from a template or write your own strategy, backtest it, and deploy it on paper before going live.

The market never sleeps.
Neither does your strategy.

Join the waitlist. Early access is free for early adopters.