從永續子賬戶提現 USDC
POST /v1/trading-gateway/withdraw:將 USDC 提現至外部地址。
POST /v1/trading-gateway/withdraw
將 USDC 提現至外部地址。Body:{ amount: string, toAddress: string, subAccountId?: string, totpCode: string }。上游 UserTOTPGuard 要求 totpCode;禁用 TOTP 的用戶可以傳入空字符串。返回 { amount, to, raw_data }。Minara 的提現監視器會從 raw_data.tx_hash(或嵌套的 raw_data.receipt.txHash)提取交易哈希。
| 方法 | POST |
| 路徑 | /v1/trading-gateway/withdraw |
| 認證 | 設置 GATEWAY_AUTH_TOKEN 時需要 Authorization: Bearer <token> |
| 類別 | perps |
請求體
{ "amount": "50", "toAddress": "0xabcd...", "subAccountId": "sub_hl_default", "totpCode": "123456" }響應體
{ "amount": "50", "to": "0xabcd...", "raw_data": { } }