Skip to main content

Get LP Pay Token Price

Query current USD prices for one or more payment tokens. Supports batch queries in a single request.

info
  • Supports up to 50 token codes per request
  • Use this to calculate USD value of stake amounts before confirming with users
  • Rate Limit: 5 req/s (per user), 5000 req/s (global)

HTTP Request

POST/v5/alpha/lp/pay-token-price

Request Parameters

ParameterRequiredTypeComments
tokenCodetruearrayArray of token codes to query, e.g. ["CEX_1", "CEX_2"]. Max 50 items
chainCodefalsestringFilter by blockchain identifier

Response Parameters

ParameterTypeComments
pricesarrayToken price list
> tokenCodestringToken identifier
> tokenSymbolstringToken symbol
> priceUsdstringCurrent price in USD
> chainCodestringBlockchain identifier
> updateTimeintegerPrice update timestamp (Unix seconds)

Request Example

POST /v5/alpha/lp/pay-token-price HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1704067200000
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

{
"tokenCode": ["CEX_1", "CEX_2"]
}

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"prices": [
{
"tokenCode": "CEX_1",
"tokenSymbol": "USDT",
"priceUsd": "1.00",
"chainCode": "ETH",
"updateTime": 1704067200
},
{
"tokenCode": "CEX_2",
"tokenSymbol": "USDC",
"priceUsd": "0.9998",
"chainCode": "ETH",
"updateTime": 1704067200
}
]
},
"retExtInfo": {},
"time": 1704067200000
}