Skip to main content
POST
/
quantlib
/
solver
/
finance
/
carry
Calculate Cost of Carry
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/solver/finance/carry \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "spot": 100,
  "futures": 102.5,
  "time_to_expiry": 0.5
}
'
{
  "success": true,
  "data": {
    "carry": 0.0494
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
spot
number
required

Current spot price

Example:

100

futures
number
required

Futures price

Example:

102.5

time_to_expiry
number
required

Time to futures expiry in years

Example:

0.5

Response

Successful Response

success
boolean
Example:

true

data
object