Skip to main content
POST
/
api
/
v1
/
custom
/
org
/
{organization_uuid}
/
clients
/
{uuid}
/
backtests
/
cURL
curl --request POST \
  --url https://api.tilt.io/api/v1/custom/org/{organization_uuid}/clients/{uuid}/backtests/ \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "start_date": "2023-12-25",
  "end_date": "2023-12-25",
  "rebalance_period": "MONTHLY",
  "tax_gamma": 0.5,
  "tax_loss_threshold_bps": 2500,
  "starting_nav": 500000050
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "PENDING",
  "params": {
    "start_date": "2023-12-25",
    "end_date": "2023-12-25",
    "rebalance_period": "MONTHLY",
    "tax_gamma": 0.5,
    "tax_loss_threshold_bps": 2500,
    "starting_nav": 500000050
  },
  "result": {},
  "error_message": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "started_at": "2023-11-07T05:31:56Z",
  "finished_at": "2023-11-07T05:31:56Z"
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

organization_uuid
string<uuid>
required
uuid
string<uuid>
required

Body

start_date
string<date>
end_date
string<date>
rebalance_period
enum<string>
default:MONTHLY
  • MONTHLY - MONTHLY
Available options:
MONTHLY
tax_gamma
number
Required range: 0 <= x <= 1
tax_loss_threshold_bps
number
Required range: 0 <= x <= 5000
starting_nav
number
Required range: 100 <= x <= 1000000000

Response

202 - application/json
id
string<uuid>
required
status
enum<string>
required
  • PENDING - PENDING
  • RUNNING - RUNNING
  • SUCCESS - SUCCESS
  • FAILURE - FAILURE
Available options:
PENDING,
RUNNING,
SUCCESS,
FAILURE
params
object
required
result
object
required

Dictionary mapping case names to case results

error_message
string | null
required
created_at
string<date-time>
required
started_at
string<date-time> | null
required
finished_at
string<date-time> | null
required