跳到主要内容

划转

限速规则 10次/1s (UID)

描述

资产划转

HTTP请求

  • POST /api/v2/spot/wallet/transfer
请求示例
curl -X POST "https://api.bitget.com/api/v2/spot/wallet/transfer" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \
-d '{
"fromType":"spot",
"toType":"isolated_margin",
"amount":"300",
"symbol":"BTCUSDT",
"clientOid":"myclinetOid000001",
"coin":"USDT"
}'

请求参数

参数名参数类型是否必须描述
fromTypeString转出账户类型
spot 现货账户
p2p P2P/资金账户
coin_futures 币本位合约账户
usdt_futures U本位合约账户
usdc_futures USDC合约账户
crossed_margin 全仓杠杆账户
isolated_margin 逐仓杠杆账户
toTypeString转入账户类型
spot 现货账户
p2p P2P/资金账户
coin_futures 币本位合约账户
usdt_futures U本位合约账户
usdc_futures USDC合约账户
crossed_margin 全仓杠杆账户
isolated_margin 逐仓杠杆账户
amountString划转的数量
coinString币种,如BTC
symbolString逐仓杠杆交易对,如BTCUSDT
当转入或转出账户类型是逐仓杠杆账户时必填
clientOidString客户自定义ID
幂等,如果传入重复clientOid,则会返回已存在的clientOid划转结果
返回示例
{
"code": "00000",
"msg": "success",
"requestTime": 1683875302853,
"data": {
"transferId": "112321312312312",
"clientOid": "myclinetOid000001"
}
}

返回参数

返回字段参数类型字段说明
transferIdString划转产生的划转ID
clientOidString自定义clientOid