Redeem
Redeem leverage token
HTTP Request
POST /v5/spot-lever-token/redeem
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
ltCoin | true | string | Abbreviation of the LT, such as BTC3L |
quantity | ture | string | Redeem quantity of LT |
serialNo | false | string | Serial number |
Response Parameters
Parameter | Type | Comments |
---|---|---|
ltCoin | string | Abbreviation of the LT |
ltOrderStatus | string | Order status. 1 : completed, 2 : in progress, 3 : failed |
quantity | string | Quantity |
execQty | string | LT quantity |
execAmt | string | Executed amount of LT |
redeemId | string | Order ID |
serialNo | string | Serial number |
valueCoin | string | Quote coin |
Request Example
- HTTP
- Python
POST /v5/spot-lever-token/redeem HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672296416024
X-BAPI-SIGN: XXXXX
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
{
"ltCoin": "EOS3L",
"quantity": "150",
"serialNo": "redeem-001"
}
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="XXXXX",
api_secret="XXXXX",
)
print(session.redeem_leveraged_token(
ltCoin="EOS3L",
quantity="150",
serialNo="redeem-001"
))
Response Example
{
"retCode": 0,
"retMsg": "OK",
"result": {
"execAmt": "",
"execQty": "150",
"ltCoin": "EOS3L",
"ltOrderStatus": "2",
"quantity": "",
"redeemId": "2619",
"serialNo": "redeem-001",
"valueCoin": "EOS3L"
},
"retExtInfo": {},
"time": 1672296417363
}