API reference
Public API/Backtesting

Create custom strategy

POST/backtests/atop/strategies

Create a dispatchable custom strategy from an approved template. Returns 201.

10 requests / minute per key (write tier). Returns the {success, message, data} envelope.

Authorizations

Authorizationstringheaderrequired

Bearer token - an ito_* key (from Settings) holding the backtests:write scope.

Body

strategy_idstring

Example: "my_liquidity_roll"

namestring

Example: "My Liquidity Roll"

template_strategy_idstring

Example: "wsc_crypto_updown_delta_hedged_roll"

venuesarray

Example: ["polymarket"]

default_paramsobject

Example: {"roll_trigger":"liquidity_spread_score","size_mode":"liquidity_weighted","liquidity_size_fraction":0.1}

Request
curl -X POST "https://itomarkets.com/api/v1/backtests/atop/strategies" \  -H "Authorization: Bearer $ITO_API_KEY" \  -H "Content-Type: application/json" \  -d '  {    "strategy_id": "my_liquidity_roll",    "name": "My Liquidity Roll",    "template_strategy_id": "wsc_crypto_updown_delta_hedged_roll",    "venues": [      "polymarket"    ],    "default_params": {      "roll_trigger": "liquidity_spread_score",      "size_mode": "liquidity_weighted",      "liquidity_size_fraction": 0.1    }  }  '
ResponseJSON
{  "success": true,  "message": "Success",  "data": {    "strategy_id": "my_liquidity_roll",    "template_strategy_id": "wsc_crypto_updown_delta_hedged_roll",    "runtime": "custom_template"  }}