Margin account borrow/repay(MARGIN)
API Description
Margin account borrow/repay(MARGIN)
HTTP Request
POST /sapi/v1/margin/borrow-repay
Request Weight
1500
Request Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
asset | STRING | YES | |
isIsolated | STRING | YES | TRUE for Isolated Margin, FALSE for Cross Margin, Default FALSE |
symbol | STRING | YES | Only for Isolated margin |
amount | STRING | YES | |
type | STRING | YES | BORROW or REPAY |
recvWindow | LONG | NO | The value cannot be greater than 60000 |
timestamp | LONG | YES |
Response Example
{
//transaction id
"tranId": 100000001
}