Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

getTransactionLog

Read-only

Fetch transaction logs from a Bybit Unified account, filtered by type, currency, or time range. Supports up to two years of history with flexible time-window options.

Instructions

Query transaction logs in your Unified account. Supports up to 2 years of data.

Notes:

  • During periods of extreme market volatility, this interface may experience increased latency or temporary delays in data delivery.

Time range rules:

  • Without both startTime and endTime: returns last 24 hours by default

  • Only startTime provided: returns from startTime to startTime + 24 hours

  • Only endTime provided: returns from endTime - 24 hours to endTime

  • Both provided: endTime - startTime must be ≤ 7 days

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNo
limitNo
cursorNo
endTimeNo
baseCoinNo
categoryNo
currencyNo
startTimeNo
accountTypeNo
transSubTypeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.1.20
    • removedInput schema / properties / transSubType / enum
      Removed value: -[
      -  "movePosition"
      -]
    • addedInput schema / properties / type / enum
      Added value: +[
      +  "TRADE",
      +  "SETTLEMENT",
      +  "DELIVERY",
      +  "LIQUIDATION",
      +  "PART_LIQUIDATION",
      +  "ADL",
      +  "CLOSEPNL",
      +  "POSITION_TAKE_OVER",
      +  "TRANSFER_IN",
      +  "TRANSFER_OUT",
      +  "INSURANCE_FUND",
      +  "FEE_REFUND",
      +  "INTEREST",
      +  "FIXED_INTEREST",
      +  "FIXED_INTEREST_REFUND",
      +  "BONUS",
      +  "BONUS_RECOLLECT",
      +  "BONUS_TRANSFER_IN",
      +  "BONUS_TRANSFER_OUT",
      +  "AIRDROP",
      +  "AIRDROP_OUT",
      +  "AIRDROP_EFTD",
      +  "AIRDROP_OUT_EFTD",
      +  "AIRDROP_FIAT",
      +  "AIRDROP_OUT_FIAT",
      +  "OTC_TRADE",
      +  "CURRENCY_BUY",
      +  "CURRENCY_SELL",
      +  "CURRENCY_BUY_MANUEL",
      +  "CURRENCY_SELL_MANUEL",
      +  "AUTO_DEDUCTION",
      +  "PERP_SYMBOL_SETTLE",
      +  "SPREAD_FEE_OUT",
      +  "MANUAL_LOANS_BORROW",
      +  "MANUAL_LOANS_REPAY",
      +  "AUTO_LOANS_BORROW",
      +  "AUTO_LOANS_REPAY",
      +  "SPOT_REPAYMENT_BUY",
      +  "SPOT_REPAYMENT_SELL",
      +  "LOANS_ASSET_REDEMPTION",
      +  "LOANS_PLEDGE_ASSET",
      +  "LOANS_BORROW_FUNDS",
      +  "LOANS_REPAY_FUNDS",
      +  "INSTITUTION_LOAN_IN",
      +  "INSTITUTION_PAYBACK_PRINCIPAL_OUT",
      +  "INSTITUTION_PAYBACK_INTEREST_OUT",
      +  "INSTITUTION_EXCHANGE_SELL",
      +  "INSTITUTION_EXCHANGE_BUY",
      +  "INSTITUTION_LIQ_PRINCIPAL_OUT",
      +  "INSTITUTION_LIQ_INTEREST_OUT",
      +  "INSTITUTION_LOAN_TRANSFER_IN",
      +  "INSTITUTION_LOAN_TRANSFER_OUT",
      +  "INSTITUTION_LOAN_WITHOUT_WITHDRAW",
      +  "INSTITUTION_LOAN_RESERVE_IN",
      +  "INSTITUTION_LOAN_RESERVE_OUT",
      +  "PREMARKET_TRANSFER_IN",
      +  "PREMARKET_TRANSFER_OUT",
      +  "PREMARKET_DELIVERY_SELL_NEW_COIN",
      +  "PREMARKET_DELIVERY_BUY_NEW_COIN",
      +  "PREMARKET_DELIVERY_PLEDGE_PAY_SELLER",
      +  "PREMARKET_DELIVERY_PLEDGE_BACK",
      +  "PREMARKET_ROLLBACK_PLEDGE_BACK",
      +  "PREMARKET_ROLLBACK_PLEDGE_PENALTY_TO_BUYER",
      +  "TOKENS_SUBSCRIPTION",
      +  "TOKENS_REDEMPTION",
      +  "FLEXIBLE_STAKING_SUBSCRIPTION",
      +  "FLEXIBLE_STAKING_REDEMPTION",
      +  "FLEXIBLE_STAKING_REFUND",
      +  "FIXED_STAKING_SUBSCRIPTION",
      +  "FIXED_STAKING_REFUND",
      +  "ONCHAINEARN_SUBSCRIPTION",
      +  "ONCHAINEARN_REFUND",
      +  "ONCHAINEARN_REDEMPTION",
      +  "ONCHAINEARN_REDEMPTION_PRINCIPAL",
      +  "ONCHAINEARN_LST",
      +  "DEFI_INVESTMENT_SUBSCRIPTION",
      +  "DEFI_INVESTMENT_REFUND",
      +  "DEFI_INVESTMENT_REDEMPTION",
      +  "STRUCTURE_PRODUCT_SUBSCRIPTION",
      +  "STRUCTURE_PRODUCT_REFUND",
      +  "CLASSIC_WEALTH_MANAGEMENT_SUBSCRIPTION",
      +  "PREMIUM_WEALTH_MANAGEMENT_SUBSCRIPTION",
      +  "PREMIUM_WEALTH_MANAGEMENT_REFUND",
      +  "LIQUIDITY_MINING_SUBSCRIPTION",
      +  "LIQUIDITY_MINING_REFUND",
      +  "PWM_SUBSCRIPTION",
      +  "PWM_REFUND",
      +  "CUSTODY_LOCK",
      +  "CUSTODY_UNLOCK",
      +  "CUSTODY_UNLOCK_REFUND",
      +  "CUSTODY_NETWORK_FEE",
      +  "CUSTODY_SETTLE_FEE",
      +  "PLATFORM_TOKEN_MNT_LIQRECALLEDMMNT",
      +  "PLATFORM_TOKEN_MNT_LIQRETURNEDMNT",
      +  "PEF_TRANSFER_IN",
      +  "PEF_TRANSFER_OUT",
      +  "PEF_PROFIT_SHARE"
      +]
  2. First observedv2.1.11

TDQS

B3.1/5.0
Behavior4/5

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

Beyond the readOnlyHint annotation, the description explicitly discloses default 24-hour behavior, the 24-hour window when only one bound is provided, and the 7-day maximum range when both are provided. It also warns about latency during extreme market volatility. This is substantive behavioral context that helps the agent anticipate edge cases, though it does not describe pagination or result ordering.

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 compact and well-structured, with a clear opening sentence and bulleted time-range rules. The volatility note is brief and relevant. The only minor inefficiency is having a single-item 'Notes' section, but overall the content earns its place.

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

Completeness2/5

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

The tool has 10 optional parameters, no output schema, and no per-parameter descriptions, yet the description only covers time-range constraints. It omits pagination behavior, sorting, response shape, and semantics for most filter fields. An agent could call it with defaults, but targeted queries or cursor-based pagination would require external knowledge, which is a significant gap for a complex tool.

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?

With 0% schema description coverage, the description must compensate for all parameters, but it only explains startTime/endTime semantics. Other parameters like type, category, currency, baseCoin, accountType, transSubType, limit, and cursor are left to their names and enum lists. This partial compensation is insufficient, especially for ambiguous fields such as transSubType.

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

Purpose4/5

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

The description clearly states the action and resource: 'Query transaction logs in your Unified account.' The added detail about supporting up to 2 years of data further defines scope. However, it does not explicitly differentiate this from similar siblings like getOrderHistory, getTradeHistory, or getSettlementRecord, so the distinction is left to inference.

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

Usage Guidelines2/5

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

The description provides detailed time-window rules that help when calling with different parameter combinations, but it never states when to prefer this tool over alternatives or mentions exclusions. There is no sibling comparison or 'use X instead' guidance. The intended usage is only implied by the name and the phrase 'transaction logs.'

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