Overview
Builder attribution in V2 is handled natively through the order struct — you attach your builder code (abytes32 identifier from your Builder Profile) to every order you submit. No separate client configuration is required.
See Order Attribution for the full attribution flow.
Methods
getOrder
Get details for a specific order by ID.Signature
getOpenOrders
Get all open orders attributed to your builder code.Signature
Optional. Filter by order ID.
Optional. Filter by market condition ID.
Optional. Filter by token ID.
TypeScript
getBuilderTrades
Retrieves all trades attributed to your builder code. Use this to track which trades were routed through your platform.Signature
TradeParams)
Optional. Filter trades by trade ID.
Optional. Filter trades by maker address.
Optional. Filter trades by market condition ID.
Optional. Filter trades by asset (token) ID.
Optional. Return trades created before this cursor value.
Optional. Return trades created after this cursor value.
BuilderTradesPaginatedResponse)
Array of trades attributed to the builder account.
Cursor string for fetching the next page of results.
Maximum number of trades returned per page.
Total number of trades returned in this response.
BuilderTrade fields
Unique identifier for the trade.
Type of the trade.
Hash of the taker order associated with this trade.
Builder code attributed to this trade.
Condition ID of the market this trade belongs to.
Token ID of the asset traded.
Side of the trade (e.g. BUY or SELL).
Size of the trade in shares.
Size of the trade denominated in USDC.
Price at which the trade was executed.
Current status of the trade.
Outcome label associated with the traded asset.
Index of the outcome within the market.
Address of the order owner (taker).
Address of the maker in the trade.
On-chain transaction hash for the trade.
Timestamp when the trade was matched.
Bucket index used for trade grouping.
Fee charged for the trade in shares.
Fee charged for the trade denominated in USDC.
Optional. Error message if the trade encountered an issue, otherwise null.
Timestamp when the trade record was created, or null if unavailable.
Timestamp when the trade record was last updated, or null if unavailable.
See Also
Builders Program
Learn about the Builders Program and its benefits.
Order Attribution
Attach your builder code to orders for volume credit.
L2 Methods
Place and manage orders with API credentials.
Gasless Transactions
Execute onchain operations without paying gas.