# Recent Darkpool Trades `GET` `https://api.unusualwhales.com/api/darkpool/recent` Returns the latest darkpool trades. For real time streaming of darkpool trades, subscribe to the `off_lit_trades` websocket channel, see [https://api.unusualwhales.com/docs/operations/PublicApi.SocketController.off_lit_trades](https://api.unusualwhales.com/docs/operations/PublicApi.SocketController.off_lit_trades). ## Authentication ``` Authorization: Bearer YOUR_API_KEY ``` ## Query Parameters | Name | Type | Required | Description | |------|------|----------|-------------| | `limit` | Default 100 Max 200 Min 1 | No | How many items to return. Default: 100. Max: 200. Min: 1. | | `date` | Optional Market Date | No | A trading date in the format of YYYY-MM-DD. This is optional and by default the last trading date. | | `min_premium` | StockTradesMinPremium | No | The minimum premium requested trades should have. | | `max_premium` | StockTradesMaxPremium | No | The maximum premium requested trades should have. | | `min_size` | StockTradesMinSize | No | The minimum size requested trades should have. Must be a positive integer. | | `max_size` | StockTradesMaxSize | No | The maximum size requested trades should have. Must be a positive integer. | | `min_volume` | StockTradesMinVol | No | The minimum consolidated volume requested trades should have. Must be a positive integer. | | `max_volume` | StockTradesMaxVol | No | The maximum consolidated volume requested trades should have. Must be a positive integer. | | `order` | OrderDirection | No | Whether to sort descending or ascending. Descending by default. | | `order_by` | Darkpool order by field | No | The field to order the darkpool trades by. Defaults to executed_at. | ## Response (200) | Field | Type | Description | |-------|------|-------------| | `canceled` | Single Trade Is Trade Cancelled | Whether the trade has been cancelled. | | `executed_at` | Single Trade Execution Time | The time with timezone when a trade was executed. | | `ext_hour_sold_codes` | Single Trade External Hour Sold Code | The code describing why the trade happened outside of regular market hours. Null if none applies. | | `market_center` | Single Trade Market Center | The market center code. | | `nbbo_ask` | ToBeDone | | | `nbbo_ask_quantity` | ToBeDone | | | `nbbo_bid` | ToBeDone | | | `nbbo_bid_quantity` | ToBeDone | | | `premium` | Option Contract Premium | The total option premium. | | `price` | Single Trade Price | The price of the trade. | | `sale_cond_codes` | Single Trade Sale Cond Code | The sale condition code. Null if none applies. | | `size` | Single Trade Size | The size of the transaction. | | `ticker` | Stock Ticker | The stock ticker. | | `tracking_id` | Single Trade Tracking ID | The tracking ID of the trade. | | `trade_code` | Single Trade Trade Code | The trade code. Null if none applies. | | `trade_settlement` | Single Trade Settlement | The kind of trade settlement. | | `trf_executed_at` | Single Trade TRF Execution Time | The actual timestamp when a TRF (Trade Reporting Facility) trade was executed, as opposed to `executed_at` which reflects when the trade hit the public tape. Only available for trades from 2025-05-01 onwards; `null` for any trade before that date. | | `volume` | Stock Day Stock Volume | The volume of the ticker for the trading day. | ## Example ### curl ```bash curl -X GET "https://api.unusualwhales.com/api/darkpool/recent" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Accept: application/json" ``` ### Python ```python import http.client conn = http.client.HTTPSConnection("api.unusualwhales.com") headers = {"Authorization": "Bearer YOUR_API_KEY", "Accept": "application/json"} conn.request("GET", "/api/darkpool/recent", headers=headers) response = conn.getresponse() print(response.read().decode("utf-8")) ``` ## Response Example ```json { "data": [ { "canceled": false, "executed_at": "2025-05-02T13:42:12Z", "ext_hour_sold_codes": "extended_hours_trade", "market_center": "L", "nbbo_ask": "19", "nbbo_ask_quantity": 6600, "nbbo_bid": "18.99", "nbbo_bid_quantity": 29100, "premium": "121538.56", "price": "18.9904", "sale_cond_codes": null, "size": 6400, "ticker": "QID", "tracking_id": 71984388012245, "trade_code": null, "trade_settlement": "regular_settlement", "trf_executed_at": "2025-05-02T13:42:11Z", "volume": 9946819 }, { "canceled": false, "executed_at": "2023-02-16T00:59:44Z", "ext_hour_sold_codes": "extended_hours_trade", "market_center": "L", "nbbo_ask": "19", "nbbo_ask_quantity": 6600, "nbbo_bid": "18.99", "nbbo_bid_quantity": 29100, "premium": "353214", "price": "18.99", "sale_cond_codes": null, "size": 18600, "ticker": "QID", "tracking_id": 71984384768588, "trade_code": null, "trade_settlement": "regular_settlement", "trf_executed_at": null, "volume": 9940419 } ] } ```