> For the complete documentation index, see [llms.txt](https://docs.kaiko.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kaiko.com/rest-api/cefi-derivatives-markets/market-data/decorated-trades.md). Agents can also search and read this documentation through its [MCP server](https://docs.kaiko.com/~gitbook/mcp).

# Decorated trades

{% hint style="info" %}

### This data is available as an add-on for the following Kaiko packages:

* Level 1 & Level 2 Data \[Level 1 Tick-Level]

*Subscriptions with "CeFi Derivatives" as the market type.*
{% endhint %}

## What is this endpoint for?

> This endpoint places every options trade in its market context. For the options of one underlying on one exchange, it returns one row per trade, decorated with everything around it: the trade itself (time, contract, size, price, implied volatility and greeks), the top of the order book just before and just after the trade (bid, ask, mid and mark, with their implied volatilities and sizes), the open interest before and after, and two aggressor verdicts: the side the venue reported, and the initiator identified by Kaiko's proprietary direction algorithm.\
> \
> This algorithm, behind \`kaiko\_direction\`, relies on a set of heuristics that compare the trade's price, implied volatility and size with the order book just before it. Decorated trades are the foundation of Kaiko's options flow analytics: top trades, put/call distribution and gamma exposure. When no dates are given, the trades of the last 24 hours are returned, newest first.\
> \
> {% hint style="warning" %}\
> The time range can cover up to 24 hours, and a response up to 100,000 trades. A wider range, or a range holding more trades, returns a 400 error: the range is never shortened automatically.\
> {% endhint %}

```json
{"openapi":"3.1.1","info":{"title":"Kaiko API","version":"2026-10-01"},"tags":[{"name":"Trades flow","description":"Options trades flow: the trades of listed crypto options, decorated with the order book around each trade, and the analytics derived from them; and the option prints of US-listed equities and ETFs, decorated with the quotes, greeks and implied volatility around each one, their most traded options and the contracts traded per session and option."}],"servers":[{"url":"https://api.kaiko.io","description":"Production"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"Your Kaiko API key. Sent on every request. Never in a query parameter.\n"}},"parameters":{"OptionExchangeQuery":{"name":"exchange","in":"query","required":true,"description":"Exchange listing the options, part of the underlying's identity with `base_asset` and `quote_asset`.","schema":{"$ref":"#/components/schemas/OptionExchange"}},"BaseAssetQuery":{"name":"base_asset","in":"query","required":true,"description":"Base asset code.","schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]*$"}},"InverseDefaultQuoteAssetQuery":{"name":"quote_asset","in":"query","required":false,"description":"Quote and settlement currency of the options, `usd` by default: `usd` selects the inverse options, `usdc` or `usdt` the linear ones.","schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9._-]*$","default":"usd"}},"DecoratedTradeInstrumentQuery":{"name":"instrument","in":"query","required":false,"description":"Keep only the trades of this option, by its Kaiko instrument code as the rows carry it in `instrument`: lowercase letters and digits (`btc27nov2664000p`). A venue symbol, as Amberdata names the instrument (`BTC-27NOV26-64000-P`), is a 400 naming its Kaiko code. Optional, unlike an instrument's identity elsewhere: the underlying is the identity here, and this narrows it to one contract.","schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$"}},"ExpiryQuery":{"name":"expiry","in":"query","required":false,"description":"Keep only the options expiring at this time, ISO 8601 UTC, matched exactly against the option's expiry. Any precision from seconds to nanoseconds; missing digits read as zeros.","schema":{"type":"string","format":"date-time"}},"StrikeQuery":{"name":"strike","in":"query","required":false,"description":"Keep only the options with this strike, in the quote currency of the strike, matched exactly.","schema":{"type":"number","format":"double","exclusiveMinimum":0}},"OptionTypeQuery":{"name":"option_type","in":"query","required":false,"description":"Keep only calls or only puts. Omitted means all.","schema":{"$ref":"#/components/schemas/OptionTypeFilter"}},"IsBlockTradeQuery":{"name":"is_block_trade","in":"query","required":false,"description":"`true` keeps only the legs of block trades, `false` only on-screen trades. Omitted means both. `false` together with `block_trade_id` returns 400.","schema":{"type":"boolean"}},"BlockTradeIdQuery":{"name":"block_trade_id","in":"query","required":false,"description":"Keep only the legs of this block trade, by the venue's block trade id.","schema":{"type":"string","minLength":1}},"StartTimeQuery":{"name":"start_time","in":"query","required":false,"description":"Inclusive start of the window, ISO 8601 UTC. The endpoint documents its precision and its default when omitted; a nanosecond endpoint accepts any precision from seconds to nanoseconds.\n","schema":{"type":"string","format":"date-time"}},"EndTimeQuery":{"name":"end_time","in":"query","required":false,"description":"Exclusive end of the window, ISO 8601 UTC, at the precision the endpoint documents. Defaults to now. Must be after `start_time`.\n","schema":{"type":"string","format":"date-time"}},"SortQuery":{"name":"sort","in":"query","required":false,"description":"Order on the time axis.","schema":{"$ref":"#/components/schemas/Sort"}},"ApiVersionQuery":{"name":"api_version","in":"query","required":false,"description":"Contract version to serve, as a date. Each endpoint serves its newest version released on or before it, so one date pins the whole API. When omitted, the endpoint's oldest version still served is used, so breaking changes only reach clients that raise their date. Append `-preview` (`2027-02-01-preview`) to also be served preview versions, which carry no stability promise. A date in the future, or one resolving to a retired version, returns 400 `unsupported_api_version`. The version served is echoed in `meta.api_version`, and `meta.url` and `meta.next_url` always carry this parameter. No `default` here on purpose: it differs per endpoint, and the request validator would otherwise fill in one date for all of them.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(-preview)?$"}}},"schemas":{"OptionExchange":{"type":"string","enum":["drbt","okex","bbit"],"description":"Kaiko code of an options exchange: `drbt` (Deribit), `okex` (OKX), `bbit` (Bybit)."},"OptionTypeFilter":{"type":"string","enum":["call","put"],"description":"Kind of option to keep."},"Sort":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Order on the time axis."},"ListTradesFlowDecoratedTradesResponse":{"type":"object","description":"Every decorated trade of the window, newest first.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DecoratedTrade"}},"meta":{"$ref":"#/components/schemas/Meta"}}},"DecoratedTrade":{"type":"object","description":"One option trade, decorated with the top of book just before and just after it, the greeks, the open-interest change and the aggressor direction. Unique on (`exchange`, `trade_id`). Every key is present on every row; a decoration the venue did not publish is `null`, never `0`.","required":["exchange","base_asset","quote_asset","timestamp","trade_id","block_trade_id","number_of_legs","instrument","instrument_normalized","expiry","strike","option_type","is_buy_side","exchange_direction","kaiko_direction","trade_amount","trade_iv","price","price_usd","index_price","underlying_price","volume_24h","price_high_24h","price_low_24h","pre_trade_order_book_timestamp","pre_trade_bid_price","pre_trade_bid_iv","pre_trade_bid_volume","pre_trade_ask_price","pre_trade_ask_iv","pre_trade_ask_volume","pre_trade_mid_price","pre_trade_mid_iv","pre_trade_mark_price","pre_trade_mark_iv","post_trade_order_book_timestamp","post_trade_bid_price","post_trade_bid_iv","post_trade_bid_volume","post_trade_ask_price","post_trade_ask_iv","post_trade_ask_volume","post_trade_mid_price","post_trade_mid_iv","post_trade_mark_price","post_trade_mark_iv","delta","gamma","theta","vega","rho","pre_trade_open_interest","post_trade_open_interest","open_interest_change"],"properties":{"exchange":{"$ref":"#/components/schemas/OptionExchange"},"base_asset":{"type":"string","description":"Underlying asset code, as in the query."},"quote_asset":{"type":"string","description":"Quote and settlement currency of the options, as in the query (`usd` for inverse options)."},"timestamp":{"type":"string","format":"date-time","description":"Time of the trade as the venue reported it, ISO 8601 UTC, millisecond precision (3 fractional digits, trailing zeros kept)."},"trade_id":{"type":"string","description":"The venue's trade id, unique on the venue."},"block_trade_id":{"type":["string","null"],"description":"The venue's id of the block trade this trade is a leg of. `null` when not applicable: the trade was on screen."},"number_of_legs":{"type":["integer","null"],"format":"int32","description":"Number of legs of the block trade, as the venue declared it (futures legs included). `null` when not applicable (an on-screen trade) or not reported by the venue."},"instrument":{"type":"string","description":"Kaiko instrument code of the option traded, the value the `instrument` filter takes."},"instrument_normalized":{"type":"string","description":"The option's code in the form `<EXCHANGE NAME>-<BASE>-<DDMMMYY>-<STRIKE>-<C|P>`, as Amberdata names it. It carries the venue's name, so it differs between venues."},"expiry":{"type":"string","format":"date-time","description":"Expiry of the option, ISO 8601 UTC, millisecond precision (3 fractional digits, like every time column of the dataset)."},"strike":{"type":["number","null"],"format":"double","description":"Strike price, in the quote currency of the underlying's index (USD for inverse options). `null` when not reported: the venue's instrument code carried none."},"option_type":{"$ref":"#/components/schemas/OptionType"},"is_buy_side":{"type":["boolean","null"],"description":"The venue's taker-side flag: `true` when the taker bought. `null` when not reported by the venue."},"exchange_direction":{"$ref":"#/components/schemas/TradeDirection"},"kaiko_direction":{"$ref":"#/components/schemas/TradeDirection"},"trade_amount":{"type":["number","null"],"format":"double","description":"Size of the trade, in contracts. `null` when not reported: the venue published no value for this trade."},"trade_iv":{"type":["number","null"],"format":"double","description":"Implied volatility of the trade price as the venue published it, nominal (`0.45` is 45 %). Never filled from the ticker. `null` when not reported: the venue published no value for this trade."},"price":{"type":["number","null"],"format":"double","description":"Trade price, in the option's quote currency (`base_asset` for inverse options). `null` when not reported: the venue published no value for this trade."},"price_usd":{"type":["number","null"],"format":"double","description":"Trade price in USD. `null` when not reported: the venue published no value for this trade."},"index_price":{"type":["number","null"],"format":"double","description":"The venue's index price of the underlying at the trade, in USD. `null` when not reported: the venue published no value for this trade."},"underlying_price":{"type":["number","null"],"format":"double","description":"Price of the option's underlying (its future or index) from the ticker nearest the trade, in USD. `null` when not reported: the venue published no value for this trade."},"volume_24h":{"type":["number","null"],"format":"double","description":"The option's trailing 24-hour volume as the ticker reported it, in contracts. `null` when not reported: the venue published no value for this trade."},"price_high_24h":{"type":["number","null"],"format":"double","description":"The option's highest trade price over the trailing 24 hours, in its quote currency. `null` when not reported: the venue published no value for this trade."},"price_low_24h":{"type":["number","null"],"format":"double","description":"The option's lowest trade price over the trailing 24 hours, in its quote currency. `null` when not reported: the venue published no value for this trade."},"pre_trade_order_book_timestamp":{"type":["string","null"],"format":"date-time","description":"Time of the last ticker at or before the trade, the top of book the `pre_trade_*` columns come from, ISO 8601 UTC, millisecond precision. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"pre_trade_bid_price":{"type":["number","null"],"format":"double","description":"The best bid price before the trade, in the option's quote currency. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"pre_trade_bid_iv":{"type":["number","null"],"format":"double","description":"Implied volatility of the best bid before the trade, nominal. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"pre_trade_bid_volume":{"type":["number","null"],"format":"double","description":"Size at the best bid before the trade, in contracts. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"pre_trade_ask_price":{"type":["number","null"],"format":"double","description":"The best ask price before the trade, in the option's quote currency. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"pre_trade_ask_iv":{"type":["number","null"],"format":"double","description":"Implied volatility of the best ask before the trade, nominal. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"pre_trade_ask_volume":{"type":["number","null"],"format":"double","description":"Size at the best ask before the trade, in contracts. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"pre_trade_mid_price":{"type":["number","null"],"format":"double","description":"Mid of the best bid and ask prices before the trade. `null` when either side is."},"pre_trade_mid_iv":{"type":["number","null"],"format":"double","description":"Mid of the best bid and ask implied volatilities before the trade, nominal. `null` when either side is."},"pre_trade_mark_price":{"type":["number","null"],"format":"double","description":"The venue's mark price before the trade, in the option's quote currency. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"pre_trade_mark_iv":{"type":["number","null"],"format":"double","description":"The venue's mark implied volatility before the trade, nominal. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"post_trade_order_book_timestamp":{"type":["string","null"],"format":"date-time","description":"Time of the first ticker after the trade, the top of book the `post_trade_*` columns come from, ISO 8601 UTC, millisecond precision. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"post_trade_bid_price":{"type":["number","null"],"format":"double","description":"The best bid price after the trade, in the option's quote currency. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"post_trade_bid_iv":{"type":["number","null"],"format":"double","description":"Implied volatility of the best bid after the trade, nominal. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"post_trade_bid_volume":{"type":["number","null"],"format":"double","description":"Size at the best bid after the trade, in contracts. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"post_trade_ask_price":{"type":["number","null"],"format":"double","description":"The best ask price after the trade, in the option's quote currency. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"post_trade_ask_iv":{"type":["number","null"],"format":"double","description":"Implied volatility of the best ask after the trade, nominal. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"post_trade_ask_volume":{"type":["number","null"],"format":"double","description":"Size at the best ask after the trade, in contracts. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"post_trade_mid_price":{"type":["number","null"],"format":"double","description":"Mid of the best bid and ask prices after the trade. `null` when either side is."},"post_trade_mid_iv":{"type":["number","null"],"format":"double","description":"Mid of the best bid and ask implied volatilities after the trade, nominal. `null` when either side is."},"post_trade_mark_price":{"type":["number","null"],"format":"double","description":"The venue's mark price after the trade, in the option's quote currency. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"post_trade_mark_iv":{"type":["number","null"],"format":"double","description":"The venue's mark implied volatility after the trade, nominal. `null` when not applicable: the venue published no ticker for the option on that side of the trade."},"delta":{"type":["number","null"],"format":"double","description":"Option delta, as the venue published it on the ticker nearest the trade. `null` when not reported: the venue published no value for this trade."},"gamma":{"type":["number","null"],"format":"double","description":"Option gamma, as the venue published it on the ticker nearest the trade. `null` when not reported: the venue published no value for this trade."},"theta":{"type":["number","null"],"format":"double","description":"Option theta, as the venue published it on the ticker nearest the trade. `null` when not reported: the venue published no value for this trade."},"vega":{"type":["number","null"],"format":"double","description":"Option vega, as the venue published it on the ticker nearest the trade. `null` when not reported: the venue published no value for this trade."},"rho":{"type":["number","null"],"format":"double","description":"Option rho, as the venue published it on the ticker nearest the trade. `null` when not reported: the venue published no value for this trade."},"pre_trade_open_interest":{"type":["number","null"],"format":"double","description":"Open interest of the option before the trade, in contracts. `null` when not reported: the venue published no value for this trade."},"post_trade_open_interest":{"type":["number","null"],"format":"double","description":"Open interest of the option after the trade, in contracts. `null` when not reported: the venue published no value for this trade."},"open_interest_change":{"type":["number","null"],"format":"double","description":"`post_trade_open_interest` minus `pre_trade_open_interest`, in contracts. `null` when either is."}}},"OptionType":{"type":"string","enum":["call","put","unknown"],"description":"Kind of the option. Never `null`: `unknown` when the source holds a value that is neither call nor put (none does today); the row is still served."},"TradeDirection":{"type":"string","enum":["buy","sell","unknown"],"description":"Side of the aggressor (taker) of the trade. `exchange_direction` is the side the venue reported; `kaiko_direction` is Kaiko's verdict from the top of book, IVs and size around the trade, falling back to the venue's side when the heuristics are undecided. Never `null`: `unknown` when the source holds a value that is neither buy nor sell (none does today)."},"Meta":{"type":"object","description":"Metadata of a collection response.","required":["api_version","url","count","next_url"],"properties":{"api_version":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(-preview)?$","description":"Version this endpoint served: its version released on or before the requested `api_version`, or its oldest version still served when the request omitted it. Suffixed `-preview` when a preview version served it."},"url":{"type":"string","format":"uri","description":"Absolute URL of the request that produced this response, as received: path and query string unchanged, defaults not filled in, except `api_version`, which is always present (the version served when the request omitted it). Lets a stored response say what it answers, in the shape it was answered."},"count":{"type":"integer","minimum":0,"description":"Number of items in `data` on this page."},"next_url":{"type":["string","null"],"format":"uri","description":"Absolute URL of the next page, `null` on the last page. It holds only public parameters: the original query with every default made explicit (`api_version` included) and the time bound moved past the last row, plus the dataset's tie-breaker (`after_<key>`) where timestamps can tie. An operation that pages on another keyset (a block position, a snapshot) says so in its description, and its `next_url` carries that keyset's parameters instead."}}},"Problem":{"type":"object","description":"RFC 9457 problem details. Served as application/problem+json.","required":["type","title","status","code"],"properties":{"type":{"type":"string","format":"uri-reference","const":"about:blank","description":"Always `about:blank`; the reason is carried by `code`."},"title":{"type":"string","description":"HTTP reason phrase."},"status":{"type":"integer","minimum":400,"maximum":599,"description":"HTTP status code, repeated for clients that lose the status line."},"detail":{"type":"string","description":"Human-readable explanation specific to this occurrence. Do not parse it."},"instance":{"type":"string","format":"uri-reference","description":"Request path and request id, to quote to support."},"code":{"type":"string","pattern":"^[a-z][a-z0-9_]*$","description":"Stable machine-readable reason. Clients branch on this. New values are additive; renaming one is breaking. Values in use: invalid_parameter, unsupported_api_version, missing_api_key, invalid_api_key, not_entitled, history_out_of_entitlement, unknown_instrument, pair_not_covered, unknown_asset, unknown_index, unsupported_blockchain, chain_capability_unsupported, token_not_found, unknown_contract, unknown_protocol, unknown_pool, query_too_large, snapshot_expired, resource_not_found, method_not_allowed, not_acceptable, rate_limited, internal_error, service_unavailable."},"errors":{"type":"array","description":"On 400, one entry per invalid parameter.","items":{"$ref":"#/components/schemas/ParameterError"}}}},"ParameterError":{"type":"object","description":"One invalid parameter in a 400 response.","required":["parameter","detail"],"properties":{"parameter":{"type":"string","description":"Name of the offending parameter."},"detail":{"type":"string","description":"What is wrong with it."}}}},"responses":{"BadRequest":{"description":"Invalid parameter, window or API version.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"Unauthorized":{"description":"Missing or unknown X-Api-Key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"Forbidden":{"description":"The key is valid but not entitled to this product, instrument or history depth.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"NotAcceptable":{"description":"The Accept header excludes application/json.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"TooManyRequests":{"description":"Rate limited. Retry after the delay in Retry-After.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"InternalError":{"description":"Unexpected server failure.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"ServiceUnavailable":{"description":"A dependency is down or the data is not available yet.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}}}},"paths":{"/analytics/trades-flow/decorated-trades":{"get":{"operationId":"ListTradesFlowDecoratedTrades","tags":["Trades flow"],"summary":"What is this endpoint for?","description":"This endpoint places every options trade in its market context. For the options of one underlying on one exchange, it returns one row per trade, decorated with everything around it: the trade itself (time, contract, size, price, implied volatility and greeks), the top of the order book just before and just after the trade (bid, ask, mid and mark, with their implied volatilities and sizes), the open interest before and after, and two aggressor verdicts: the side the venue reported, and the initiator identified by Kaiko's proprietary direction algorithm.\n\nThis algorithm, behind `kaiko_direction`, relies on a set of heuristics that compare the trade's price, implied volatility and size with the order book just before it. Decorated trades are the foundation of Kaiko's options flow analytics: top trades, put/call distribution and gamma exposure. When no dates are given, the trades of the last 24 hours are returned, newest first.\n\n{% hint style=\"warning\" %}\nThe time range can cover up to 24 hours, and a response up to 100,000 trades. A wider range, or a range holding more trades, returns a 400 error: the range is never shortened automatically.\n{% endhint %}","parameters":[{"$ref":"#/components/parameters/OptionExchangeQuery"},{"$ref":"#/components/parameters/BaseAssetQuery"},{"$ref":"#/components/parameters/InverseDefaultQuoteAssetQuery"},{"$ref":"#/components/parameters/DecoratedTradeInstrumentQuery"},{"$ref":"#/components/parameters/ExpiryQuery"},{"$ref":"#/components/parameters/StrikeQuery"},{"$ref":"#/components/parameters/OptionTypeQuery"},{"$ref":"#/components/parameters/IsBlockTradeQuery"},{"$ref":"#/components/parameters/BlockTradeIdQuery"},{"$ref":"#/components/parameters/StartTimeQuery"},{"$ref":"#/components/parameters/EndTimeQuery"},{"$ref":"#/components/parameters/SortQuery"},{"$ref":"#/components/parameters/ApiVersionQuery"}],"responses":{"200":{"description":"The decorated trades of the window in `sort` order, or an empty `data` when the window holds none (or the underlying is unknown); `meta.next_url` is always `null`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTradesFlowDecoratedTradesResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"The underlying (`base_asset`, `quote_asset`) was never held on `exchange`.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"406":{"$ref":"#/components/responses/NotAcceptable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.kaiko.com/rest-api/cefi-derivatives-markets/market-data/decorated-trades.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
