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.
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.
Numerical result
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-cuintegeroptionalOptional 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 DividendEventoptionalCash dividends are supported with supplied or solved volatility.
maxItems: 16Array item schema
dividend_yieldnumber · doublerequiredexercise_styleExerciseStylerequiredmarket_pricenumber | null · doubleoptionalThe observed premium to invert before evaluating the Greeks.
model_versionstring | nulloptionaloption_typeOptionTyperequiredpricing_modelPricingModelrequiredrisk_free_ratenumber · doublerequiredspotnumber · doublerequiredstrikenumber · doublerequiredtime_to_expiry_yearsnumber · doublerequiredvolatilitynumber · doublerequiredUsed only when `market_price` is absent.
Responses
200 Numerical result
application/json
application/protobuf
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
401 Credential missing or not verifiable
application/problem+json
Response headers
x-request-idstring- 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-idstring- 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-idstring- Unique service-generated request identifier
406 Response media type is not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Request body deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 Unsupported media type
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Pricing failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Capacity exhausted, funding, policy or admission temporarily unavailable, or service draining
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
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 --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/analytics:batch' \
--header "Authorization: Bearer $MORPHIQ_API_KEY"Request headers
x-morphiq-max-cuintegeroptionalOptional 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/json
application/protobuf
Ordered request envelope; runtime applies the pinned plan limit.
Additional fields are not accepted.
requestsarray of FusedAnalyticsRequestrequiredOne to 100 contracts; a lower account limit still applies.
minItems: 1maxItems: 100Array item schema
Responses
200 Ordered batch results
application/json
application/protobuf
Response headers
x-request-idstring- Unique service-generated request identifier
400 Malformed request
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
401 Credential missing or not verifiable
application/problem+json
Response headers
x-request-idstring- 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-idstring- 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-idstring- Unique service-generated request identifier
406 Response media type is not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Request body deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 Unsupported media type
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Pricing failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Ingress or compute capacity exhausted, or funding, policy or admission temporarily unavailable
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
Numerical result
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-cuintegeroptionalOptional 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 DividendEventoptionalCash dividends select the finite-difference American model with Auto.
maxItems: 16Array item schema
dividend_yieldnumber · doublerequiredexercise_styleExerciseStylerequiredmodel_versionstring | nulloptionaloption_typeOptionTyperequiredpricing_modelPricingModelrequiredrisk_free_ratenumber · doublerequiredspotnumber · doublerequiredstrikenumber · doublerequiredtime_to_expiry_yearsnumber · doublerequiredvolatilitynumber · doublerequired
Responses
200 Numerical result
application/json
application/protobuf
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
401 Credential missing or not verifiable
application/problem+json
Response headers
x-request-idstring- 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-idstring- 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-idstring- Unique service-generated request identifier
406 Response media type is not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Request body deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 Unsupported media type
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Pricing failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Capacity exhausted, funding, policy or admission temporarily unavailable, or service draining
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
Numerical result
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-cuintegeroptionalOptional 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 DividendEventoptionalCash dividends select the finite-difference American model with Auto.
maxItems: 16Array item schema
dividend_yieldnumber · doublerequiredexercise_styleExerciseStylerequiredmodel_versionstring | nulloptionaloption_typeOptionTyperequiredpricing_modelPricingModelrequiredrisk_free_ratenumber · doublerequiredspotnumber · doublerequiredstrikenumber · doublerequiredtime_to_expiry_yearsnumber · doublerequiredvolatilitynumber · doublerequired
Responses
200 Numerical result
application/json
application/protobuf
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
401 Credential missing or not verifiable
application/problem+json
Response headers
x-request-idstring- 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-idstring- 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-idstring- Unique service-generated request identifier
406 Response media type is not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Request body deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 Unsupported media type
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Pricing failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Capacity exhausted, funding, policy or admission temporarily unavailable, or service draining
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
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 --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/greeks/standard:batch' \
--header "Authorization: Bearer $MORPHIQ_API_KEY"Request headers
x-morphiq-max-cuintegeroptionalOptional 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/json
application/protobuf
Ordered request envelope; runtime applies the pinned plan limit.
Additional fields are not accepted.
requestsarray of GreeksStandardRequestrequiredOne to 100 contracts; a lower account limit still applies.
minItems: 1maxItems: 100Array item schema
Responses
200 Ordered batch results
application/json
application/protobuf
Response headers
x-request-idstring- Unique service-generated request identifier
400 Malformed request
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
401 Credential missing or not verifiable
application/problem+json
Response headers
x-request-idstring- 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-idstring- 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-idstring- Unique service-generated request identifier
406 Response media type is not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Request body deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 Unsupported media type
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Pricing failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Ingress or compute capacity exhausted, or funding, policy or admission temporarily unavailable
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
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 --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/greeks:batch' \
--header "Authorization: Bearer $MORPHIQ_API_KEY"Request headers
x-morphiq-max-cuintegeroptionalOptional 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 GreeksAllTenRequestrequiredOne to 100 contracts; a lower account limit still applies.
minItems: 1maxItems: 100Array item schema
Responses
200 Ordered batch results
application/json
application/protobuf
Response headers
x-request-idstring- Unique service-generated request identifier
400 Malformed request
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
401 Credential missing or not verifiable
application/problem+json
Response headers
x-request-idstring- 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-idstring- 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-idstring- Unique service-generated request identifier
406 Response media type is not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Request body deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 Unsupported media type
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Pricing failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Ingress or compute capacity exhausted, or funding, policy or admission temporarily unavailable
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
Numerical result
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-cuintegeroptionalOptional 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 · doublerequiredexercise_styleExerciseStylerequiredmarket_pricenumber · doublerequiredThe observed premium to invert.
model_versionstring | nulloptionaloption_typeOptionTyperequiredpricing_modelPricingModelrequiredrisk_free_ratenumber · doublerequiredspotnumber · doublerequiredstrikenumber · doublerequiredtime_to_expiry_yearsnumber · doublerequired
Responses
200 Numerical result
application/json
application/protobuf
Response headers
x-request-idstring- Unique service-generated request identifier
400 Malformed request
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
401 Credential missing or not verifiable
application/problem+json
Response headers
x-request-idstring- 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-idstring- 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-idstring- Unique service-generated request identifier
406 Response media type is not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Request body deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 Unsupported media type
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Pricing failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Capacity exhausted, funding, policy or admission temporarily unavailable, or service draining
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
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 --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/implied-volatility:batch' \
--header "Authorization: Bearer $MORPHIQ_API_KEY"Request headers
x-morphiq-max-cuintegeroptionalOptional 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/json
application/protobuf
Ordered request envelope; runtime applies the pinned plan limit.
Additional fields are not accepted.
requestsarray of ImpliedVolatilityRequestrequiredOne to 100 contracts; a lower account limit still applies.
minItems: 1maxItems: 100Array item schema
Responses
200 Ordered batch results
application/json
application/protobuf
Response headers
x-request-idstring- Unique service-generated request identifier
400 Malformed request
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
401 Credential missing or not verifiable
application/problem+json
Response headers
x-request-idstring- 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-idstring- 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-idstring- Unique service-generated request identifier
406 Response media type is not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Request body deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 Unsupported media type
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Pricing failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Ingress or compute capacity exhausted, or funding, policy or admission temporarily unavailable
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
Price calculated
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-cuintegeroptionalOptional 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 DividendEventoptionalDiscrete cash dividends within the option's life. American Cash-dividend American model only; Auto selects it for a non-empty schedule.
maxItems: 16Array item schema
dividend_yieldnumber · doublerequiredexercise_styleExerciseStylerequiredmodel_versionstring | nulloptionalOptional algorithm-version pin. Omit to use the current version.
option_typeOptionTyperequiredpricing_modelPricingModelrequiredrisk_free_ratenumber · doublerequiredspotnumber · doublerequiredstrikenumber · doublerequiredtime_to_expiry_yearsnumber · doublerequiredvolatilitynumber · doublerequired
Responses
200 Price calculated
application/json
application/protobuf
Response headers
x-request-idstring- Unique service-generated request identifier
400 Malformed request
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
401 Credential missing or not verifiable
application/problem+json
Response headers
x-request-idstring- 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-idstring- 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-idstring- Unique service-generated request identifier
406 Response media type is not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Request body deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 Unsupported media type
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Pricing failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Capacity exhausted, funding, policy or admission temporarily unavailable, or service draining
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
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 --fail-with-body --request POST 'https://api.morphiqlabs.com/v1/price:batch' \
--header "Authorization: Bearer $MORPHIQ_API_KEY"Request headers
x-morphiq-max-cuintegeroptionalOptional 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 PriceRequestrequiredOne to 100 contracts; a lower account limit still applies.
minItems: 1maxItems: 100Array item schema
Responses
200 Ordered batch results
application/json
application/protobuf
Response headers
x-request-idstring- Unique service-generated request identifier
400 Malformed request
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
401 Credential missing or not verifiable
application/problem+json
Response headers
x-request-idstring- 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-idstring- 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-idstring- Unique service-generated request identifier
406 Response media type is not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Request body deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 Unsupported media type
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
429 Request rate or concurrent request allowance exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Pricing failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Ingress or compute capacity exhausted, or funding, policy or admission temporarily unavailable
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
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 --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-idstring- Unique service-generated request identifier
406 JSON is not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
OpenAPI 3.1 service contract
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-idstring- Unique service-generated request identifier
Service accepts protected work under a valid policy
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-idstring- Unique service-generated request identifier
503 Service is draining or no valid policy is available
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
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 --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-cuintegeroptionalOptional 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 BookInputrequiredAt most 50 books, and no more books than the position limit; total positions must fit half the account price batch limit.
maxItems: 50Array item schema
currencystringrequiredCurrency 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-idstring- Unique service-generated request identifier
400 Malformed request
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
401 Credential missing or invalid
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
402 Funding exhausted
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
403 Price batch not permitted
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
406 Response media type not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Body deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 JSON required
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
422 Invalid book, scenario or account limits, or numerical refusal
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
429 Rate or concurrency allowance exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Numerical or encoding failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Capacity, funding or admission unavailable
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
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 --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-cuintegeroptionalOptional 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 BookInputrequiredAt most 50 books, and no more books than the position limit; total positions must fit half the account price batch limit.
maxItems: 50Array item schema
currencystringrequiredCurrency 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-idstring- Unique service-generated request identifier
400 Malformed request
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
401 Credential missing or invalid
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
402 Funding exhausted
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
403 Price batch not permitted
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
406 Response media type not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Body deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 JSON required
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
422 Invalid book, scenario or account limits, or numerical refusal
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
429 Rate or concurrency allowance exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Numerical or encoding failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Capacity, funding or admission unavailable
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
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 --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-cuintegeroptionalOptional 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.
bookBookInputrequiredcoordinate_tolerancenumber · doubleoptionalPositive absolute spot localization tolerance; default 1e-9.
currencystringrequiredCurrency of every price and of the reference and target P&L, e.g. USD.
lowernumber · doublerequiredFinite spot search bounds, 0 < lower < upper.
pnl_tolerancenumber · doubleoptionalPositive absolute P&L tolerance in `currency`; default 1e-6.
scenarioBookScenarioDefinitionrequiredHolding horizon and market assumptions. May not contain spot_relative: the solve owns the spot axis.
signed_reference_net_valuenumber · doublerequiredNet entry value subtracted from horizon value: a debit paid is positive, a credit received is negative, in `currency`.
strategy_idstring | nulloptionalSolve 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 · doubleoptionalTarget 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-idstring- Unique service-generated request identifier
400 Malformed request
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
401 Credential missing or invalid
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
402 Funding exhausted
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
403 Solver is not entitled
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
406 Response media type not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Body deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 JSON required
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
422 Invalid book, scenario, bounds or numerical refusal
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
429 Rate or concurrency allowance exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Numerical or encoding failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Capacity, policy or rollout unavailable
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
Exact conditional CU quote; no execution, reservation or charge
Cost utility guide → Account-specific rates, conditional quotes, limits and execution ceilings.
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
operationstringrequiredAllowed values:
"price"requestPriceRequestrequired
Variant 2
operationstringrequiredAllowed values:
"price_batch"requestBatchPriceRequestrequired
Variant 3
operationstringrequiredAllowed values:
"scenario_evaluate"requestScenarioRequestrequired
Variant 4
operationstringrequiredAllowed values:
"book_scenario_evaluate"requestBookScenarioRequestrequired
Variant 5
operationstringrequiredAllowed values:
"book_scenario_explain"requestBookScenarioRequestrequired
Variant 6
operationstringrequiredAllowed values:
"book_scenario_solve"requestBookSolveRequestrequired
Variant 7
operationstringrequiredAllowed values:
"scenario_solve"requestScenarioSolveRequestrequired
Variant 8
operationstringrequiredAllowed values:
"implied_volatility"requestImpliedVolatilityRequestrequired
Variant 9
operationstringrequiredAllowed values:
"implied_volatility_batch"requestBatchImpliedVolatilityRequestrequired
Variant 10
operationstringrequiredAllowed values:
"greeks_standard"requestGreeksStandardRequestrequired
Variant 11
operationstringrequiredAllowed values:
"greeks_standard_batch"requestBatchGreeksStandardRequestrequired
Variant 12
operationstringrequiredAllowed values:
"greeks"requestGreeksAllTenRequestrequired
Variant 13
operationstringrequiredAllowed values:
"greeks_batch"requestBatchGreeksAllTenRequestrequired
Variant 14
operationstringrequiredAllowed values:
"analytics"requestFusedAnalyticsRequestrequired
Variant 15
operationstringrequiredAllowed values:
"analytics_batch"requestBatchFusedAnalyticsRequestrequired
Variant 16
operationstringrequiredAllowed values:
"regime"requestRegimeRequestrequired
Responses
200 Exact conditional CU quote; no execution, reservation or charge
application/json
Response headers
x-request-idstring- Unique service-generated request identifier
400 Malformed JSON
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
401 Invalid credential
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
403 Account or target operation forbidden
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
406 JSON response not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Body deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 JSON required
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
422 Invalid or unquotable request
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
429 Utility rate or account concurrency exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Utility worker or response encoding failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Target, policy or utility workers unavailable
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Utility compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
Account-effective active cost schedule; zero CU charge
Cost utility guide → Account-specific rates, conditional quotes, limits and execution ceilings.
curl --fail-with-body --request GET 'https://api.morphiqlabs.com/v1/cost/schedule' \
--header "Authorization: Bearer $MORPHIQ_API_KEY"Query parameters
operationstringoptionalFilter by operation: price, implied_volatility, greeks_standard, greeks, analytics, regime
modelstringoptionalFilter by versioned model identifier
Responses
200 Account-effective active cost schedule; zero CU charge
application/json
Response headers
x-request-idstring- Unique service-generated request identifier
401 Invalid credential
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
403 Account forbidden
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
406 JSON response not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
422 Invalid filter
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
429 Utility rate or account concurrency exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Response encoding failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Policy or service unavailable
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
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.
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.jsonRequest headers
x-morphiq-max-cuintegeroptionalOptional 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-timeoptionalTimestamp 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-idstring- Unique service-generated request identifier
400 Malformed JSON
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
401 Missing or invalid credential
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
402 Insufficient CU budget
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
403 Forbidden or not entitled
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
406 Only JSON responses are available
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Request body deadline
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request exceeds byte allowance
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 Only JSON requests are available
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
429 Rate or account concurrency limit
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Inference or encoding failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Capacity, policy, funding or model unavailable
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
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 --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-cuintegeroptionalOptional 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.
contractPriceRequestrequiredpositionone ofoptionalscenariosarray of ScenarioPointrequired1–99 points; base plus points must fit the account's price batch limit.
minItems: 1maxItems: 99Array item schema
Responses
200 Base valuation and ordered scenario results
application/json
Response headers
x-request-idstring- Unique service-generated request identifier
400 Malformed request
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
401 Credential missing or invalid
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
402 Funding exhausted
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
403 Price batch not permitted
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
406 Response media type not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Body deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 JSON required
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
422 Invalid contract, scenarios or account limits
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
429 Rate or concurrency allowance exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Pricing or encoding failed
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Capacity, funding or admission unavailable
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
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 --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-cuintegeroptionalOptional 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.
contractPriceRequestrequiredcoordinateScenarioSolveCoordinateoptionalThe single unknown the solve searches over; default spot. Every other input stays at its contract value (or its scenario override).
coordinate_tolerancenumber · doubleoptionalPositive absolute coordinate localization tolerance in the coordinate's units; default 1e-9.
elapsed_time_yearsnumber · doubleoptionalScenario time already elapsed; rejected when the coordinate is elapsed_time or time_to_expiry.
lowernumber · doublerequiredFinite 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].
targetScenarioSolveTargetrequireduppernumber · doublerequiredvalue_tolerancenumber · doubleoptionalPositive 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 · doubleoptionalAbsolute volatility; omitted holds base volatility fixed.
Responses
200 Boundaries and explicit coverage, possibly no roots or unresolved regions
application/json
Response headers
x-request-idstring- Unique service-generated request identifier
400 Malformed request
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
401 Credential missing or invalid
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
402 Funding exhausted
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
403 Solver is not entitled
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
406 Response media type not acceptable
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
408 Body deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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-idstring- Unique service-generated request identifier
413 Request too large
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
415 JSON required
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
422 Invalid inputs, unrepresentable values or numerical refusal
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
429 Rate or concurrency allowance exhausted
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
500 Numerical or encoding failure
application/problem+json
Response headers
x-request-idstring- Unique service-generated request identifier
503 Capacity, policy or rollout unavailable
application/problem+json
Response headers
Retry-Afterstring- Minimum retry delay in seconds. Sent only on refusals the identical request can outlive, before any charge; absent on `rollout_unavailable`.
x-request-idstring- Unique service-generated request identifier
504 Compute deadline exceeded
application/problem+json
Response headers
x-request-idstring- 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 2
indexinteger · int32required- minimum: 0
BatchFusedAnalyticsOutcome #
one of
Must satisfy exactly one schema below:
Variant 1
resultFusedAnalyticsResultrequiredstatusstringrequiredAllowed values:
"success"
Variant 2
errorProblemrequiredstatusstringrequiredAllowed values:
"error"
BatchFusedAnalyticsRequest #
Ordered request envelope; runtime applies the pinned plan limit.
Additional fields are not accepted.
requestsarray of FusedAnalyticsRequestrequiredOne to 100 contracts; a lower account limit still applies.
minItems: 1maxItems: 100Array item schema
BatchFusedAnalyticsResponse #
One metadata block for the entire admitted batch.
metadataResponseMetadatarequiredresultsarray of BatchFusedAnalyticsItemResultrequiredArray item schema
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
resultGreeksAllTenResultrequiredstatusstringrequiredAllowed values:
"success"
Variant 2
errorProblemrequiredstatusstringrequiredAllowed values:
"error"
BatchGreeksAllTenRequest #
Ordered request envelope; runtime applies the pinned plan limit.
Additional fields are not accepted.
requestsarray of GreeksAllTenRequestrequiredOne to 100 contracts; a lower account limit still applies.
minItems: 1maxItems: 100Array item schema
BatchGreeksAllTenResponse #
One metadata block for the entire admitted batch.
metadataResponseMetadatarequiredresultsarray of BatchGreeksAllTenItemResultrequiredArray item schema
BatchGreeksStandardItemResult #
Ordered result with an explicit per-item failure alternative.
all of
Must satisfy every schema below:
Part 2
indexinteger · int32required- minimum: 0
BatchGreeksStandardOutcome #
one of
Must satisfy exactly one schema below:
Variant 1
resultGreeksStandardResultrequiredstatusstringrequiredAllowed values:
"success"
Variant 2
errorProblemrequiredstatusstringrequiredAllowed values:
"error"
BatchGreeksStandardRequest #
Ordered request envelope; runtime applies the pinned plan limit.
Additional fields are not accepted.
requestsarray of GreeksStandardRequestrequiredOne to 100 contracts; a lower account limit still applies.
minItems: 1maxItems: 100Array item schema
BatchGreeksStandardResponse #
One metadata block for the entire admitted batch.
metadataResponseMetadatarequiredresultsarray of BatchGreeksStandardItemResultrequiredArray item schema
BatchImpliedVolatilityItemResult #
Ordered result with an explicit per-item failure alternative.
all of
Must satisfy every schema below:
Part 2
indexinteger · int32required- minimum: 0
BatchImpliedVolatilityOutcome #
one of
Must satisfy exactly one schema below:
Variant 1
resultImpliedVolatilityResultrequiredstatusstringrequiredAllowed values:
"success"
Variant 2
errorProblemrequiredstatusstringrequiredAllowed values:
"error"
BatchImpliedVolatilityRequest #
Ordered request envelope; runtime applies the pinned plan limit.
Additional fields are not accepted.
requestsarray of ImpliedVolatilityRequestrequiredOne to 100 contracts; a lower account limit still applies.
minItems: 1maxItems: 100Array item schema
BatchImpliedVolatilityResponse #
One metadata block for the entire admitted batch.
metadataResponseMetadatarequiredresultsarray of BatchImpliedVolatilityItemResultrequiredArray item schema
BatchItemResult #
Ordered result for one batch element.
all of
BatchOutcome #
Per-item batch outcome. Structural request failures remain request-level errors.
one of
Must satisfy exactly one schema below:
Variant 1
resultPriceResultrequiredstatusstringrequiredAllowed values:
"success"
Variant 2
errorProblemrequiredstatusstringrequiredAllowed values:
"error"
BatchPriceRequest #
An ordered batch of option-pricing requests.
Additional fields are not accepted.
requestsarray of PriceRequestrequiredOne to 100 contracts; a lower account limit still applies.
minItems: 1maxItems: 100Array item schema
BatchPriceResponse #
Successful response for a batch, including any per-item pricing failures.
metadataResponseMetadatarequiredresultsarray of BatchItemResultrequiredArray item schema
BookInput #
Additional fields are not accepted.
idstringrequiredIdentifier unique within the request.
positionsarray of BookPositionrequiredAt 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: 50Array item schema
strategiesarray of BookStrategyoptional
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.
contractPriceRequestrequiredExplicit BSM or BS1993 contract.
idstringrequiredIdentifier unique within its book: 1–64 characters from A–Z, a–z, 0–9 and `. _ : / -`.
multipliernumber · doublerequiredPositive underlying units per contract.
quantitynumber · doublerequiredSigned contracts: positive long, negative short.
underlyingstringrequiredLabel 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 · doublerequiredquantity × multiplier × unit price.
base_unit_pricenumber · doublerequiredOption price per underlying unit at the base and shocked inputs.
contractPriceRequestrequiredThe submitted contract. With `scenario`, everything needed to replay the position.
idstringrequiredmodel_versionstringrequiredmultipliernumber · doublerequiredpnlnumber · doublerequiredshocked_net_value − base_net_value.
pricing_modelResolvedPricingModelrequiredquantitynumber · doublerequiredshocked_net_valuenumber · doublerequiredshocked_unit_pricenumber · doublerequiredunderlyingstringrequired
BookScenarioBook #
attributionone ofoptionalMust satisfy exactly one schema below:
Variant 1
null
Variant 2
Present on `:explain` only.
base_net_valuenumber · doublerequiredidstringrequiredpnlnumber · doublerequiredpositionsarray of BookPositionScenariorequiredArray item schema
shocked_net_valuenumber · doublerequiredstrategiesarray of BookStrategyScenariorequiredArray item schema
BookScenarioDefinition #
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 BookInputrequiredAt most 50 books, and no more books than the position limit; total positions must fit half the account price batch limit.
maxItems: 50Array item schema
currencystringrequiredCurrency 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 #
metadataResponseMetadatarequiredresultBookScenarioResultrequired
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 ofoptionalMust satisfy exactly one schema below:
Variant 1
null
Variant 2
Present on `:explain` only.
base_net_valuenumber · doublerequiredSum over all books; equals the single book's totals for one book.
booksarray of BookScenarioBookrequiredArray item schema
currencystringrequiredThe request currency; every amount below is in it.
pnlnumber · doublerequiredpnl_basisPnlBasisrequiredAlways `base_model_value`: P&L is shocked minus base modeled value.
price_evaluationsinteger · int64requiredPrice calculations performed: a base and a shocked valuation per position.
minimum: 0scenarioBookScenarioDefinitionrequiredshocked_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.
kindstringrequiredAllowed values:
"spot_relative"relativenumber · doublerequired
Variant 2
Add an absolute shift to volatility.
kindstringrequiredAllowed values:
"parallel_vol"shiftnumber · doublerequired
Variant 3
Skew slope per unit of log-moneyness ln(K / F); positive raises higher-strike volatility.
kindstringrequiredAllowed values:
"skew"slopenumber · doublerequired
Variant 4
Add an absolute shift to the continuously compounded rate, per year.
kindstringrequiredAllowed values:
"rate"shiftnumber · doublerequired
Variant 5
Move the valuation later by `years` (nonnegative) with spot held.
kindstringrequiredAllowed values:
"roll_down"yearsnumber · doublerequired
Variant 6
Linear volatility ramp over remaining tenor, flat outside the anchors.
back_shiftnumber · doublerequiredback_tenornumber · doublerequiredfront_shiftnumber · doublerequiredfront_tenornumber · doublerequiredkindstringrequiredAllowed values:
"vol_term"
BookSolvePosition #
base_net_valuenumber · doublerequiredquantity × multiplier × price at the stored inputs.
contractPriceRequestrequiredThe submitted contract. With `scenario`, everything needed to replay the position.
idstringrequiredmodel_versionstringrequiredmultipliernumber · doublerequiredpricing_modelResolvedPricingModelrequiredquantitynumber · doublerequiredunderlyingstringrequired
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.
bookBookInputrequiredcoordinate_tolerancenumber · doubleoptionalPositive absolute spot localization tolerance; default 1e-9.
currencystringrequiredCurrency of every price and of the reference and target P&L, e.g. USD.
lowernumber · doublerequiredFinite spot search bounds, 0 < lower < upper.
pnl_tolerancenumber · doubleoptionalPositive absolute P&L tolerance in `currency`; default 1e-6.
scenarioBookScenarioDefinitionrequiredHolding horizon and market assumptions. May not contain spot_relative: the solve owns the spot axis.
signed_reference_net_valuenumber · doublerequiredNet entry value subtracted from horizon value: a debit paid is positive, a credit received is negative, in `currency`.
strategy_idstring | nulloptionalSolve 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 · doubleoptionalTarget P&L in `currency`; 0 solves for breakeven.
uppernumber · doublerequired
BookSolveResponse #
metadataResponseMetadatarequiredresultBookSolveResultrequired
BookSolveResult #
book_idstringrequiredboundariesarray of ScenarioSolveBoundaryrequiredArray item schema
coordinateScenarioSolveCoordinaterequiredAlways `spot`: a book solve searches the shared underlying level.
coordinate_tolerancenumber · doublerequiredcoordinate_unitScenarioSolveCoordinateUnitrequiredcoverageScenarioSolveCoveragerequiredcurrencystringrequiredThe request currency; P&L values and boundary `value`s are in it.
evaluationsinteger · int64requiredP&L evaluations performed; each prices every solved position once.
minimum: 0lowernumber · doublerequiredoutcomeScenarioSolveOutcomerequiredpnl_basisPnlBasisrequiredAlways `signed_reference_net_value`.
pnl_tolerancenumber · doublerequiredpositionsarray of BookSolvePositionrequiredSolved positions: the whole book, or the strategy's members in order.
Array item schema
price_evaluationsinteger · int64requiredPrice calculations performed: (evaluations + 1) × solved positions, including base valuations.
minimum: 0profileScenarioSolveProfilerequiredregionsarray of ScenarioSolveRegionrequiredArray item schema
scenarioBookScenarioDefinitionrequiredsigned_reference_net_valuenumber · doublerequiredstrategy_idstring | nulloptionaltarget_pnlnumber · doublerequiredtarget_unitstringrequiredUnit of `target_pnl` and boundary `value`s: `position_value`, in `currency`.
underlyingstringrequiredThe 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.
idstringrequiredIdentifier unique within its book.
position_idsarray of stringrequiredDistinct position identifiers of this book. At most 50 members (16 for solves); at most 1,024 memberships across the request.
maxItems: 50Array item schema
string
BookStrategyScenario #
One strategy's member set; overlapping strategies are not additive.
base_net_valuenumber · doublerequiredidstringrequiredpnlnumber · doublerequiredposition_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 · int64requiredFixed CU component.
minimum: 0minimum_charge_cuinteger · int64requiredMinimum CU charge.
minimum: 0total_cuinteger · int64requiredExact CU the quoted request would commit.
minimum: 0variable_cuinteger · int64requiredVariable 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_unitstringrequiredcu_per_unitinteger · int64requiredCU per billing unit.
minimum: 0modelstringrequiredAlgorithm `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.
operationstringrequiredquantityinteger · int64required- minimum: 0
variable_cuinteger · int64requiredVariable 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
operationstringrequiredAllowed values:
"price"requestPriceRequestrequired
Variant 2
operationstringrequiredAllowed values:
"price_batch"requestBatchPriceRequestrequired
Variant 3
operationstringrequiredAllowed values:
"scenario_evaluate"requestScenarioRequestrequired
Variant 4
operationstringrequiredAllowed values:
"book_scenario_evaluate"requestBookScenarioRequestrequired
Variant 5
operationstringrequiredAllowed values:
"book_scenario_explain"requestBookScenarioRequestrequired
Variant 6
operationstringrequiredAllowed values:
"book_scenario_solve"requestBookSolveRequestrequired
Variant 7
operationstringrequiredAllowed values:
"scenario_solve"requestScenarioSolveRequestrequired
Variant 8
operationstringrequiredAllowed values:
"implied_volatility"requestImpliedVolatilityRequestrequired
Variant 9
operationstringrequiredAllowed values:
"implied_volatility_batch"requestBatchImpliedVolatilityRequestrequired
Variant 10
operationstringrequiredAllowed values:
"greeks_standard"requestGreeksStandardRequestrequired
Variant 11
operationstringrequiredAllowed values:
"greeks_standard_batch"requestBatchGreeksStandardRequestrequired
Variant 12
operationstringrequiredAllowed values:
"greeks"requestGreeksAllTenRequestrequired
Variant 13
operationstringrequiredAllowed values:
"greeks_batch"requestBatchGreeksAllTenRequestrequired
Variant 14
operationstringrequiredAllowed values:
"analytics"requestFusedAnalyticsRequestrequired
Variant 15
operationstringrequiredAllowed values:
"analytics_batch"requestBatchFusedAnalyticsRequestrequired
Variant 16
operationstringrequiredAllowed values:
"regime"requestRegimeRequestrequired
CostQuoteResponse #
Quote identity and breakdown, with no reservation or price lock.
metadataResponseMetadatarequiredquoteCostBreakdownrequiredresolved_modelsarray of ResolvedCostModelrequiredArray item schema
CostRate #
A published rate under the caller's pinned schedule. A rate is not an entitlement.
billing_unitstringrequiredcu_per_unitinteger · int64requiredCU charged per billing unit.
minimum: 0max_discrete_dividendsinteger · int32required- minimum: 0
modelstringrequiredAlgorithm `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_fromstringrequiredeffective_untilstring | nulloptionalfailure_chargingstringrequiredfixed_request_cuinteger · int64requiredFixed CU fee per request.
minimum: 0minimum_charge_cuinteger · int64requiredMinimum CU charge per request.
minimum: 0policy_revisionstringrequiredrecord_versioninteger · int32required- minimum: 0
roundingstringrequiredschedule_idstringrequiredschedule_versionstringrequired
CostScheduleResponse #
Full or filtered schedule; metadata describes this non-billable utility call.
metadataResponseMetadatarequiredscheduleCostSchedulerequired
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 · doublerequiredCash amount per share, in the same currency as spot and strike.
ex_time_yearsnumber · doublerequiredEx-dividend time as a year fraction from valuation.
EngineIdentity #
Service-owned engine provenance, independent of any engine's Rust types.
namestringrequiredrevisionstringrequiredversionstringrequired
ErrorEnvelope #
HTTP error body: an RFC 9457 problem with the response metadata.
all of
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 · doublerequiredpnlnumber · doublerequiredshocked_net_valuenumber · doublerequiredtime_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 DividendEventoptionalCash dividends are supported with supplied or solved volatility.
maxItems: 16Array item schema
dividend_yieldnumber · doublerequiredexercise_styleExerciseStylerequiredmarket_pricenumber | null · doubleoptionalThe observed premium to invert before evaluating the Greeks.
model_versionstring | nulloptionaloption_typeOptionTyperequiredpricing_modelPricingModelrequiredrisk_free_ratenumber · doublerequiredspotnumber · doublerequiredstrikenumber · doublerequiredtime_to_expiry_yearsnumber · doublerequiredvolatilitynumber · doublerequiredUsed only when `market_price` is absent.
FusedAnalyticsResponse #
Successful response for one fused-analytics operation.
metadataResponseMetadatarequiredresultFusedAnalyticsResultrequired
FusedAnalyticsResult #
Price, Greeks and — when a premium was supplied — the solve that produced the volatility they were evaluated at.
greeksGreeksAllTenrequiredimplied_volatilityone ofoptionalMust satisfy exactly one schema below:
Variant 1
null
Variant 2
Present only when the request supplied `market_price`.
model_versionstringrequiredpricenumber · doublerequiredpricing_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**.
unavailableobjectoptionalEach 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 DividendEventoptionalCash dividends select the finite-difference American model with Auto.
maxItems: 16Array item schema
dividend_yieldnumber · doublerequiredexercise_styleExerciseStylerequiredmodel_versionstring | nulloptionaloption_typeOptionTyperequiredpricing_modelPricingModelrequiredrisk_free_ratenumber · doublerequiredspotnumber · doublerequiredstrikenumber · doublerequiredtime_to_expiry_yearsnumber · doublerequiredvolatilitynumber · doublerequired
GreeksAllTenResponse #
Successful response for one all-ten-Greeks operation.
metadataResponseMetadatarequiredresultGreeksAllTenResultrequired
GreeksAllTenResult #
The price and Greeks of one contract at the volatility supplied.
greeksGreeksAllTenrequiredmodel_versionstringrequiredpricenumber · doublerequiredpricing_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**.
unavailableobjectoptionalEach 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 DividendEventoptionalCash dividends select the finite-difference American model with Auto.
maxItems: 16Array item schema
dividend_yieldnumber · doublerequiredexercise_styleExerciseStylerequiredmodel_versionstring | nulloptionaloption_typeOptionTyperequiredpricing_modelPricingModelrequiredrisk_free_ratenumber · doublerequiredspotnumber · doublerequiredstrikenumber · doublerequiredtime_to_expiry_yearsnumber · doublerequiredvolatilitynumber · doublerequired
GreeksStandardResponse #
Successful response for one standard-five-Greeks operation.
metadataResponseMetadatarequiredresultGreeksStandardResultrequired
GreeksStandardResult #
The price and Greeks of one contract at the volatility supplied.
greeksGreeksStandardrequiredmodel_versionstringrequiredpricenumber · doublerequiredpricing_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 · doublerequiredexercise_styleExerciseStylerequiredmarket_pricenumber · doublerequiredThe observed premium to invert.
model_versionstring | nulloptionaloption_typeOptionTyperequiredpricing_modelPricingModelrequiredrisk_free_ratenumber · doublerequiredspotnumber · doublerequiredstrikenumber · doublerequiredtime_to_expiry_yearsnumber · doublerequired
ImpliedVolatilityResponse #
Successful response for one implied-volatility operation.
metadataResponseMetadatarequiredresultImpliedVolatilityResultrequired
ImpliedVolatilityResult #
A solved implied volatility and the diagnostics that qualify it.
implied_volatilitynumber · doublerequiredDecimal fraction, on the same basis as `PriceRequest.volatility`.
iterationsinteger · int32required- minimum: 0
model_versionstringrequiredpricing_modelResolvedPricingModelrequiredresidualnumber · doublerequiredresidual_basisResidualBasisrequiredused_fallbackbooleanrequiredWhether 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 #
descriptionstringrequiredmaximumnumber | null · doubleoptionalInclusive upper bound when present.
minimumnumber | null · doubleoptionalInclusive lower bound when present.
quantitystringrequiredInput 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.
planstringrequiredVersioned plan reference, formatted as id@version.
revisionstringrequiredFull 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 DividendEventoptionalDiscrete cash dividends within the option's life. American Cash-dividend American model only; Auto selects it for a non-empty schedule.
maxItems: 16Array item schema
dividend_yieldnumber · doublerequiredexercise_styleExerciseStylerequiredmodel_versionstring | nulloptionalOptional algorithm-version pin. Omit to use the current version.
option_typeOptionTyperequiredpricing_modelPricingModelrequiredrisk_free_ratenumber · doublerequiredspotnumber · doublerequiredstrikenumber · doublerequiredtime_to_expiry_yearsnumber · doublerequiredvolatilitynumber · doublerequired
PriceResponse #
Successful response for one pricing operation.
metadataResponseMetadatarequiredresultPriceResultrequired
PriceResult #
The transport-neutral result of one pricing operation.
exercise_styleExerciseStylerequiredmodel_versionstringrequiredStable revision of the selected pricing algorithm.
option_typeOptionTyperequiredpricenumber · doublerequiredpricing_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 EngineIdentityrequiredArray item schema
greek_unitsobjectrequiredAPI units, derived from canonical Greek field descriptions.
Map value schema
string
modelsarray of PricingModelDescriptorrequiredAll 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_symbolsobjectrequiredMeaning of the symbols in `validity` region condition formulas, which are quoted from the pinned engine.
Map value schema
string
PricingModelDescriptor #
aliasesarray of stringrequiredEarlier JSON selectors still accepted as aliases of this same algorithm.
Array item schema
string
batch_operationsarray of stringrequiredOperations also supported in synchronous batches of at most 100 contracts.
Array item schema
string
constraintsarray of ModelConstraintrequiredSelected structured limits of the pinned engine for live contracts. These describe capabilities; the engine remains the validation authority.
Array item schema
dividend_supportarray of stringrequiredArray item schema
string
exercise_stylesarray of ExerciseStylerequiredArray item schema
greeksarray of stringrequiredImplemented quantities, not a guarantee they resolve for every input. Per-request refusals appear in greeks.unavailable.
Array item schema
string
guidancestringrequiredidResolvedPricingModelrequiredCanonical JSON pricing_model selector, accepted by pricing operations.
methodstringrequiredmodel_versionstringrequiredExact compatible model_version pin for requests and response provenance.
namestringrequirednotesstringrequiredoperationsarray of stringrequiredOperation identifiers supported as single requests.
Array item schema
string
scenario_operationsarray of stringrequiredScenario operations over one contract; HTTP JSON only.
Array item schema
string
underlying_modelstringrequiredvalidityarray of QuantityValidityrequiredThe 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
versionstringrequiredAlgorithm 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.
codestringrequiredStable machine-readable problem code; match on this, not on `title` or `detail`.
detailstringrequiredExplanation specific to this occurrence.
fieldstring | nulloptionalDotted path of the request input at fault, when one is.
solve_trialone ofoptionalMust satisfy exactly one schema below:
Variant 1
null
Variant 2
Where a target solve stopped, when the pricing method refused a level.
statusinteger · int32requiredHTTP 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: 0titlestringrequiredShort summary of the problem type; the same for every occurrence of `code`.
typestringrequiredURI of the problem type; dereferences to its documentation. Ends in `#code`.
ProtobufBody #
string · binary
QuantityValidity #
One served quantity's validity contract.
criterionone ofoptionalMust satisfy exactly one schema below:
Variant 1
null
Variant 2
Present when validated.
outsidestring | nulloptionalPresent 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 ValidityBoundoptionalPresent when validated: every bound must hold. Empty means the whole input domain.
Array item schema
statusValidityStatusrequiredtoleranceone ofoptionalMust satisfy exactly one schema below:
Variant 1
null
Variant 2
Present for the `strict` and `approximation` criteria, in API wire units.
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_exclusiveintegerrequiredExclusive original-array index; equals received_price_count in V1.
minimum: 0start_indexintegerrequiredInclusive, 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_indexintegerrequiredOriginal-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: 0scorenumber · doublerequiredLinear readout at the final price; see crisis_score_contract.
statusstringrequiredAllowed values:
"crisis"
Variant 2
Not in an episode at the final price.
episode_start_price_indexnullrequiredscorenumber · doublerequiredLinear readout at the final price; see crisis_score_contract.
statusstringrequiredAllowed values:
"not_crisis"
Variant 3
No crisis statement is possible at the final price.
episode_start_price_indexnullrequiredreason_codeRegimeCrisisUnavailableReasonrequiredscorenullrequiredstatusstringrequiredAllowed values:
"unavailable"
RegimeCrisisProvenance #
Identity of the crisis detector that produced result.crisis.
featuresstringrequiredFeature definition identity.
methodstringrequiredparameters_sha256stringrequiredSHA-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.
kindRegimeCrisisScoreKindrequiredtheta_innumber · doublerequiredtheta_outnumber · doublerequiredversionstringrequired
RegimeCrisisScoreKind #
string
Allowed values: "linear_readout"
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
basisRegimeBasisrequiredpredictionobjectrequiredTie priority: unresolved, unsupported, supported, not_eligible (first wins).
labelRegimeDecisionLabelrequiredscoresarray of RegimeScore_RegimeDecisionLabelrequiredEvery 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: 4Array item schema
selectionRegimeSelectionrequired
statusstringrequiredAllowed values:
"available"
Variant 2
basisRegimeBasisrequiredpredictionnullrequiredreason_codeRegimeNotApplicableReasonrequiredstatusstringrequiredAllowed values:
"not_applicable"
Variant 3
basisRegimeBasisrequiredpredictionnullrequiredreason_codeRegimeUnavailableReasonrequiredstatusstringrequiredAllowed 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
basisRegimeBasisrequiredpredictionobjectrequiredTie priority: NEUTRAL, DOWN, UP (first wins). NEUTRAL is a valid tendency, never missing data.
labelRegimeDirectionLabelrequiredscoresarray of RegimeScore_RegimeDirectionLabelrequiredEvery 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: 3Array item schema
selectionRegimeSelectionrequired
statusstringrequiredAllowed values:
"available"
Variant 2
basisRegimeBasisrequiredpredictionnullrequiredreason_codeRegimeNotApplicableReasonrequiredstatusstringrequiredAllowed values:
"not_applicable"
Variant 3
basisRegimeBasisrequiredpredictionnullrequiredreason_codeRegimeUnavailableReasonrequiredstatusstringrequiredAllowed 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
basisRegimeBasisrequiredpredictionobjectrequiredTie priority: HIGHER_VOL, LOWER_VOL (first wins). Ordering is relative within the target fit, not historical volatility levels.
labelRegimeStateLabelrequiredscoresarray of RegimeScore_RegimeStateLabelrequiredEvery 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: 2Array item schema
selectionRegimeSelectionrequired
statusstringrequiredAllowed values:
"available"
Variant 2
basisRegimeBasisrequiredpredictionnullrequiredreason_codeRegimeNotApplicableReasonrequiredstatusstringrequiredAllowed values:
"not_applicable"
Variant 3
basisRegimeBasisrequiredpredictionnullrequiredreason_codeRegimeUnavailableReasonrequiredstatusstringrequiredAllowed values:
"unavailable"
RegimeMetadata #
all_prices_consumedbooleanrequiredTrue 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_versionstringrequiredas_ofstring | null · date-timerequiredFinal price timestamp supplied by the caller, or null when unknown. Null never means the HTTP response time.
budget_periodstring | nulloptionalbudget_reset_atstring | nulloptionalconsumed_price_rangeRegimeConsumedPriceRangerequiredcontract_sha256stringrequiredSHA-256 of the served HTTP contract document (`GET /openapi.json`).
crisis_time_usinteger · int64requiredMonotonic 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: 0cu_chargedinteger | null · int64optionalCommitted charge in CU.
minimum: 0cu_quotedinteger | null · int64optionalCommercial quote in Compute Units (CU).
minimum: 0cu_remaining_estimateinteger | null · int64optionalEstimated CU remaining in the budget period, as this service instance last observed it. It can lag other instances and concurrent requests.
minimum: 0cu_schedule_idstring | nulloptionalCost schedule id.
cu_schedule_versionstring | nulloptionalCustomer-facing cost schedule version.
enginesarray of EngineIdentityrequiredLibrary 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 · int64requiredMonotonic 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: 0input_price_indexintegerrequiredOriginal-array price index at the selected return's end: consumed_price_range.start_index + observation_index + 1.
minimum: 0observation_indexintegerrequiredZero-based return index within consumed_price_range: 505. Return i uses original prices[start_index + i] and prices[start_index + i + 1].
minimum: 0policyone ofoptionalprice_countintegerrequiredNumber of prices actually consumed by inference.
minimum: 0provenanceRegimeProvenancerequiredreceived_price_countintegerrequiredNumber of prices received before cropping.
minimum: 0request_idstringrequiredresponse_contract_versionstringrequiredreturn_countintegerrequiredEquals consumed_price_range.end_index_exclusive - start_index - 1.
minimum: 0return_typeRegimeReturnTyperequiredreturn_unitRegimeReturnUnitrequiredservice_versionstringrequiredwindow_price_countintegerrequiredIntermediate 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.
crisisRegimeCrisisProvenancerequiredmodel_idstringrequiredImmutable identity covering weights, preprocessing, reference procedure and label definitions; see the REGIME_MODEL_V1.md identity record.
model_sha256stringrequiredLowercase SHA-256 of the exact served student.onnx file bytes, not the training checkpoint, manifest, runtime binary or response.
model_statusstringrequiredpreprocessingstringrequiredSupplemental preprocessing identity; explicit return semantics are in metadata.
teacher_executedbooleanrequiredvolatility_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-timeoptionalTimestamp 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 #
metadataRegimeMetadatarequiredresultRegimeResultrequired
RegimeResult #
crisisRegimeCrisisrequiredcrisis_score_contractRegimeCrisisScoreContractrequireddecisionRegimeHead_RegimeDecisionPredictionrequireddirectionRegimeHead_RegimeDirectionPredictionrequiredscore_contractRegimeScoreContractrequiredstateRegimeHead_RegimeStatePredictionrequiredvolatilityRegimeVolatilityHeadrequiredServed 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.
kindRegimeScoreKindrequiredsum_tolerancenumber · doublerequiredFor each available prediction, using serialized values: abs(sum(prediction.scores[*].value) - 1) <= sum_tolerance.
versionstringrequired
RegimeScoreKind #
string
Allowed values: "uncalibrated_softmax"
RegimeScore_RegimeDecisionLabel #
labelstringrequiredPrediction 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 · doublerequiredFinite score in [0,1]; not a calibrated probability.
minimum: 0maximum: 1
RegimeScore_RegimeDirectionLabel #
labelstringrequiredAllowed values:
"UP""DOWN""NEUTRAL"valuenumber · doublerequiredFinite score in [0,1]; not a calibrated probability.
minimum: 0maximum: 1
RegimeScore_RegimeStateLabel #
labelstringrequiredVolatility 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 · doublerequiredFinite 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"
RegimeVolatilityBasis #
What the label states; neither component fits a model on this request.
targetRegimeVolatilityTargetrequired
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
basisRegimeVolatilityBasisrequiredpredictionRegimeVolatilityPredictionrequiredstatusstringrequiredAllowed values:
"available"
Variant 2
basisRegimeVolatilityBasisrequiredpredictionnullrequiredreason_codeRegimeNotApplicableReasonrequiredstatusstringrequiredAllowed values:
"not_applicable"
Variant 3
basisRegimeVolatilityBasisrequiredpredictionnullrequiredreason_codeRegimeUnavailableReasonrequiredstatusstringrequiredAllowed 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_methodstringrequiredcrisis_parameters_sha256stringrequiredmethodstringrequiredmodel_idstringrequiredmodel_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.
labelRegimeVolatilityLabelrequired
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.
modelstringrequiredAlgorithm `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 · int64requiredResolved 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_versionstringrequiredbudget_periodstring | nulloptionalbudget_reset_atstring | nulloptionalUTC end of the budget period from the pinned account snapshot, when known.
contract_sha256stringrequiredSHA-256 of the served HTTP contract document (`GET /openapi.json`), 64 lowercase hexadecimal digits. Identifies the exact contract revision.
cu_chargedinteger | null · int64optionalCommitted charge in CU.
minimum: 0cu_quotedinteger | null · int64optionalCommercial quote in Compute Units (CU).
minimum: 0cu_remaining_estimateinteger | null · int64optionalEstimated CU remaining in the budget period, as this service instance last observed it. It can lag other instances and concurrent requests.
minimum: 0cu_schedule_idstring | nulloptionalCost schedule id.
cu_schedule_versionstring | nulloptionalCustomer-facing cost schedule version.
enginesarray of EngineIdentityoptionalEngines 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 ofoptionalrequest_idstringrequiredservice_versionstringrequiredService release that produced this response.
ScenarioItem #
all of
Must satisfy every schema below:
Part 1
Part 2
indexinteger · int32requiredZero-based index in the submitted scenarios array, including duplicate points.
minimum: 0inputsPriceRequestrequired
ScenarioOutcome #
one of
Must satisfy exactly one schema below:
Variant 1
pnlnumber | null · doubleoptionalPosition P&L in currency: price_change × signed quantity × multiplier. Absent without a position.
price_changenumber · doublerequiredScenario option price minus base option price, per underlying unit.
resultPriceResultrequiredstatusstringrequiredAllowed values:
"success"
Variant 2
errorProblemrequiredstatusstringrequiredAllowed 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 ExpiryPnlBucketrequiredArray item schema
strike_bucketsarray of StrikePnlBucketrequiredArray 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 · doubleoptionalSubtract from base time to expiry. Zero holds expiry fixed; cannot exceed it.
spotnumber | null · doubleoptionalAbsolute underlying price; mutually exclusive with spot_change.
spot_changenumber | null · doubleoptionalAdd 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 · doubleoptionalAbsolute 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 · doublerequiredPositive number of underlying units per contract; e.g. 100 for equity options.
quantitynumber · doublerequiredSigned 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.
contractPriceRequestrequiredpositionone ofoptionalscenariosarray of ScenarioPointrequired1–99 points; base plus points must fit the account's price batch limit.
minItems: 1maxItems: 99Array item schema
ScenarioResponse #
metadataResponseMetadatarequiredresultScenarioResultrequired
ScenarioResult #
baseScenarioValuationrequiredpnl_basisone ofoptionalMust satisfy exactly one schema below:
Variant 1
null
Variant 2
`base_model_value` when a position is supplied; absent otherwise.
positionone ofoptionalscenariosarray of ScenarioItemrequiredOne 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 · doublerequiredcoordinatenumber · doublerequiredcrossingbooleanrequiredWhether sampled values cross the target. False can describe a tangent or an endpoint hit; it is not proof of a mathematical tangency.
kindstringrequiredAllowed values:
"point"refinementsinteger · int32required- minimum: 0
valuenumber · doublerequired
Variant 2
kindstringrequiredAllowed values:
"interval"lowernumber · doublerequireduppernumber · doublerequiredvaluenumber · 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.
basisScenarioSolveCoverageBasisrequiredstatusstringrequiredAllowed values:
"resolved"
Variant 2
At least one cell could not be resolved; see `cells`.
basisScenarioSolveCoverageBasisrequiredcellsarray of ScenarioSolveUnresolvedCellrequiredArray item schema
statusstringrequiredAllowed 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.
idstringrequiredmax_price_evaluationsinteger · int64required- minimum: 0
max_refinementsinteger · int32required- minimum: 0
scan_intervalsinteger · int32required- minimum: 0
ScenarioSolveRegion #
lowernumber · doublerequiredsignScenarioSolveSignrequireduppernumber · doublerequired
ScenarioSolveRequest #
Additional fields are not accepted.
contractPriceRequestrequiredcoordinateScenarioSolveCoordinateoptionalThe single unknown the solve searches over; default spot. Every other input stays at its contract value (or its scenario override).
coordinate_tolerancenumber · doubleoptionalPositive absolute coordinate localization tolerance in the coordinate's units; default 1e-9.
elapsed_time_yearsnumber · doubleoptionalScenario time already elapsed; rejected when the coordinate is elapsed_time or time_to_expiry.
lowernumber · doublerequiredFinite 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].
targetScenarioSolveTargetrequireduppernumber · doublerequiredvalue_tolerancenumber · doubleoptionalPositive 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 · doubleoptionalAbsolute volatility; omitted holds base volatility fixed.
ScenarioSolveResponse #
metadataResponseMetadatarequiredresultScenarioSolveResultrequired
ScenarioSolveResult #
baseScenarioValuationrequiredboundariesarray of ScenarioSolveBoundaryrequiredArray item schema
coordinateScenarioSolveCoordinaterequiredcoordinate_tolerancenumber · doublerequiredcoordinate_unitScenarioSolveCoordinateUnitrequiredcoverageScenarioSolveCoveragerequiredinputsPriceRequestrequiredFixed 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 · doublerequiredmodel_versionstringrequiredoutcomeScenarioSolveOutcomerequiredpnl_basisone ofoptionalMust satisfy exactly one schema below:
Variant 1
null
Variant 2
`base_model_value` for a position P&L target; absent otherwise.
price_evaluationsinteger · int64requiredActual pricing calls, including the base and the engine's reference valuation.
minimum: 0pricing_modelResolvedPricingModelrequiredprofileScenarioSolveProfilerequiredreference_net_valuenumber | null · doubleoptionalBase model value of the position, the P&L reference; position P&L targets only.
regionsarray of ScenarioSolveRegionrequiredArray item schema
targetScenarioSolveTargetrequiredtarget_unitstringrequiredUnit of the target and of boundary `value`s.
uppernumber · doublerequiredvalue_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
kindstringrequiredAllowed values:
"option_price"valuenumber · doublerequired
Variant 2
kindstringrequiredAllowed values:
"position_pnl"positionScenarioPositionrequiredvaluenumber · 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.
greekScenarioSolveGreekrequiredkindstringrequiredAllowed values:
"greek"valuenumber · doublerequired
ScenarioSolveUnresolvedCell #
best_abs_value_errornumber · doublerequiredbest_coordinatenumber · doublerequiredlowernumber · doublerequiredreasonScenarioSolveUnresolvedReasonrequireduppernumber · doublerequired
ScenarioSolveUnresolvedReason #
string
Allowed values: "refinement_budget_exhausted" "bracket_collapsed_above_tolerance" "coordinate_tolerance_reached" "representative_out_of_band"
ScenarioValuation #
inputsPriceRequestrequiredFull 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`.
coordinateScenarioSolveCoordinaterequiredThe solved coordinate, as in the request (`spot` for book solves).
coordinate_valuenumber · doublerequiredThe coordinate value that was refused.
evaluationsinteger · int64requiredTarget evaluations attempted, including the refused one: at least 1 in `search`, 0 in `domain_check`.
minimum: 0phaseSolveTrialPhaserequiredWhich 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.
servicestringrequiredstatusstringrequiredversionstringrequired
StrikePnlBucket #
Positions sharing exactly the same strike (bitwise-equal).
base_net_valuenumber · doublerequiredpnlnumber · doublerequiredshocked_net_valuenumber · doublerequiredstrikenumber · 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.
inputstringrequiredRequest input or derived expression over request inputs.
kindstringrequiredAllowed values:
"interval"maximumnumber | null · doubleoptionalminimumnumber | null · doubleoptional
Variant 2
A condition that is not a box, quoted from the engine; symbols are defined in the catalog's `validity_symbols`.
formulastringrequiredkindstringrequiredAllowed 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 · doublerequiredabsolute_unitstringrequiredExpression over request inputs: `1`, `max(spot, strike)` or `1 / max(spot, strike)`.
relativenumber · doublerequired