Purchase
HTTP Request
POST /spot/v3/private/purchase
Request Parameters
| Parameter | Required | Type | Comments |
|---|---|---|---|
| ltCode | true | string | Abbreviation of the LT. |
| ltAmount | true | string | Purchase amount |
| serialNo | false | string | Serial number. A kind of unique customised ID |
Response Parameters
| Parameter | Type | Comments |
|---|---|---|
| amount | string | Actual purchase value of the LT |
| id | string | Transaction ID |
| ltCode | string | Abbreviation of the LT |
| orderAmount | string | Order value of the LT |
| orderQuantity | string | Order quantity of the LT |
| orderStatus | string | Order status. 1: Completed; 2: In progress; 3: Failed |
| serialNo | string | Serial number |
| timestamp | number | Timestamp |
| valueCoin | string | Quote asset |
Request Example
curl --location --request POST 'https://api-testnet.bybit.com/spot/v3/private/purchase' \
--header 'Content-Type: application/json' \
--header 'X-BAPI-API-KEY: XXXXXXXXX' \
--header 'X-BAPI-TIMESTAMP: 1662549845240' \
--header 'X-BAPI-RECV-WINDOW: 5000' \
--header 'X-BAPI-SIGN: XXXXX' \
--data-raw '{
"ltCode": "DOT3LUSDT",
"ltAmount": "100",
"serialNo": "x005"
}'
Response Example
{
"retCode": 0,
"retMsg": "success",
"result": {
"amount": "100",
"id": "2085",
"ltCode": "DOT3LUSDT",
"orderAmount": "",
"orderQuantity": "",
"orderStatus": "2",
"serialNo": "x005",
"timestamp": 1662549845373,
"valueCoin": "USDT"
},
"retExtInfo": {},
"time": 1662549845453
}