Skip to main content

Purchase

HTTP Request

POST /spot/v3/private/purchase

Request Parameters

ParameterRequiredTypeComments
ltCodetruestringAbbreviation of the LT.
ltAmounttruestringPurchase amount
serialNofalsestringSerial number. A kind of unique customised ID

Response Parameters

ParameterTypeComments
amountstringActual purchase value of the LT
idstringTransaction ID
ltCodestringAbbreviation of the LT
orderAmountstringOrder value of the LT
orderQuantitystringOrder quantity of the LT
orderStatusstringOrder status. 1: Completed; 2: In progress; 3: Failed
serialNostringSerial number
timestampnumberTimestamp
valueCoinstringQuote 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
}