getBuilderOrders(builder, params?) returns builder-tagged orders plus related sibling orders for the same positions.
How it works
The subgraph storesbuilder on open orders. The SDK first fetches orders tagged with the builder address, then fetches sibling close, take-profit, and stop-loss orders matched by pid.
limit caps the first builder-tagged phase only. Sibling orders from the second phase are appended without a cap, so the final array can contain more than limit rows.
Parameters
| Parameter | Type | Description |
|---|---|---|
user | Address | 'ALL' | Scope to one trader or all traders. |
isPending | boolean | Filter by pending status. |
isCanceled | boolean | Filter by cancelled status. |
isCancelled | boolean | Alias for isCanceled. |
pairIds | Array<string | number> | Filter by pair ids. |
start | number | Inclusive lower bound on execution time, as Unix seconds UTC. |
end | number | Inclusive upper bound on execution time, as Unix seconds UTC. |
limit | number | Cap for the first builder-tagged query. Defaults to 100. |
Response schema
SameOrder[] schema as getOrders.