Deribit · Schema

Transaction Log

DerivativesCryptocurrencyBitcoinEthereumOptionsFuturesPerpetualsTradingMarket DataBlock TradingWebSocketFinancial

Properties

Name Type Description
id object
currency object
timestamp object
user_id object
username object
commission object
cashflow number For futures and perpetual contracts: Realized session PNL (since last settlement). For options: the amount paid or received for the options traded.
balance number Cash balance after the transaction
change number Change in cash balance. For trades: fees and options premium paid/received. For settlement: Futures session PNL and perpetual session funding.
user_seq integer Sequential identifier of user transaction
type string Transaction category/type. The most common are: `trade`, `deposit`, `withdrawal`, `settlement`, `delivery`, `transfer`, `swap`, `correction`. New types can be added any time in the future
info object Additional information regarding transaction. Strongly dependent on the log entry type
equity number Updated equity value after the transaction
mark_price number Market price during the trade
settlement_price number The settlement price for the instrument during the delivery
index_price number The index price for the instrument during the delivery
instrument_name object
position number Updated position size after the transaction
side string One of: `short` or `long` in case of settlements, `close sell` or `close buy` in case of deliveries, `open sell`, `open buy`, `close sell`, `close buy` in case of trades
amount number It represents the requested order size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin.
price number Settlement/delivery price or the price level of the traded contracts
price_currency string Currency symbol associated with the `price` field value
trade_id object
order_id object
user_role object
fee_role object
profit_as_cashflow boolean Indicator informing whether the cashflow is waiting for settlement or not
interest_pl number Actual funding rate of trades and settlements on perpetual instruments
block_rfq_id integer ID of the Block RFQ - when trade was part of the Block RFQ
ip string The IP address from which the trade was initiated
session_rpl object
session_upl object
total_interest_pl number Total session funding rate
contracts object
View JSON Schema on GitHub

JSON Schema

transaction_log.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.github.io/deribit/json-schema/transaction_log.json",
  "title": "Transaction Log",
  "properties": {
    "id": {
      "$ref": "#/components/schemas/id"
    },
    "currency": {
      "$ref": "#/components/schemas/currency"
    },
    "timestamp": {
      "$ref": "#/components/schemas/timestamp"
    },
    "user_id": {
      "$ref": "#/components/schemas/user_id"
    },
    "username": {
      "$ref": "#/components/schemas/username"
    },
    "commission": {
      "$ref": "#/components/schemas/commission"
    },
    "cashflow": {
      "type": "number",
      "description": "For futures and perpetual contracts: Realized session PNL (since last settlement). For options: the amount paid or received for the options traded."
    },
    "balance": {
      "type": "number",
      "description": "Cash balance after the transaction"
    },
    "change": {
      "type": "number",
      "description": "Change in cash balance. For trades: fees and options premium paid/received. For settlement: Futures session PNL and perpetual session funding."
    },
    "user_seq": {
      "type": "integer",
      "description": "Sequential identifier of user transaction"
    },
    "type": {
      "type": "string",
      "description": "Transaction category/type. The most common are: `trade`, `deposit`, `withdrawal`, `settlement`, `delivery`, `transfer`, `swap`, `correction`. New types can be added any time in the future"
    },
    "info": {
      "type": "object",
      "description": "Additional information regarding transaction. Strongly dependent on the log entry type"
    },
    "equity": {
      "type": "number",
      "description": "Updated equity value after the transaction"
    },
    "mark_price": {
      "type": "number",
      "description": "Market price during the trade"
    },
    "settlement_price": {
      "type": "number",
      "description": "The settlement price for the instrument during the delivery"
    },
    "index_price": {
      "type": "number",
      "description": "The index price for the instrument during the delivery"
    },
    "instrument_name": {
      "$ref": "#/components/schemas/instrument_name"
    },
    "position": {
      "type": "number",
      "description": "Updated position size after the transaction"
    },
    "side": {
      "type": "string",
      "description": "One of: `short` or `long` in case of settlements, `close sell` or `close buy` in case of deliveries, `open sell`, `open buy`, `close sell`, `close buy` in case of trades"
    },
    "amount": {
      "type": "number",
      "description": "It represents the requested order size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin."
    },
    "price": {
      "type": "number",
      "description": "Settlement/delivery price or the price level of the traded contracts"
    },
    "price_currency": {
      "type": "string",
      "description": "Currency symbol associated with the `price` field value"
    },
    "trade_id": {
      "$ref": "#/components/schemas/trade_id"
    },
    "order_id": {
      "$ref": "#/components/schemas/order_id"
    },
    "user_role": {
      "$ref": "#/components/schemas/role"
    },
    "fee_role": {
      "$ref": "#/components/schemas/fee_role"
    },
    "profit_as_cashflow": {
      "type": "boolean",
      "description": "Indicator informing whether the cashflow is waiting for settlement or not"
    },
    "interest_pl": {
      "type": "number",
      "description": "Actual funding rate of trades and settlements on perpetual instruments"
    },
    "block_rfq_id": {
      "type": "integer",
      "description": "ID of the Block RFQ - when trade was part of the Block RFQ"
    },
    "ip": {
      "type": "string",
      "description": "The IP address from which the trade was initiated"
    },
    "session_rpl": {
      "$ref": "#/components/schemas/rpl"
    },
    "session_upl": {
      "$ref": "#/components/schemas/upl"
    },
    "total_interest_pl": {
      "type": "number",
      "description": "Total session funding rate"
    },
    "contracts": {
      "$ref": "#/components/schemas/contracts"
    }
  },
  "required": [
    "id",
    "currency",
    "timestamp",
    "user_id",
    "commission",
    "cashflow",
    "balance",
    "change",
    "user_seq",
    "type"
  ],
  "type": "object"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/transaction_log"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.