Skip to main content
POST
/
quantlib
/
solver
/
finance
/
basis
Calculate Basis
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/solver/finance/basis \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "spot": 100,
  "futures": 102
}
'
{
  "success": true,
  "data": {
    "basis": -2
  }
}

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 of the underlying asset

Example:

100

futures
number
required

Futures price

Example:

102

Response

Successful Response

success
boolean
Example:

true

data
object