跳到主要内容

借币

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

描述

通过质押并付出利息,借币

HTTP请求

  • POST /api/v2/earn/loan/borrow
请求示例
curl -X POST "https://api.bitget.com/api/v2/earn/loan/borrow" \
-H "ACCESS-KEY:your apiKey" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \
-d '{
"loanCoin":"ETH",
"pledgeCoin":"USDT",
"daily":"SEVEN",
"loanAmount":"0.01"
}'

请求参数

参数名参数类型是否必须描述
loanCoinString需借币种, ETH
pledgeCoinString质押币种, USDT
dailyString质押天数
SEVEN: 7天
THIRTY: 30天
pledgeAmountString借币数量,与loanAmount二选一
loanAmountString质押数量,与pledgeAmount二选一
返回示例
{
"code":"00000",
"msg":"success",
"requestTime":163123213132,
"data": {
"orderId": "1"
}
}

返回参数

返回字段参数类型字段说明
orderIdString订单ID