# Fills

## Get fills

> Retrieve fills with optional filters for address, asset, client, Pear trade status, and time range.

```json
{"openapi":"3.0.0","info":{"title":"Pear Protocol Trading API","version":"1.0.0"},"servers":[{"url":"https://hl-v2.pearprotocol.io","description":"Production (Mainnet)"}],"paths":{"/fills":{"get":{"description":"Retrieve fills with optional filters for address, asset, client, Pear trade status, and time range.","operationId":"FillsController_getFills","parameters":[{"name":"address","required":false,"in":"query","description":"Filter by wallet address (case-insensitive)","schema":{"type":"string"}},{"name":"assetName","required":false,"in":"query","description":"Filter by asset name","schema":{"type":"string"}},{"name":"clientId","required":false,"in":"query","description":"Filter by client ID","schema":{"type":"string"}},{"name":"isPearTrade","required":false,"in":"query","description":"Filter by Pear trade (cloid prefix 0x50454152). Defaults to true.","schema":{"default":true,"type":"string"}},{"name":"startTime","required":false,"in":"query","description":"Filter fills with fillTime >= this value (unix ms)","schema":{"type":"string"}},{"name":"endTime","required":false,"in":"query","description":"Filter fills with fillTime <= this value (unix ms)","schema":{"type":"string"}}],"responses":{"200":{"description":"Fills retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FillItemDto"}}}}}},"summary":"Get fills","tags":["Fills"]}}},"components":{"schemas":{"FillItemDto":{"type":"object","properties":{"id":{"type":"string"},"clientId":{"type":"string","nullable":true},"orderId":{"type":"string"},"chunkId":{"type":"string","nullable":true},"externalOrderId":{"type":"string","nullable":true},"assetName":{"type":"string"},"address":{"type":"string"},"fillTime":{"type":"string","nullable":true},"side":{"type":"string","nullable":true},"dir":{"type":"string","nullable":true},"feeToken":{"type":"string","nullable":true},"cloid":{"type":"string","nullable":true},"tid":{"type":"string","nullable":true},"txHash":{"type":"string","nullable":true},"price":{"type":"number"},"size":{"type":"number"},"externalFeePaid":{"type":"number"},"builderFeePaid":{"type":"number"},"isPearTrade":{"type":"boolean"},"isLiquidation":{"type":"boolean"},"liqMarkPx":{"type":"number","nullable":true},"liqMethod":{"type":"string","nullable":true},"liquidatedUser":{"type":"string","nullable":true},"createdAt":{"type":"string"}},"required":["id","clientId","orderId","chunkId","externalOrderId","assetName","address","fillTime","side","dir","feeToken","cloid","tid","txHash","price","size","externalFeePaid","builderFeePaid","isPearTrade","isLiquidation","liqMarkPx","liqMethod","liquidatedUser","createdAt"]}}}}
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pearprotocol.io/api-integration/api-specification/fills.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
