Account Management
Private

Retrieves a detailed transaction log for the authenticated account. The log includes all account activities such as trades, deposits, withdrawals, transfers, fees, and other balance-affecting operations.

Results can be filtered by currency, time range, and query keywords. start_timestamp must not exceed end_timestamp; both values are clamped to the current time, so a future end_timestamp is treated as now. The matching window includes end_timestamp.

count defaults to 100 and is capped at 1000. Pass continuation (a log id from the previous response) to fetch the next older page. continuation is null when there are no more entries.

To retrieve transactions for a specific subaccount, pass subaccount_id from the main account. Removed subaccounts are accepted. The authenticated user id is always applied as a filter.

Trade entries executed in Starbase include starbase_match_id, starbase_order_id, and starbase_timestamp. Those fields are omitted on spot trades. Block RFQ allocations appear as type trade allocation rather than trade.

When an option expires out of the money, the transaction log type is expiry. As there is nothing to settle into futures in this case, this remains the only entry in the transaction log for that expiration. In-the-money expiries use assignment or exercise, and may be followed by a future creation entry.

LSP and ADL position moves are logged as type LSP transfer / ADL transfer. Both the liquidated/deleveraged account and the receiving account get that same type. A separate optional role field (source or destination) is present on those transfer entries — and also on liquidation transfer and position move — and is omitted on all other types, including LSP commission / ADL commission and ordinary trades. Do not confuse role with user_role (maker / taker) on trades.

Correction entries may include a related array of the original log entries they correct. While the platform is starting, the method may return temporarily_unavailable.

History Limit: This API method has no time limit - users can query transaction history back to account creation. Note that the CSV export feature available on the website is year-limited to 2023.

Note - This method has distinct API rate limiting requirements: Sustained rate: 1 request/second. For more information, see Rate Limits.

📖 Related Support Article: Transaction log

📖 Related Article: Liquidity Support Program (LSP) API Guide

Scope: account:read

Try in API console

get/private/get_transaction_log

Request

  • Base URL
    https://test.deribit.com/api/v2
  • URL
    https://test.deribit.com/api/v2/private/get_transaction_log
  • Auth
    none declared

Query parameters

currency'BTC' | 'ETH' | 'STETH' | 'ETHW' | 'USDC' | 'USDT' | 'EURR' | 'SOL' | 'XRP' | 'USYC' | 'PAXG' | 'BNB' | 'USDE' required

Currency, i.e "BTC", "ETH", "USDC"

The currency symbol.

📖 Related Article: Using the currency Parameter

start_timestampinteger required

The timestamp (milliseconds since the Unix epoch)

Example:1536569522277

The earliest timestamp to return result from (milliseconds since the UNIX epoch)

end_timestampinteger required

The timestamp (milliseconds since the Unix epoch)

Example:1536569522277

The most recent timestamp to return result from (milliseconds since the UNIX epoch)

querystring
Example:settlement

Space-separated keywords used to filter results. An entry must match every keyword. Keywords are case-sensitive.

Transaction types:

  • trade - trades
  • deposit - deposits
  • withdrawal - withdrawals
  • transfer - transfers between accounts
  • reward - reward transfers
  • mm_lsp_payment - market-maker LSP payout transfers
  • settlement - funding / session settlement (display type settlement)
  • delivery - instrument delivery (display type delivery)
  • expiry - options that expired out of the money
  • assignment - assigned options
  • exercise - exercised options
  • swap - currency swaps
  • correction - balance corrections
  • block_trade - block trades
  • combo_trade - combo trades
  • liquidation - liquidation trades and liquidation transfers (display type liquidation transfer)
  • lsp - LSP position moves and commissions (display types LSP transfer / LSP commission)
  • adl - ADL position moves and commissions (display types ADL transfer / ADL commission)
  • commission - LSP/ADL commissions; typically combined with lsp or adl
  • position - position moves (display type position move); also matches position move transfer
  • insurance - insurance-related transfers
  • insurance_transfer - insurance transfers
  • affiliate - affiliate payouts
  • partner - partner / application fee payouts
  • fee_deposit - fee balance deposits
  • fee_balance_transfer - fee balance transfers
  • stake_reward - staking rewards
  • lock_deposit_balance - locked deposit balance
  • unlock_deposit_balance - unlocked deposit balance
  • summary - settlement summaries
  • options_settlement_summary - options settlement summaries
  • negative_balance_fee - negative balance fees
  • creation - future creation from expired options (display type future creation)
  • margin_loan - margin loan interest, issuance, and repayment
  • corporate_action_adjustment - stock split, rights offering, and spin-off adjustments
  • stock_split - stock splits
  • rights_offering - rights offerings
  • spin_off - spin-offs
  • m_and_a - mergers and acquisitions (display type m&a)
  • rename - instrument renames
  • custody_settlement_fee - custody settlement fees
  • sweep_isolated_position - isolated position sweeps
  • structured_product_spread - structured product spread
  • usdc_reward - USDC rewards
  • usdc_reward_received - USDC rewards received
  • usdc_platform_reward - USDC platform rewards
  • usdc_reward_payment - USDC reward payments
  • ethena_reward - Ethena rewards
  • buidl_reward - BUIDL rewards
  • socialize_loses - socialized losses/refunds (display types socialized fund / socialized refund)

Additional filters:

  • maker / taker - trade role
  • open / close - trade kind (close also matches deliveries and liquidations)
  • buy / sell - direction
  • option / future / spot - instrument kind
  • voice_broker - voice-broker trades

Additional indexed values, depending on type:

  • deposits — destination address (custody deposits also index custody name and request id)
  • withdrawals — withdrawal code or custody request id (not the destination address)
  • transfers — counterparty username
countinteger

Count of transaction log entries returned, default - 100, maximum - 1000

subaccount_idinteger
Example:9

Id of a subaccount

continuationinteger
Example:429946

Continuation token for pagination

Response

Success response

jsonrpc'2.0' required

The JSON-RPC version (2.0)

idinteger

The id that was sent in the request

Example response

{
  "result": {
    "continuation": 429946,
    "logs": [
      {
        "id": 5967413,
        "timestamp": 1536569522277,
        "user_id": 57874,
        "username": "MrTrader",
        "instrument_name": "BTC-PERPETUAL",
        "order_id": "ETH-100234",
        "starbase_order_id": 103148386170,
        "starbase_timestamp": 1536569522277000000,
        "session_rpl": 0.1,
        "session_upl": 0.846863
      }
    ]
  }
}

Changes

    • breaking

      the response property /// became nullable for the status

    • breaking

      the /// response's property type changed from object to no type for status

    • info

      for the query request parameter count, the max was increased from 250.00 to 1000.00

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status