{"openapi":"3.1.0","info":{"title":"Anchored Trading Partner API","description":"Trading API for authenticated partners. API keys require chainId+productType scopes: read_only allows GET, writable allows GET plus POST/DELETE.","version":"1.0"},"servers":[{"url":"https://rwa-api.anchored.finance/rwa/trading","description":"Anchored MainnetEnv"}],"paths":{"/api/v1/stock/withdrawals/tx":{"post":{"tags":["Trading Stock"],"summary":"Record channel-submitted stock withdrawal transaction","operationId":"recordWithdrawalTx","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingOrderTxReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingChannelOrderTx"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/stock/withdrawals/send":{"post":{"tags":["Trading Stock"],"summary":"Send stock withdrawal transaction through One Click","operationId":"sendWithdrawal","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingStockWithdrawSendReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingChannelOrderTx"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/stock/withdrawals/calldata":{"post":{"tags":["Trading Stock"],"summary":"Build stock withdraw calldata","operationId":"buildWithdrawCalldata","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingStockWithdrawCalldataReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingOrderCalldataRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/stock/deposits/tx":{"post":{"tags":["Trading Stock"],"summary":"Record channel-submitted stock deposit transaction","operationId":"recordDepositTx","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingOrderTxReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingChannelOrderTx"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/stock/deposits/send":{"post":{"tags":["Trading Stock"],"summary":"Send stock deposit transaction through One Click","operationId":"sendDeposit","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingStockDepositSendReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingChannelOrderTx"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/stock/deposits/calldata":{"post":{"tags":["Trading Stock"],"summary":"Build stock deposit calldata","operationId":"buildDepositCalldata","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingStockDepositCalldataReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingOrderCalldataRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/orders/with-deposit/send":{"post":{"tags":["Trading Orders"],"summary":"Send place order with deposit transaction through One Click","description":"Note: ERC20 approve must be completed before calling this endpoint.","operationId":"sendPlaceOrderWithDeposit","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingPlaceOrderWithDepositSendReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingChannelOrderTx"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/orders/with-deposit/calldata":{"post":{"tags":["Trading Orders"],"summary":"Build place order with deposit calldata","operationId":"placeOrderWithDeposit","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingPlaceOrderWithDepositCalldataReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingOrderCalldataRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/orders/tx":{"post":{"tags":["Trading Orders"],"summary":"Record channel-submitted order transaction","operationId":"recordTx","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingOrderTxReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingChannelOrderTx"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/orders/send":{"post":{"tags":["Trading Orders"],"summary":"Send place order transaction through One Click","operationId":"sendPlaceOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingPlaceOrderSendReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingChannelOrderTx"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/orders/calldata":{"post":{"tags":["Trading Orders"],"summary":"Build place order calldata","operationId":"placeOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingPlaceOrderCalldataReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingOrderCalldataRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/deferred-sell/repay/send":{"post":{"tags":["Trading Deferred Sell"],"summary":"Send repay deferred-sell debt transaction through One Click","operationId":"sendRepay","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingDeferredRepaySendReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingChannelOrderTx"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/deferred-sell/repay/calldata":{"post":{"tags":["Trading Deferred Sell"],"summary":"Build repay deferred-sell debt calldata","operationId":"buildRepayCalldata","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingDeferredRepayCalldataReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingOrderCalldataRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/cash/withdrawals/tx":{"post":{"tags":["Trading Cash"],"summary":"Record channel-submitted withdrawal transaction","operationId":"recordWithdrawalTx_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingOrderTxReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingChannelOrderTx"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/cash/withdrawals/send":{"post":{"tags":["Trading Cash"],"summary":"Send withdrawal transaction through One Click","operationId":"sendWithdrawal_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingCashWithdrawSendReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingChannelOrderTx"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/cash/withdrawals/calldata":{"post":{"tags":["Trading Cash"],"summary":"Build withdraw calldata","operationId":"buildWithdrawCalldata_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingCashWithdrawCalldataReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingOrderCalldataRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/cash/deposits/tx":{"post":{"tags":["Trading Cash"],"summary":"Record channel-submitted deposit transaction","operationId":"recordDepositTx_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingOrderTxReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingChannelOrderTx"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/cash/deposits/send":{"post":{"tags":["Trading Cash"],"summary":"Send deposit transaction through One Click","operationId":"sendDeposit_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingCashDepositSendReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingChannelOrderTx"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/cash/deposits/calldata":{"post":{"tags":["Trading Cash"],"summary":"Build deposit calldata","operationId":"buildDepositCalldata_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingCashDepositCalldataReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingOrderCalldataRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/1ct/prepare":{"post":{"tags":["Trading One Click"],"summary":"Build One Click enable sign payload","operationId":"prepare","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingOneClickPrepareReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingOneClickPrepareRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/1ct/enable":{"post":{"tags":["Trading One Click"],"summary":"Enable One Click","operationId":"enable","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradingOneClickEnableReqDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingOneClickStatusRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/1ct/disable":{"post":{"tags":["Trading One Click"],"summary":"Disable One Click","operationId":"disable","responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingOneClickStatusRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/users/{userId}":{"get":{"tags":["Trading Account"],"summary":"Get user info","operationId":"user","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingUserRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/users/{userId}/positions":{"get":{"tags":["Trading Account"],"summary":"Query positions","operationId":"positions","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}},{"name":"spenderAddress","in":"query","required":false,"schema":{"type":"string","default":"0x0000000000000000000000000000000000000000"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseListTokenBalance"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/users/{userId}/balance":{"get":{"tags":["Trading Account"],"summary":"Get account balance","operationId":"balance","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}},{"name":"spenderAddress","in":"query","required":false,"schema":{"type":"string","default":"0x0000000000000000000000000000000000000000"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseAccountPortfolioRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/underlying/{symbol}/price":{"get":{"tags":["Trading Market Data"],"summary":"Get underlying stock price","operationId":"underlyingPrice","parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseMarketTickerBasicInfoDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/symbols":{"get":{"tags":["Trading Market Data"],"summary":"Get tradable symbol list","operationId":"symbols","responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseListMarketTickerOnChainInfoDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/stock/withdrawals":{"get":{"tags":["Trading Stock"],"summary":"List channel-submitted stock withdrawals","operationId":"listWithdrawals","parameters":[{"name":"page","in":"query","description":"page","required":false,"schema":{"type":"integer","format":"int32","default":1},"example":1},{"name":"limit","in":"query","description":"limit","required":false,"schema":{"type":"integer","format":"int32","default":10},"example":10}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTableDataTradingStockOperationDetailRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/stock/withdrawals/{operationId}":{"get":{"tags":["Trading Stock"],"summary":"Query stock withdrawal status and details","operationId":"getWithdrawal","parameters":[{"name":"operationId","in":"path","description":"Stock operation ID from indexer_exchange_stock_deposit_withdraw.id (decimal Long)","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingStockOperationDetailRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/stock/deposits":{"get":{"tags":["Trading Stock"],"summary":"List channel-submitted stock deposits","operationId":"listDeposits","parameters":[{"name":"page","in":"query","description":"page","required":false,"schema":{"type":"integer","format":"int32","default":1},"example":1},{"name":"limit","in":"query","description":"limit","required":false,"schema":{"type":"integer","format":"int32","default":10},"example":10}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTableDataTradingStockOperationDetailRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/stock/deposits/{operationId}":{"get":{"tags":["Trading Stock"],"summary":"Query stock deposit status and details","operationId":"getDeposit","parameters":[{"name":"operationId","in":"path","description":"Stock operation ID from indexer_exchange_stock_deposit_withdraw.id (decimal Long)","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingStockOperationDetailRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/prices/{symbol}":{"get":{"tags":["Trading Market Data"],"summary":"Get real-time token price","operationId":"price","parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseMarketTickerInfoRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/prices/{symbol}/history":{"get":{"tags":["Trading Market Data"],"summary":"Get historical price bars","operationId":"history","parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string"}},{"name":"startTime","in":"query","description":"start time, unix seconds","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"query","description":"end time, unix seconds","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"interval","in":"query","description":"interval: 1m,3m,5m,15m,1h,1d,1w","required":true,"schema":{"type":"string","enum":["1Min","3Min","5Min","15Min","1H","1D","1W"]}},{"name":"adjustment","in":"query","required":false,"schema":{"type":"string","default":"all","enum":["raw","split","dividend","spin-off","all"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":100}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseListHistoricalBarRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/orders":{"get":{"tags":["Trading Orders"],"summary":"List channel-submitted orders","operationId":"listOrders","parameters":[{"name":"page","in":"query","description":"page","required":false,"schema":{"type":"integer","format":"int32","default":1},"example":1},{"name":"limit","in":"query","description":"limit","required":false,"schema":{"type":"integer","format":"int32","default":10},"example":10}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTableDataTradingOrderDetailRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/orders/{orderId}":{"get":{"tags":["Trading Orders"],"summary":"Query order status and fill details","operationId":"getOrder","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingOrderDetailRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/orders/tx/{txHash}":{"get":{"tags":["Trading Orders"],"summary":"Query order transaction mapping by txHash","operationId":"getOrderTx","parameters":[{"name":"txHash","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingChannelOrderTx"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/deferred-sell/debts":{"get":{"tags":["Trading Deferred Sell"],"summary":"List the authenticated user's outstanding deferred-sell debts","operationId":"listDebts","parameters":[{"name":"stockAddress","in":"query","description":"Optional stock token contract address to filter a single stock","required":false,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseListTradingDeferredDebtRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/corporate-action":{"get":{"tags":["Trading Market Data"],"summary":"Get stock corporate-action list","operationId":"corporate","parameters":[{"name":"symbol","in":"query","description":"symbol,must be stock symbol.not include a","required":true,"schema":{"type":"string"},"example":"AAPL"},{"name":"startTime","in":"query","description":"startTime/sec","required":false,"schema":{"type":"integer","format":"int64"},"example":1744442720},{"name":"endTime","in":"query","description":"endTime/sec","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"types","in":"query","description":"types","required":false,"schema":{"type":"array","items":{"type":"string","enum":["reverse_splits","forward_splits","unit_splits","stock_dividends","cash_dividends"]}}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseListBrokerCorporateAction"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/config":{"get":{"tags":["Trading Market Data"],"summary":"get market config","description":"get market config","operationId":"config","responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseOnChainConfigRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/cash/withdrawals":{"get":{"tags":["Trading Cash"],"summary":"List channel-submitted withdrawals","operationId":"listWithdrawals_1","parameters":[{"name":"page","in":"query","description":"page","required":false,"schema":{"type":"integer","format":"int32","default":1},"example":1},{"name":"limit","in":"query","description":"limit","required":false,"schema":{"type":"integer","format":"int32","default":10},"example":10}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTableDataTradingCashOperationDetailRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/cash/withdrawals/{operationId}":{"get":{"tags":["Trading Cash"],"summary":"Query withdrawal status and details","operationId":"getWithdrawal_1","parameters":[{"name":"operationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingCashOperationDetailRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/cash/deposits":{"get":{"tags":["Trading Cash"],"summary":"List channel-submitted deposits","operationId":"listDeposits_1","parameters":[{"name":"page","in":"query","description":"page","required":false,"schema":{"type":"integer","format":"int32","default":1},"example":1},{"name":"limit","in":"query","description":"limit","required":false,"schema":{"type":"integer","format":"int32","default":10},"example":10}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTableDataTradingCashOperationDetailRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/cash/deposits/{operationId}":{"get":{"tags":["Trading Cash"],"summary":"Query deposit status and details","operationId":"getDeposit_1","parameters":[{"name":"operationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingCashOperationDetailRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/1ct/status":{"get":{"tags":["Trading One Click"],"summary":"Get One Click status","operationId":"status","responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingOneClickStatusRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/orders/{orderId}/send":{"delete":{"tags":["Trading Orders"],"summary":"Send cancel order transaction through One Click","operationId":"sendCancelOrder","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}},{"name":"deadline","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"gasLimit","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseOneClickTradeTxResDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}},"/api/v1/orders/{orderId}/calldata":{"delete":{"tags":["Trading Orders"],"summary":"Build cancel order calldata","operationId":"cancelOrder","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}},{"name":"deadline","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseVoid"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BaseResponseTradingOrderCalldataRespDto"}}}}},"security":[{"TradingApiKey":[]},{"TradingApiNonce":[]},{"TradingApiTimestamp":[]},{"TradingApiSignature":[]},{"ApiChainId":[]},{"ApiProductType":[]}]}}},"components":{"schemas":{"BaseResponseVoid":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"TradingOrderTxReqDto":{"type":"object","properties":{"txHash":{"type":"string","description":"Transaction hash submitted by the authenticated channel","minLength":1}},"required":["txHash"]},"BaseResponseTradingChannelOrderTx":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/TradingChannelOrderTx","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"TradingChannelOrderTx":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"chainId":{"type":"integer","format":"int64","enum":[1,143,8453,42161,4663,56,11155111,10143,84532,421614,46630]},"productType":{"type":"string","enum":["FUND","Common","MondayTrade","Anchored","Synfutures"]},"operationType":{"type":"string","enum":["trade","deposit","withdraw","stock_deposit","stock_withdraw","deferred_sell","deferred_repay"]},"orderId":{"type":"string"},"txHash":{"type":"string"},"status":{"type":"string","enum":["init","pending","failed","new","partially_filled","filled","done_for_day","canceled","expired","replaced","pending_cancel","pending_replace","accepted","pending_new","accepted_for_bidding","stopped","rejected","suspended","calculated"]},"createAt":{"type":"string","format":"date-time"},"updateAt":{"type":"string","format":"date-time"}}},"TradingStockWithdrawSendReqDto":{"type":"object","properties":{"tokenAddress":{"type":"string","description":"Stock token contract address","minLength":1},"tokenAmount":{"type":"number","description":"Human-readable stock token amount"},"gasLimit":{"type":"integer","format":"int64","description":"Optional gas limit. When empty or zero, service estimates gas with buffer."}},"required":["tokenAddress","tokenAmount"]},"TradingStockWithdrawCalldataReqDto":{"type":"object","properties":{"userAddress":{"type":"string","description":"User wallet address","minLength":1},"tokenAddress":{"type":"string","description":"Stock token contract address","minLength":1},"tokenAmount":{"type":"number","description":"Human-readable stock token amount"}},"required":["tokenAddress","tokenAmount","userAddress"]},"BaseResponseTradingOrderCalldataRespDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/TradingOrderCalldataRespDto","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"TradingOrderCalldataRespDto":{"type":"object","properties":{"chainId":{"type":"integer","format":"int64","description":"Chain id"},"productType":{"type":"string","description":"Product type","enum":["FUND","Common","MondayTrade","Anchored","Synfutures"]},"toAddress":{"type":"string","description":"Router contract address to send the transaction to"},"value":{"type":"string","description":"Native token value to send with the transaction"},"callData":{"type":"string","description":"Encoded transaction calldata"},"method":{"type":"string","description":"Contract method name"}}},"TradingStockDepositSendReqDto":{"type":"object","properties":{"tokenAddress":{"type":"string","description":"Stock token contract address","minLength":1},"tokenAmount":{"type":"number","description":"Human-readable stock token amount"},"gasLimit":{"type":"integer","format":"int64","description":"Optional gas limit. When empty or zero, service estimates gas with buffer."}},"required":["tokenAddress","tokenAmount"]},"TradingStockDepositCalldataReqDto":{"type":"object","properties":{"userAddress":{"type":"string","description":"User wallet address","minLength":1},"tokenAddress":{"type":"string","description":"Stock token contract address","minLength":1},"tokenAmount":{"type":"number","description":"Human-readable stock token amount"}},"required":["tokenAddress","tokenAmount","userAddress"]},"TradingPlaceOrderWithDepositSendReqDto":{"type":"object","properties":{"stockAddress":{"type":"string","description":"Stock token contract address","minLength":1},"depositTokenAddress":{"type":"string","description":"Deposit token contract address. Required for buy orders."},"depositAmount":{"type":"number","description":"Human-readable deposit token amount"},"side":{"type":"string","description":"Order side","enum":["Buy","Sell"]},"type":{"type":"string","description":"Order type","enum":["Limit","Market"]},"quantity":{"type":"number","description":"Quantity. Required for limit orders and market sell orders."},"notional":{"type":"number","description":"Notional amount. Required for market buy orders."},"price":{"type":"number","description":"Limit price. Required for limit orders."},"timeInForce":{"type":"string","description":"Time in force. Required for limit orders.","enum":["DAY","GTC","OPG","IOC","FOK","GTX","GTD","CLS"]},"deadline":{"type":"integer","format":"int64","description":"Unix seconds transaction deadline"},"gasLimit":{"type":"integer","format":"int64","description":"Optional gas limit. When empty or zero, service estimates gas with buffer."}},"required":["deadline","depositAmount","side","stockAddress","type"]},"TradingPlaceOrderWithDepositCalldataReqDto":{"type":"object","properties":{"stockAddress":{"type":"string","description":"Stock token contract address","minLength":1},"depositTokenAddress":{"type":"string","description":"Deposit token contract address. Required for buy orders."},"depositAmount":{"type":"number","description":"Human-readable deposit token amount"},"side":{"type":"string","description":"Order side","enum":["Buy","Sell"]},"type":{"type":"string","description":"Order type","enum":["Limit","Market"]},"quantity":{"type":"number","description":"Quantity. Required for limit orders and market sell orders."},"notional":{"type":"number","description":"Notional amount. Required for market buy orders."},"price":{"type":"number","description":"Limit price. Required for limit orders."},"timeInForce":{"type":"string","description":"Time in force. Required for limit orders.","enum":["DAY","GTC","OPG","IOC","FOK","GTX","GTD","CLS"]},"deadline":{"type":"integer","format":"int64","description":"Unix seconds transaction deadline"}},"required":["deadline","depositAmount","side","stockAddress","type"]},"TradingPlaceOrderSendReqDto":{"type":"object","properties":{"stockAddress":{"type":"string","description":"Stock token contract address","minLength":1},"side":{"type":"string","description":"Order side","enum":["Buy","Sell"]},"type":{"type":"string","description":"Order type","enum":["Limit","Market"]},"quantity":{"type":"number","description":"Quantity. Required for limit orders and market sell orders."},"notional":{"type":"number","description":"Notional amount. Required for market buy orders."},"price":{"type":"number","description":"Limit price. Required for limit orders."},"timeInForce":{"type":"string","description":"Time in force. Required for limit orders.","enum":["DAY","GTC","OPG","IOC","FOK","GTX","GTD","CLS"]},"deadline":{"type":"integer","format":"int64","description":"Unix seconds transaction deadline"},"gasLimit":{"type":"integer","format":"int64","description":"Optional gas limit. When empty or zero, service estimates gas with buffer."},"deferred":{"type":"boolean","description":"Deferred sell (sell-before-holding, debt-creating). Only valid with side=Sell; requires the address to be whitelisted. Defaults to false."}},"required":["deadline","side","stockAddress","type"]},"TradingPlaceOrderCalldataReqDto":{"type":"object","properties":{"stockAddress":{"type":"string","description":"Stock token contract address","minLength":1},"side":{"type":"string","description":"Order side","enum":["Buy","Sell"]},"type":{"type":"string","description":"Order type","enum":["Limit","Market"]},"quantity":{"type":"number","description":"Quantity. Required for limit orders and market sell orders."},"notional":{"type":"number","description":"Notional amount. Required for market buy orders."},"price":{"type":"number","description":"Limit price. Required for limit orders."},"timeInForce":{"type":"string","description":"Time in force. Required for limit orders. Only DAY is supported for now.","enum":["DAY","GTC","OPG","IOC","FOK","GTX","GTD","CLS"]},"deadline":{"type":"integer","format":"int64","description":"Unix seconds transaction deadline"},"deferred":{"type":"boolean","description":"Deferred sell (sell-before-holding, debt-creating). Only valid with side=Sell; requires the address to be whitelisted. Defaults to false."}},"required":["deadline","side","stockAddress","type"]},"TradingDeferredRepaySendReqDto":{"type":"object","properties":{"stockAddress":{"type":"string","description":"Stock token contract address whose deferred-sell debt is being repaid","minLength":1},"amount":{"type":"number","description":"Human-readable stock amount to repay against the outstanding deferred-sell debt"},"gasLimit":{"type":"integer","format":"int64","description":"Optional gas limit. When empty or zero, service estimates gas with buffer."}},"required":["amount","stockAddress"]},"TradingDeferredRepayCalldataReqDto":{"type":"object","properties":{"stockAddress":{"type":"string","description":"Stock token contract address whose deferred-sell debt is being repaid","minLength":1},"amount":{"type":"number","description":"Human-readable stock amount to repay against the outstanding deferred-sell debt"}},"required":["amount","stockAddress"]},"TradingCashWithdrawSendReqDto":{"type":"object","properties":{"tokenAddress":{"type":"string","description":"Cash token contract address","minLength":1},"creditAmount":{"type":"number","description":"Human-readable credit amount"},"gasLimit":{"type":"integer","format":"int64","description":"Optional gas limit. When empty or zero, service estimates gas with buffer."}},"required":["creditAmount","tokenAddress"]},"TradingCashWithdrawCalldataReqDto":{"type":"object","properties":{"userAddress":{"type":"string","description":"User wallet address","minLength":1},"tokenAddress":{"type":"string","description":"Cash token contract address","minLength":1},"creditAmount":{"type":"number","description":"Human-readable credit amount"}},"required":["creditAmount","tokenAddress","userAddress"]},"TradingCashDepositSendReqDto":{"type":"object","properties":{"tokenAddress":{"type":"string","description":"Cash token contract address","minLength":1},"tokenAmount":{"type":"number","description":"Human-readable token amount"},"gasLimit":{"type":"integer","format":"int64","description":"Optional gas limit. When empty or zero, service estimates gas with buffer."}},"required":["tokenAddress","tokenAmount"]},"TradingCashDepositCalldataReqDto":{"type":"object","properties":{"userAddress":{"type":"string","description":"User wallet address","minLength":1},"tokenAddress":{"type":"string","description":"Cash token contract address","minLength":1},"tokenAmount":{"type":"number","description":"Human-readable token amount"}},"required":["tokenAddress","tokenAmount","userAddress"]},"TradingOneClickPrepareReqDto":{"type":"object","properties":{"deadline":{"type":"integer","format":"int64","description":"Unix seconds signature deadline"}},"required":["deadline"]},"BaseResponseTradingOneClickPrepareRespDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/TradingOneClickPrepareRespDto","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"TradingOneClickPrepareRespDto":{"type":"object","properties":{"delegatee":{"type":"string","description":"One Click delegate mapped wallet"},"signPayload":{"type":"object","additionalProperties":{},"description":"EIP-712 typed data payload"},"nonce":{"type":"integer","format":"int64","description":"Delegate nonce"},"deadline":{"type":"integer","format":"int64","description":"Unix seconds signature deadline"}}},"TradingOneClickEnableReqDto":{"type":"object","properties":{"signature":{"type":"string","description":"EIP-712 delegate signature, 65 bytes hex","minLength":1},"deadline":{"type":"integer","format":"int64","description":"Unix seconds signature deadline"}},"required":["deadline","signature"]},"BaseResponseTradingOneClickStatusRespDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/TradingOneClickStatusRespDto","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"TradingOneClickStatusRespDto":{"type":"object","properties":{"status":{"type":"string","description":"One Click status returned by tx-service"},"delegatee":{"type":"string","description":"One Click delegate mapped wallet"}}},"BaseResponseTradingUserRespDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/TradingUserRespDto","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"TradingUserRespDto":{"type":"object","properties":{"userId":{"type":"string","description":"Partner user id. In v1 this is the wallet address."},"userAddress":{"type":"string","description":"Wallet address"}}},"BaseResponseListTokenBalance":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"type":"array","description":"if code is 200,this is data","items":{"$ref":"#/components/schemas/TokenBalance"}},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"TokenBalance":{"type":"object","properties":{"address":{"type":"string","description":"token address"},"name":{"type":"string","description":"token name"},"symbol":{"type":"string","description":"token symbol"},"stockSymbol":{"type":"string","description":"stock symbol, which is only applicable for stock tokens"},"isStock":{"type":"boolean","description":"whether the token is a stock token"},"decimals":{"type":"integer","format":"int64","description":"token decimals"},"price":{"type":"number","description":"token price in USD, which is only applicable for stock tokens"},"walletBalance":{"type":"string","description":"wallet balance of the token"},"walletAllowance":{"type":"string","description":"wallet allowance of the token, which is the amount that the account has approved to the exchange"},"exchangeBalance":{"type":"string","description":"exchange balance of the token, which is the amount that the account has deposited to the exchange"},"logoUrl":{"type":"string","description":"logo url of the token"}}},"AccountPortfolioRespDto":{"type":"object","properties":{"chainId":{"type":"integer","format":"int64","description":"chain id of the account","enum":[1,143,8453,42161,4663,56,11155111,10143,84532,421614,46630]},"productType":{"type":"string","description":"product type of the account","enum":["FUND","Common","MondayTrade","Anchored","Synfutures"]},"address":{"type":"string","description":"address of the account"},"tokenBalances":{"type":"array","description":"token balances of the account, which includes wallet balance, wallet allowance and exchange balance","items":{"$ref":"#/components/schemas/TokenBalance"}},"musdBalance":{"type":"string"}}},"BaseResponseAccountPortfolioRespDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/AccountPortfolioRespDto","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"BaseResponseMarketTickerBasicInfoDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/MarketTickerBasicInfoDto","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"MarketQuoteRespDto":{"type":"object","description":"Latest NBBO quote","properties":{"timestamp":{"type":"integer","format":"int64","description":"timestamp (unix seconds)"},"bidPrice":{"type":"number","description":"bid price"},"bidSize":{"type":"number","description":"bid size"},"askPrice":{"type":"number","description":"ask price"},"askSize":{"type":"number","description":"ask size"}}},"MarketSessionRespDto":{"type":"object","description":"US equity session + session-scoped trade price (per Go MarketSession)","properties":{"type":{"type":"string","description":"regular | overnight | pre-market | after-hours | closed"},"name":{"type":"string","description":"Human-readable session label"},"feed":{"type":"string","description":"Alpaca latest-trades feed key, e.g. iex, delayed_sip, overnight"},"startTime":{"type":"integer","format":"int64","description":"Session start (unix seconds, ET-based wall clock)"},"endTime":{"type":"integer","format":"int64","description":"Session end (unix seconds, ET-based wall clock)"},"active":{"type":"boolean"},"price":{"type":"number","description":"Last trade price for this session's feed"},"change":{"type":"number","description":"Session price minus reference close (see Go sessionInfo.change)"},"changePercent":{"type":"number","description":"change / reference close, truncated like Go"},"priceTime":{"type":"integer","format":"int64","description":"Unix seconds for session trade timestamp"},"delayed":{"type":"boolean","description":"Whether the session price is delayed (15-min) rather than real-time"},"priceSource":{"type":"string","description":"Price source tier: PRIMARY (real-time) or SECONDARY (fallback)"}}},"MarketTickerBasicInfoDto":{"type":"object","description":"Chain-independent market ticker basic info","properties":{"symbol":{"type":"string","description":"Stock symbol, e.g. AAPL"},"contractAddress":{"type":"string","description":"Contract address, e.g. 0x1234567890123456789012345678901234567890"},"contractSymbol":{"type":"string","description":"Contract symbol, e.g. AAPL"},"onChainDecimals":{"type":"integer","format":"int64","description":"On-chain decimals, e.g. 18"},"name":{"type":"string","description":"Full company name"},"exchange":{"type":"string","description":"Listing exchange, e.g. NASDAQ"},"status":{"type":"string","description":"Asset status, e.g. active","enum":["active","inactive"]},"about":{"type":"string","description":"Company description / about text"},"logoUrl":{"type":"string","description":"Logo image URL"},"pdfUrl":{"type":"string","description":"Prospectus / PDF URL"},"tags":{"type":"array","description":"Stock tags","items":{"type":"string"}},"sectors":{"type":"array","description":"Stock sectors","items":{"type":"string"}},"price":{"type":"number","description":"Latest price"},"change24H":{"type":"number","description":"Price change over the last 24 h"},"change24HPercent":{"type":"number","description":"Price change percentage over the last 24 h"},"delayed":{"type":"boolean","description":"Whether the price is delayed (15-min) rather than real-time"},"priceSource":{"type":"string","description":"Price source tier: PRIMARY (real-time) or SECONDARY (fallback). Not the same as statistics.priceSource, which is the data provider (pyth / alpaca)","enum":["PRIMARY","SECONDARY"]},"volume24H":{"type":"integer","format":"int64","description":"Trading volume over the last 24 h"},"open24H":{"type":"number","description":"Opening price of the current daily bar"},"close24H":{"type":"number","description":"Closing price of the previous daily bar (or current close during regular session)"},"high24H":{"type":"number","description":"Intraday high"},"low24H":{"type":"number","description":"Intraday low"},"tradable":{"type":"boolean","description":"Whether the asset is tradable"},"fractionable":{"type":"boolean","description":"Whether the asset supports fractional shares"},"overnightTradable":{"type":"boolean","description":"Whether the asset is tradable during overnight sessions"},"fractionalEhEnabled":{"type":"boolean","description":"Whether fractional extended-hours trading is enabled"},"marketCap":{"type":"number","deprecated":true,"description":"Market cap from FMP profile. Deprecated: use statistics.marketCap"},"lastDividend":{"type":"number","description":"Last dividend per share (from FMP profile)"},"dividendYield":{"type":"number","deprecated":true,"description":"Dividend yield ≈ lastDividend / price (FMP). Deprecated: use statistics.dividendYield"},"averageVolume":{"type":"number","description":"Average daily volume (from FMP profile)"},"currentSession":{"$ref":"#/components/schemas/MarketSessionRespDto","description":"Current (or last ended) US equity session + session-scoped price"},"tradingDay":{"$ref":"#/components/schemas/MarketTradingDayDto","description":"All trading sessions of the current (or next) trading day of this stock's exchange; same calendar and refresh as currentSession"},"quote":{"$ref":"#/components/schemas/MarketQuoteRespDto","description":"Latest bid/ask quote; null when not available"},"statistics":{"$ref":"#/components/schemas/StockStatisticsDto","description":"Statistics computed in-house from SEC filings and prices (52-week range, market cap, EPS, P/E, P/S, P/B, dividend yield, EV, EV/EBITDA, ROE, ROA, FCF, D/E), refreshed about every minute; null when not available yet. Independent of marketCap / dividendYield above, which come from FMP."},"lastUpdateTimestamp":{"type":"integer","format":"int64","description":"Unix seconds when this cache entry was last updated"},"isActive":{"type":"boolean","default":false}}},"MarketTradingDayDto":{"type":"object","description":"All trading sessions of the current trading day, or of the next one when the market is closed","properties":{"date":{"type":"string","description":"Trading date in America/New_York (yyyy-MM-dd)","example":"2026-10-26"},"sessions":{"type":"array","description":"Sessions in time order. The overnight session starts at 20:00 ET on the previous calendar day. A session missing from the exchange calendar (e.g. after-hours on an early-close day) is omitted. No session is active while the market is closed (weekend, holiday, after the last session).","items":{"$ref":"#/components/schemas/MarketTradingSessionDto"}},"lastUpdateTimestamp":{"type":"integer","format":"int64","description":"Unix seconds when this was computed; active flags are as of this time"}}},"MarketTradingSessionDto":{"type":"object","description":"One US equity trading session of a trading day","properties":{"type":{"type":"string","description":"Session type, same values as currentSession.type","enum":["overnight","pre-market","regular","after-hours"]},"startTime":{"type":"integer","format":"int64","description":"Session start, unix seconds (inclusive)"},"endTime":{"type":"integer","format":"int64","description":"Session end, unix seconds (exclusive)"},"active":{"type":"boolean","description":"Whether the session was in progress when the cache was refreshed (see lastUpdateTimestamp)"}}},"StockStatisticsDto":{"type":"object","description":"Stock statistics computed in-house from SEC filings and prices. A metric that cannot be computed is null and should be hidden. Ratios such as dividend yield, ROE and ROA are fractions (0.15 = 15%).","properties":{"price":{"type":"number","description":"Price used for the price-dependent metrics","example":347.725},"priceTime":{"type":"integer","format":"int64","description":"Unix seconds of the 1-minute bar the price comes from"},"priceSource":{"type":"string","description":"Data provider of the price these statistics were computed with. Not the same as basicInfo.priceSource, which is the price tier (PRIMARY / SECONDARY)","enum":["pyth","alpaca"],"example":"pyth"},"high52w":{"type":"number","description":"Highest regular-session price over the last 252 trading days, split-adjusted"},"low52w":{"type":"number","description":"Lowest regular-session price over the last 252 trading days, split-adjusted"},"high52wDate":{"type":"string","description":"Trading date of the 52-week high (yyyy-MM-dd)","example":"2026-08-12"},"low52wDate":{"type":"string","description":"Trading date of the 52-week low (yyyy-MM-dd)","example":"2026-04-07"},"marketCap":{"type":"number","description":"Market cap in USD: price x shares outstanding"},"epsTtm":{"type":"number","description":"Diluted EPS, sum of the last 4 reported quarters"},"peTtm":{"type":"number","description":"Price / EPS (TTM); null when EPS <= 0"},"psTtm":{"type":"number","description":"Market cap / revenue (TTM); null when revenue <= 0"},"pb":{"type":"number","description":"Market cap / latest shareholders' equity; null when equity <= 0"},"dividendTtm":{"type":"number","description":"Cash dividends per share with ex-dates in the past 365 days, split-adjusted; 0 for non-payers"},"dividendYieldTtm":{"type":"number","description":"Dividend (TTM) / price as a fraction (0.0045 = 0.45%); 0 for non-payers"},"ev":{"type":"number","description":"Enterprise value in USD: market cap + total debt - cash and short-term investments"},"evToEbitda":{"type":"number","description":"EV / EBITDA (TTM); null when EBITDA <= 0"},"roe":{"type":"number","description":"Net income (TTM) / average shareholders' equity, as a fraction"},"roa":{"type":"number","description":"Net income (TTM) / average total assets, as a fraction"},"fcfTtm":{"type":"number","description":"Free cash flow (TTM) in USD: operating cash flow - capital expenditures"},"debtToEquity":{"type":"number","description":"Total debt / shareholders' equity; null when equity <= 0"},"fiscalPeriodEnd":{"type":"string","description":"Last fiscal quarter end covered by the financial metrics (yyyy-MM-dd)","example":"2026-06-27"},"lastUpdateTimestamp":{"type":"integer","format":"int64","description":"Unix seconds when the statistics were computed"}}},"BaseResponseListMarketTickerOnChainInfoDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"type":"array","description":"if code is 200,this is data","items":{"$ref":"#/components/schemas/MarketTickerOnChainInfoDto"}},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"MarketTickerOnChainInfoDto":{"type":"object","description":"Chain+productType-dependent on-chain info for a stock","properties":{"symbol":{"type":"string","description":"Stock symbol, e.g. AAPL"},"contractAddress":{"type":"string","description":"Contract address, e.g. 0x1234567890123456789012345678901234567890"},"contractSymbol":{"type":"string","description":"Contract symbol, e.g. AAPL"},"contractName":{"type":"string","description":"Contract name, e.g. Apple Inc."},"decimals":{"type":"integer","format":"int64","description":"Contract decimals, e.g. 18"},"onChainDecimals":{"type":"integer","format":"int64","description":"On-chain decimals, e.g. 18"},"tradable":{"type":"boolean","description":"Whether the asset is tradable"},"fractionable":{"type":"boolean","description":"Whether the asset supports fractional shares"},"overnightTradable":{"type":"boolean","description":"Whether the asset is tradable during overnight sessions"},"fractionalEhEnabled":{"type":"boolean","description":"Whether fractional extended-hours trading is enabled"},"price":{"type":"number","description":"Latest price"},"change24H":{"type":"number","description":"Price change over the last 24 h"},"change24HPercent":{"type":"number","description":"Price change percentage over the last 24 h"},"delayed":{"type":"boolean","description":"Whether the price is delayed (15-min) rather than real-time"},"priceSource":{"type":"string","description":"Price source tier: PRIMARY (real-time) or SECONDARY (fallback)"},"logoUrl":{"type":"string","description":"Logo image URL"},"lastUpdateTimestamp":{"type":"integer","format":"int64","description":"Unix seconds when this cache entry was last updated"},"name":{"type":"string","description":"Full company name"},"pdfUrl":{"type":"string","description":"Prospectus / PDF URL"},"tags":{"type":"array","description":"Stock tags","items":{"type":"string"}},"sectors":{"type":"array","description":"Stock sectors","items":{"type":"string"}},"volume24H":{"type":"integer","format":"int64","description":"Trading volume over the last 24 h"},"mintPaused":{"type":"boolean","description":"whether mint paused"},"redemptionPaused":{"type":"boolean","description":"whether redemption paused"},"transferPaused":{"type":"boolean","description":"whether transfer paused"},"isActive":{"type":"boolean","default":false}}},"BaseResponseTableDataTradingStockOperationDetailRespDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/TableDataTradingStockOperationDetailRespDto","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"IndexerExchangeStockDepositWithdraw":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"chainId":{"type":"integer","format":"int64","enum":[1,143,8453,42161,4663,56,11155111,10143,84532,421614,46630]},"productType":{"type":"string","enum":["FUND","Common","MondayTrade","Anchored","Synfutures"]},"exchangeAddress":{"type":"string"},"stockAddress":{"type":"string"},"stockSymbol":{"type":"string"},"userAddress":{"type":"string"},"amount":{"type":"number"},"txHash":{"type":"string"},"txTime":{"type":"string","format":"date-time"},"createAt":{"type":"string","format":"date-time"},"updateAt":{"type":"string","format":"date-time"}}},"TableDataTradingStockOperationDetailRespDto":{"type":"object","properties":{"total":{"type":"integer","format":"int64","description":"total number of records"},"rows":{"type":"array","description":"list of records","items":{"$ref":"#/components/schemas/TradingStockOperationDetailRespDto"}}}},"TradingStockOperationDetailRespDto":{"type":"object","properties":{"mappingStatus":{"type":"string","description":"Channel transaction mapping status before indexed stock movement is available","enum":["Init","Pending","New","Partial filled","Filled","Canceled","Expired","Rejected","Failed"]},"mapping":{"$ref":"#/components/schemas/TradingChannelOrderTx","description":"Partner transaction mapping"},"stockOperation":{"$ref":"#/components/schemas/IndexerExchangeStockDepositWithdraw","description":"Indexed stock deposit or withdrawal movement"}}},"BaseResponseTradingStockOperationDetailRespDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/TradingStockOperationDetailRespDto","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"BaseResponseMarketTickerInfoRespDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/MarketTickerInfoRespDto","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"MarketTickerInfoRespDto":{"type":"object","description":"Per-symbol market ticker info (assembled from basicInfo + onchain)","properties":{"basicInfo":{"$ref":"#/components/schemas/MarketTickerBasicInfoDto","description":"Chain-independent basic info"},"onChain":{"$ref":"#/components/schemas/MarketTickerOnChainInfoDto","description":"Chain+productType-dependent on-chain info; null when no address registered"}}},"BaseResponseListHistoricalBarRespDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"type":"array","description":"if code is 200,this is data","items":{"$ref":"#/components/schemas/HistoricalBarRespDto"}},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"HistoricalBarRespDto":{"type":"object","description":"Historical bar item (OHLCV)","properties":{"open":{"type":"number","description":"open price"},"high":{"type":"number","description":"high price"},"low":{"type":"number","description":"low price"},"close":{"type":"number","description":"close price"},"volume":{"type":"number","description":"volume"},"timestamp":{"type":"integer","format":"int64","description":"bar timestamp (unix seconds)"}}},"AccountHisOrderRespDto":{"type":"object","properties":{"id":{"type":"string","description":"id"},"chainId":{"type":"integer","format":"int64","description":"chainId","enum":[1,143,8453,42161,4663,56,11155111,10143,84532,421614,46630]},"productType":{"type":"string","description":"product type","enum":["FUND","Common","MondayTrade","Anchored","Synfutures"]},"orderId":{"type":"string","description":"on chain order id"},"userAddress":{"type":"string","description":"user address"},"side":{"type":"string","enum":["Buy","Sell"]},"type":{"type":"string","enum":["Limit","Market"]},"tif":{"type":"string","enum":["DAY","GTC","OPG","IOC","FOK","GTX","GTD","CLS"]},"symbol":{"type":"string"},"notional":{"type":"string","description":"notional"},"quantity":{"type":"string","description":"quantity"},"pay":{"type":"string","description":"pay"},"price":{"type":"string","description":"price"},"placeTxHash":{"type":"string","description":"transaction hash"},"placeTxTime":{"type":"integer","format":"int64","description":"transaction time"},"cancelTxHash":{"type":"string","description":"transaction hash"},"cancelTxTime":{"type":"integer","format":"int64","description":"transaction time"},"settleTxHash":{"type":"string","description":"transaction hash"},"settleTxTime":{"type":"integer","format":"int64","description":"transaction time"},"settlePay":{"type":"string","description":"settle pay"},"settleReceive":{"type":"string","description":"settle receive"},"settlePrice":{"type":"string","description":"settle price"},"mintFee":{"type":"string","description":"mint fee"},"protocolFee":{"type":"string","description":"protocol fee"},"status":{"type":"string","description":"status","enum":["Init","Pending","New","Partial filled","Filled","Canceled","Expired","Rejected","Failed"]}}},"AccountOpenOrderRespDto":{"type":"object","properties":{"id":{"type":"string","description":"id"},"chainId":{"type":"integer","format":"int64","description":"chainId","enum":[1,143,8453,42161,4663,56,11155111,10143,84532,421614,46630]},"productType":{"type":"string","description":"product type","enum":["FUND","Common","MondayTrade","Anchored","Synfutures"]},"orderId":{"type":"string","description":"on chain order id"},"userAddress":{"type":"string","description":"user address"},"side":{"type":"string","enum":["Buy","Sell"]},"type":{"type":"string","enum":["Limit","Market"]},"tif":{"type":"string","enum":["DAY","GTC","OPG","IOC","FOK","GTX","GTD","CLS"]},"symbol":{"type":"string"},"notional":{"type":"string","description":"notional"},"quantity":{"type":"string","description":"quantity"},"pay":{"type":"string","description":"pay"},"price":{"type":"string","description":"price"},"placeTxHash":{"type":"string","description":"transaction hash"},"placeTxTime":{"type":"integer","format":"int64","description":"transaction time"},"cancelTxHash":{"type":"string","description":"transaction hash"},"cancelTxTime":{"type":"integer","format":"int64","description":"transaction time"},"status":{"type":"string","description":"status","enum":["placing","canceling"]}}},"BaseResponseTableDataTradingOrderDetailRespDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/TableDataTradingOrderDetailRespDto","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"TableDataTradingOrderDetailRespDto":{"type":"object","properties":{"total":{"type":"integer","format":"int64","description":"total number of records"},"rows":{"type":"array","description":"list of records","items":{"$ref":"#/components/schemas/TradingOrderDetailRespDto"}}}},"TradingOrderDetailRespDto":{"type":"object","properties":{"status":{"type":"string","description":"Broker order mapped status","enum":["Init","Pending","New","Partial filled","Filled","Canceled","Expired","Rejected","Failed"]},"deferred":{"type":"boolean","description":"Whether this is a deferred-sell (sell-before-holding, debt-creating) order"},"brokerFailedReason":{"type":"string","description":"Broker order failed reason"},"mapping":{"$ref":"#/components/schemas/TradingChannelOrderTx","description":"Partner order mapping"},"openOrder":{"$ref":"#/components/schemas/AccountOpenOrderRespDto","description":"Open order data when the order is still open"},"historyOrder":{"$ref":"#/components/schemas/AccountHisOrderRespDto","description":"History order data when the order has settled"}}},"BaseResponseTradingOrderDetailRespDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/TradingOrderDetailRespDto","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"BaseResponseListTradingDeferredDebtRespDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"type":"array","description":"if code is 200,this is data","items":{"$ref":"#/components/schemas/TradingDeferredDebtRespDto"}},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"TradingDeferredDebtRespDto":{"type":"object","properties":{"stockAddress":{"type":"string","description":"Stock token contract address"},"stockSymbol":{"type":"string","description":"Stock symbol"},"stockContractSymbol":{"type":"string","description":"Stock contract symbol"},"debt":{"type":"number","description":"Current outstanding deferred-sell debt in stock units"},"lastUpdateTxHash":{"type":"string","description":"Transaction hash of the last debt change"},"lastUpdateBlockTime":{"type":"string","format":"date-time","description":"Block time of the last debt change"}}},"BaseResponseListBrokerCorporateAction":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"type":"array","description":"if code is 200,this is data","items":{"$ref":"#/components/schemas/BrokerCorporateAction"}},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"BrokerCorporateAction":{"type":"object","properties":{"symbol":{"type":"string"},"type":{"type":"string","enum":["reverse_splits","forward_splits","unit_splits","stock_dividends","cash_dividends"]},"time":{"type":"string","format":"date-time"},"exDate":{"type":"string"},"recordDate":{"type":"string"},"payableDate":{"type":"string"},"processDate":{"type":"string"},"info":{"type":"object","additionalProperties":{},"properties":{"empty":{"type":"boolean"}}}}},"BaseResponseOnChainConfigRespDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/OnChainConfigRespDto","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"CashierBufferRespDto":{"type":"object","properties":{"chainId":{"type":"integer","format":"int64","enum":[1,143,8453,42161,4663,56,11155111,10143,84532,421614,46630]},"productType":{"type":"string","enum":["FUND","Common","MondayTrade","Anchored","Synfutures"]},"credit buffer address":{"type":"string"},"instant threshold divisor":{"type":"string"},"credit buffer":{"type":"string"},"credit buffer capacity":{"type":"string"},"total balance":{"type":"string"}}},"CashierTokenConfigCacheDto":{"type":"object","properties":{"chainId":{"type":"integer","format":"int64","enum":[1,143,8453,42161,4663,56,11155111,10143,84532,421614,46630]},"productType":{"type":"string","enum":["FUND","Common","MondayTrade","Anchored","Synfutures"]},"cashierAddress":{"type":"string","description":"cashier address"},"tokenAddress":{"type":"string","description":"token address"},"minAmount":{"type":"string","description":"Min deposit/withdraw amount in whole tokens (integer token count)"},"decimals":{"type":"integer","format":"int64","description":"Token decimals"},"depositPaused":{"type":"boolean","description":"Whether the deposit flow is paused"},"withdrawPaused":{"type":"boolean","description":"Whether the withdraw flow is paused"},"depositRate":{"type":"string","description":"Deposit rate as a decimal in (0, 1]"},"withdrawalRate":{"type":"string","description":"Withdrawal rate as a decimal in (0, 1]"},"withdrawalBufferCapacity":{"type":"string","description":"Current on-chain token buffer capacity for instant withdrawals"},"tokenSymbol":{"type":"string","description":"On-chain ERC20 symbol of the settlement token, e.g. USDC / USDT / USDG"},"isSupport":{"type":"boolean","description":"Whether the cashier still supports this token; false after removeSupportedToken"}}},"ExchangeFeeConfigRespDto":{"type":"object","description":"Exchange fee config response DTO","properties":{"chainId":{"type":"integer","format":"int64","description":"Chain ID","enum":[1,143,8453,42161,4663,56,11155111,10143,84532,421614,46630]},"productType":{"type":"string","description":"Product type","enum":["FUND","Common","MondayTrade","Anchored","Synfutures"]},"mintFeeRate":{"type":"string","description":"Mint fee rate, human-readable. Example: 0.001 means 0.1%"},"protocolFeeRate":{"type":"string","description":"Protocol fee rate, human-readable. Example: 0.001 means 0.1%"},"minOrderValue":{"type":"string","description":"Minimum) order value in USD units (18 decimals), human-readable"},"txHash":{"type":"string","description":"Transaction hash of the latest update"},"updatedAt":{"type":"integer","format":"int64","description":"Timestamp of the latest update (unix seconds)"}}},"OnChainConfigRespDto":{"type":"object","description":"Exchange config response DTO","properties":{"cashierBuffer":{"$ref":"#/components/schemas/CashierBufferRespDto","description":"Cashier buffer config"},"exchangeFeeConfig":{"$ref":"#/components/schemas/ExchangeFeeConfigRespDto","description":"Exchange fee config"},"cashierTokenConfig":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CashierTokenConfigCacheDto"},"description":"Cashier token config, key is token address"}}},"BaseResponseTableDataTradingCashOperationDetailRespDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/TableDataTradingCashOperationDetailRespDto","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"IndexerCashDepositOperation":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"chainId":{"type":"integer","format":"int64","enum":[1,143,8453,42161,4663,56,11155111,10143,84532,421614,46630]},"productType":{"type":"string","enum":["FUND","Common","MondayTrade","Anchored","Synfutures"]},"cashierAddress":{"type":"string"},"operationId":{"type":"string"},"userAddress":{"type":"string"},"tokenAddress":{"type":"string"},"status":{"type":"string","enum":["requested","processing","settled","closed"]},"isInstant":{"type":"boolean"},"amount":{"type":"number"},"creditAmount":{"type":"number"},"feeAmount":{"type":"number"},"idsHash":{"type":"string"},"transferId":{"type":"string"},"settlerAddress":{"type":"string"},"createTxHash":{"type":"string"},"createBlockTime":{"type":"string","format":"date-time"},"createBlock":{"type":"integer","format":"int64"},"settleTxHash":{"type":"string"},"settleBlockTime":{"type":"string","format":"date-time"},"settleBlock":{"type":"integer","format":"int64"},"createAt":{"type":"string","format":"date-time"},"updateAt":{"type":"string","format":"date-time"}}},"IndexerCashWithdrawalOperation":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"chainId":{"type":"integer","format":"int64","enum":[1,143,8453,42161,4663,56,11155111,10143,84532,421614,46630]},"productType":{"type":"string","enum":["FUND","Common","MondayTrade","Anchored","Synfutures"]},"cashierAddress":{"type":"string"},"operationId":{"type":"string"},"userAddress":{"type":"string"},"tokenAddress":{"type":"string"},"status":{"type":"string","enum":["requested","processing","settled","closed"]},"isInstant":{"type":"boolean"},"creditAmount":{"type":"number"},"amount":{"type":"number"},"feeAmount":{"type":"number"},"failedPayoutAmount":{"type":"number"},"idsHash":{"type":"string"},"transferId":{"type":"string"},"settlerAddress":{"type":"string"},"createTxHash":{"type":"string"},"createBlockTime":{"type":"string","format":"date-time"},"createBlock":{"type":"integer","format":"int64"},"settleTxHash":{"type":"string"},"settleBlockTime":{"type":"string","format":"date-time"},"settleBlock":{"type":"integer","format":"int64"},"createAt":{"type":"string","format":"date-time"},"updateAt":{"type":"string","format":"date-time"}}},"TableDataTradingCashOperationDetailRespDto":{"type":"object","properties":{"total":{"type":"integer","format":"int64","description":"total number of records"},"rows":{"type":"array","description":"list of records","items":{"$ref":"#/components/schemas/TradingCashOperationDetailRespDto"}}}},"TradingCashOperationDetailRespDto":{"type":"object","properties":{"mappingStatus":{"type":"string","description":"Channel transaction mapping status before indexer operation is available","enum":["Init","Pending","New","Partial filled","Filled","Canceled","Expired","Rejected","Failed"]},"operationStatus":{"type":"string","description":"Indexed cash operation status","enum":["requested","processing","settled","closed"]},"mapping":{"$ref":"#/components/schemas/TradingChannelOrderTx","description":"Partner transaction mapping"},"depositOperation":{"$ref":"#/components/schemas/IndexerCashDepositOperation","description":"Deposit operation data"},"withdrawalOperation":{"$ref":"#/components/schemas/IndexerCashWithdrawalOperation","description":"Withdrawal operation data"}}},"BaseResponseTradingCashOperationDetailRespDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/TradingCashOperationDetailRespDto","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"BaseResponseOneClickTradeTxResDto":{"type":"object","description":"Base Response","properties":{"code":{"type":"integer","format":"int32","description":"if not 200, it means error"},"errMsg":{"type":"string","description":"if code not 200,this is error message"},"data":{"$ref":"#/components/schemas/OneClickTradeTxResDto","description":"if code is 200,this is data"},"uuid":{"type":"string","description":"every request has a uuid"},"t":{"type":"integer","format":"int64","description":"server time"}}},"OneClickTradeTxResDto":{"type":"object","properties":{"uuid":{"type":"string"},"txHash":{"type":"string"}}}},"securitySchemes":{"TradingApiKey":{"type":"apiKey","name":"x-api-key","in":"header"},"TradingApiTimestamp":{"type":"apiKey","name":"x-api-ts","in":"header"},"TradingApiNonce":{"type":"apiKey","name":"x-api-nonce","in":"header"},"TradingApiSignature":{"type":"apiKey","name":"x-api-sign","in":"header"},"ApiChainId":{"type":"apiKey","name":"x-api-chain-id","in":"header"},"ApiProductType":{"type":"apiKey","description":"MondayTrade or Anchored","name":"x-api-p","in":"header"}}}}