Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

getMarkPriceKline

Read-only

Fetch historical mark price candles for derivatives to evaluate margin and liquidation risk, backtest strategies, and compare against trading price candles.

Instructions

Query historical mark price klines used for margin and liquidation calculations in derivative contracts.

Use this endpoint when you need to:

  • Analyze historical mark price movements for risk management or backtesting

  • Chart mark price candles alongside trading price candles for comparison

  • Understand liquidation risk over time based on mark price history

Supported Products: USDT contract, USDC contract, Inverse contract

Each kline entry is a 5-element array: [startTime, open, high, low, close]. Data is returned in reverse chronological order (most recent first).

Do not use this endpoint for regular trading price candles — use getMarketKline instead. Do not use this endpoint for index price candles — use getIndexPriceKline instead.

Notes:

  • Data is returned in reverse chronological order (most recent first)

  • No authentication required

Agent hint: Use this endpoint to retrieve historical mark price candles for contracts. Mark price is used for margin requirements and liquidation — it differs from the trading price. For regular OHLCV trading price candles use getMarketKline. For index price candles use getIndexPriceKline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNo
limitNo
startNo
symbolYes
categoryNolinear
intervalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.11

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already mark this as readOnly and openWorld, and the description adds complementary behavioral details: it requires no authentication, returns data in reverse chronological order, and each kline entry is a 5-element array. This goes beyond the structured annotations without contradicting them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and front-loaded, with bullet points for use cases, supported products, and exclusions. However, the reverse-chronological detail is repeated twice, and the final 'Agent hint' largely duplicates earlier content, so it is slightly less concise than it could be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the return format, data ordering, authentication requirement, supported contract types, and clear alternatives. It is incomplete only in parameter semantics, especially start/end units and interval specifics, which are left to inference despite the lack of schema descriptions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description does not explain the meaning or format of start, end, limit, category, or interval parameters. It mentions supported product types and the kline array shape, but that does not compensate for the missing parameter-level guidance in a 6-parameter tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Query historical mark price klines used for margin and liquidation calculations in derivative contracts.' It also explicitly differentiates itself from sibling tools by naming getMarketKline and getIndexPriceKline as the correct tools for trading and index price candles respectively.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit when-to-use scenarios (risk management, backtesting, chart comparison, liquidation risk) and explicit when-not-to-use instructions with named alternatives. This leaves no ambiguity about when this endpoint should be selected over its siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools