Get Tickers
Query for the latest price snapshot, best bid/ask price, and trading volume in the last 24 hours.
Covers: Spot / USDT perpetual / USDC contract / Inverse contract / Option
info
If category=option, symbol
or baseCoin
must be passed.
HTTP Request
GET /v5/market/tickers
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
category | true | string | Product type. spot ,linear ,inverse ,option |
symbol | false | string | Symbol name, like BTCUSDT , uppercase only |
baseCoin | false | string | Base coin, uppercase only. Apply to option only |
expDate | false | string | Expiry date. e.g., 25DEC22. Apply to option only |
Response Parameters
- Linear/Inverse
- Option
- Spot
Parameter | Type | Comments |
---|---|---|
category | string | Product type |
list | array | Object |
> symbol | string | Symbol name |
> lastPrice | string | Last price |
> indexPrice | string | Index price |
> markPrice | string | Mark price |
> prevPrice24h | string | Market price 24 hours ago |
> price24hPcnt | string | Percentage change of market price relative to 24h |
> highPrice24h | string | The highest price in the last 24 hours |
> lowPrice24h | string | The lowest price in the last 24 hours |
> prevPrice1h | string | Market price an hour ago |
> openInterest | string | Open interest size |
> openInterestValue | string | Open interest value |
> turnover24h | string | Turnover for 24h |
> volume24h | string | Volume for 24h |
> fundingRate | string | Funding rate |
> nextFundingTime | string | Next funding time (ms) |
> predictedDeliveryPrice | string | Predicated delivery price. It has value when 30 min before delivery |
> basisRate | string | Basis rate |
> basis | string | Basis |
> deliveryFeeRate | string | Delivery fee rate |
> deliveryTime | string | Delivery timestamp (ms) |
> ask1Size | string | Best ask size |
> bid1Price | string | Best bid price |
> ask1Price | string | Best ask price |
> bid1Size | string | Best bid size |
> preOpenPrice | string | Estimated pre-market contract open price |
> preQty | string | Estimated pre-market contract open qty |
> curPreListingPhase | string | The current pre-market contract phase |
Parameter | Type | Comments |
---|---|---|
category | string | Product type |
list | array | Object |
> symbol | string | Symbol name |
> bid1Price | string | Best bid price |
> bid1Size | string | Best bid size |
> bid1Iv | string | Best bid iv |
> ask1Price | string | Best ask price |
> ask1Size | string | Best ask size |
> ask1Iv | string | Best ask iv |
> lastPrice | string | Last price |
> highPrice24h | string | The highest price in the last 24 hours |
> lowPrice24h | string | The lowest price in the last 24 hours |
> markPrice | string | Mark price |
> indexPrice | string | Index price |
> markIv | string | Mark price iv |
> underlyingPrice | string | Underlying price |
> openInterest | string | Open interest size |
> turnover24h | string | Turnover for 24h |
> volume24h | string | Volume for 24h |
> totalVolume | string | Total volume |
> totalTurnover | string | Total turnover |
> delta | string | Delta |
> gamma | string | Gamma |
> vega | string | Vega |
> theta | string | Theta |
> predictedDeliveryPrice | string | Predicated delivery price. It has value when 30 min before delivery |
> change24h | string | The change in the last 24 hous |
Parameter | Type | Comments |
---|---|---|
category | string | Product type |
list | array | Object |
> symbol | string | Symbol name |
> bid1Price | string | Best bid price |
> bid1Size | string | Best bid size |
> ask1Price | string | Best ask price |
> ask1Size | string | Best ask size |
> lastPrice | string | Last price |
> prevPrice24h | string | Market price 24 hours ago |
> price24hPcnt | string | Percentage change of market price relative to 24h |
> highPrice24h | string | The highest price in the last 24 hours |
> lowPrice24h | string | The lowest price in the last 24 hours |
> turnover24h | string | Turnover for 24h |
> volume24h | string | Volume for 24h |
> usdIndexPrice | string | USD index price
|
Request Example
- Inverse
- Option
- Spot
- HTTP
- Python
- Go
- Java
- Node.js
GET /v5/market/tickers?category=inverse&symbol=BTCUSD HTTP/1.1
Host: api-testnet.bybit.com
from pybit.unified_trading import HTTP
session = HTTP(testnet=True)
print(session.get_tickers(
category="inverse",
symbol="BTCUSD",
))
import (
"context"
"fmt"
bybit "github.com/wuhewuhe/bybit.go.api"
)
client := bybit.NewBybitHttpClient("", "", bybit.WithBaseURL(bybit.TESTNET))
params := map[string]interface{}{"category": "inverse", "symbol": "BTCUSD"}
client.NewUtaBybitServiceWithParams(params).GetMarketTickers(context.Background())
import com.bybit.api.client.domain.CategoryType;
import com.bybit.api.client.domain.market.*;
import com.bybit.api.client.domain.market.request.MarketDataRequest;
import com.bybit.api.client.service.BybitApiClientFactory;
var client = BybitApiClientFactory.newInstance().newAsyncMarketDataRestClient();
var tickerReueqt = MarketDataRequest.builder().category(CategoryType.INVERSE).symbol("BTCUSD").build();
client.getMarketTickers(tickerReueqt, System.out::println);
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
});
client
.getTickers({
category: 'inverse',
symbol: 'BTCUSDT',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
- HTTP
- Python
- Go
- Java
- Node.js
GET /v5/market/tickers?category=option&symbol=BTC-30DEC22-18000-C HTTP/1.1
Host: api-testnet.bybit.com
from pybit.unified_trading import HTTP
session = HTTP(testnet=True)
print(session.get_tickers(
category="option",
symbol="BTC-30DEC22-18000-C",
))
import (
"context"
"fmt"
bybit "github.com/wuhewuhe/bybit.go.api"
)
client := bybit.NewBybitHttpClient("", "", bybit.WithBaseURL(bybit.TESTNET))
params := map[string]interface{}{"category": "option", "symbol": "BTC-30DEC22-18000-C"}
client.NewUtaBybitServiceWithParams(params).GetMarketTickers(context.Background())
import com.bybit.api.client.domain.CategoryType;
import com.bybit.api.client.domain.market.*;
import com.bybit.api.client.domain.market.request.MarketDataRequest;
import com.bybit.api.client.service.BybitApiClientFactory;
var client = BybitApiClientFactory.newInstance().newAsyncMarketDataRestClient();
var tickerReueqt = MarketDataRequest.builder().category(CategoryType.OPTION).symbol("BTC-30DEC22-18000-C").build();
client.getMarketTickers(tickerReueqt, System.out::println);
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
});
client
.getTickers({
category: 'option',
symbol: 'BTC-30DEC22-18000-C',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
- HTTP
- Python
- GO
- Java
- Node.js
GET /v5/market/tickers?category=spot&symbol=BTCUSDT HTTP/1.1
Host: api-testnet.bybit.com
from pybit.unified_trading import HTTP
session = HTTP(testnet=True)
print(session.get_tickers(
category="spot",
symbol="BTCUSDT",
))
import (
"context"
"fmt"
bybit "github.com/wuhewuhe/bybit.go.api"
)
client := bybit.NewBybitHttpClient("", "", bybit.WithBaseURL(bybit.TESTNET))
params := map[string]interface{}{"category": "spot", "symbol": "BTCUSDT"}
client.NewUtaBybitServiceWithParams(params).GetMarketTickers(context.Background())
import com.bybit.api.client.domain.*;
import com.bybit.api.client.domain.market.*;
import com.bybit.api.client.domain.market.request.*;
import com.bybit.api.client.service.BybitApiClientFactory;
var client = BybitApiClientFactory.newInstance().newAsyncMarketDataRestClient();
var tickerReueqt = MarketDataRequest.builder().category(CategoryType.SPOT).symbol("BTCUSDT").build();
client.getMarketTickers(tickerReueqt, System.out::println);
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
});
client
.getTickers({
category: 'spot',
symbol: 'BTCUSDT',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
Response Example
- Inverse
- Option
- Spot
{
"retCode": 0,
"retMsg": "OK",
"result": {
"category": "inverse",
"list": [
{
"symbol": "BTCUSD",
"lastPrice": "16597.00",
"indexPrice": "16598.54",
"markPrice": "16596.00",
"prevPrice24h": "16464.50",
"price24hPcnt": "0.008047",
"highPrice24h": "30912.50",
"lowPrice24h": "15700.00",
"prevPrice1h": "16595.50",
"openInterest": "373504107",
"openInterestValue": "22505.67",
"turnover24h": "2352.94950046",
"volume24h": "49337318",
"fundingRate": "-0.001034",
"nextFundingTime": "1672387200000",
"predictedDeliveryPrice": "",
"basisRate": "",
"deliveryFeeRate": "",
"deliveryTime": "0",
"ask1Size": "1",
"bid1Price": "16596.00",
"ask1Price": "16597.50",
"bid1Size": "1",
"basis": ""
}
]
},
"retExtInfo": {},
"time": 1672376496682
}
{
"retCode": 0,
"retMsg": "OK",
"result": {
"category": "option",
"list": [
{
"symbol": "BTC-30DEC22-18000-C",
"bid1Price": "0",
"bid1Size": "0",
"bid1Iv": "0",
"ask1Price": "435",
"ask1Size": "0.66",
"ask1Iv": "5",
"lastPrice": "435",
"highPrice24h": "435",
"lowPrice24h": "165",
"markPrice": "0.00000009",
"indexPrice": "16600.55",
"markIv": "0.7567",
"underlyingPrice": "16590.42",
"openInterest": "6.3",
"turnover24h": "2482.73",
"volume24h": "0.15",
"totalVolume": "99",
"totalTurnover": "1967653",
"delta": "0.00000001",
"gamma": "0.00000001",
"vega": "0.00000004",
"theta": "-0.00000152",
"predictedDeliveryPrice": "0",
"change24h": "86"
}
]
},
"retExtInfo": {},
"time": 1672376592395
}
{
"retCode": 0,
"retMsg": "OK",
"result": {
"category": "spot",
"list": [
{
"symbol": "BTCUSDT",
"bid1Price": "20517.96",
"bid1Size": "2",
"ask1Price": "20527.77",
"ask1Size": "1.862172",
"lastPrice": "20533.13",
"prevPrice24h": "20393.48",
"price24hPcnt": "0.0068",
"highPrice24h": "21128.12",
"lowPrice24h": "20318.89",
"turnover24h": "243765620.65899866",
"volume24h": "11801.27771",
"usdIndexPrice": "20784.12009279"
}
]
},
"retExtInfo": {},
"time": 1673859087947
}