Skip to main content
Glama
BCusack

Bybit MCP Server

by BCusack

get_mark_price_kline

Retrieve mark price candlestick data for Bybit derivatives trading to analyze liquidation levels and PnL calculations for perpetual contracts.

Instructions

Get mark price candlestick data for derivatives trading. Mark price is used for liquidation calculations and PnL. Available for linear and inverse perpetual contracts only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNoProduct type: 'linear' for USDT perpetuals, 'inverse' for coin-margined futureslinear
symbolYesTrading pair symbol. Examples: 'BTCUSDT', 'ETHUSDT'
intervalNoTime interval for each candlestick. Minutes: '1', '3', '5', '15', '30', '60' (1h), '120' (2h), '240' (4h), '360' (6h), '720' (12h). Periods: 'D' (daily), 'W' (weekly), 'M' (monthly)D
startNoStart time in milliseconds timestamp (OPTIONAL). The OLDEST time point (furthest back). If not provided, returns recent data.
endNoEnd time in milliseconds timestamp (OPTIONAL). The NEWEST time point (most recent). If not provided, defaults to current time.
limitNoMaximum number of candlesticks to return (OPTIONAL). Range: 1-1000.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BCusack/bybit-py-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server