MorphIQ Labs API reference

From your first request to every response field.

Explore the regime analysis, pricing and service endpoints defined in the current API contract. The API is in beta and its contract is still evolving.

HTTP + JSON · Protobuf on pricing routesAPI v1 · Beta21 endpoints
New here?

The quickstart covers creating an API key, a runnable example for every operation, plan limits and errors. Start with How to use your API key for the exact authentication header, terminal setup, and troubleshooting.

post

/v1/analytics

#

Numerical result

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/analytics' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "exercise_style": "european",
  "pricing_model": "auto",
  "option_type": "call",
  "spot": 100,
  "strike": 100,
  "time_to_expiry_years": 1,
  "risk_free_rate": 0.05,
  "dividend_yield": 0,
  "volatility": 0.2,
  "market_price": 10.45
}'

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

FusedAnalyticsRequest encoded as JSON or morphiq.api.v1.FusedAnalyticsRequest

application/json

application/protobuf

A request for price and Greeks, optionally at a volatility solved from an observed premium first. With `market_price`, volatility is solved and the Greeks are evaluated at the solved value — one admission, one solve, and the solved point passed inward as verified evidence rather than re-derived. Without it, the supplied `volatility` is used and the result is the all-ten-Greeks operation under another name.

Additional fields are not accepted.

dividend_schedulearray of DividendEventoptional

Cash dividends are supported with supplied or solved volatility.

maxItems: 16
Array item schema
dividend_yieldnumber · doublerequired
exercise_styleExerciseStylerequired
market_pricenumber | null · doubleoptional

The observed premium to invert before evaluating the Greeks.

model_versionstring | nulloptional
option_typeOptionTyperequired
pricing_modelPricingModelrequired
risk_free_ratenumber · doublerequired
spotnumber · doublerequired
strikenumber · doublerequired
time_to_expiry_yearsnumber · doublerequired
volatilitynumber · doublerequired

Used only when `market_price` is absent.

Responses

200 Numerical result

application/json

application/protobuf

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed request, or disabled model operation (unsupported_operation): QdFp Greeks/analytics or cash-dividend finite-difference Greeks/analytics, including Auto

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Credential missing or not verifiable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 The account's funding is spent until a top-up or the next budget period

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 The account is not permitted, or its plan does not include this operation

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Response media type is not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Request body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 Unsupported media type

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid pricing request, or work that cannot be priced under the account's limits

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Pricing failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Capacity exhausted, funding, policy or admission temporarily unavailable, or service draining

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
post

/v1/analytics:batch

#

Ordered batch results

Synchronous BSM/BS1993 batches only; at most 100 contracts or the lower account limit. Any QdFp or cash-dividend item rejects the whole batch before reservation or execution. Results preserve input order; the charge sums per-contract CUs.

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/analytics:batch' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY"

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

BatchFusedAnalyticsRequest encoded as JSON or morphiq.api.v1.BatchFusedAnalyticsRequest

application/protobuf

Ordered request envelope; runtime applies the pinned plan limit.

Additional fields are not accepted.

requestsarray of FusedAnalyticsRequestrequired

One to 100 contracts; a lower account limit still applies.

minItems: 1maxItems: 100
Array item schema

Responses

200 Ordered batch results

application/protobuf

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed request

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Credential missing or not verifiable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 The account's funding is spent until a top-up or the next budget period

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 The account is not permitted, or its plan does not include this operation

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Response media type is not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Request body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 Unsupported media type

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid batch request, or work that cannot be priced under the account's limits

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Pricing failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Ingress or compute capacity exhausted, or funding, policy or admission temporarily unavailable

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
post

/v1/greeks

#

Numerical result

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/greeks' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "exercise_style": "european",
  "pricing_model": "auto",
  "option_type": "call",
  "spot": 100,
  "strike": 100,
  "time_to_expiry_years": 1,
  "risk_free_rate": 0.05,
  "dividend_yield": 0,
  "volatility": 0.2
}'

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

GreeksAllTenRequest encoded as JSON or morphiq.api.v1.GreeksAllTenRequest

application/json

application/protobuf

A request for the price and all ten Greeks at a supplied volatility. The same shape as `PriceRequest`: the Greeks are derivatives of the price, so they are a property of the same contract and the same coordinates.

Additional fields are not accepted.

dividend_schedulearray of DividendEventoptional

Cash dividends select the finite-difference American model with Auto.

maxItems: 16
Array item schema
dividend_yieldnumber · doublerequired
exercise_styleExerciseStylerequired
model_versionstring | nulloptional
option_typeOptionTyperequired
pricing_modelPricingModelrequired
risk_free_ratenumber · doublerequired
spotnumber · doublerequired
strikenumber · doublerequired
time_to_expiry_yearsnumber · doublerequired
volatilitynumber · doublerequired

Responses

200 Numerical result

application/json

application/protobuf

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed request, or disabled model operation (unsupported_operation): QdFp Greeks/analytics or cash-dividend finite-difference Greeks/analytics, including Auto

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Credential missing or not verifiable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 The account's funding is spent until a top-up or the next budget period

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 The account is not permitted, or its plan does not include this operation

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Response media type is not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Request body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 Unsupported media type

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid pricing request, or work that cannot be priced under the account's limits

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Pricing failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Capacity exhausted, funding, policy or admission temporarily unavailable, or service draining

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
post

/v1/greeks/standard

#

Numerical result

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/greeks/standard' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "exercise_style": "european",
  "pricing_model": "auto",
  "option_type": "call",
  "spot": 100,
  "strike": 100,
  "time_to_expiry_years": 1,
  "risk_free_rate": 0.05,
  "dividend_yield": 0,
  "volatility": 0.2
}'

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

GreeksStandardRequest encoded as JSON or morphiq.api.v1.GreeksStandardRequest

application/json

application/protobuf

A request for the price and the standard five Greeks at a supplied volatility. The same shape as `PriceRequest`: the Greeks are derivatives of the price, so they are a property of the same contract and the same coordinates.

Additional fields are not accepted.

dividend_schedulearray of DividendEventoptional

Cash dividends select the finite-difference American model with Auto.

maxItems: 16
Array item schema
dividend_yieldnumber · doublerequired
exercise_styleExerciseStylerequired
model_versionstring | nulloptional
option_typeOptionTyperequired
pricing_modelPricingModelrequired
risk_free_ratenumber · doublerequired
spotnumber · doublerequired
strikenumber · doublerequired
time_to_expiry_yearsnumber · doublerequired
volatilitynumber · doublerequired

Responses

200 Numerical result

application/json

application/protobuf

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed request, or disabled model operation (unsupported_operation): QdFp or cash-dividend finite-difference Greeks/analytics, including Auto

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Credential missing or not verifiable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 The account's funding is spent until a top-up or the next budget period

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 The account is not permitted, or its plan does not include this operation

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Response media type is not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Request body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 Unsupported media type

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid pricing request, or work that cannot be priced under the account's limits

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Pricing failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Capacity exhausted, funding, policy or admission temporarily unavailable, or service draining

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
post

/v1/greeks/standard:batch

#

Ordered batch results

Synchronous BSM/BS1993 batches only; at most 100 contracts or the lower account limit. Any QdFp or cash-dividend item rejects the whole batch before reservation or execution. Results preserve input order; the charge sums per-contract CUs.

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/greeks/standard:batch' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY"

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

BatchGreeksStandardRequest encoded as JSON or morphiq.api.v1.BatchGreeksStandardRequest

application/protobuf

Ordered request envelope; runtime applies the pinned plan limit.

Additional fields are not accepted.

requestsarray of GreeksStandardRequestrequired

One to 100 contracts; a lower account limit still applies.

minItems: 1maxItems: 100
Array item schema

Responses

200 Ordered batch results

application/protobuf

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed request

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Credential missing or not verifiable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 The account's funding is spent until a top-up or the next budget period

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 The account is not permitted, or its plan does not include this operation

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Response media type is not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Request body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 Unsupported media type

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid batch request, or work that cannot be priced under the account's limits

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Pricing failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Ingress or compute capacity exhausted, or funding, policy or admission temporarily unavailable

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
post

/v1/greeks:batch

#

Ordered batch results

Synchronous BSM/BS1993 batches only; at most 100 contracts or the lower account limit. Any QdFp or cash-dividend item rejects the whole batch before reservation or execution. Results preserve input order; the charge sums per-contract CUs.

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/greeks:batch' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY"

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

BatchGreeksAllTenRequest encoded as JSON or morphiq.api.v1.BatchGreeksAllTenRequest

application/json

application/protobuf

Ordered request envelope; runtime applies the pinned plan limit.

Additional fields are not accepted.

requestsarray of GreeksAllTenRequestrequired

One to 100 contracts; a lower account limit still applies.

minItems: 1maxItems: 100
Array item schema

Responses

200 Ordered batch results

application/protobuf

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed request

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Credential missing or not verifiable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 The account's funding is spent until a top-up or the next budget period

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 The account is not permitted, or its plan does not include this operation

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Response media type is not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Request body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 Unsupported media type

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid batch request, or work that cannot be priced under the account's limits

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Pricing failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Ingress or compute capacity exhausted, or funding, policy or admission temporarily unavailable

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
post

/v1/implied-volatility

#

Numerical result

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/implied-volatility' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "exercise_style": "european",
  "pricing_model": "auto",
  "option_type": "call",
  "spot": 100,
  "strike": 100,
  "time_to_expiry_years": 1,
  "risk_free_rate": 0.05,
  "dividend_yield": 0,
  "market_price": 10.45
}'

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

ImpliedVolatilityRequest encoded as JSON or morphiq.api.v1.ImpliedVolatilityRequest

application/json

application/protobuf

A request to invert an observed premium into a volatility. Carries `market_price` and no `volatility`: volatility is the unknown being solved for, so a request that supplied one would be asking the service to ignore it.

Additional fields are not accepted.

dividend_schedulearray of DividendEventoptional
maxItems: 16
Array item schema
dividend_yieldnumber · doublerequired
exercise_styleExerciseStylerequired
market_pricenumber · doublerequired

The observed premium to invert.

model_versionstring | nulloptional
option_typeOptionTyperequired
pricing_modelPricingModelrequired
risk_free_ratenumber · doublerequired
spotnumber · doublerequired
strikenumber · doublerequired
time_to_expiry_yearsnumber · doublerequired

Responses

200 Numerical result

application/protobuf

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed request

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Credential missing or not verifiable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 The account's funding is spent until a top-up or the next budget period

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 The account is not permitted, or its plan does not include this operation

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Response media type is not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Request body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 Unsupported media type

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid pricing request, or work that cannot be priced under the account's limits

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Pricing failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Capacity exhausted, funding, policy or admission temporarily unavailable, or service draining

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
post

/v1/implied-volatility:batch

#

Ordered batch results

Synchronous BSM/BS1993 batches only; at most 100 contracts or the lower account limit. Any QdFp or cash-dividend item rejects the whole batch before reservation or execution. Results preserve input order; the charge sums per-contract CUs.

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/implied-volatility:batch' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY"

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

BatchImpliedVolatilityRequest encoded as JSON or morphiq.api.v1.BatchImpliedVolatilityRequest

application/protobuf

Ordered request envelope; runtime applies the pinned plan limit.

Additional fields are not accepted.

requestsarray of ImpliedVolatilityRequestrequired

One to 100 contracts; a lower account limit still applies.

minItems: 1maxItems: 100
Array item schema

Responses

200 Ordered batch results

application/protobuf

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed request

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Credential missing or not verifiable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 The account's funding is spent until a top-up or the next budget period

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 The account is not permitted, or its plan does not include this operation

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Response media type is not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Request body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 Unsupported media type

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid batch request, or work that cannot be priced under the account's limits

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Pricing failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Ingress or compute capacity exhausted, or funding, policy or admission temporarily unavailable

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
post

/v1/price

#

Price calculated

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/price' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "exercise_style": "european",
  "pricing_model": "auto",
  "option_type": "call",
  "spot": 100,
  "strike": 100,
  "time_to_expiry_years": 1,
  "risk_free_rate": 0.05,
  "dividend_yield": 0,
  "volatility": 0.2
}'

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

PriceRequest encoded as JSON or morphiq.api.v1.PriceRequest

application/json

application/protobuf

A single option-pricing request. All numeric fields are required.

Additional fields are not accepted.

dividend_schedulearray of DividendEventoptional

Discrete cash dividends within the option's life. American Cash-dividend American model only; Auto selects it for a non-empty schedule.

maxItems: 16
Array item schema
dividend_yieldnumber · doublerequired
exercise_styleExerciseStylerequired
model_versionstring | nulloptional

Optional algorithm-version pin. Omit to use the current version.

option_typeOptionTyperequired
pricing_modelPricingModelrequired
risk_free_ratenumber · doublerequired
spotnumber · doublerequired
strikenumber · doublerequired
time_to_expiry_yearsnumber · doublerequired
volatilitynumber · doublerequired

Responses

200 Price calculated

application/json

application/protobuf

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed request

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Credential missing or not verifiable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 The account's funding is spent until a top-up or the next budget period

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 The account is not permitted, or its plan does not include this operation

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Response media type is not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Request body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 Unsupported media type

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid pricing request, or work that cannot be priced under the account's limits

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Pricing failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Capacity exhausted, funding, policy or admission temporarily unavailable, or service draining

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
post

/v1/price:batch

#

Ordered batch results

Synchronous BSM/BS1993 batches only; at most 100 contracts or the lower account limit. Any QdFp or cash-dividend item rejects the whole batch before reservation or execution. Results preserve input order; the charge sums per-contract CUs.

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/price:batch' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY"

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

BatchPriceRequest encoded as JSON or morphiq.api.v1.BatchPriceRequest

application/json

application/protobuf

An ordered batch of option-pricing requests.

Additional fields are not accepted.

requestsarray of PriceRequestrequired

One to 100 contracts; a lower account limit still applies.

minItems: 1maxItems: 100
Array item schema

Responses

200 Ordered batch results

application/json

application/protobuf

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed request

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Credential missing or not verifiable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 The account's funding is spent until a top-up or the next budget period

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 The account is not permitted, or its plan does not include this operation

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Response media type is not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Request body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 Unsupported media type

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid batch request, or work that cannot be priced under the account's limits

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Pricing failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Ingress or compute capacity exhausted, or funding, policy or admission temporarily unavailable

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
get

/v1/pricing/models

#

List pricing models and their numerical capabilities.

Public JSON discovery: no API key, account filtering, pricing work or CU charge. Every caller receives the same compiled catalog. Quantity support is a capability, not a promise of convergence for every input. Auto selects European BSM, American QdFp, or American finite difference with cash events.

Model discovery and available Greeks → Public JSON catalog; no API key or CU charge.

cURL
curl --fail-with-body --request GET 'https://api.morphiqlabs.com/v1/pricing/models'

Responses

200 All pricing models with methods, capabilities and usage guidance

application/json

Response headers
x-request-id string
Unique service-generated request identifier
406 JSON is not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
get

/openapi.json

#

OpenAPI 3.1 service contract

cURL
curl --fail-with-body --request GET 'https://api.morphiqlabs.com/openapi.json'

Responses

200 OpenAPI 3.1 service contract

application/json

any JSON value

Response headers
x-request-id string
Unique service-generated request identifier
get

/ready

#

Service accepts protected work under a valid policy

cURL
curl --fail-with-body --request GET 'https://api.morphiqlabs.com/ready'

Responses

200 Service accepts protected work under a valid policy

application/json

Response headers
x-request-id string
Unique service-generated request identifier
503 Service is draining or no valid policy is available

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
post

/v1/book-scenarios:evaluate

#

Per-position, strategy, book and portfolio net values

Reprice one or more books of signed option positions under one ordered scenario of spot, volatility, skew, rate, roll-down and volatility-term shocks. JSON only. Requires price-batch entitlement. Each position uses explicit BSM or BS1993 and counts as two price calculations (a base and a shocked valuation) against the account's price batch limit, charged at the position's model price rate. Every amount is in the request `currency`; no conversion is applied. Returns per-position, strategy, book and portfolio base and shocked net values and P&L (shocked minus base modeled value), with each position's submitted contract for replay. Identifiers are caller-chosen strings. Strategies may overlap, so strategy totals are not additive; book and portfolio totals sum each position once. A refused position fails the whole request with a typed error. No target solving, attribution or live market data is included.

The example uses synthetic inputs. See the scenario guide for limits and deployment availability.

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/book-scenarios:evaluate' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "currency": "USD",
  "books": [
    {
      "id": "desk-a",
      "positions": [
        {
          "id": "XYZ-P105",
          "underlying": "XYZ",
          "quantity": -2,
          "multiplier": 100,
          "contract": {
            "exercise_style": "european",
            "pricing_model": "black_scholes_merton",
            "option_type": "put",
            "spot": 100,
            "strike": 105,
            "time_to_expiry_years": 0.75,
            "risk_free_rate": 0.04,
            "dividend_yield": 0.01,
            "volatility": 0.3
          }
        },
        {
          "id": "XYZ-C95",
          "underlying": "XYZ",
          "quantity": 3,
          "multiplier": 100,
          "contract": {
            "exercise_style": "american",
            "pricing_model": "bjerksund_stensland_1993",
            "option_type": "call",
            "spot": 100,
            "strike": 95,
            "time_to_expiry_years": 0.75,
            "risk_free_rate": 0.04,
            "dividend_yield": 0.01,
            "volatility": 0.3
          }
        }
      ],
      "strategies": [
        {
          "id": "risk-reversal",
          "position_ids": [
            "XYZ-P105",
            "XYZ-C95"
          ]
        }
      ]
    }
  ],
  "scenario": {
    "name": "spot_up_5_vol_up_2",
    "shocks": [
      {
        "kind": "spot_relative",
        "relative": 0.05
      },
      {
        "kind": "parallel_vol",
        "shift": 0.02
      }
    ]
  }
}'

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

application/json

Reprice one or more books under one composed scenario. More than one book returns portfolio totals. Every position costs a base and a shocked price calculation at its model's price rate.

Additional fields are not accepted.

booksarray of BookInputrequired

At most 50 books, and no more books than the position limit; total positions must fit half the account price batch limit.

maxItems: 50
Array item schema
currencystringrequired

Currency every position's prices and every total are in, e.g. USD. A label: positions in different currencies cannot share a request, and no conversion is applied.

scenarioBookScenarioDefinitionrequired

Responses

200 Per-position, strategy, book and portfolio net values

application/json

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed request

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Credential missing or invalid

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 Funding exhausted

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 Price batch not permitted

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Response media type not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 JSON required

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid book, scenario or account limits, or numerical refusal

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Rate or concurrency allowance exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Numerical or encoding failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Capacity, funding or admission unavailable

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
post

/v1/book-scenarios:explain

#

P&L attribution by position, strategy, expiry and strike

Returns exactly the /v1/book-scenarios:evaluate result for the same request, with `attribution` (expiry and strike buckets) added per book and across the portfolio; both routes run the same engine valuation, so shared fields are identical. Position totals and the expiry and strike buckets each partition the book and reconcile to its P&L; strategies may overlap and are not additive. Buckets coalesce only bitwise-identical expiries and strikes. Same request, entitlement, limits and price-rate charging as /v1/book-scenarios:evaluate: two price calculations per position. JSON only. A refused position fails the whole request.

The example uses synthetic inputs. See the scenario guide for limits and deployment availability.

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/book-scenarios:explain' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "currency": "USD",
  "books": [
    {
      "id": "desk-a",
      "positions": [
        {
          "id": "XYZ-P105",
          "underlying": "XYZ",
          "quantity": -2,
          "multiplier": 100,
          "contract": {
            "exercise_style": "european",
            "pricing_model": "black_scholes_merton",
            "option_type": "put",
            "spot": 100,
            "strike": 105,
            "time_to_expiry_years": 0.75,
            "risk_free_rate": 0.04,
            "dividend_yield": 0.01,
            "volatility": 0.3
          }
        },
        {
          "id": "XYZ-C95",
          "underlying": "XYZ",
          "quantity": 3,
          "multiplier": 100,
          "contract": {
            "exercise_style": "american",
            "pricing_model": "bjerksund_stensland_1993",
            "option_type": "call",
            "spot": 100,
            "strike": 95,
            "time_to_expiry_years": 0.75,
            "risk_free_rate": 0.04,
            "dividend_yield": 0.01,
            "volatility": 0.3
          }
        }
      ],
      "strategies": [
        {
          "id": "risk-reversal",
          "position_ids": [
            "XYZ-P105",
            "XYZ-C95"
          ]
        }
      ]
    }
  ],
  "scenario": {
    "name": "spot_up_5_vol_up_2",
    "shocks": [
      {
        "kind": "spot_relative",
        "relative": 0.05
      },
      {
        "kind": "parallel_vol",
        "shift": 0.02
      }
    ]
  }
}'

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

application/json

Reprice one or more books under one composed scenario. More than one book returns portfolio totals. Every position costs a base and a shocked price calculation at its model's price rate.

Additional fields are not accepted.

booksarray of BookInputrequired

At most 50 books, and no more books than the position limit; total positions must fit half the account price batch limit.

maxItems: 50
Array item schema
currencystringrequired

Currency every position's prices and every total are in, e.g. USD. A label: positions in different currencies cannot share a request, and no conversion is applied.

scenarioBookScenarioDefinitionrequired

Responses

200 P&L attribution by position, strategy, expiry and strike

application/json

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed request

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Credential missing or invalid

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 Funding exhausted

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 Price batch not permitted

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Response media type not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 JSON required

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid book, scenario or account limits, or numerical refusal

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Rate or concurrency allowance exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Numerical or encoding failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Capacity, funding or admission unavailable

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
post

/v1/book-scenarios:solve

#

Boundaries and explicit coverage, possibly no roots or unresolved regions

Bounded engine-owned search for every spot level at which one book's modeled P&L, or one strategy's with strategy_id, equals a target under an ordered non-spot scenario. P&L is horizon value minus signed_reference_net_value; the scenario may not contain spot_relative. All solved legs must name one `underlying` and share one stored spot; roll-down may reach but not pass any solved leg's expiry, allowing engine roundoff tolerance at expiry. These constraints are checked before quotation and reservation. Explicit BSM/BS1993 positions, at most 16 (or your account's contract limit if lower), JSON only. The fixed search uses 32 scan intervals and 64 refinements per candidate; every evaluation prices each solved position once. Returns evaluated points, sampled intervals and unresolved coverage, never an assumed unique root. Admitted as a solve request: requires an account with a signed solve schedule. Charged one solve unit per solved position at its model's rate (a strategy solve bills only its members); quote with operation book_scenario_solve. Numerical failure at any trial aborts the solve.

The example uses synthetic inputs. See the scenario guide for limits and deployment availability.

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/book-scenarios:solve' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "currency": "USD",
  "book": {
    "id": "desk-a",
    "positions": [
      {
        "id": "XYZ-C100",
        "underlying": "XYZ",
        "quantity": 1,
        "multiplier": 100,
        "contract": {
          "exercise_style": "european",
          "pricing_model": "black_scholes_merton",
          "option_type": "call",
          "spot": 100,
          "strike": 100,
          "time_to_expiry_years": 0.75,
          "risk_free_rate": 0.04,
          "dividend_yield": 0.01,
          "volatility": 0.3
        }
      },
      {
        "id": "XYZ-P100",
        "underlying": "XYZ",
        "quantity": 1,
        "multiplier": 100,
        "contract": {
          "exercise_style": "european",
          "pricing_model": "black_scholes_merton",
          "option_type": "put",
          "spot": 100,
          "strike": 100,
          "time_to_expiry_years": 0.75,
          "risk_free_rate": 0.04,
          "dividend_yield": 0.01,
          "volatility": 0.3
        }
      }
    ],
    "strategies": [
      {
        "id": "long-call",
        "position_ids": [
          "XYZ-C100"
        ]
      }
    ]
  },
  "scenario": {
    "name": "hold_three_months",
    "shocks": [
      {
        "kind": "roll_down",
        "years": 0.25
      }
    ]
  },
  "signed_reference_net_value": 2036,
  "target_pnl": 0,
  "lower": 50,
  "upper": 200
}'

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

application/json

Find every spot level at which a book's (or one strategy's) modeled P&L equals a target, under an ordered non-spot scenario. P&L is horizon value minus `signed_reference_net_value`. All solved legs must name one underlying and share one stored spot. Shared underlying, spot and roll-down horizon are validated before quotation/reservation. Roll-down may reach expiry (including engine roundoff tolerance) but not pass it.

Additional fields are not accepted.

bookBookInputrequired
coordinate_tolerancenumber · doubleoptional

Positive absolute spot localization tolerance; default 1e-9.

currencystringrequired

Currency of every price and of the reference and target P&L, e.g. USD.

lowernumber · doublerequired

Finite spot search bounds, 0 < lower < upper.

pnl_tolerancenumber · doubleoptional

Positive absolute P&L tolerance in `currency`; default 1e-6.

scenarioBookScenarioDefinitionrequired

Holding horizon and market assumptions. May not contain spot_relative: the solve owns the spot axis.

signed_reference_net_valuenumber · doublerequired

Net entry value subtracted from horizon value: a debit paid is positive, a credit received is negative, in `currency`.

strategy_idstring | nulloptional

Solve only this strategy's member positions instead of the whole book. The strategy must exist and contain at least one position; validated before reservation.

target_pnlnumber · doubleoptional

Target P&L in `currency`; 0 solves for breakeven.

uppernumber · doublerequired

Responses

200 Boundaries and explicit coverage, possibly no roots or unresolved regions

application/json

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed request

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Credential missing or invalid

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 Funding exhausted

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 Solver is not entitled

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Response media type not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 JSON required

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid book, scenario, bounds or numerical refusal

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Rate or concurrency allowance exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Numerical or encoding failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Capacity, policy or rollout unavailable

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
post

/v1/cost/quote

#

Exact conditional CU quote; no execution, reservation or charge

Cost utility guide → Account-specific rates, conditional quotes, limits and execution ceilings.

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/cost/quote' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "operation": "price",
  "request": {
    "exercise_style": "european",
    "pricing_model": "auto",
    "option_type": "call",
    "spot": 100,
    "strike": 100,
    "time_to_expiry_years": 1,
    "risk_free_rate": 0.05,
    "dividend_yield": 0,
    "volatility": 0.2
  }
}'

Request body required

application/json

OpenAPI's discriminated request union; runtime retains each body verbatim.

one of

Must satisfy exactly one schema below:

Variant 1
operationstringrequired

Allowed values: "price"

requestPriceRequestrequired
Variant 2
operationstringrequired

Allowed values: "price_batch"

requestBatchPriceRequestrequired
Variant 3
operationstringrequired

Allowed values: "scenario_evaluate"

requestScenarioRequestrequired
Variant 4
operationstringrequired

Allowed values: "book_scenario_evaluate"

requestBookScenarioRequestrequired
Variant 5
operationstringrequired

Allowed values: "book_scenario_explain"

requestBookScenarioRequestrequired
Variant 6
operationstringrequired

Allowed values: "book_scenario_solve"

requestBookSolveRequestrequired
Variant 7
operationstringrequired

Allowed values: "scenario_solve"

requestScenarioSolveRequestrequired
Variant 8
operationstringrequired

Allowed values: "implied_volatility"

Variant 9
operationstringrequired

Allowed values: "implied_volatility_batch"

Variant 10
operationstringrequired

Allowed values: "greeks_standard"

requestGreeksStandardRequestrequired
Variant 11
operationstringrequired

Allowed values: "greeks_standard_batch"

Variant 12
operationstringrequired

Allowed values: "greeks"

requestGreeksAllTenRequestrequired
Variant 13
operationstringrequired

Allowed values: "greeks_batch"

Variant 14
operationstringrequired

Allowed values: "analytics"

requestFusedAnalyticsRequestrequired
Variant 15
operationstringrequired

Allowed values: "analytics_batch"

Variant 16
operationstringrequired

Allowed values: "regime"

requestRegimeRequestrequired

Responses

200 Exact conditional CU quote; no execution, reservation or charge

application/json

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed JSON

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Invalid credential

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 Account or target operation forbidden

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 JSON response not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 JSON required

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid or unquotable request

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Utility rate or account concurrency exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Utility worker or response encoding failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Target, policy or utility workers unavailable

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Utility compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
get

/v1/cost/schedule

#

Account-effective active cost schedule; zero CU charge

Cost utility guide → Account-specific rates, conditional quotes, limits and execution ceilings.

cURL
curl --fail-with-body --request GET 'https://api.morphiqlabs.com/v1/cost/schedule' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY"

Query parameters

operationstringoptional

Filter by operation: price, implied_volatility, greeks_standard, greeks, analytics, regime

modelstringoptional

Filter by versioned model identifier

Responses

200 Account-effective active cost schedule; zero CU charge

application/json

Response headers
x-request-id string
Unique service-generated request identifier
401 Invalid credential

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 Account forbidden

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 JSON response not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid filter

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Utility rate or account concurrency exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Response encoding failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Policy or service unavailable

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
post

/v1/regime

#

V1 regime estimates; scores are uncalibrated

Regime analysis guide → Input windows, output labels, scores and billing. The runnable example below creates 512 synthetic prices with Python 3; replace them with your own ordered prices.

Python 3 + cURL
python3 - <<'PY' > regime-request.json
import json, math

prices = [
    round(100 * math.exp(0.0004 * i + 0.018 * math.sin(i * 0.27)), 4)
    for i in range(512)
]
print(json.dumps({"prices": prices}))
PY

curl --fail-with-body 'https://api.morphiqlabs.com/v1/regime' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-binary @regime-request.json

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

application/json

At least 512 comparable positive prices, ordered oldest to newest. No sampling interval is supplied, inferred or assumed. Longer arrays are cropped to the latest 512; inference uses that window's latest 507 prices. Every supplied price must be finite and positive. The encoded request body is limited to 32 KiB (policy may narrow this). Corporate-action adjustment is the caller's responsibility; the V1 model was trained on split-adjusted closes, without cash-dividend total-return adjustment.

Additional fields are not accepted.

as_ofstring | null · date-timeoptional

Timestamp of the final supplied price, echoed unchanged. Never inferred from the server clock. RFC 3339 with an explicit UTC offset.

pricesarray of number · doublerequired
minItems: 512
Array item schema

number · double

Responses

200 V1 regime estimates; scores are uncalibrated

application/json

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed JSON

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Missing or invalid credential

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 Insufficient CU budget

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 Forbidden or not entitled

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Only JSON responses are available

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Request body deadline

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request exceeds byte allowance

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 Only JSON requests are available

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 The request does not match its schema, for example fewer than 512 prices; `field` names the input

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Rate or account concurrency limit

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Inference or encoding failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Capacity, policy, funding or model unavailable

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
post

/v1/scenarios:evaluate

#

Base valuation and ordered scenario results

Reprice one option at explicit points using BSM or BS1993. JSON only. Requires price-batch entitlement. Base plus scenarios counts against the batch limit and is charged as one price batch. Validation rejects the entire request before reservation; numerical failures at individual points are returned in order. Base pricing failure fails the request. No target solver, portfolio aggregation or live market data is included.

The example uses synthetic inputs. See the scenario guide for limits and deployment availability.

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/scenarios:evaluate' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "contract": {
    "exercise_style": "european",
    "pricing_model": "black_scholes_merton",
    "option_type": "call",
    "spot": 100,
    "strike": 100,
    "time_to_expiry_years": 1,
    "risk_free_rate": 0.05,
    "dividend_yield": 0,
    "volatility": 0.2
  },
  "scenarios": [
    {
      "spot_change": 5
    }
  ],
  "position": {
    "quantity": 1,
    "multiplier": 100
  }
}'

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

application/json

Independently reprice a base option at explicit points. Send a curve or a flattened grid in the desired order. Only explicit BSM and BS1993 are supported.

Additional fields are not accepted.

contractPriceRequestrequired
positionone ofoptional

Must satisfy exactly one schema below:

Variant 1

null

Variant 2
scenariosarray of ScenarioPointrequired

1–99 points; base plus points must fit the account's price batch limit.

minItems: 1maxItems: 99
Array item schema

Responses

200 Base valuation and ordered scenario results

application/json

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed request

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Credential missing or invalid

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 Funding exhausted

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 Price batch not permitted

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Response media type not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 JSON required

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid contract, scenarios or account limits

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Rate or concurrency allowance exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Pricing or encoding failed

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Capacity, funding or admission unavailable

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
post

/v1/scenarios:solve

#

Boundaries and explicit coverage, possibly no roots or unresolved regions

Bounded engine-owned target solve for explicit BSM/BS1993 options over one coordinate: spot, strike, time_to_expiry, elapsed_time, rate, dividend_yield or (Greek targets only) volatility (default spot). Targets are an option price, a position P&L or a per-option Greek. JSON only. Returns evaluated points, sampled intervals and unresolved coverage, never an assumed unique/global root. The fixed scenario_solve/1 profile uses 32 scan intervals and 64 refinements per candidate. The approved flat rate is 100 CU per BSM request or 200 CU per BS1993 request, independent of pricing evaluations, target kind or returned boundaries. A free quote determines the exact conditional charge before reservation without running the solver. Requires an account with the matching signed solve schedule; documentation does not imply live availability. Price-batch entitlement alone does not grant solver access. Numerical failure at any trial aborts the solve.

The example uses synthetic inputs. See the scenario guide for limits and deployment availability.

cURL
curl --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/scenarios:solve' \
  --header "Authorization: Bearer $MORPHIQ_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "contract": {
    "exercise_style": "european",
    "pricing_model": "black_scholes_merton",
    "option_type": "call",
    "spot": 100,
    "strike": 100,
    "time_to_expiry_years": 1,
    "risk_free_rate": 0.05,
    "dividend_yield": 0,
    "volatility": 0.2
  },
  "target": {
    "kind": "option_price",
    "value": 15
  },
  "lower": 50,
  "upper": 150,
  "coordinate_tolerance": 1e-9,
  "value_tolerance": 0.000001
}'

Request headers

x-morphiq-max-cuintegeroptional

Optional maximum commercial CU charge for this whole request. An actual quote above this ceiling is refused before commitment with 409 cost_limit_exceeded and zero charged CUs. Applies equally to JSON, Protobuf and gRPC metadata. Zero is allowed; duplicate or malformed values are rejected.

minimum: 0maximum: 18446744073709551615 (2^64 − 1)

Request body required

application/json

Additional fields are not accepted.

contractPriceRequestrequired
coordinateScenarioSolveCoordinateoptional

The single unknown the solve searches over; default spot. Every other input stays at its contract value (or its scenario override).

coordinate_tolerancenumber · doubleoptional

Positive absolute coordinate localization tolerance in the coordinate's units; default 1e-9.

elapsed_time_yearsnumber · doubleoptional

Scenario time already elapsed; rejected when the coordinate is elapsed_time or time_to_expiry.

lowernumber · doublerequired

Finite search bounds in the coordinate's units, lower strictly below upper. Spot, strike and time_to_expiry bounds must be positive; elapsed_time bounds lie within [0, time_to_expiry_years].

targetScenarioSolveTargetrequired
uppernumber · doublerequired
value_tolerancenumber · doubleoptional

Positive absolute tolerance in the target's units; default 1e-6. Must remain positive after conversion to engine units. For theta, charm, veta and color, division by 365 must not round to zero; otherwise quotes and execution return 422 before reservation or charging.

volatilitynumber | null · doubleoptional

Absolute volatility; omitted holds base volatility fixed.

Responses

200 Boundaries and explicit coverage, possibly no roots or unresolved regions

application/json

Response headers
x-request-id string
Unique service-generated request identifier
400 Malformed request

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
401 Credential missing or invalid

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
402 Funding exhausted

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
403 Solver is not entitled

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
406 Response media type not acceptable

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
408 Body deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
409 Reservation expired, or the quote exceeds x-morphiq-max-cu; check the problem `code`. Zero commercial charge.

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
413 Request too large

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
415 JSON required

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
422 Invalid inputs, unrepresentable values or numerical refusal

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
429 Rate or concurrency allowance exhausted

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
500 Numerical or encoding failure

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier
503 Capacity, policy or rollout unavailable

application/problem+json

Response headers
Retry-After string
Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-id string
Unique service-generated request identifier
504 Compute deadline exceeded

application/problem+json

Response headers
x-request-id string
Unique service-generated request identifier

Data schemas

Field types, required values and constraints from the OpenAPI contract.

BatchFusedAnalyticsItemResult #

Ordered result with an explicit per-item failure alternative.

all of

Must satisfy every schema below:

Part 1
Part 2
indexinteger · int32required
minimum: 0

BatchFusedAnalyticsOutcome #

one of

Must satisfy exactly one schema below:

Variant 1
resultFusedAnalyticsResultrequired
statusstringrequired

Allowed values: "success"

Variant 2
errorProblemrequired
statusstringrequired

Allowed values: "error"

BatchFusedAnalyticsRequest #

Ordered request envelope; runtime applies the pinned plan limit.

Additional fields are not accepted.

requestsarray of FusedAnalyticsRequestrequired

One to 100 contracts; a lower account limit still applies.

minItems: 1maxItems: 100
Array item schema

BatchFusedAnalyticsResponse #

One metadata block for the entire admitted batch.

metadataResponseMetadatarequired
resultsarray of BatchFusedAnalyticsItemResultrequired

BatchGreeksAllTenItemResult #

Ordered result with an explicit per-item failure alternative.

all of

Must satisfy every schema below:

Part 1
Part 2
indexinteger · int32required
minimum: 0

BatchGreeksAllTenOutcome #

one of

Must satisfy exactly one schema below:

Variant 1
resultGreeksAllTenResultrequired
statusstringrequired

Allowed values: "success"

Variant 2
errorProblemrequired
statusstringrequired

Allowed values: "error"

BatchGreeksAllTenRequest #

Ordered request envelope; runtime applies the pinned plan limit.

Additional fields are not accepted.

requestsarray of GreeksAllTenRequestrequired

One to 100 contracts; a lower account limit still applies.

minItems: 1maxItems: 100
Array item schema

BatchGreeksAllTenResponse #

One metadata block for the entire admitted batch.

metadataResponseMetadatarequired
resultsarray of BatchGreeksAllTenItemResultrequired

BatchGreeksStandardItemResult #

Ordered result with an explicit per-item failure alternative.

all of

Must satisfy every schema below:

Part 1
Part 2
indexinteger · int32required
minimum: 0

BatchGreeksStandardOutcome #

one of

Must satisfy exactly one schema below:

Variant 1
resultGreeksStandardResultrequired
statusstringrequired

Allowed values: "success"

Variant 2
errorProblemrequired
statusstringrequired

Allowed values: "error"

BatchGreeksStandardRequest #

Ordered request envelope; runtime applies the pinned plan limit.

Additional fields are not accepted.

requestsarray of GreeksStandardRequestrequired

One to 100 contracts; a lower account limit still applies.

minItems: 1maxItems: 100
Array item schema

BatchGreeksStandardResponse #

One metadata block for the entire admitted batch.

metadataResponseMetadatarequired
resultsarray of BatchGreeksStandardItemResultrequired

BatchImpliedVolatilityItemResult #

Ordered result with an explicit per-item failure alternative.

all of

Must satisfy every schema below:

Part 1
Part 2
indexinteger · int32required
minimum: 0

BatchImpliedVolatilityOutcome #

one of

Must satisfy exactly one schema below:

Variant 1
statusstringrequired

Allowed values: "success"

Variant 2
errorProblemrequired
statusstringrequired

Allowed values: "error"

BatchImpliedVolatilityRequest #

Ordered request envelope; runtime applies the pinned plan limit.

Additional fields are not accepted.

requestsarray of ImpliedVolatilityRequestrequired

One to 100 contracts; a lower account limit still applies.

minItems: 1maxItems: 100
Array item schema

BatchImpliedVolatilityResponse #

One metadata block for the entire admitted batch.

metadataResponseMetadatarequired

BatchItemResult #

Ordered result for one batch element.

all of

Must satisfy every schema below:

Part 1
Part 2
indexinteger · int32required
minimum: 0

BatchOutcome #

Per-item batch outcome. Structural request failures remain request-level errors.

one of

Must satisfy exactly one schema below:

Variant 1
resultPriceResultrequired
statusstringrequired

Allowed values: "success"

Variant 2
errorProblemrequired
statusstringrequired

Allowed values: "error"

BatchPriceRequest #

An ordered batch of option-pricing requests.

Additional fields are not accepted.

requestsarray of PriceRequestrequired

One to 100 contracts; a lower account limit still applies.

minItems: 1maxItems: 100
Array item schema

BatchPriceResponse #

Successful response for a batch, including any per-item pricing failures.

metadataResponseMetadatarequired
resultsarray of BatchItemResultrequired
Array item schema

BookInput #

Additional fields are not accepted.

idstringrequired

Identifier unique within the request.

positionsarray of BookPositionrequired

At most 50 positions across an evaluation request, or 16 for a solve; a lower account limit applies (half the price batch limit for evaluation, the contract limit for a solve).

maxItems: 50
Array item schema
strategiesarray of BookStrategyoptional

At most 64 strategies across the request.

maxItems: 64
Array item schema

BookPosition #

One held option: signed quantity of contracts, each worth `multiplier` underlying units. Net value is quantity × multiplier × option price, in the request `currency`.

Additional fields are not accepted.

contractPriceRequestrequired

Explicit BSM or BS1993 contract.

idstringrequired

Identifier unique within its book: 1–64 characters from A–Z, a–z, 0–9 and `. _ : / -`.

multipliernumber · doublerequired

Positive underlying units per contract.

quantitynumber · doublerequired

Signed contracts: positive long, negative short.

underlyingstringrequired

Label of the underlying this option is written on, with the same character rules as identifiers. Not resolved against an instrument master. A book solve requires every solved position to name the same underlying.

BookPositionScenario #

One position's base and shocked valuation, in the request currency.

base_net_valuenumber · doublerequired

quantity × multiplier × unit price.

base_unit_pricenumber · doublerequired

Option price per underlying unit at the base and shocked inputs.

contractPriceRequestrequired

The submitted contract. With `scenario`, everything needed to replay the position.

idstringrequired
model_versionstringrequired
multipliernumber · doublerequired
pnlnumber · doublerequired

shocked_net_value − base_net_value.

pricing_modelResolvedPricingModelrequired
quantitynumber · doublerequired
shocked_net_valuenumber · doublerequired
shocked_unit_pricenumber · doublerequired
underlyingstringrequired

BookScenarioBook #

attributionone ofoptional

Must satisfy exactly one schema below:

Variant 1

null

Variant 2

Present on `:explain` only.

ScenarioPnlAttribution

base_net_valuenumber · doublerequired
idstringrequired
pnlnumber · doublerequired
positionsarray of BookPositionScenariorequired
Array item schema
shocked_net_valuenumber · doublerequired
strategiesarray of BookStrategyScenariorequired
Array item schema

BookScenarioDefinition #

A named, ordered scenario applied to every position of every book.

Additional fields are not accepted.

namestringoptional
shocksarray of BookShockoptional

One to 16 shocks (zero to 16 for a solve, which may not contain spot_relative).

maxItems: 16
Array item schema

BookScenarioRequest #

Reprice one or more books under one composed scenario. More than one book returns portfolio totals. Every position costs a base and a shocked price calculation at its model's price rate.

Additional fields are not accepted.

booksarray of BookInputrequired

At most 50 books, and no more books than the position limit; total positions must fit half the account price batch limit.

maxItems: 50
Array item schema
currencystringrequired

Currency every position's prices and every total are in, e.g. USD. A label: positions in different currencies cannot share a request, and no conversion is applied.

scenarioBookScenarioDefinitionrequired

BookScenarioResponse #

metadataResponseMetadatarequired
resultBookScenarioResultrequired

BookScenarioResult #

Book and portfolio scenario valuation. `:explain` returns exactly this result with `attribution` added at book and portfolio level, so one parser handles both.

attributionone ofoptional

Must satisfy exactly one schema below:

Variant 1

null

Variant 2

Present on `:explain` only.

ScenarioPnlAttribution

base_net_valuenumber · doublerequired

Sum over all books; equals the single book's totals for one book.

booksarray of BookScenarioBookrequired
Array item schema
currencystringrequired

The request currency; every amount below is in it.

pnlnumber · doublerequired
pnl_basisPnlBasisrequired

Always `base_model_value`: P&L is shocked minus base modeled value.

price_evaluationsinteger · int64required

Price calculations performed: a base and a shocked valuation per position.

minimum: 0
scenarioBookScenarioDefinitionrequired
shocked_net_valuenumber · doublerequired

BookShock #

One ordered shock. Shocks compose left to right on every position, so order matters (a roll-down before a vol-term shock moves the tenor it reads).

one of

Must satisfy exactly one schema below:

Variant 1

Multiply the underlying by 1 + relative; relative must exceed -1.

kindstringrequired

Allowed values: "spot_relative"

relativenumber · doublerequired
Variant 2

Add an absolute shift to volatility.

kindstringrequired

Allowed values: "parallel_vol"

shiftnumber · doublerequired
Variant 3

Skew slope per unit of log-moneyness ln(K / F); positive raises higher-strike volatility.

kindstringrequired

Allowed values: "skew"

slopenumber · doublerequired
Variant 4

Add an absolute shift to the continuously compounded rate, per year.

kindstringrequired

Allowed values: "rate"

shiftnumber · doublerequired
Variant 5

Move the valuation later by `years` (nonnegative) with spot held.

kindstringrequired

Allowed values: "roll_down"

yearsnumber · doublerequired
Variant 6

Linear volatility ramp over remaining tenor, flat outside the anchors.

back_shiftnumber · doublerequired
back_tenornumber · doublerequired
front_shiftnumber · doublerequired
front_tenornumber · doublerequired
kindstringrequired

Allowed values: "vol_term"

BookSolvePosition #

base_net_valuenumber · doublerequired

quantity × multiplier × price at the stored inputs.

contractPriceRequestrequired

The submitted contract. With `scenario`, everything needed to replay the position.

idstringrequired
model_versionstringrequired
multipliernumber · doublerequired
pricing_modelResolvedPricingModelrequired
quantitynumber · doublerequired
underlyingstringrequired

BookSolveRequest #

Find every spot level at which a book's (or one strategy's) modeled P&L equals a target, under an ordered non-spot scenario. P&L is horizon value minus `signed_reference_net_value`. All solved legs must name one underlying and share one stored spot. Shared underlying, spot and roll-down horizon are validated before quotation/reservation. Roll-down may reach expiry (including engine roundoff tolerance) but not pass it.

Additional fields are not accepted.

bookBookInputrequired
coordinate_tolerancenumber · doubleoptional

Positive absolute spot localization tolerance; default 1e-9.

currencystringrequired

Currency of every price and of the reference and target P&L, e.g. USD.

lowernumber · doublerequired

Finite spot search bounds, 0 < lower < upper.

pnl_tolerancenumber · doubleoptional

Positive absolute P&L tolerance in `currency`; default 1e-6.

scenarioBookScenarioDefinitionrequired

Holding horizon and market assumptions. May not contain spot_relative: the solve owns the spot axis.

signed_reference_net_valuenumber · doublerequired

Net entry value subtracted from horizon value: a debit paid is positive, a credit received is negative, in `currency`.

strategy_idstring | nulloptional

Solve only this strategy's member positions instead of the whole book. The strategy must exist and contain at least one position; validated before reservation.

target_pnlnumber · doubleoptional

Target P&L in `currency`; 0 solves for breakeven.

uppernumber · doublerequired

BookSolveResponse #

metadataResponseMetadatarequired
resultBookSolveResultrequired

BookSolveResult #

book_idstringrequired
boundariesarray of ScenarioSolveBoundaryrequired
Array item schema
coordinateScenarioSolveCoordinaterequired

Always `spot`: a book solve searches the shared underlying level.

coordinate_tolerancenumber · doublerequired
coordinate_unitScenarioSolveCoordinateUnitrequired
coverageScenarioSolveCoveragerequired
currencystringrequired

The request currency; P&L values and boundary `value`s are in it.

evaluationsinteger · int64required

P&L evaluations performed; each prices every solved position once.

minimum: 0
lowernumber · doublerequired
outcomeScenarioSolveOutcomerequired
pnl_basisPnlBasisrequired

Always `signed_reference_net_value`.

pnl_tolerancenumber · doublerequired
positionsarray of BookSolvePositionrequired

Solved positions: the whole book, or the strategy's members in order.

Array item schema
price_evaluationsinteger · int64required

Price calculations performed: (evaluations + 1) × solved positions, including base valuations.

minimum: 0
profileScenarioSolveProfilerequired
regionsarray of ScenarioSolveRegionrequired
Array item schema
scenarioBookScenarioDefinitionrequired
signed_reference_net_valuenumber · doublerequired
strategy_idstring | nulloptional
target_pnlnumber · doublerequired
target_unitstringrequired

Unit of `target_pnl` and boundary `value`s: `position_value`, in `currency`.

underlyingstringrequired

The one underlying every solved position names.

uppernumber · doublerequired

BookStrategy #

A named grouping of positions in one book. Strategies may overlap, so strategy totals are not additive; book totals always sum positions once.

Additional fields are not accepted.

idstringrequired

Identifier unique within its book.

position_idsarray of stringrequired

Distinct position identifiers of this book. At most 50 members (16 for solves); at most 1,024 memberships across the request.

maxItems: 50
Array item schema

string

BookStrategyScenario #

One strategy's member set; overlapping strategies are not additive.

base_net_valuenumber · doublerequired
idstringrequired
pnlnumber · doublerequired
position_idsarray of stringrequired
maxItems: 50
Array item schema

string

shocked_net_valuenumber · doublerequired

CostBreakdown #

Tollgate's exact quote, conditional on this policy and workload at execution.

fixed_cuinteger · int64required

Fixed CU component.

minimum: 0
linesarray of CostLinerequired
Array item schema
minimum_charge_cuinteger · int64required

Minimum CU charge.

minimum: 0
total_cuinteger · int64required

Exact CU the quoted request would commit.

minimum: 0
variable_cuinteger · int64required

Variable CU component.

minimum: 0

CostLine #

A rate-class aggregate. Model identifies the schedule row, not necessarily the selected numerical algorithm; `resolved_models` reports the latter.

billing_unitstringrequired
cu_per_unitinteger · int64required

CU per billing unit.

minimum: 0
modelstringrequired

Algorithm `model_version` (for example `qd_fixed_point/1`), as each result reports it and `GET /v1/pricing/models` lists it beside its selector `id`. Not a `pricing_model` selector.

operationstringrequired
quantityinteger · int64required
minimum: 0
variable_cuinteger · int64required

Variable CU for this line.

minimum: 0

CostQuoteRequest #

OpenAPI's discriminated request union; runtime retains each body verbatim.

one of

Must satisfy exactly one schema below:

Variant 1
operationstringrequired

Allowed values: "price"

requestPriceRequestrequired
Variant 2
operationstringrequired

Allowed values: "price_batch"

requestBatchPriceRequestrequired
Variant 3
operationstringrequired

Allowed values: "scenario_evaluate"

requestScenarioRequestrequired
Variant 4
operationstringrequired

Allowed values: "book_scenario_evaluate"

requestBookScenarioRequestrequired
Variant 5
operationstringrequired

Allowed values: "book_scenario_explain"

requestBookScenarioRequestrequired
Variant 6
operationstringrequired

Allowed values: "book_scenario_solve"

requestBookSolveRequestrequired
Variant 7
operationstringrequired

Allowed values: "scenario_solve"

requestScenarioSolveRequestrequired
Variant 8
operationstringrequired

Allowed values: "implied_volatility"

Variant 9
operationstringrequired

Allowed values: "implied_volatility_batch"

Variant 10
operationstringrequired

Allowed values: "greeks_standard"

requestGreeksStandardRequestrequired
Variant 11
operationstringrequired

Allowed values: "greeks_standard_batch"

Variant 12
operationstringrequired

Allowed values: "greeks"

requestGreeksAllTenRequestrequired
Variant 13
operationstringrequired

Allowed values: "greeks_batch"

Variant 14
operationstringrequired

Allowed values: "analytics"

requestFusedAnalyticsRequestrequired
Variant 15
operationstringrequired

Allowed values: "analytics_batch"

Variant 16
operationstringrequired

Allowed values: "regime"

requestRegimeRequestrequired

CostQuoteResponse #

Quote identity and breakdown, with no reservation or price lock.

metadataResponseMetadatarequired
quoteCostBreakdownrequired
resolved_modelsarray of ResolvedCostModelrequired
Array item schema

CostRate #

A published rate under the caller's pinned schedule. A rate is not an entitlement.

billing_unitstringrequired
cu_per_unitinteger · int64required

CU charged per billing unit.

minimum: 0
max_discrete_dividendsinteger · int32required
minimum: 0
modelstringrequired

Algorithm `model_version` (for example `qd_fixed_point/1`), as each result reports it and `GET /v1/pricing/models` lists it beside its selector `id`. Not a `pricing_model` selector.

operationstringrequired

CostSchedule #

Customer-facing projection of one immutable, account-effective cost schedule.

effective_fromstringrequired
effective_untilstring | nulloptional
failure_chargingstringrequired
fixed_request_cuinteger · int64required

Fixed CU fee per request.

minimum: 0
minimum_charge_cuinteger · int64required

Minimum CU charge per request.

minimum: 0
policy_revisionstringrequired
ratesarray of CostRaterequired
Array item schema
record_versioninteger · int32required
minimum: 0
roundingstringrequired
schedule_idstringrequired
schedule_versionstringrequired

CostScheduleResponse #

Full or filtered schedule; metadata describes this non-billable utility call.

metadataResponseMetadatarequired
scheduleCostSchedulerequired

DividendEvent #

One discrete cash dividend. Time is a year fraction on the same basis as `time_to_expiry_years`, not a calendar date. The contract carries no calendar, day-count convention or timezone, and introducing one here to express a dividend date would add a basis the rest of the contract does not have and cannot validate. The engine's own `DividendEvent` is `ex_time_years` for the same reason.

Additional fields are not accepted.

cash_amountnumber · doublerequired

Cash amount per share, in the same currency as spot and strike.

ex_time_yearsnumber · doublerequired

Ex-dividend time as a year fraction from valuation.

EngineIdentity #

Service-owned engine provenance, independent of any engine's Rust types.

namestringrequired
revisionstringrequired
versionstringrequired

ErrorEnvelope #

HTTP error body: an RFC 9457 problem with the response metadata.

all of

Must satisfy every schema below:

Part 1
Part 2
metadataResponseMetadatarequired

ExerciseStyle #

Contract exercise convention, independent of the pricing algorithm.

string

Allowed values: "european" "american"

ExpiryPnlBucket #

Positions sharing exactly the same base expiry (bitwise-equal years).

base_net_valuenumber · doublerequired
pnlnumber · doublerequired
shocked_net_valuenumber · doublerequired
time_to_expiry_yearsnumber · doublerequired

FusedAnalyticsRequest #

A request for price and Greeks, optionally at a volatility solved from an observed premium first. With `market_price`, volatility is solved and the Greeks are evaluated at the solved value — one admission, one solve, and the solved point passed inward as verified evidence rather than re-derived. Without it, the supplied `volatility` is used and the result is the all-ten-Greeks operation under another name.

Additional fields are not accepted.

dividend_schedulearray of DividendEventoptional

Cash dividends are supported with supplied or solved volatility.

maxItems: 16
Array item schema
dividend_yieldnumber · doublerequired
exercise_styleExerciseStylerequired
market_pricenumber | null · doubleoptional

The observed premium to invert before evaluating the Greeks.

model_versionstring | nulloptional
option_typeOptionTyperequired
pricing_modelPricingModelrequired
risk_free_ratenumber · doublerequired
spotnumber · doublerequired
strikenumber · doublerequired
time_to_expiry_yearsnumber · doublerequired
volatilitynumber · doublerequired

Used only when `market_price` is absent.

FusedAnalyticsResponse #

Successful response for one fused-analytics operation.

metadataResponseMetadatarequired
resultFusedAnalyticsResultrequired

FusedAnalyticsResult #

Price, Greeks and — when a premium was supplied — the solve that produced the volatility they were evaluated at.

greeksGreeksAllTenrequired
implied_volatilityone ofoptional

Must satisfy exactly one schema below:

Variant 1

null

Variant 2

Present only when the request supplied `market_price`.

ImpliedVolatilityResult

model_versionstringrequired
pricenumber · doublerequired
pricing_modelResolvedPricingModelrequired

GreeksAllTen #

Available Greeks on the contract's stated bases; absent values are explained by `unavailable`. Time derivatives are **per year**. The engine reports them per calendar day, which embeds a 365-day calendar; the contract carries no calendar, so the service scales by the engine's own day count at this boundary and the caller applies whichever convention it holds. Vega is raw `dV/dσ` per unit volatility, not per point. Nothing else is rescaled.

charmnumber · doubleoptional

`d²V/(dS dt)`, **per year**.

colornumber · doubleoptional

`d³V/(dS² dt)`, **per year**.

deltanumber · doubleoptional

`dV/dS`.

gammanumber · doubleoptional

`d²V/dS²`.

rhonumber · doubleoptional

`dV/dr`, per unit rate.

thetanumber · doubleoptional

`dV/dt`, **per year**.

unavailableobjectoptional

Each omitted Greek has a reason. A resolved zero is present as 0.0. Codes distinguish unsupported quantities, model domain/validity, accuracy refusals and unresolved numerical derivatives.

Map value schema
vannanumber · doubleoptional

`d²V/(dS dσ)`, per unit volatility.

veganumber · doubleoptional

`dV/dσ`, per unit volatility.

vetanumber · doubleoptional

`d²V/(dσ dt)`, **per year** per unit volatility.

volganumber · doubleoptional

`d²V/dσ²`, per unit volatility squared.

GreeksAllTenRequest #

A request for the price and all ten Greeks at a supplied volatility. The same shape as `PriceRequest`: the Greeks are derivatives of the price, so they are a property of the same contract and the same coordinates.

Additional fields are not accepted.

dividend_schedulearray of DividendEventoptional

Cash dividends select the finite-difference American model with Auto.

maxItems: 16
Array item schema
dividend_yieldnumber · doublerequired
exercise_styleExerciseStylerequired
model_versionstring | nulloptional
option_typeOptionTyperequired
pricing_modelPricingModelrequired
risk_free_ratenumber · doublerequired
spotnumber · doublerequired
strikenumber · doublerequired
time_to_expiry_yearsnumber · doublerequired
volatilitynumber · doublerequired

GreeksAllTenResponse #

Successful response for one all-ten-Greeks operation.

metadataResponseMetadatarequired
resultGreeksAllTenResultrequired

GreeksAllTenResult #

The price and Greeks of one contract at the volatility supplied.

greeksGreeksAllTenrequired
model_versionstringrequired
pricenumber · doublerequired
pricing_modelResolvedPricingModelrequired

GreeksStandard #

Available Greeks on the contract's stated bases; absent values are explained by `unavailable`. Time derivatives are **per year**. The engine reports them per calendar day, which embeds a 365-day calendar; the contract carries no calendar, so the service scales by the engine's own day count at this boundary and the caller applies whichever convention it holds. Vega is raw `dV/dσ` per unit volatility, not per point. Nothing else is rescaled.

deltanumber · doubleoptional

`dV/dS`.

gammanumber · doubleoptional

`d²V/dS²`.

rhonumber · doubleoptional

`dV/dr`, per unit rate.

thetanumber · doubleoptional

`dV/dt`, **per year**.

unavailableobjectoptional

Each omitted Greek has a reason. A resolved zero is present as 0.0. Codes distinguish unsupported quantities, model domain/validity, accuracy refusals and unresolved numerical derivatives.

Map value schema
veganumber · doubleoptional

`dV/dσ`, per unit volatility.

GreeksStandardRequest #

A request for the price and the standard five Greeks at a supplied volatility. The same shape as `PriceRequest`: the Greeks are derivatives of the price, so they are a property of the same contract and the same coordinates.

Additional fields are not accepted.

dividend_schedulearray of DividendEventoptional

Cash dividends select the finite-difference American model with Auto.

maxItems: 16
Array item schema
dividend_yieldnumber · doublerequired
exercise_styleExerciseStylerequired
model_versionstring | nulloptional
option_typeOptionTyperequired
pricing_modelPricingModelrequired
risk_free_ratenumber · doublerequired
spotnumber · doublerequired
strikenumber · doublerequired
time_to_expiry_yearsnumber · doublerequired
volatilitynumber · doublerequired

GreeksStandardResponse #

Successful response for one standard-five-Greeks operation.

metadataResponseMetadatarequired
resultGreeksStandardResultrequired

GreeksStandardResult #

The price and Greeks of one contract at the volatility supplied.

greeksGreeksStandardrequired
model_versionstringrequired
pricenumber · doublerequired
pricing_modelResolvedPricingModelrequired

ImpliedVolatilityRequest #

A request to invert an observed premium into a volatility. Carries `market_price` and no `volatility`: volatility is the unknown being solved for, so a request that supplied one would be asking the service to ignore it.

Additional fields are not accepted.

dividend_schedulearray of DividendEventoptional
maxItems: 16
Array item schema
dividend_yieldnumber · doublerequired
exercise_styleExerciseStylerequired
market_pricenumber · doublerequired

The observed premium to invert.

model_versionstring | nulloptional
option_typeOptionTyperequired
pricing_modelPricingModelrequired
risk_free_ratenumber · doublerequired
spotnumber · doublerequired
strikenumber · doublerequired
time_to_expiry_yearsnumber · doublerequired

ImpliedVolatilityResponse #

Successful response for one implied-volatility operation.

metadataResponseMetadatarequired

ImpliedVolatilityResult #

A solved implied volatility and the diagnostics that qualify it.

implied_volatilitynumber · doublerequired

Decimal fraction, on the same basis as `PriceRequest.volatility`.

iterationsinteger · int32required
minimum: 0
model_versionstringrequired
pricing_modelResolvedPricingModelrequired
residualnumber · doublerequired
residual_basisResidualBasisrequired
used_fallbackbooleanrequired

Whether the solve left its primary path. Not a quality signal on its own: an American solve inverts by bisection and reports `true` for every live solve, while a Bachelier solve reports `false` because bisection is its canonical solver rather than a degraded fallback.

ModelConstraint #

descriptionstringrequired
maximumnumber | null · doubleoptional

Inclusive upper bound when present.

minimumnumber | null · doubleoptional

Inclusive lower bound when present.

quantitystringrequired

Input field or derived quantity, defined by description.

OptionType #

Option payoff direction.

string

Allowed values: "call" "put"

PnlBasis #

What a reported P&L is measured from.

string

Allowed values: "base_model_value" "signed_reference_net_value"

PolicyResponseMetadata #

The commercial policy the request was resolved under.

planstringrequired

Versioned plan reference, formatted as id@version.

revisionstringrequired

Full opaque revision of the pinned policy, encoded as 64 lowercase hexadecimal digits. Quote it to support to identify every record the request was resolved under.

PriceRequest #

A single option-pricing request. All numeric fields are required.

Additional fields are not accepted.

dividend_schedulearray of DividendEventoptional

Discrete cash dividends within the option's life. American Cash-dividend American model only; Auto selects it for a non-empty schedule.

maxItems: 16
Array item schema
dividend_yieldnumber · doublerequired
exercise_styleExerciseStylerequired
model_versionstring | nulloptional

Optional algorithm-version pin. Omit to use the current version.

option_typeOptionTyperequired
pricing_modelPricingModelrequired
risk_free_ratenumber · doublerequired
spotnumber · doublerequired
strikenumber · doublerequired
time_to_expiry_yearsnumber · doublerequired
volatilitynumber · doublerequired

PriceResponse #

Successful response for one pricing operation.

metadataResponseMetadatarequired
resultPriceResultrequired

PriceResult #

The transport-neutral result of one pricing operation.

exercise_styleExerciseStylerequired
model_versionstringrequired

Stable revision of the selected pricing algorithm.

option_typeOptionTyperequired
pricenumber · doublerequired
pricing_modelResolvedPricingModelrequired

PricingModel #

Auto selects BSM for European exercise, BS1993 for American exercise without cash events, and black_scholes_merton_fd for American exercise with a nonempty cash-dividend schedule. Canonical selectors are the `id`s listed by GET /v1/pricing/models; results echo the canonical selector. qd_fixed_point and cash_dividend_american remain input aliases of black_scholes_merton_qdfp and black_scholes_merton_fd. BS2002 is retired and returns a migration error.

string

Allowed values: "auto" "black_scholes_merton" "bjerksund_stensland_2002" "bjerksund_stensland_1993" "black_scholes_merton_qdfp" "black_scholes_merton_fd" "qd_fixed_point" "cash_dividend_american"

PricingModelCatalog #

enginesarray of EngineIdentityrequired
Array item schema
greek_unitsobjectrequired

API units, derived from canonical Greek field descriptions.

Map value schema

string

modelsarray of PricingModelDescriptorrequired

All executable pricing models in this build, identical for every caller. Auto is a selection rule and retired BS2002 is not an executable model.

Array item schema
validity_symbolsobjectrequired

Meaning of the symbols in `validity` region condition formulas, which are quoted from the pinned engine.

Map value schema

string

PricingModelDescriptor #

aliasesarray of stringrequired

Earlier JSON selectors still accepted as aliases of this same algorithm.

Array item schema

string

batch_operationsarray of stringrequired

Operations also supported in synchronous batches of at most 100 contracts.

Array item schema

string

constraintsarray of ModelConstraintrequired

Selected structured limits of the pinned engine for live contracts. These describe capabilities; the engine remains the validation authority.

Array item schema
dividend_supportarray of stringrequired
Array item schema

string

exercise_stylesarray of ExerciseStylerequired
Array item schema
greeksarray of stringrequired

Implemented quantities, not a guarantee they resolve for every input. Per-request refusals appear in greeks.unavailable.

Array item schema

string

guidancestringrequired
idResolvedPricingModelrequired

Canonical JSON pricing_model selector, accepted by pricing operations.

methodstringrequired
model_versionstringrequired

Exact compatible model_version pin for requests and response provenance.

namestringrequired
notesstringrequired
operationsarray of stringrequired

Operation identifiers supported as single requests.

Array item schema

string

scenario_operationsarray of stringrequired

Scenario operations over one contract; HTTP JSON only.

Array item schema

string

underlying_modelstringrequired
validityarray of QuantityValidityrequired

The pinned engine's validity contract for every quantity this model serves through the API: price, each listed Greek, then implied volatility. Projected from the engine's typed contract; it states what is certified, not an entitlement, price or per-input guarantee.

Array item schema
versionstringrequired

Algorithm revision, independent of API and engine package versions.

Problem #

RFC 9457 problem details with MorphIQ extension members. The body of every HTTP error, and the shape of every failed item and unavailable Greek inside a successful response, so one parser handles all of them.

codestringrequired

Stable machine-readable problem code; match on this, not on `title` or `detail`.

detailstringrequired

Explanation specific to this occurrence.

fieldstring | nulloptional

Dotted path of the request input at fault, when one is.

solve_trialone ofoptional

Must satisfy exactly one schema below:

Variant 1

null

Variant 2

Where a target solve stopped, when the pricing method refused a level.

SolveTrialContext

statusinteger · int32required

HTTP status code of this occurrence. For a failed item or an unavailable Greek, the status the same request would have returned on its own.

minimum: 0
titlestringrequired

Short summary of the problem type; the same for every occurrence of `code`.

typestringrequired

URI of the problem type; dereferences to its documentation. Ends in `#code`.

ProtobufBody #

string · binary

QuantityValidity #

One served quantity's validity contract.

criterionone ofoptional

Must satisfy exactly one schema below:

Variant 1

null

Variant 2

Present when validated.

ValidityCriterion

outsidestring | nulloptional

Present when validated: the problem code with which the quantity is refused outside `region`, instead of serving an uncertified value.

quantitystringrequired

`price`, a Greek name or `implied_volatility`.

regionarray of ValidityBoundoptional

Present when validated: every bound must hold. Empty means the whole input domain.

Array item schema
statusValidityStatusrequired
toleranceone ofoptional

Must satisfy exactly one schema below:

Variant 1

null

Variant 2

Present for the `strict` and `approximation` criteria, in API wire units.

ValidityTolerance

RegimeBasis #

What the model predicts, not a claim that a reference fit ran on this request.

targetRegimeTargetrequired

RegimeConsumedPriceRange #

Contiguous half-open range in the caller's original price array. Only this range enters inference; every supplied price is validated before cropping.

end_index_exclusiveintegerrequired

Exclusive original-array index; equals received_price_count in V1.

minimum: 0
start_indexintegerrequired

Inclusive, zero-based original-array index.

minimum: 0

RegimeCrisis #

crisis-target-v1 detector state at the final supplied price, assessed over the same consumed_price_range as the student. Unavailable never asserts not-crisis. A per-session acute-shock signal, not a persistent regime; raw status with no debouncing or smoothing. Episodes are typically short and recur: see the regime guide for expected rates.

one of

Must satisfy exactly one schema below:

Variant 1

In an exceptional-volatility episode at the final price.

episode_start_price_indexintegerrequired

Original-array price index where the current episode began: consumed_price_range.start_index + the detector's in-slice entry index. Never earlier than consumed_price_range.start_index.

minimum: 0
scorenumber · doublerequired

Linear readout at the final price; see crisis_score_contract.

statusstringrequired

Allowed values: "crisis"

Variant 2

Not in an episode at the final price.

episode_start_price_indexnullrequired
scorenumber · doublerequired

Linear readout at the final price; see crisis_score_contract.

statusstringrequired

Allowed values: "not_crisis"

Variant 3

No crisis statement is possible at the final price.

episode_start_price_indexnullrequired
scorenullrequired
statusstringrequired

Allowed values: "unavailable"

RegimeCrisisProvenance #

Identity of the crisis detector that produced result.crisis.

featuresstringrequired

Feature definition identity.

methodstringrequired
parameters_sha256stringrequired

SHA-256 of the confirmed parameter file the detector constants transcribe.

RegimeCrisisScoreContract #

Applies to result.crisis.score only. A ridge linear readout, monotone in evidence: not a probability, confidence or calibrated quantity, and not in [0,1]. Outside an episode the detector enters when score >= theta_in; inside one it stays while score >= theta_out.

theta_innumber · doublerequired
theta_outnumber · doublerequired
versionstringrequired

RegimeCrisisScoreKind #

string

Allowed values: "linear_readout"

RegimeCrisisUnavailableReason #

string

Allowed values: "short_reference" "degenerate_reference"

RegimeDecisionLabel #

Prediction targets: not_eligible = reference selection is not separate-scale; supported = eligible and separation-test p-value upper bound <= 0.05; unsupported = eligible and lower bound > 0.05; unresolved = eligible and lower <= 0.05 < upper. These are offline numerical rank bounds, not served scores or confidence intervals. Unresolved is never a serving failure.

string

Allowed values: "not_eligible" "supported" "unsupported" "unresolved"

RegimeDirectionLabel #

string

Allowed values: "UP" "DOWN" "NEUTRAL"

RegimeHead_RegimeDecisionPrediction #

Shared envelope for all heads. Available has a prediction and no reason_code. Basis is required for every status. Other statuses require prediction:null and a stable reason_code. A predicted unresolved decision is available, unlike an unavailable head. Whole-request runtime failures use the ordinary non-200 error envelope, not a synthetic label.

one of

Must satisfy exactly one schema below:

Variant 1
basisRegimeBasisrequired
predictionobjectrequired

Tie priority: unresolved, unsupported, supported, not_eligible (first wins).

labelRegimeDecisionLabelrequired
scoresarray of RegimeScore_RegimeDecisionLabelrequired

Every allowed label occurs exactly once. Array order has no meaning. Serialized values satisfy abs(sum(scores[*].value) - 1) <= 1e-12 separately for each available prediction. The selected label maximizes the serialized scores; ties use the documented label priority.

minItems: 4maxItems: 4
Array item schema
selectionRegimeSelectionrequired
statusstringrequired

Allowed values: "available"

Variant 2
basisRegimeBasisrequired
predictionnullrequired
reason_codeRegimeNotApplicableReasonrequired
statusstringrequired

Allowed values: "not_applicable"

Variant 3
basisRegimeBasisrequired
predictionnullrequired
reason_codeRegimeUnavailableReasonrequired
statusstringrequired

Allowed values: "unavailable"

RegimeHead_RegimeDirectionPrediction #

Shared envelope for all heads. Available has a prediction and no reason_code. Basis is required for every status. Other statuses require prediction:null and a stable reason_code. A predicted unresolved decision is available, unlike an unavailable head. Whole-request runtime failures use the ordinary non-200 error envelope, not a synthetic label.

one of

Must satisfy exactly one schema below:

Variant 1
basisRegimeBasisrequired
predictionobjectrequired

Tie priority: NEUTRAL, DOWN, UP (first wins). NEUTRAL is a valid tendency, never missing data.

scoresarray of RegimeScore_RegimeDirectionLabelrequired

Every allowed label occurs exactly once. Array order has no meaning. Serialized values satisfy abs(sum(scores[*].value) - 1) <= 1e-12 separately for each available prediction. The selected label maximizes the serialized scores; ties use the documented label priority.

minItems: 3maxItems: 3
Array item schema
selectionRegimeSelectionrequired
statusstringrequired

Allowed values: "available"

Variant 2
basisRegimeBasisrequired
predictionnullrequired
reason_codeRegimeNotApplicableReasonrequired
statusstringrequired

Allowed values: "not_applicable"

Variant 3
basisRegimeBasisrequired
predictionnullrequired
reason_codeRegimeUnavailableReasonrequired
statusstringrequired

Allowed values: "unavailable"

RegimeHead_RegimeStatePrediction #

Shared envelope for all heads. Available has a prediction and no reason_code. Basis is required for every status. Other statuses require prediction:null and a stable reason_code. A predicted unresolved decision is available, unlike an unavailable head. Whole-request runtime failures use the ordinary non-200 error envelope, not a synthetic label.

one of

Must satisfy exactly one schema below:

Variant 1
basisRegimeBasisrequired
predictionobjectrequired

Tie priority: HIGHER_VOL, LOWER_VOL (first wins). Ordering is relative within the target fit, not historical volatility levels.

labelRegimeStateLabelrequired
scoresarray of RegimeScore_RegimeStateLabelrequired

Every allowed label occurs exactly once. Array order has no meaning. Serialized values satisfy abs(sum(scores[*].value) - 1) <= 1e-12 separately for each available prediction. The selected label maximizes the serialized scores; ties use the documented label priority.

minItems: 2maxItems: 2
Array item schema
selectionRegimeSelectionrequired
statusstringrequired

Allowed values: "available"

Variant 2
basisRegimeBasisrequired
predictionnullrequired
reason_codeRegimeNotApplicableReasonrequired
statusstringrequired

Allowed values: "not_applicable"

Variant 3
basisRegimeBasisrequired
predictionnullrequired
reason_codeRegimeUnavailableReasonrequired
statusstringrequired

Allowed values: "unavailable"

RegimeMetadata #

all_prices_consumedbooleanrequired

True iff consumed_price_range covers [0, received_price_count). False means intentional contiguous truncation of the oldest prefix only, never invalid-price removal or incomplete processing. Always false in V1.

api_versionstringrequired
as_ofstring | null · date-timerequired

Final price timestamp supplied by the caller, or null when unknown. Null never means the HTTP response time.

budget_periodstring | nulloptional
budget_reset_atstring | nulloptional
consumed_price_rangeRegimeConsumedPriceRangerequired
contract_sha256stringrequired

SHA-256 of the served HTTP contract document (`GET /openapi.json`).

crisis_time_usinteger · int64required

Monotonic elapsed microseconds, truncated to an integer. Starts immediately before crisis assessment of the consumed slice; ends immediately after it returns. Covers log returns, the episode replay and scoring only. Excludes inference_time_us, label combination, wire mapping, metadata construction, serialization, HTTP and network time.

minimum: 0
cu_chargedinteger | null · int64optional

Committed charge in CU.

minimum: 0
cu_quotedinteger | null · int64optional

Commercial quote in Compute Units (CU).

minimum: 0
cu_remaining_estimateinteger | null · int64optional

Estimated CU remaining in the budget period, as this service instance last observed it. It can lag other instances and concurrent requests.

minimum: 0
cu_schedule_idstring | nulloptional

Cost schedule id.

cu_schedule_versionstring | nulloptional

Customer-facing cost schedule version.

enginesarray of EngineIdentityrequired

Library that executed inference. Version and revision come from the released dependency pin; model weights are identified by provenance. Does not include reference fitting engines that did not execute.

Array item schema
inference_time_usinteger · int64required

Monotonic elapsed microseconds, truncated to an integer. Starts after acquiring the model lock and committing admission, before selecting the input slice; ends immediately after predict returns its heads. Includes slice selection, preprocessing, tensors, inference, output extraction, softmax and head construction/gating. Excludes loading, admission/queue, metadata construction, serialization, HTTP and network time.

minimum: 0
input_price_indexintegerrequired

Original-array price index at the selected return's end: consumed_price_range.start_index + observation_index + 1.

minimum: 0
observation_indexintegerrequired

Zero-based return index within consumed_price_range: 505. Return i uses original prices[start_index + i] and prices[start_index + i + 1].

minimum: 0
policyone ofoptional

Must satisfy exactly one schema below:

Variant 1

null

Variant 2
price_countintegerrequired

Number of prices actually consumed by inference.

minimum: 0
provenanceRegimeProvenancerequired
received_price_countintegerrequired

Number of prices received before cropping.

minimum: 0
request_idstringrequired
response_contract_versionstringrequired
return_countintegerrequired

Equals consumed_price_range.end_index_exclusive - start_index - 1.

minimum: 0
return_typeRegimeReturnTyperequired
return_unitRegimeReturnUnitrequired
service_versionstringrequired
window_price_countintegerrequired

Intermediate public window size: always 512, covering original indices [received_price_count - 512, received_price_count). Not the consumed count.

minimum: 0

RegimeNotApplicableReason #

string

Allowed values: "predicted_not_eligible"

RegimeProvenance #

Pinned served artifact identity; no request-time reference fitting is implied.

model_idstringrequired

Immutable identity covering weights, preprocessing, reference procedure and label definitions; see the REGIME_MODEL_V1.md identity record.

model_sha256stringrequired

Lowercase SHA-256 of the exact served student.onnx file bytes, not the training checkpoint, manifest, runtime binary or response.

model_statusstringrequired
preprocessingstringrequired

Supplemental preprocessing identity; explicit return semantics are in metadata.

teacher_executedbooleanrequired
volatility_labelRegimeVolatilityLabelProvenancerequired

RegimeRequest #

At least 512 comparable positive prices, ordered oldest to newest. No sampling interval is supplied, inferred or assumed. Longer arrays are cropped to the latest 512; inference uses that window's latest 507 prices. Every supplied price must be finite and positive. The encoded request body is limited to 32 KiB (policy may narrow this). Corporate-action adjustment is the caller's responsibility; the V1 model was trained on split-adjusted closes, without cash-dividend total-return adjustment.

Additional fields are not accepted.

as_ofstring | null · date-timeoptional

Timestamp of the final supplied price, echoed unchanged. Never inferred from the server clock. RFC 3339 with an explicit UTC offset.

pricesarray of number · doublerequired
minItems: 512
Array item schema

number · double

RegimeResponse #

metadataRegimeMetadatarequired
resultRegimeResultrequired

RegimeResult #

crisisRegimeCrisisrequired
crisis_score_contractRegimeCrisisScoreContractrequired
score_contractRegimeScoreContractrequired
volatilityRegimeVolatilityHeadrequired

Served low/high/crisis label (three-label-v1).

RegimeReturnType #

string

Allowed values: "log"

RegimeReturnUnit #

string

Allowed values: "fraction"

RegimeScoreContract #

Applies separately to every available decision, direction and state head; never multiply heads or interpret their scores as a joint probability. Identifies score semantics, not calibration. The volatility head has no scores, and the crisis score has its own crisis_score_contract.

kindRegimeScoreKindrequired
sum_tolerancenumber · doublerequired

For each available prediction, using serialized values: abs(sum(prediction.scores[*].value) - 1) <= sum_tolerance.

versionstringrequired

RegimeScoreKind #

string

Allowed values: "uncalibrated_softmax"

RegimeScore_RegimeDecisionLabel #

labelstringrequired

Prediction targets: not_eligible = reference selection is not separate-scale; supported = eligible and separation-test p-value upper bound <= 0.05; unsupported = eligible and lower bound > 0.05; unresolved = eligible and lower <= 0.05 < upper. These are offline numerical rank bounds, not served scores or confidence intervals. Unresolved is never a serving failure.

Allowed values: "not_eligible" "supported" "unsupported" "unresolved"

valuenumber · doublerequired

Finite score in [0,1]; not a calibrated probability.

minimum: 0maximum: 1

RegimeScore_RegimeDirectionLabel #

labelstringrequired

Allowed values: "UP" "DOWN" "NEUTRAL"

valuenumber · doublerequired

Finite score in [0,1]; not a calibrated probability.

minimum: 0maximum: 1

RegimeScore_RegimeStateLabel #

labelstringrequired

Volatility relative to the other state in the reference Markov model, not historical norms. Fixed Student-t degrees of freedom make scale ordering identical to standard-deviation ordering. Neither label indicates direction.

Allowed values: "LOWER_VOL" "HIGHER_VOL"

valuenumber · doublerequired

Finite score in [0,1]; not a calibrated probability.

minimum: 0maximum: 1

RegimeSelection #

string

Allowed values: "argmax"

RegimeStateLabel #

Volatility relative to the other state in the reference Markov model, not historical norms. Fixed Student-t degrees of freedom make scale ordering identical to standard-deviation ordering. Neither label indicates direction.

string

Allowed values: "LOWER_VOL" "HIGHER_VOL"

RegimeTarget #

string

Allowed values: "reference_procedure_outcome" "selected_state_tendency" "filtered_scale_order_membership"

RegimeUnavailableReason #

string

Allowed values: "prediction_unavailable"

RegimeVolatilityBasis #

What the label states; neither component fits a model on this request.

RegimeVolatilityHead #

Same envelope as the other heads. Available has a prediction and no reason_code. not_applicable (predicted_not_eligible) occurs exactly when the detector is not in crisis and the decision is not_eligible; it does not assert not-crisis, which result.crisis states separately.

one of

Must satisfy exactly one schema below:

Variant 1
predictionRegimeVolatilityPredictionrequired
statusstringrequired

Allowed values: "available"

Variant 2
predictionnullrequired
reason_codeRegimeNotApplicableReasonrequired
statusstringrequired

Allowed values: "not_applicable"

Variant 3
predictionnullrequired
reason_codeRegimeUnavailableReasonrequired
statusstringrequired

Allowed values: "unavailable"

RegimeVolatilityLabel #

Served current-volatility label under `three-label-v1`. Not a probability, forecast or historical-norm level.

string

Allowed values: "low" "high" "crisis"

RegimeVolatilityLabelProvenance #

Identity of the served volatility label: its combination rule and both pinned inputs. A different student, detector or rule has a different method.

crisis_methodstringrequired
crisis_parameters_sha256stringrequired
methodstringrequired
model_idstringrequired
model_sha256stringrequired

RegimeVolatilityPrediction #

Rule-selected label: crisis when result.crisis.status is crisis, otherwise the student's state (LOWER_VOL is low, HIGHER_VOL is high). It has no scores; score_contract does not apply to it.

RegimeVolatilityTarget #

string

Allowed values: "current_volatility"

ResidualBasis #

The basis a solved residual is expressed in. The residual is not one quantity. European and Black paths report a forward-normalised price residual comparable against the engine's convergence threshold; American models report a raw option-price residual. Publishing the number without its basis would invite exactly the cross-model comparison it does not support, so the basis travels with it and a client that ignores this field cannot silently get it wrong.

string

Allowed values: "forward_normalised_price" "option_price"

ResolvedCostModel #

Selected numerical model identity, without executing the numerical kernel.

modelstringrequired

Algorithm `model_version` (for example `qd_fixed_point/1`), as each result reports it and `GET /v1/pricing/models` lists it beside its selector `id`. Not a `pricing_model` selector.

quantityinteger · int64required

Resolved numerical items. For book solves, counts solved positions per model, restricted to strategy members when selected; not billable solve requests.

minimum: 0

ResolvedPricingModel #

Pricing algorithm selected after resolving an input request. Unlike [`PricingModel`], this output-only type cannot represent `auto`.

string

ResponseMetadata #

Metadata shared by every response and API error.

api_versionstringrequired
budget_periodstring | nulloptional
budget_reset_atstring | nulloptional

UTC end of the budget period from the pinned account snapshot, when known.

contract_sha256stringrequired

SHA-256 of the served HTTP contract document (`GET /openapi.json`), 64 lowercase hexadecimal digits. Identifies the exact contract revision.

cu_chargedinteger | null · int64optional

Committed charge in CU.

minimum: 0
cu_quotedinteger | null · int64optional

Commercial quote in Compute Units (CU).

minimum: 0
cu_remaining_estimateinteger | null · int64optional

Estimated CU remaining in the budget period, as this service instance last observed it. It can lag other instances and concurrent requests.

minimum: 0
cu_schedule_idstring | nulloptional

Cost schedule id.

cu_schedule_versionstring | nulloptional

Customer-facing cost schedule version.

enginesarray of EngineIdentityoptional

Engines selected for this operation, including their released Git revisions. Does not assert execution on pre-execution failures. Absent when no numerical engine was selected: cost utilities, regime errors and router refusals.

Array item schema
policyone ofoptional

Must satisfy exactly one schema below:

Variant 1

null

Variant 2
request_idstringrequired
service_versionstringrequired

Service release that produced this response.

ScenarioItem #

all of

Must satisfy every schema below:

Part 1
Part 2
indexinteger · int32required

Zero-based index in the submitted scenarios array, including duplicate points.

minimum: 0
inputsPriceRequestrequired

ScenarioOutcome #

one of

Must satisfy exactly one schema below:

Variant 1
pnlnumber | null · doubleoptional

Position P&L in currency: price_change × signed quantity × multiplier. Absent without a position.

price_changenumber · doublerequired

Scenario option price minus base option price, per underlying unit.

resultPriceResultrequired
statusstringrequired

Allowed values: "success"

Variant 2
errorProblemrequired
statusstringrequired

Allowed values: "error"

ScenarioPnlAttribution #

P&L attribution. The expiry buckets and the strike buckets each partition the positions and reconcile to the enclosing P&L.

expiry_bucketsarray of ExpiryPnlBucketrequired
Array item schema
strike_bucketsarray of StrikePnlBucketrequired
Array item schema

ScenarioPoint #

Changes applied independently to the base contract. Monetary values use the contract's quote currency; volatility is annualized decimal volatility.

Additional fields are not accepted.

elapsed_time_yearsnumber · doubleoptional

Subtract from base time to expiry. Zero holds expiry fixed; cannot exceed it.

spotnumber | null · doubleoptional

Absolute underlying price; mutually exclusive with spot_change.

spot_changenumber | null · doubleoptional

Add this amount to the base underlying price (5 means five currency units). The sum must be finite; overflow rejects the request before execution or quotation.

volatilitynumber | null · doubleoptional

Absolute annualized volatility; omitted means hold base volatility fixed.

ScenarioPosition #

Optional signed position scaling. P&L is relative to the base model value (`pnl_basis: base_model_value`), not trade entry cost. No currency conversion, fees or financing are applied.

Additional fields are not accepted.

multipliernumber · doublerequired

Positive number of underlying units per contract; e.g. 100 for equity options.

quantitynumber · doublerequired

Signed contract quantity: positive for long, negative for short.

ScenarioRequest #

Independently reprice a base option at explicit points. Send a curve or a flattened grid in the desired order. Only explicit BSM and BS1993 are supported.

Additional fields are not accepted.

contractPriceRequestrequired
positionone ofoptional

Must satisfy exactly one schema below:

Variant 1

null

Variant 2
scenariosarray of ScenarioPointrequired

1–99 points; base plus points must fit the account's price batch limit.

minItems: 1maxItems: 99
Array item schema

ScenarioResponse #

metadataResponseMetadatarequired
resultScenarioResultrequired

ScenarioResult #

baseScenarioValuationrequired
pnl_basisone ofoptional

Must satisfy exactly one schema below:

Variant 1

null

Variant 2

`base_model_value` when a position is supplied; absent otherwise.

PnlBasis

positionone ofoptional

Must satisfy exactly one schema below:

Variant 1

null

Variant 2
scenariosarray of ScenarioItemrequired

One entry per submitted point, in request order.

Array item schema

ScenarioSolveBoundary #

Evaluated target boundaries. Intervals are certified at half-cell sampling resolution, not a proof for every real number in the interval.

one of

Must satisfy exactly one schema below:

Variant 1
bracket_widthnumber · doublerequired
coordinatenumber · doublerequired
crossingbooleanrequired

Whether sampled values cross the target. False can describe a tangent or an endpoint hit; it is not proof of a mathematical tangency.

kindstringrequired

Allowed values: "point"

refinementsinteger · int32required
minimum: 0
valuenumber · doublerequired
Variant 2
kindstringrequired

Allowed values: "interval"

lowernumber · doublerequired
uppernumber · doublerequired
valuenumber · doublerequired

ScenarioSolveCoordinate #

Unknown a target solve searches over.

string

Allowed values: "spot" "strike" "time_to_expiry" "elapsed_time" "rate" "dividend_yield" "volatility"

ScenarioSolveCoordinateUnit #

Unit of a solve coordinate, of boundary coordinates and of the bounds.

string

Allowed values: "price" "years" "annual_rate" "annual_volatility"

ScenarioSolveCoverage #

one of

Must satisfy exactly one schema below:

Variant 1

Every candidate resolved at `basis`; smaller structures can be missed.

statusstringrequired

Allowed values: "resolved"

Variant 2

At least one cell could not be resolved; see `cells`.

cellsarray of ScenarioSolveUnresolvedCellrequired
statusstringrequired

Allowed values: "unresolved"

ScenarioSolveCoverageBasis #

What a coverage statement is relative to.

string

Allowed values: "scan_resolution"

ScenarioSolveGreek #

Greeks a target solve can hold at a value.

string

Allowed values: "delta" "gamma" "theta" "vega" "rho" "vanna" "volga" "charm" "veta" "color"

ScenarioSolveOutcome #

Summary of a solve, derived from `coverage` and `boundaries`.

string

Allowed values: "solutions_found" "no_solution_detected" "incomplete"

ScenarioSolveProfile #

Fixed bounded work profile, independent of user tolerances and target.

idstringrequired
max_price_evaluationsinteger · int64required
minimum: 0
max_refinementsinteger · int32required
minimum: 0
scan_intervalsinteger · int32required
minimum: 0

ScenarioSolveRegion #

lowernumber · doublerequired
signScenarioSolveSignrequired
uppernumber · doublerequired

ScenarioSolveRequest #

Additional fields are not accepted.

contractPriceRequestrequired
coordinateScenarioSolveCoordinateoptional

The single unknown the solve searches over; default spot. Every other input stays at its contract value (or its scenario override).

coordinate_tolerancenumber · doubleoptional

Positive absolute coordinate localization tolerance in the coordinate's units; default 1e-9.

elapsed_time_yearsnumber · doubleoptional

Scenario time already elapsed; rejected when the coordinate is elapsed_time or time_to_expiry.

lowernumber · doublerequired

Finite search bounds in the coordinate's units, lower strictly below upper. Spot, strike and time_to_expiry bounds must be positive; elapsed_time bounds lie within [0, time_to_expiry_years].

targetScenarioSolveTargetrequired
uppernumber · doublerequired
value_tolerancenumber · doubleoptional

Positive absolute tolerance in the target's units; default 1e-6. Must remain positive after conversion to engine units. For theta, charm, veta and color, division by 365 must not round to zero; otherwise quotes and execution return 422 before reservation or charging.

volatilitynumber | null · doubleoptional

Absolute volatility; omitted holds base volatility fixed.

ScenarioSolveResponse #

metadataResponseMetadatarequired
resultScenarioSolveResultrequired

ScenarioSolveResult #

baseScenarioValuationrequired
boundariesarray of ScenarioSolveBoundaryrequired
Array item schema
coordinateScenarioSolveCoordinaterequired
coordinate_tolerancenumber · doublerequired
coordinate_unitScenarioSolveCoordinateUnitrequired
coverageScenarioSolveCoveragerequired
inputsPriceRequestrequired

Fixed assumptions for replay. For a point boundary, let x = boundary.coordinate (boundary.value is the evaluated target quantity, not an input). Copy inputs, then set spot = x for spot, strike = x for strike, time_to_expiry_years = x for time_to_expiry, time_to_expiry_years = inputs.time_to_expiry_years - x for elapsed_time, risk_free_rate = x for rate, dividend_yield = x for dividend_yield, or volatility = x for volatility. For an interval, replay its lower or upper coordinate by the same mapping; the interval is sampled evidence, not a guarantee for every interior coordinate.

lowernumber · doublerequired
model_versionstringrequired
outcomeScenarioSolveOutcomerequired
pnl_basisone ofoptional

Must satisfy exactly one schema below:

Variant 1

null

Variant 2

`base_model_value` for a position P&L target; absent otherwise.

PnlBasis

price_evaluationsinteger · int64required

Actual pricing calls, including the base and the engine's reference valuation.

minimum: 0
pricing_modelResolvedPricingModelrequired
profileScenarioSolveProfilerequired
reference_net_valuenumber | null · doubleoptional

Base model value of the position, the P&L reference; position P&L targets only.

regionsarray of ScenarioSolveRegionrequired
Array item schema
targetScenarioSolveTargetrequired
target_unitstringrequired

Unit of the target and of boundary `value`s.

uppernumber · doublerequired
value_tolerancenumber · doublerequired

ScenarioSolveSign #

string

Allowed values: "above_target" "below_target" "at_target"

ScenarioSolveTarget #

Target of a bounded scenario solve. Position P&L is relative to the original base model valuation, with signed quantity and explicit multiplier.

one of

Must satisfy exactly one schema below:

Variant 1
kindstringrequired

Allowed values: "option_price"

valuenumber · doublerequired
Variant 2
kindstringrequired

Allowed values: "position_pnl"

positionScenarioPositionrequired
valuenumber · doublerequired
Variant 3

One per-option Greek in the units the Greek endpoints publish (annual time units for theta, charm, veta and color). Not scaled by any position.

greekScenarioSolveGreekrequired
kindstringrequired

Allowed values: "greek"

valuenumber · doublerequired

ScenarioSolveUnresolvedCell #

best_abs_value_errornumber · doublerequired
best_coordinatenumber · doublerequired
lowernumber · doublerequired
uppernumber · doublerequired

ScenarioSolveUnresolvedReason #

string

Allowed values: "refinement_budget_exhausted" "bracket_collapsed_above_tolerance" "coordinate_tolerance_reached" "representative_out_of_band"

ScenarioValuation #

inputsPriceRequestrequired

Full resolved assumptions, in the same units as /v1/price.

resultPriceResultrequired

SolveTrialContext #

Where a target solve stopped. `code` keeps the pricing method's refusal at that level; `field` names the book position at fault when there is one; the charge, if any, is in `metadata`.

coordinateScenarioSolveCoordinaterequired

The solved coordinate, as in the request (`spot` for book solves).

coordinate_valuenumber · doublerequired

The coordinate value that was refused.

evaluationsinteger · int64required

Target evaluations attempted, including the refused one: at least 1 in `search`, 0 in `domain_check`.

minimum: 0
phaseSolveTrialPhaserequired

Which part of the solve refused the level.

SolveTrialPhase #

The part of a target solve that refused a level.

string

Allowed values: "domain_check" "search"

StatusResponse #

Liveness/readiness representation.

servicestringrequired
statusstringrequired
versionstringrequired

StrikePnlBucket #

Positions sharing exactly the same strike (bitwise-equal).

base_net_valuenumber · doublerequired
pnlnumber · doublerequired
shocked_net_valuenumber · doublerequired
strikenumber · doublerequired

ValidityBound #

One conjunct of a validated region.

one of

Must satisfy exactly one schema below:

Variant 1

`minimum <= input <= maximum`; an absent end is open.

inputstringrequired

Request input or derived expression over request inputs.

kindstringrequired

Allowed values: "interval"

maximumnumber | null · doubleoptional
minimumnumber | null · doubleoptional
Variant 2

A condition that is not a box, quoted from the engine; symbols are defined in the catalog's `validity_symbols`.

formulastringrequired
kindstringrequired

Allowed values: "condition"

namestringrequired

ValidityCriterion #

string

Allowed values: "strict" "approximation" "inverse_of_price"

ValidityStatus #

string

Allowed values: "validated" "not_stated" "not_offered"

ValidityTolerance #

`max(relative |A|, absolute * absolute_unit)`, in the quantity's API units (annual for time Greeks).

absolutenumber · doublerequired
absolute_unitstringrequired

Expression over request inputs: `1`, `max(spot, strike)` or `1 / max(spot, strike)`.

relativenumber · doublerequired