Skip to main content

Contract Error Codes

This page documents the specific error codes (anomaly keywords) returned by the BigONE Contract OpenAPI (/api/contract/v2/).

Error Response Format

Errors in the Contract API return a 400 or 403 HTTP status code with the following JSON structure:

{
"anomaly": "anomaly.order/price-out-of-range"
}

The anomaly field contains a keyword identifying the specific business logic error.

Trading & Market Errors

Anomaly KeywordDescription
anomaly.trades/stoppedTrading is suspended for the platform.
anomaly.trades/suspendedTrading is suspended for the specific instrument.

Order Validation Errors

Anomaly KeywordDescription
anomaly.order/price-out-of-rangeOrder price is beyond the allowed price limits.
anomaly.open-order/price-invalid-lossStop loss price is invalid for the current market conditions.
anomaly.open-order/price-invalid-profitTake profit price is invalid for the current market conditions.
anomaly.request/invalid-paramsOne or more request parameters are malformed or invalid.

Position & Account Errors

Anomaly KeywordDescription
anomaly.close-position/position-not-foundAttempted to close a position that does not exist.
anomaly.adjust-margin/invalid-lerverageThe requested leverage adjustment is invalid.
anomaly.adjust-margin/position-too-largeThe position size exceeds the allowed limit for the requested margin.
anomaly.limit-risk/position-too-largeThe position size exceeds the risk limit.
anomaly.adjust-risk-limit/too-small-or-too-largeRisk limit adjustment value is out of allowed range.