GET
/
api
/
v3
/
brokerage
/
orders
/
historical
/
fills
curl --request GET \
  --url https://api.coinbase.com/api/v3/brokerage/orders/historical/fills
{
  "fills": [
    {
      "entry_id": "22222-2222222-22222222",
      "trade_id": "1111-11111-111111",
      "order_id": "0000-000000-000000",
      "trade_time": "2021-05-31T09:59:59.000Z",
      "trade_type": "FILL",
      "price": "10000.00",
      "size": "0.001",
      "commission": "1.25",
      "product_id": "BTC-USD",
      "sequence_timestamp": "2021-05-31T09:58:59.000Z",
      "liquidity_indicator": "<any>",
      "size_in_quote": false,
      "user_id": "3333-333333-3333333",
      "side": "<any>",
      "retail_portfolio_id": "4444-444444-4444444",
      "fillSource": "<any>"
    }
  ],
  "cursor": "789100"
}

Query Parameters

order_ids
string[]

The ID(s) of order(s).

trade_ids
string[]

The ID(s) of the trades of fills.

product_ids
string[]

The ID(s) of the product(s) to filter fills by.

start_sequence_timestamp
string

Only fills with a trade time after the specified start date are returned.

end_sequence_timestamp
string

Only fills with a trade time before the specified end date are returned.

retail_portfolio_id
string

(Deprecated) Only fills matching this retail portfolio id are returned. Only applicable for legacy keys. CDP keys will default to the key's permissioned portfolio.

limit
integer

The number of fills to be returned (default is 100).

cursor
string

For paginated responses, returns all responses that come after this value.

sort_by
enum<string>
default:UNKNOWN_SORT_BY

Sort results by a field, results use unstable pagination. Default is sort by creation time

Available options:
UNKNOWN_SORT_BY,
PRICE,
TRADE_TIME

Response

200
application/json

A successful response.

The response is of type object.