Account Data

Query Trades Info

Retrieve information about specific trades/fills.

API Key Permissions Required: Orders and trades - Query closed orders & trades

post/private/QueryTrades

Request

  • Base URL: https://api.kraken.com/0
  • URL: https://api.kraken.com/0/private/QueryTrades
  • Auth: API key in header API-Key and API key in header API-Sign

Query parameters

account_idstring

Public wallet account ID. Omit to use the authenticated user's default wallet. See List Wallet Accounts.

Request body

nonceinteger required

Nonce used in construction of API-Sign header

txidstring required

Comma delimited list of transaction IDs to query info about (20 maximum)

tradesboolean

Whether or not to include trades related to position in output

ledgersboolean

Whether or not to include related ledger ids for given trade

rebase_multiplier'rebased' | 'base' nullable

Optional parameter for viewing xStocks data.

  • rebased: Display in terms of underlying equity.
  • base: Display in terms of SPV tokens.

Example request

{
  "nonce": 1695828490,
  "txid": "L2QE42-IGSZ3-WEVTLK, STMH53C-C54CG-4SO42I",
  "trades": false
}

Response

Trades info retrieved.

resultobject

Trade info

Example response

{
  "error": [],
  "result": {
    "THVRQM-33VKH-UCI7BS": {
      "ordertxid": "OQCLML-BW3P3-BUCMWZ",
      "postxid": "TKH2SE-M7IF5-CFI7LT",
      "pair": "XXBTZUSD",
      "time": 1688667796.8802,
      "type": "buy",
      "ordertype": "limit",
      "price": "30010.00000",
      "cost": "600.20000",
      "fee": "0.00000",
      "vol": "0.02000000",
      "margin": "0.00000",
      "misc": "",
      "trade_id": 93748276,
      "maker": true
    },
    "TTEUX3-HDAAA-RC2RUO": {
      "ordertxid": "OH76VO-UKWAD-PSBDX6",
      "postxid": "TKH2SE-M7IF5-CFI7LT",
      "pair": "XXBTZEUR",
      "time": 1688082549.3138,
      "type": "buy",
      "ordertype": "limit",
      "price": "27732.00000",
      "cost": "0.20020",
      "fee": "0.00000",
      "vol": "0.00020000",
      "margin": "0.00000",
      "misc": "",
      "trade_id": 74625834,
      "maker": true
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.