---
title: "Error codes"
description: "Every gateway error code with its HTTP status, message and whether a retry can help."
---

Gateway errors come back as `{"code", "message", "status"}` over HTTP, and as a JSON-RPC `error` object `{code, message}` over WebSocket. With [lite names](../guides/environments.md#encoding-full-or-lite) they are `{"c", "m", "s"}` and `{c, m}`. Retry rule: retryable = the rate-limit code (1006) or HTTP status 502, 503 or 504. Other 429s (e.g. 2090 max open orders) depend on account state and are not retryable. Reads may retry with backoff; writes never retry automatically. See [Errors and retries](../guides/errors-and-retries.md).

## General (1000–1015)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 1000 | `ErrUnauthorized` | 401 | no | You need to authenticate prior to using this functionality |
| 1001 | `ErrForbidden` | 403 | no | You are not authorized to access this functionality |
| 1002 | `ErrInternalServer` | 500 | no | Internal Server Error |
| 1003 | `ErrInvalidRequest` | 400 | no | Request could not be processed due to malformed syntax |
| 1004 | `ErrNotFound` | 404 | no | Data Not Found |
| 1005 | `UnknownErr` | 500 | no | Unknown Error |
| 1006 | `ErrRateLimit` | 429 | yes | You have surpassed the allocated rate limit for your tier |
| 1007 | `ErrUnsupportedCurrency` | 404 | no | The currency you are requesting for is  not currently supported |
| 1008 | `ErrIPNotWhitelisted` | 401 | no | Your IP has not been whitelisted for access |
| 1009 | `ErrAPIEndpointTemporarilyDeactivated` | 503 | yes | We are temporarily deactivating this API endpoint, please try again later |
| 1010 | `ErrInvalidTierOrder` | 400 | no | Invalid tier order |
| 1011 | `ErrVisibilityRestricted` | 403 | no | This API is restricted based on the client type |
| 1012 | `ErrInvalidSignatureChainID` | 400 | no | Invalid signature chain ID |
| 1013 | `ErrSpotFeeRebateNotSupported` | 400 | no | Spot fee rebate is not supported |
| 1014 | `ErrGatewayTimeout` | 504 | yes | Upstream data service timed out, please try again |
| 1015 | `ErrServiceUnavailable` | 503 | yes | Upstream data service is temporarily unavailable, please try again |

## WebSocket and JSON-RPC (1100–1300)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 1100 | `ErrStreamNotFound` | 400 | no | Stream not supported on this gateway |
| 1101 | `ErrInvalidFeedFormat` | 400 | no | Feed Format must be in the format of \<primary>@\<secondary> |
| 1102 | `ErrPrimarySelectorParts` | 400 | no | Wrong number of primary selectors |
| 1103 | `ErrSecondarySelectorParts` | 400 | no | Wrong number of secondary selectors |
| 1104 | `ErrDuplicatePrimarySelector` | 400 | no | Attempted to subscribe to same primary selector twice, in same request |
| 1105 | `ErrInvalidSubscribeParams` | 400 | no | Subscribe params are invalid |
| 1106 | `ErrInvalidUnsubscribeParams` | 400 | no | Unsubscribe params are invalid |
| 1107 | `ErrInvalidJSONRPCVersion` | 400 | no | JSON RPC version must be 2.0 |
| 1200 | `ErrRPCMethodNotFound` | 404 | no | RPC method not found |
| 1300 | `ErrJSONRPCIDExceedsUint32` | 400 | no | JSON RPC ID exceeds uint32 |

## Permissions and account IDs (1400–1500)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 1400 | `ErrNoTradePermission` | 403 | no | Signer does not have trade permission |
| 1500 | `ErrMainAccIDInvalid` | 400 | no | Request must contain a valid main account ID |

## Signatures and order ownership (2000–2008)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 2000 | `SignerUnauthorized` | 403 | no | Signature is from an unauthorized signer |
| 2001 | `SignatureExpired` | 403 | no | Signature has expired |
| 2002 | `SignatureDoesNotMatchPayload` | 403 | no | Signature does not match payload |
| 2003 | `OrderSubAccountDoesNotMatchLoggedInUser` | 403 | no | Order sub account does not match logged in user |
| 2004 | `SessionKeySignerExpired` | 403 | no | Signature is from an expired session key |
| 2005 | `SignatureInvalidV` | 403 | no | Signature V must be 27/28 |
| 2006 | `SignatureInvalidRSLength` | 403 | no | Signature R/S must have exactly 64 characters long without 0x prefix **Note:** The message is misleading: send r and s as "0x" + 64 hex characters. Without 0x the server reads them as 0 and the signature fails to verify. |
| 2007 | `SignatureSIsNotCurveLowerHalf` | 403 | no | Signature S must be in the lower half of the curve |
| 2008 | `SignatureExpirationTooLong` | 403 | no | Signature exceeds maximum allowed duration. |

## Orders (2010–2091)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 2010 | `OrderIDShouldBeEmpty` | 400 | no | Order ID should be empty when creating an order |
| 2011 | `ClientOrderIDShouldBeSupplied` | 400 | no | Client Order ID should be supplied when creating an order |
| 2012 | `ClientOrderIDOverlaps` | 400 | no | Client Order ID overlaps with existing active order |
| 2013 | `ClientOrderIDRepeats` | 400 | no | Client Order ID repeats with the last order |
| 2020 | `MarketOrderWithLimitPrice` | 400 | no | Market Order must always be supplied without a limit price |
| 2021 | `LimitOrderWithoutLimitPrice` | 400 | no | Limit Order must always be supplied with a limit price |
| 2030 | `InvalidTimeInForceOrderbook` | 400 | no | Orderbook Orders must have a TimeInForce of GTT/IOC/FOK |
| 2031 | `InvalidTimeInForceRFQ` | 400 | no | RFQ Orders must have a TimeInForce of GTT/AON/IOC/FOK |
| 2032 | `PostOnlyWhenTakerOrder` | 400 | no | Post Only can only be set to true for GTT/AON orders |
| 2040 | `LegsEmpty` | 400 | no | Order must contain at least one leg |
| 2041 | `LegsNotSorted` | 400 | no | Order Legs must be sorted by Derivative.Instrument/Underlying/BaseCurrency/Expiration/StrikePrice |
| 2042 | `LegsMultipleOrderbook` | 400 | no | Orderbook Orders must contain only one leg |
| 2050 | `NonEmptyState` | 400 | no | Order state must be empty upon creation |
| 2051 | `ExecutionMetadataShouldBeEmpty` | 400 | no | Order execution metadata must be empty upon creation |
| 2060 | `InactiveDerivative` | 400 | no | Order Legs contain one or more inactive derivative |
| 2061 | `InstrumentNotSupported` | 400 | no | Unsupported Instrument Requested |
| 2062 | `NumContractsUnderMinSize` | 400 | no | Order size smaller than min size |
| 2063 | `NumContractsUnderMinBlockSize` | 400 | no | Order size smaller than min block size in block trade venue |
| 2064 | `InvalidLimitPriceTick` | 400 | no | Invalid limit price tick |
| 2065 | `InvalidContractGrainSize` | 400 | no | Order size too granular |
| 2066 | `NotionalBelowMinimum` | 400 | no | Order below minimum notional. Please try again with a higher price or size. |
| 2067 | `PositionClosingNotionalBelowMinimum` | 400 | no | Order below minimum notional. Please try reducing your position again with a higher price or size. |
| 2070 | `LiquidationOrderNotSupported` | 400 | no | Liquidation Order is not supported |
| 2080 | `InsufficientMargin` | 400 | no | Insufficient margin to create order |
| 2081 | `MaximumPositionSizeExceeded` | 400 | no | Order Fill would result in exceeding maximum position size |
| 2082 | `ErrFailedPreOrderCheck` | 400 | no | Pre-order check failed |
| 2083 | `MaximumLeverageConfigPositionSizeExceeded` | 400 | no | Order Fill would result in exceeding maximum position size under current configurable leverage tier |
| 2084 | `ErrFailedPostOrderCheck` | 400 | no | Post-order check failed |
| 2090 | `MaxOpenOrdersExceeded` | 429 | no | Max open orders exceeded |
| 2091 | `ErrSessionOrderReduceOnlyRequired` | 403 | no | As a precaution, only position-reducing (`reduce_only` as true) orders are currently allowed on your account. Please contact support so we can help complete the necessary checks. |

## Leverage and margin type (2100–2108)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 2100 | `InvalidInitialLeverage` | 400 | no | Invalid initial leverage |
| 2101 | `VaultsCannotConfigureLeverage` | 400 | no | Vaults cannot configure leverage |
| 2102 | `MarginTypeChangeFailedHasOpenPosition` | 400 | no | Margin type change failed, has open position for this instrument |
| 2103 | `MarginTypeChangeFailedHasOpenOrders` | 400 | no | Margin type change failed, has open orders for this instrument |
| 2104 | `MarginTypeNotSupported` | 400 | no | Margin type not supported |
| 2105 | `MarginTypeChangeFailed` | 400 | no | Margin type change failed |
| 2107 | `NewLeverageBelowMinimum` | 400 | no | Attempted to set leverage below minimum |
| 2108 | `NewLeverageAboveMaximum` | 400 | no | Attempted to set leverage above maximum |

## Trigger, RPI, ECN and RFQ orders (2110–2148)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 2110 | `InvalidTriggerBy` | 400 | no | Invalid trigger by |
| 2111 | `UnsupportedTriggerBy` | 400 | no | Unsupported trigger by |
| 2112 | `InvalidTriggerOrder` | 400 | no | Invalid trigger order |
| 2113 | `EmptyTriggerPrice` | 400 | no | Trigger price must be non-zero |
| 2114 | `ErrInvalidPTPSLReduceOnly` | 400 | no | Invalid position linked TPSL orders, position linked TPSL must be a reduce-only order |
| 2115 | `ErrInvalidPTPSLSize` | 400 | no | Invalid position linked TPSL orders, position linked TPSL must not have smaller size than the position |
| 2116 | `ErrPTPSLOrderAlreadyExists` | 400 | no | Position linked TPSL order for this asset already exists |
| 2117 | `ErrPTPSLMustBeFromWebOrMobile` | 400 | no | Position linked TPSL orders must be created from web or mobile clients |
| 2118 | `InvalidTriggerPriceTick` | 400 | no | Invalid trigger price tick |
| 2120 | `RPIOrderNotSupported` | 400 | no | RPI orders are not supported yet |
| 2121 | `RPIOrderMustBeLimit` | 400 | no | RPI order must be a limit order |
| 2122 | `RPIOrderMustBePostOnly` | 400 | no | RPI order must be post-only |
| 2123 | `RPIOrderMustBeFromApiSource` | 400 | no | RPI order must be from API source |
| 2130 | `ECNOrderNotSupported` | 400 | no | ECN orders are not supported yet |
| 2131 | `ECNOrderMustBeGTT` | 400 | no | ECN order must be a GTT order |
| 2132 | `ECNOrderMustBeLimit` | 400 | no | ECN order must be a limit order |
| 2133 | `ECNOrderMustBePostOnly` | 400 | no | ECN order must be post-only |
| 2134 | `ECNOrderMustBeFromApiSource` | 400 | no | ECN order must be from API source |
| 2135 | `ECNOrderMustNotBeReduceOnly` | 400 | no | ECN order must not be a reduce-only order |
| 2136 | `ECNOrderMustNotBeConditional` | 400 | no | ECN order must not be a conditional order |
| 2141 | `RfqSubAccountDoesNotMatchLoggedInUser` | 403 | no | RFQ sub account does not match logged in user |
| 2142 | `RfqInstrumentNotStablePerp` | 400 | no | RFQ instrument must be a stable perpetual |
| 2143 | `RfqSizeBelowMinimum` | 400 | no | RFQ size is below the instrument minimum size |
| 2144 | `RfqSizeAboveMaximum` | 400 | no | RFQ size exceeds the instrument maximum position size |
| 2145 | `RfqInvalidExpiry` | 400 | no | RFQ expiry is invalid |
| 2146 | `RfqAlreadyExistsForAsset` | 400 | no | An open RFQ already exists for this sub account and instrument |
| 2147 | `StablePerpRequiresMultiAssetMode` | 400 | no | stable perp orders require a multi-asset-mode sub-account |
| 2148 | `ErrVaultCannotTrade` | 400 | no | a vault whose investment currency is not its quote currency cannot trade |

## Bulk orders and TP/SL (2220–2246)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 2220 | `ErrNoOrdersProvided` | 400 | no | No orders provided |
| 2222 | `ErrNotTPSLOrder` | 400 | no | Order is not a TPSL order |
| 2223 | `ErrUnsupportedBulkOrders` | 400 | no | Unsupported bulk orders type |
| 2224 | `ErrInvalidOCO` | 400 | no | Invalid OCO orders |
| 2225 | `ErrInvalidOCOInvalidLeg` | 400 | no | OCO orders have invalid legs |
| 2226 | `ErrInvalidOCOMismatchedLegs` | 400 | no | OCO order take profit and stop loss legs must share the same instrument, size and direction |
| 2227 | `ErrInvalidOSO` | 400 | no | Invalid OSO orders |
| 2228 | `ErrInvalidOSOInvalidLeg` | 400 | no | OSO orders have invalid legs |
| 2229 | `ErrInvalidOSOMismatchedLegs` | 400 | no | OSO orders must share the same instrument and size, with main order direction opposite to TPSL orders |
| 2230 | `ErrInvalidOSOTriggerPrice` | 400 | no | OSO orders has invalid trigger price |
| 2231 | `ErrInvalidPTPSL` | 400 | no | Invalid position linked TPSL orders |
| 2232 | `ErrInvalidPTPSLOrderLinkage` | 400 | no | Invalid position linked TPSL orders, position linked TPSL must not have order linkage |
| 2233 | `ErrBothOrderIDAndClientOrderIDProvided` | 400 | no | Both order ID and client order ID cannot be provided |
| 2234 | `ErrInvalidBulkOrdersAssetMismatch` | 400 | no | Bulk create orders must have the same instrument |
| 2235 | `ErrBulkOrdersMaxCountExceeded` | 400 | no | Bulk orders count exceeds the maximum allowed |
| 2236 | `ErrBulkOrdersNotSupportTriggerOrder` | 400 | no | Bulk orders does not support trigger order |
| 2237 | `ErrBulkOrdersNotFromApiSource` | 400 | no | Bulk orders must be from API source |
| 2238 | `ErrSplitTPSLMustNotBePositionLinkedTPSL` | 400 | no | Split TPSL orders must not be position-linked TPSL |
| 2239 | `ErrSplitTPSLMustBeReduceOnly` | 400 | no | Split TPSL orders must be reduce-only |
| 2240 | `ErrSplitTPSLCreatesMustNotContainNonSplit` | 400 | no | If creating split TPSL orders, can only specify split TPSL orders in the creation array |
| 2241 | `ErrSplitTPSLCreatesExceedsSetSize` | 400 | no | Split TPSL order count exceeds maximum allowed set size |
| 2242 | `ErrSplitTPSLNotSupported` | 400 | no | Split TPSL functionality not supported; you may be using a deprecated API, or this functionality is temporarily disabled |
| 2243 | `ErrSplitTPSLSetAlreadyExists` | 400 | no | Split TPSL set already exists for this asset. Please modify the existing set of split TPSL orders. |
| 2244 | `ErrCreatingSplitTPSLWithoutExistingPosition` | 400 | no | Split TPSL creation only allowed for instruments with already-existing positions. |
| 2245 | `ErrCreatingSplitTPSLExceedingPositionSize` | 400 | no | Split TPSL creation exceeds position size. |
| 2246 | `ErrModifyingSplitTPSLMismatchedCancels` | 400 | no | Split TPSL modification requires all existing split TPSL orders to be cancelled |

## Cancel countdown, reduce-only, replace and spot orders (2300–2453)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 2300 | `CancelTTLDisabled` | 400 | no | Order cancel time-to-live settings currently disabled. |
| 2301 | `CancelTTLMaxExceeded` | 400 | no | Order cancel time-to-live exceeds maximum allowed value. |
| 2400 | `ReduceOnlyOrderWithNoPosition` | 400 | no | Reduce only order with no position |
| 2401 | `ReduceOnlyOrderIncreaseSize` | 400 | no | Reduce only order must not increase position size |
| 2402 | `ReduceOnlyOrderSizeExceeded` | 400 | no | Reduce only order size exceeds maximum allowed value |
| 2413 | `ErrReplaceOrderNumOrdersMismatch` | 400 | no | Replace order failed, number of orders provided does not match the number of orders to replace |
| 2450 | `ErrSpotOrderNotSupported` | 400 | no | Spot order is not supported |
| 2451 | `ErrSpotOrderReduceOnlyNotSupported` | 400 | no | Spot order must not be a reduce-only order |
| 2452 | `ErrSpotOrderTPSLNotSupported` | 400 | no | Spot order must not be a TPSL order |
| 2453 | `ErrSpotTradingBlockedDuringSocializedLoss` | 400 | no | Spot trading is blocked during socialized loss |

## Request parameters (3000–3043)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 3000 | `ErrInvalidInstrument` | 400 | no | Instrument is invalid |
| 3004 | `ErrMMConfigNotFound` | 500 | no | Instrument does not have a valid maintenance margin configuration |
| 3005 | `ErrAssetUnderlyingBalDecConfigNotFound` | 500 | no | Instrument's underlying currency does not have a valid balance decimal configuration |
| 3006 | `ErrAssetQuoteBalDecConfigNotFound` | 500 | no | Instrument's quote currency does not have a valid balance decimal configuration |
| 3007 | `ErrNotApplicableForSpotInstrument` | 400 | no | API is not applicable for spot instruments |
| 3008 | `ErrInvalidFundingAggregationTypeForStablePerp` | 400 | no | Funding rate aggregation type is not applicable for stable perp instruments |
| 3011 | `ErrInvalidLimit` | 400 | no | Limit exceeds min or max value |
| 3012 | `ErrInvalidCursor` | 400 | no | Cursor is invalid |
| 3013 | `ErrExactLimitNotSupported` | 400 | no | Exact limit value is not supported |
| 3020 | `ErrInvalidSubAccountID` | 400 | no | Sub account ID must be an uint64 integer |
| 3021 | `ErrInvalidOrderID` | 400 | no | Either order ID or client order ID must be supplied |
| 3030 | `ErrInvalidFeedRate` | 400 | no | Feed rate is invalid |
| 3031 | `ErrInvalidDepth` | 400 | no | Depth is invalid |
| 3040 | `ErrInvalidCandlestickInterval` | 400 | no | Candlestick interval is invalid |
| 3041 | `ErrInvalidCandlestickType` | 400 | no | Candlestick type is invalid |
| 3042 | `ErrInvalidCandlestickTypeForSpot` | 400 | no | Candlestick type is not applicable for spot instruments |
| 3043 | `ErrInvalidCandlestickTypeForStablePerp` | 400 | no | Candlestick type not supported for this instrument |

## Transfers and withdrawals (4000–4023)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 4000 | `ErrInsufficientBalanceToTransfer` | 400 | no | Insufficient balance to complete transfer |
| 4002 | `ErrTransferFailedReasonUnrefined` | 400 | no | Transfer failed with an unrefined failure reason, please report to GRVT |
| 4004 | `ErrBothTransferWalletTypeMustBeProvided` | 400 | no | Both transfer wallet types must be provided |
| 4005 | `ErrInvalidWalletTypeForFundingAccount` | 400 | no | Invalid wallet type for funding account |
| 4006 | `ErrInvalidWalletTypeForSubAccount` | 400 | no | Invalid wallet type for sub account |
| 4007 | `ErrDuplicatedTransfer` | 400 | no | Transfer failed because signature is an exact duplicate of another recently-observed transfer. |
| 4008 | `ErrCurrencyNotAllowedInWallet` | 400 | no | Currency is not allowed in the target wallet type |
| 4009 | `ErrUnspecifiedTransferType` | 400 | no | Please specify the transfer type |
| 4010 | `ErrWithdrawalWalletNotSupported` | 400 | no | This wallet is not supported. Please try another wallet. |
| 4011 | `ErrCVRZeroNotAllowedInFuturesWallet` | 400 | no | This currency cannot be used as collateral in a multi-asset margin futures wallet. |
| 4012 | `ErrCollateralLimitExceeded` | 400 | no | Transfer would push your holdings of this currency above the per-user collateral limit. |
| 4014 | `ErrCurrencyTransferNotAllowed` | 400 | no | This currency has been disabled for transfers and withdrawals. |
| 4015 | `ErrNoTransferPermission` | 403 | no | Signer does not have transfer permission |
| 4016 | `ErrTransferWithdrawalBlocked` | 403 | no | As a precaution, funds movements on your account are temporarily unavailable. Please contact support so we can help complete the necessary checks. |
| 4018 | `ErrGrvtExternalTransferNotAllowed` | 400 | no | $GRVT is disabled for external transfer |
| 4019 | `ErrWithdrawalWalletUnderReview` | 400 | no | Your wallet has been put under review. Please reach out to kyc@grvt.io for any questions. |
| 4020 | `ErrCurrencyNotEnabledAsCollateral` | 400 | no | This currency is not enabled as collateral for the destination sub account. Enable it in your collateral preferences first. |
| 4021 | `ErrInsufficientFundingVaultShares` | 400 | no | The funding account has fewer vault shares than requested, after reserving any pending redemption. |
| 4022 | `ErrInsufficientTradingVaultShares` | 400 | no | The trading account has fewer vault shares than requested. |
| 4023 | `ErrVaultShareTransferRoute` | 400 | no | Vault shares move only between your own funding account and your own multi-asset trading accounts. |

## Transfer metadata (5000–5005)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 5000 | `ErrInvalidTransferMetadata` | 400 | no | Transfer Metadata does not match the expected structure. |
| 5001 | `ErrInvalidTransferProvider` | 400 | no | Transfer Provider does not match the expected provider. |
| 5002 | `ErrInvalidDirection` | 400 | no | Direction of the transfer does not match the expected direction. |
| 5003 | `ErrInvalidEndpoint` | 400 | no | Endpoint account ID is invalid. |
| 5004 | `ErrFundingAccountDoesntExist` | 400 | no | Funding account does not exist in our system. |
| 5005 | `ErrInvalidChainID` | 400 | no | Invalid ChainID for the transfer request. |

## Account settings (6000–6100)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 6000 | `ErrLongCancelOnDisconnectCountdown` | 400 | no | Countdown time is bigger than 300s supported |
| 6100 | `ErrDeriskMMRatioOutOfRange` | 400 | no | Derisk MM Ratio is out of range |

## Vaults (7000–7035)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 7000 | `ErrInvalidVaultID` | 400 | no | Vault ID provided is invalid and does not belong to any vault |
| 7001 | `ErrInsufficientVaultLPToken` | 400 | no | Vault does not have sufficient LP token balance |
| 7002 | `ErrOngoingRedemption` | 400 | no | User has an ongoing redemption |
| 7003 | `ErrVaultNotActive` | 400 | no | This vault has been delisted/closed. |
| 7004 | `ErrInvestmentExceedsCap` | 400 | no | This investment would cause the vault to exceed its valuation cap. |
| 7005 | `ErrBurningMoreVaultTokensThanOwned` | 400 | no | You are attempting to burn more vault tokens than you own. |
| 7006 | `ErrBurningTokenWhileActiveRedemption` | 400 | no | You are attempting to burn vault tokens whilst having an active redemption request. |
| 7007 | `ErrInvestorNotVaultLP` | 400 | no | The investor is not an LP for this vault. |
| 7008 | `ErrOnlyAllowedToRedeemInVaultInvestmentCurrency` | 400 | no | Vault redemption requests may only be submitted in the vault's investment currency. |
| 7009 | `ErrInsufficientInvestorTokenBalanceForRedemption` | 400 | no | Vault Investor does not have enough LP tokens to redeem. |
| 7012 | `ErrInvalidVaultInvestorID` | 400 | no | Vault investor ID provided is invalid. |
| 7013 | `ErrCrossExchangeVaultNotSupported` | 400 | no | Cross-exchange vaults not supported |
| 7014 | `ErrOnlyAllowedToInvestInVaultInvestmentCurrency` | 400 | no | Only allowed to invest in vault's investment currency |
| 7015 | `ErrVaultLpTokensLocked` | 400 | no | Some of these vault shares are still within the vault's minimum investment period and cannot be redeemed yet. |
| 7017 | `ErrVaultConversionRateNotAllowed` | 400 | no | The exchange rate is not allowed: it must be exactly 1 when both currencies are the same, and at most the current conversion rate otherwise. |
| 7018 | `ErrVaultInvalidInvestSource` | 400 | no | Invalid invest source: use the funding account with the funding wallet, or a spot or futures wallet of one of your own trading accounts that is not a vault. |
| 7019 | `ErrVaultConversionPriceStale` | 400 | no | A price this conversion needs is stale or not available yet. Please try again later. |
| 7027 | `ErrVaultConversionZeroOutput` | 400 | no | The conversion would pay out nothing: the exchange rate or the amount is too small. |
| 7028 | `ErrVaultInvestAlreadyExecuted` | 400 | no | This signed vault investment has already been executed. Sign a new one to invest again. |
| 7035 | `ErrVaultInvestSourceNeedsSpotTransfers` | 400 | no | Spot transfers are not enabled, so only the funding account or the futures wallet of a trading account, in USDT, can pay this investment. |

## Transfer and fee checks (7100–7105)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 7100 | `ErrUnknownTransactionType` | 500 | no | Unknown transaction type |
| 7101 | `ErrTransferAccountNotFound` | 400 | no | Transfer account not found |
| 7102 | `ErrTransferSubAccountNotFound` | 400 | no | Transfer sub-account not found |
| 7103 | `ErrChargedTradingFeeBelowConfigMinimum` | 500 | no | Charged trading fee below the config minimum |
| 7104 | `ErrTransferSubAccountNotUnderAccount` | 400 | no | Transfer sub-account doesn't belong to the transfer main account |
| 7105 | `ErrTransferBetweenSubAccOfDifferentAccount` | 400 | no | Transfer between subaccounts of different accounts |

## Delisting and maintenance (7303–7306)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 7303 | `ErrDelistCreateOrderBlocked` | 400 | no | Order creations have been blocked for this delisted asset. |
| 7304 | `ErrDelistPositionOpenBlocked` | 400 | no | Only position-reducing orders (`reduce_only` as true) allowed for this asset right now. |
| 7306 | `ErrMaintenanceCreateOrderBlocked` | 400 | no | Order creation is temporarily blocked during the corporate action / maintenance window |

## Isolated margin (7450–7455)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 7450 | `AddMarginFailed` | 400 | no | Add margin failed |
| 7451 | `AddMarginToEmptyPosition` | 400 | no | Add margin to empty position |
| 7452 | `AddMarginToNonIsolatedPosition` | 400 | no | Add margin to non isolated position |
| 7453 | `MaxAddableAmountExceeded` | 400 | no | Max addable amount exceeded |
| 7454 | `MaxRemovableAmountExceeded` | 400 | no | Max removable amount exceeded |
| 7455 | `NotIsolatedMarginPosition` | 400 | no | Not isolated margin position |

## Builder fees (7501–7506)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 7501 | `ErrBuilderFeeNegative` | 400 | no | Builder Fee can't be negative. |
| 7504 | `ErrBuilderNotAuthorized` | 400 | no | Builder is not authorized for the specified user. |
| 7505 | `ErrBuilderFeeExceedsAuthorizationLimit` | 400 | no | Builder Fee exceeds authorized limit. |
| 7506 | `ErrBuilderMissing` | 400 | no | Builder Account is missing but builder fee is provided. |

## Slippage (7600–7603)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 7600 | `ErrSlippageFeatureDisabled` | 400 | no | Order slippage protection is not enabled. |
| 7601 | `ErrSlippageRequiresIOCLimitOrder` | 400 | no | Slippage protection is only supported on IOC limit orders. |
| 7602 | `ErrSlippageBelowMinimum` | 400 | no | Slippage is below the minimum allowed value. |
| 7603 | `ErrSlippageExceedsPriceProtectionBand` | 400 | no | Slippage exceeds the asset's price protection band. |

## Stable funding perps (7701–7726)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 7701 | `ErrSfpIndicativeNotQualifiedMaker` | 403 | no | You are not a qualified market maker or designated market maker for this instrument. |
| 7704 | `ErrSfpOrderNotSupported` | 400 | no | Stable Funding Perpetual orders are not yet supported. |
| 7705 | `ErrSfpInstrumentMismatch` | 400 | no | The order's instrument does not match the referenced RFQ's instrument. |
| 7706 | `ErrSfpPrivateQuoteNotSupported` | 400 | no | Private maker quotes are not yet supported. |
| 7707 | `ErrSfpRfqNotLive` | 400 | no | The referenced RFQ is not open. |
| 7708 | `ErrSfpRfqAlreadyHasTakerOrder` | 400 | no | The referenced RFQ already has a taker order. |
| 7709 | `ErrSfpTakerInvalidTimeInForce` | 400 | no | Invalid time in force for a Stable Funding Perpetual taker order. |
| 7711 | `ErrSfpMarketOrderNotAllowed` | 400 | no | Market orders are not allowed for Stable Funding Perpetual taker orders; a market-order slippage bound must be set. |
| 7712 | `ErrRfqIDNotAllowedForNonSFP` | 400 | no | Non-Stable-Funding-Perpetual orders must always be supplied without rfq_id. |
| 7723 | `ErrUsdcCollateralDisabled` | 400 | no | USDC must be enabled as collateral on this sub account to trade USDC-quoted instruments. |
| 7724 | `ErrSfpPostOnlyNotAllowedForRetail` | 400 | no | Post-only orders are not allowed on Stable Funding Perpetuals. |
| 7725 | `ErrSfpEndpointNotSupported` | 403 | no | This endpoint is not supported for stable funding. |
| 7726 | `ErrSfpMarketClosed` | 400 | no | The Stable Funding Perpetual market is closed. |

## Currency conversion (7801–7812)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 7801 | `ErrCurrencyNotConvertible` | 400 | no | This currency is not enabled for stable coin convert. |
| 7802 | `ErrPriceOutOfConvertBand` | 400 | no | The index price of one of the currencies is outside the permitted convert band. Please try again later. |
| 7803 | `ErrMissingIndexPrice` | 400 | no | An index price required for this conversion is unavailable. Please try again later. |
| 7805 | `ErrInexactConversion` | 400 | no | This amount cannot be converted exactly between the two currencies’ decimals. Please adjust the amount. |
| 7811 | `ErrNegativeBalance` | 400 | no | This conversion would leave a negative balance. |
| 7812 | `ErrValueOverflow` | 400 | no | The convert amount is too large to be represented. Please use a smaller amount. |

## Trading coupons (7901)

| Code | Name | HTTP | Retryable | Message |
|---|---|---|---|---|
| 7901 | `ErrTradingCouponNotTransferable` | 400 | no | Trading coupons move only by an adjustment or a liquidation. |
