跳至主要内容

劃轉 (單帳號內)

創建單帳號下帳戶類型間的劃轉操作

提示
  • 每個帳戶類型有其可接受的幣種限制, 詳情請參考可劃轉幣種接口.

HTTP 請求

POST /v5/asset/transfer/inter-transfer

請求參數

參數是否必需類型說明
transferIdtruestringUUID. 請自行手動生成UUID
cointruestring幣種
amounttruestring劃入數量
fromAccountTypetruestring轉出賬戶類型
toAccountTypetruestring轉入賬戶類型

響應參數

參數類型說明
transferIdstringUUID
statusstring劃轉狀態
  • STATUS_UNKNOWN
  • SUCCESS
  • PENDING
  • FAILED

  • 請求示例

    POST v5/asset/transfer/inter-transfer HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-API-KEY: XXXXX
    X-BAPI-TIMESTAMP: 1670986690556
    X-BAPI-RECV-WINDOW: 50000
    X-BAPI-SIGN: XXXXX
    Content-Type: application/json
    {
    "transferId": "42c0cfb0-6bca-c242-bc76-4e6df6cbcb16",
    "coin": "BTC",
    "amount": "0.05",
    "fromAccountType": "UNIFIED",
    "toAccountType": "CONTRACT"
    }

    響應示例

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "transferId": "42c0cfb0-6bca-c242-bc76-4e6df6cbab16",
    "status": "SUCCESS"
    },
    "retExtInfo": {},
    "time": 1670986962783
    }