Deptho

v0.1.0
io.deptho/deptho-mcp Checked 2 days ago Published 28 days ago

Replay a crypto backtest's orders against trades and write tearsheets, locally.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

replay_orders

Replay a backtest's market orders against the trades that followed them. orders_csv: CSV with columns time (ISO or epoch), side (+1/-1 or buy/sell), qty (base units). trades_file: Binance archive aggTrades file (.zip or .csv) or Tardis.dev trades file (.csv or .csv.gz) covering the orders' period. Writes one row per filled order (side, qty, price, ref_price, slippage_bps) to fills_csv (default: next to the orders, <name>.fills.csv) and returns a summary. Slippage is in bps against the last trade before each order; positive = cost.

ParameterTypeDescription
orders_csv *string
trades_file *string
fills_csv

tearsheet

Write Deptho's HTML tearsheet for a strategy and return its path and headline numbers. bars_csv: CSV with columns time, price (mark/close) and position (exposure as a fraction of equity, 1.0 = 1x long, decided at each bar's close; it earns from the next bar). funding_csv (optional): time and funding_rate (positive = longs pay). fee_bps and slippage_bps: per unit of turnover; use the slippage measured with replay_orders rather than a guess. Writes one self-contained HTML file (default: next to bars_csv, <name>.report.html).

ParameterTypeDescription
bars_csv *string
fee_bpsnumber
funding_csv
report_html
slippage_bpsnumber
titlestring

pro_status

Whether Deptho Pro is installed and licensed here. pro_sync and pro_replay need it.

pro_sync

(Deptho Pro) Download Binance USD-M daily trade files from Binance's public archive for start..end (YYYY-MM-DD, inclusive) and append them to one local memory-mapped dataset, "<SYMBOL>-aggTrades". Days already on disk aren't downloaded again. Returns the dataset name and size.

ParameterTypeDescription
end *string
start *string
symbol *string

pro_replay

(Deptho Pro) Replay an orders CSV (time, side, qty) against a dataset made by pro_sync (the name it returned, e.g. "BTCUSDT-aggTrades"), straight off the memory-mapped columns. Same output as replay_orders.

ParameterTypeDescription
dataset *string
orders_csv *string
fills_csv