Skip to main content
POST
Backtest
Uses settled funding rates for the latest 30 days and daily aggregates for earlier dates.

Body

application/json
long_market_id
integer
required
Required range: x >= 1
short_market_id
integer
required
Required range: x >= 1
from
string<date>

Inclusive start.

to
string<date>

Exclusive end.

notional_per_leg
number
default:10000

USD notional allocated to each leg.

Required range: x <= 1000000000000
execution_cost_pct
number
default:0.4

Total opening and closing cost as a percentage of per-leg notional.

Required range: 0 <= x <= 100

Response

Backtest result

data
object
required