{"openapi":"3.0.0","components":{"examples":{},"headers":{},"parameters":{},"requestBodies":{},"responses":{},"schemas":{"GlvShiftParamsResponse":{"properties":{"minMarketTokens":{"type":"string"},"marketTokenAmount":{"type":"string"},"toMarket":{"type":"string"},"fromMarket":{"type":"string"},"glv":{"type":"string"}},"required":["minMarketTokens","marketTokenAmount","toMarket","fromMarket","glv"],"type":"object"},"JitLiquidityInfoItemPerSideEntryResponse":{"properties":{"glvShiftParams":{"$ref":"#/components/schemas/GlvShiftParamsResponse"},"maxReservedUsd":{"type":"string"}},"required":["glvShiftParams","maxReservedUsd"],"type":"object"},"JitLiquidityInfoItemPerSideResponse":{"properties":{"short":{"allOf":[{"$ref":"#/components/schemas/JitLiquidityInfoItemPerSideEntryResponse"}],"nullable":true},"long":{"allOf":[{"$ref":"#/components/schemas/JitLiquidityInfoItemPerSideEntryResponse"}],"nullable":true},"market":{"type":"string"},"glv":{"type":"string"}},"required":["short","long","market","glv"],"type":"object"},"JitLiquidityInfoPerSideResponse":{"properties":{"liquidityInfos":{"items":{"$ref":"#/components/schemas/JitLiquidityInfoItemPerSideResponse"},"type":"array"}},"required":["liquidityInfos"],"type":"object"},"TransactionMode":{"enum":["express","classic"],"type":"string"},"Record_string.any_":{"properties":{},"additionalProperties":{},"type":"object","description":"Construct a type with a set of properties K of type T"},"TradingCapacityLimitingFactor":{"type":"string","enum":["reserve","openInterest","both","notApplicable"]},"JitDataStatus":{"type":"string","enum":["available","stale","unavailable"]},"MarketDataStatus":{"type":"string","enum":["fresh","stale"]},"TradingCapacityResponse":{"properties":{"marketDataStatus":{"$ref":"#/components/schemas/MarketDataStatus"},"jitDataStatus":{"$ref":"#/components/schemas/JitDataStatus"},"limitingFactor":{"$ref":"#/components/schemas/TradingCapacityLimitingFactor"},"jitAvailableLiquidity":{"type":"string"},"baseAvailableLiquidity":{"type":"string"},"availableLiquidity":{"type":"string"}},"required":["marketDataStatus","jitDataStatus","limitingFactor","jitAvailableLiquidity","baseAvailableLiquidity","availableLiquidity"],"type":"object"},"OrderValidationWarningResponse":{"anyOf":[{"properties":{"details":{"allOf":[{"$ref":"#/components/schemas/TradingCapacityResponse"},{"properties":{"requestedSizeUsd":{"type":"string"}},"required":["requestedSizeUsd"],"type":"object"}]},"message":{"type":"string"},"code":{"type":"string","enum":["INSUFFICIENT_LIQUIDITY"],"nullable":false}},"required":["details","message","code"],"type":"object"},{"properties":{"details":{"properties":{"reason":{"type":"string","enum":["STALE_MARKET_DATA","JIT_DATA_UNAVAILABLE","JIT_ACCOUNT_ELIGIBILITY_UNKNOWN","COLLATERAL_SWAP"]}},"required":["reason"],"type":"object"},"message":{"type":"string"},"code":{"type":"string","enum":["TRADING_CAPACITY_UNAVAILABLE"],"nullable":false}},"required":["details","message","code"],"type":"object"}]},"PrepareResponse":{"properties":{"traceId":{"type":"string"},"validationWarnings":{"items":{"$ref":"#/components/schemas/OrderValidationWarningResponse"},"type":"array"},"warnings":{"items":{"type":"string"},"type":"array"},"expiresAt":{"type":"number","format":"double"},"estimates":{"properties":{"tradingCapacity":{"$ref":"#/components/schemas/TradingCapacityResponse"},"fundingFeeUsd":{"type":"string"},"borrowingFeeUsd":{"type":"string"},"positionFeeUsd":{"type":"string"},"sizeDeltaUsd":{"type":"string"},"acceptablePrice":{"type":"string"},"executionFeeAmount":{"type":"string"},"swapPriceImpactDeltaUsd":{"type":"string"},"positionPriceImpactDeltaUsd":{"type":"string"}},"required":["fundingFeeUsd","borrowingFeeUsd","positionFeeUsd","sizeDeltaUsd","acceptablePrice","executionFeeAmount","swapPriceImpactDeltaUsd","positionPriceImpactDeltaUsd"],"type":"object"},"payload":{"$ref":"#/components/schemas/Record_string.any_"},"requestId":{"type":"string"},"mode":{"$ref":"#/components/schemas/TransactionMode"},"payloadType":{"type":"string","enum":["transaction","typed-data"]}},"required":["payload","requestId","mode","payloadType"],"type":"object"},"PrepareErrorCode":{"type":"string","enum":["INVALID_PARAMS","MARKET_NOT_FOUND","TOKEN_NOT_FOUND","NO_SWAP_PATH","POSITION_NOT_FOUND"]},"Record_string._message-string--value_63_-any__":{"properties":{},"additionalProperties":{"properties":{"value":{},"message":{"type":"string"}},"required":["message"],"type":"object"},"type":"object","description":"Construct a type with a set of properties K of type T"},"PrepareErrorResponse":{"anyOf":[{"properties":{"details":{"allOf":[{"$ref":"#/components/schemas/TradingCapacityResponse"},{"properties":{"requestedSizeUsd":{"type":"string"}},"required":["requestedSizeUsd"],"type":"object"}]},"code":{"type":"string","enum":["INSUFFICIENT_LIQUIDITY"],"nullable":false},"message":{"type":"string"}},"required":["details","code","message"],"type":"object"},{"properties":{"code":{"$ref":"#/components/schemas/PrepareErrorCode"},"message":{"type":"string"}},"required":["message"],"type":"object"},{"properties":{"message":{"$ref":"#/components/schemas/Record_string._message-string--value_63_-any__"}},"required":["message"],"type":"object"}]},"OrderKind":{"enum":["increase","decrease","swap"],"type":"string"},"SimpleOrderType":{"enum":["market","limit","stop-market","take-profit","stop-loss","twap"],"type":"string"},"PrepareRequest":{"properties":{"subaccountApproval":{"$ref":"#/components/schemas/Record_string.any_"},"subaccountAddress":{"type":"string"},"from":{"type":"string"},"mode":{"$ref":"#/components/schemas/TransactionMode"},"uiFeeReceiver":{"type":"string"},"referralCode":{"type":"string"},"autoCancel":{"type":"boolean"},"tpsl":{"items":{"properties":{"size":{"type":"string"},"triggerPrice":{"type":"string"},"type":{"type":"string","enum":["take-profit","stop-loss"]}},"required":["triggerPrice","type"],"type":"object"},"type":"array"},"twapConfig":{"properties":{"frequency":{"type":"number","format":"double"},"parts":{"type":"number","format":"double"},"duration":{"type":"number","format":"double"}},"required":["parts","duration"],"type":"object"},"gasPaymentToken":{"type":"string"},"manualSwapPath":{"items":{"type":"string"},"type":"array"},"keepLeverage":{"type":"boolean"},"receiveToken":{"type":"string"},"collateralToPay":{"properties":{"token":{"type":"string"},"amount":{"type":"string"}},"required":["token","amount"],"type":"object"},"skipExecutionFeePriorityFeeAllowance":{"type":"boolean"},"executionFeeBufferBps":{"type":"number","format":"double"},"acceptablePriceImpactBps":{"type":"string"},"slippage":{"type":"number","format":"double"},"collateralToken":{"type":"string"},"triggerPrice":{"type":"string"},"size":{"type":"string"},"orderType":{"$ref":"#/components/schemas/SimpleOrderType"},"direction":{"type":"string","enum":["long","short"]},"symbol":{"type":"string"},"kind":{"$ref":"#/components/schemas/OrderKind"}},"required":["mode","orderType","kind"],"type":"object"},"OrderTransactionStatus":{"enum":["prepared","relay_accepted","relay_pending","relay_submitted","relay_unknown","created","executed","cancelled","relay_failed","relay_reverted"],"type":"string"},"SubmitResponse":{"properties":{"traceId":{"type":"string"},"error":{"properties":{"message":{"type":"string"},"code":{"type":"string"}},"required":["message","code"],"type":"object"},"taskId":{"type":"string"},"txHash":{"type":"string"},"status":{"$ref":"#/components/schemas/OrderTransactionStatus"},"requestId":{"type":"string"}},"required":["status","requestId"],"type":"object"},"SubmitRequest":{"properties":{"from":{"type":"string"},"signature":{"type":"string"},"eip712Data":{"$ref":"#/components/schemas/Record_string.any_"},"requestId":{"type":"string"},"mode":{"$ref":"#/components/schemas/TransactionMode"}},"type":"object"},"StatusResponse":{"properties":{"traceId":{"type":"string"},"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"error":{"properties":{"message":{"type":"string"},"code":{"type":"string"}},"required":["message","code"],"type":"object"},"taskId":{"type":"string"},"cancellationReason":{"type":"string"},"orderKeys":{"items":{"type":"string"},"type":"array"},"executionTxnHash":{"type":"string"},"createdTxnHash":{"type":"string"},"txHash":{"type":"string"},"status":{"$ref":"#/components/schemas/OrderTransactionStatus"},"requestId":{"type":"string"}},"required":["updatedAt","createdAt","status","requestId"],"type":"object"},"StatusRequest":{"properties":{"requestId":{"type":"string"}},"required":["requestId"],"type":"object"},"EditPrepareRequest":{"properties":{"subaccountApproval":{"$ref":"#/components/schemas/Record_string.any_"},"subaccountAddress":{"type":"string"},"from":{"type":"string"},"mode":{"$ref":"#/components/schemas/TransactionMode"},"executionFeeTopUp":{"type":"string"},"newAutoCancel":{"type":"boolean"},"newAcceptablePrice":{"type":"string"},"newTriggerPrice":{"type":"string"},"newSize":{"type":"string"},"orderIds":{"items":{"type":"string"},"type":"array"}},"required":["from","mode","orderIds"],"type":"object"},"CancelPrepareRequest":{"properties":{"subaccountApproval":{"$ref":"#/components/schemas/Record_string.any_"},"subaccountAddress":{"type":"string"},"from":{"type":"string"},"mode":{"$ref":"#/components/schemas/TransactionMode"},"all":{"type":"boolean"},"orderIds":{"items":{"type":"string"},"type":"array"},"orderId":{"type":"string"}},"required":["from","mode"],"type":"object"},"CollateralOperation":{"type":"string","enum":["deposit","withdraw"]},"CollateralPrepareRequest":{"properties":{"subaccountApproval":{"$ref":"#/components/schemas/Record_string.any_"},"subaccountAddress":{"type":"string"},"from":{"type":"string"},"mode":{"$ref":"#/components/schemas/TransactionMode"},"uiFeeReceiver":{"type":"string"},"gasPaymentToken":{"type":"string"},"skipExecutionFeePriorityFeeAllowance":{"type":"boolean"},"executionFeeBufferBps":{"type":"number","format":"double"},"slippage":{"type":"number","format":"double"},"amount":{"type":"string"},"positionKey":{"type":"string"},"operation":{"$ref":"#/components/schemas/CollateralOperation"}},"required":["from","mode","amount","positionKey","operation"],"type":"object"},"SubaccountStatusResponse":{"properties":{"revocationCounter":{"type":"string"},"integrationId":{"type":"string","nullable":true},"multichainApprovalNonce":{"type":"string"},"approvalNonce":{"type":"string"},"expiresAt":{"type":"string"},"remainingActions":{"type":"string"},"currentActionsCount":{"type":"string"},"maxAllowedCount":{"type":"string"},"active":{"type":"boolean"}},"required":["revocationCounter","integrationId","multichainApprovalNonce","approvalNonce","expiresAt","remainingActions","currentActionsCount","maxAllowedCount","active"],"type":"object"},"SubaccountStatusRequest":{"properties":{"subaccountAddress":{"type":"string"},"account":{"type":"string"}},"required":["subaccountAddress","account"],"type":"object"},"Record_string._name-string--type-string_-Array_":{"properties":{},"additionalProperties":{"items":{"properties":{"type":{"type":"string"},"name":{"type":"string"}},"required":["type","name"],"type":"object"},"type":"array"},"type":"object","description":"Construct a type with a set of properties K of type T"},"ApprovalPrepareResponse":{"properties":{"revocationCounter":{"type":"string"},"nonce":{"type":"string"},"relayRouterAddress":{"type":"string"},"primaryType":{"type":"string"},"message":{"$ref":"#/components/schemas/Record_string.any_"},"types":{"$ref":"#/components/schemas/Record_string._name-string--type-string_-Array_"},"domain":{"properties":{"verifyingContract":{"type":"string"},"chainId":{"type":"number","format":"double"},"version":{"type":"string"},"name":{"type":"string"}},"required":["verifyingContract","chainId","version","name"],"type":"object"}},"required":["revocationCounter","nonce","relayRouterAddress","primaryType","message","types","domain"],"type":"object"},"ApprovalPrepareRequest":{"properties":{"signingNetwork":{"type":"string"},"maxAllowedCount":{"type":"string"},"expiresAt":{"type":"string"},"shouldAdd":{"type":"boolean"},"subaccountAddress":{"type":"string"},"account":{"type":"string"}},"required":["maxAllowedCount","expiresAt","shouldAdd","subaccountAddress","account"],"type":"object"},"CrossChainDepositPrepareResponse":{"properties":{"expiresAt":{"type":"number","format":"double"},"nativeFee":{"type":"string"},"composeGas":{"type":"string"},"payload":{"properties":{"value":{"type":"string"},"data":{"type":"string"},"to":{"type":"string"}},"required":["value","data","to"],"type":"object"},"payloadType":{"type":"string","enum":["transaction"],"nullable":false}},"required":["expiresAt","nativeFee","composeGas","payload","payloadType"],"type":"object"},"CrossChainDepositPrepareRequest":{"properties":{"innerData":{"type":"string","description":"Optional extra payload appended to the LayerZero compose message (hex)."},"nativeDropAmount":{"type":"string","description":"Optional native drop (gas) for the destination chain, in destination native decimals."},"nativeFee":{"type":"string","description":"Optional; when omitted, server quotes Stargate `nativeFee` on the source chain."},"composeGas":{"type":"string","description":"Optional client-supplied destination compose-gas hint; bypasses server quote."},"tokenKind":{"type":"string","enum":["trade","platform"],"description":"\"trade\" → `IStargate.sendToken` (default); \"platform\" → `IStargate.send`."},"isNativeOnSource":{"type":"boolean","description":"Whether the source-chain token is the chain's native gas asset (ETH/BNB/etc.) —\nStargate auto-wraps it to WETH/WBNB on the source side. Optional override;\notherwise resolved from the registry."},"destinationStargatePoolAddress":{"type":"string","description":"Optional override; otherwise resolved from the registry by symbol/token."},"sourceStargatePoolAddress":{"type":"string","description":"Optional override; otherwise resolved from the registry by symbol/token."},"tokenAddress":{"type":"string","description":"Token address on the settlement chain (alternative to `tokenSymbol`)."},"tokenSymbol":{"type":"string","description":"Token identifier. Provide one of:\n - `tokenSymbol` (e.g. \"USDC\" | \"USDT\" | \"ETH\"), or\n - `tokenAddress` on the settlement chain.\nStargate pool addresses and source-side `isNativeOnSource` are resolved server-side."},"amount":{"type":"string","description":"Amount in token-native decimals as a base-10 string."},"account":{"type":"string","description":"GMX account that will receive the deposit on the settlement chain."},"srcChainId":{"type":"number","format":"double","description":"Source chain id (where the user holds funds and signs the bridge tx)."}},"required":["amount","account","srcChainId"],"type":"object"},"Record_string.unknown_":{"properties":{},"additionalProperties":{},"type":"object","description":"Construct a type with a set of properties K of type T"},"GasPaymentParamsDto":{"properties":{"gasPaymentTokenAmount":{"type":"string"},"gasPaymentTokenAddress":{"type":"string"},"relayerFeeAmount":{"type":"string"},"relayerFeeTokenAddress":{"type":"string"}},"required":["gasPaymentTokenAmount","gasPaymentTokenAddress","relayerFeeAmount","relayerFeeTokenAddress"],"type":"object"},"CrossChainWithdrawPrepareResponse":{"properties":{"expiresAt":{"type":"number","format":"double"},"payload":{"properties":{"gasPaymentParams":{"$ref":"#/components/schemas/GasPaymentParamsDto"},"relayRouterAddress":{"type":"string"},"relayParams":{"$ref":"#/components/schemas/Record_string.unknown_"},"typedData":{"properties":{"message":{"$ref":"#/components/schemas/Record_string.unknown_"},"primaryType":{"type":"string","enum":["BridgeOut"],"nullable":false},"types":{"$ref":"#/components/schemas/Record_string._name-string--type-string_-Array_"},"domain":{"$ref":"#/components/schemas/Record_string.unknown_"}},"required":["message","primaryType","types","domain"],"type":"object"}},"required":["gasPaymentParams","relayRouterAddress","relayParams","typedData"],"type":"object"},"requestId":{"type":"string","description":"Server-generated id; pass back to /submit and use for /status polling."},"payloadType":{"type":"string","enum":["typed-data"],"nullable":false}},"required":["expiresAt","payload","requestId","payloadType"],"type":"object"},"BridgeOutParamsDto":{"properties":{"data":{"type":"string"},"provider":{"type":"string"},"minAmountOut":{"type":"string"},"amount":{"type":"string"},"token":{"type":"string"}},"required":["data","provider","minAmountOut","amount","token"],"type":"object"},"CrossChainWithdrawPrepareRequest":{"properties":{"gasPaymentToken":{"type":"string","description":"Optional ERC-20 token to pay relayer fee in. Defaults to chain's gas-payment token."},"bridgeOutParams":{"$ref":"#/components/schemas/BridgeOutParamsDto"},"account":{"type":"string"},"srcChainId":{"type":"number","format":"double"}},"required":["bridgeOutParams","account","srcChainId"],"type":"object"},"CrossChainWithdrawSubmitResponse":{"properties":{"error":{"properties":{"message":{"type":"string"},"code":{"type":"string"}},"required":["message","code"],"type":"object"},"taskId":{"type":"string"},"status":{"type":"string","enum":["relay_accepted","relay_failed"]},"requestId":{"type":"string"}},"required":["status","requestId"],"type":"object"},"CrossChainWithdrawSubmitRequest":{"properties":{"requestId":{"type":"string","description":"Echo back the requestId from /prepare to link prepare→submit→status."},"relayerFeeAmount":{"type":"string"},"relayerFeeTokenAddress":{"type":"string"},"relayParamsPayload":{"$ref":"#/components/schemas/Record_string.unknown_"},"bridgeOutParams":{"$ref":"#/components/schemas/BridgeOutParamsDto"},"signature":{"type":"string"},"account":{"type":"string"},"srcChainId":{"type":"number","format":"double"}},"required":["relayerFeeAmount","relayerFeeTokenAddress","relayParamsPayload","bridgeOutParams","signature","account","srcChainId"],"type":"object"},"GmxAccountStatusResponse":{"properties":{"updatedAt":{"type":"string"},"createdAt":{"type":"string"},"error":{"properties":{"message":{"type":"string"},"code":{"type":"string"}},"required":["message","code"],"type":"object"},"taskId":{"type":"string"},"txHash":{"type":"string"},"status":{"type":"string"},"requestId":{"type":"string"}},"required":["updatedAt","createdAt","status","requestId"],"type":"object"},"GmxAccountStatusRequest":{"properties":{"requestId":{"type":"string"}},"required":["requestId"],"type":"object"}},"securitySchemes":{}},"info":{"title":"@gmx-io/gmx-public-api","version":"1.0.0","license":{"name":"Copyright"},"contact":{}},"paths":{"/jit/liquidity_info":{"get":{"operationId":"GetLiquidityInfo","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JitLiquidityInfoPerSideResponse"}}}},"500":{"description":"Internal Server Error"}},"tags":["JIT"],"security":[],"parameters":[]}},"/orders/txns/prepare":{"post":{"operationId":"Prepare","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareErrorResponse"}}}},"429":{"description":"Too Many Requests"},"500":{"description":"Internal Server Error"}},"tags":["Order Transactions"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareRequest"}}}}}},"/orders/txns/submit":{"post":{"operationId":"Submit","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitResponse"}}}},"400":{"description":"Bad Request"},"429":{"description":"Too Many Requests"},"500":{"description":"Internal Server Error"},"503":{"description":"Relay Unavailable"}},"tags":["Order Transactions"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitRequest"}}}}}},"/orders/txns/status":{"post":{"operationId":"Status","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}},"400":{"description":"Bad Request"},"404":{"description":"Not Found"}},"tags":["Order Transactions"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusRequest"}}}}}},"/orders/txns/edit/prepare":{"post":{"operationId":"EditPrepare","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareResponse"}}}},"400":{"description":"Bad Request"},"500":{"description":"Internal Server Error"}},"tags":["Order Transactions"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditPrepareRequest"}}}}}},"/orders/txns/cancel/prepare":{"post":{"operationId":"CancelPrepare","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareResponse"}}}},"400":{"description":"Bad Request"},"500":{"description":"Internal Server Error"}},"tags":["Order Transactions"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelPrepareRequest"}}}}}},"/orders/txns/collateral/prepare":{"post":{"operationId":"CollateralPrepare","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareResponse"}}}},"400":{"description":"Bad Request"},"500":{"description":"Internal Server Error"}},"tags":["Order Transactions"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollateralPrepareRequest"}}}}}},"/subaccounts/status":{"post":{"operationId":"FetchStatus","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubaccountStatusResponse"}}}},"400":{"description":"Bad Request"}},"tags":["Subaccounts"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubaccountStatusRequest"}}}}}},"/subaccounts/approval/prepare":{"post":{"operationId":"PrepareApproval","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalPrepareResponse"}}}},"400":{"description":"Bad Request"}},"tags":["Subaccounts"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalPrepareRequest"}}}}}},"/gmx-account/deposit/cross-chain/prepare":{"post":{"operationId":"PrepareCrossChainDeposit","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrossChainDepositPrepareResponse"}}}},"400":{"description":"Bad Request"},"429":{"description":"Too Many Requests"},"500":{"description":"Internal Server Error"}},"tags":["GMX Account"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrossChainDepositPrepareRequest"}}}}}},"/gmx-account/withdraw/cross-chain/prepare":{"post":{"operationId":"PrepareCrossChainWithdraw","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrossChainWithdrawPrepareResponse"}}}},"400":{"description":"Bad Request"},"429":{"description":"Too Many Requests"},"500":{"description":"Internal Server Error"}},"tags":["GMX Account"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrossChainWithdrawPrepareRequest"}}}}}},"/gmx-account/withdraw/cross-chain/submit":{"post":{"operationId":"SubmitCrossChainWithdraw","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrossChainWithdrawSubmitResponse"}}}},"400":{"description":"Bad Request"},"429":{"description":"Too Many Requests"},"503":{"description":"Relay Unavailable"}},"tags":["GMX Account"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrossChainWithdrawSubmitRequest"}}}}}},"/gmx-account/withdraw/cross-chain/status":{"post":{"operationId":"StatusCrossChainWithdraw","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmxAccountStatusResponse"}}}},"400":{"description":"Bad Request"},"404":{"description":"Not Found"},"429":{"description":"Too Many Requests"}},"tags":["GMX Account"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmxAccountStatusRequest"}}}}}}},"servers":[{"url":"/v2"}]}