monaco.api.trades
Source: protos/api/trades.proto
Use TradesService for a pair’s trade history, the trade feed across every market, and single-trade lookup. For the authenticated user’s trade history, use AccountsService.GetUserTrades.
Notes
GetTrades,GetTradesRPC,ListTradesandGetTradeByIddo not require authentication.GetTradesis cursor-paginated, newest first: send an emptypage_tokento start, then each response’snext_page_tokenuntil it comes back empty; an empty token is definitive.page_sizedefaults to25and must be 1–1000. The walk seeks on(executed_at, id), so a page never repeats or skips a trade when new fills land mid-walk. The token is pinned to itstrading_pair_id, so a token reused for another pair, or one minted byListUserTrades, is rejected. There is nopagefield: code that still sets it fails to compile against a regenerated stub, and a stub generated from an older proto has the unknown field discarded and reads the first page on every call. The walk covers the pair’s whole history, recent and archived trades alike, so the empty token is the end of the pair’s history.ListTradesis the trade feed: every market’s trades, newest first, recent and archived alike. Settaker_application_idto list only the trades whose taker order that application (frontend) placed; an unknown application, or one the explorer does not display as a builder, returns an empty page (the unfiltered feed carries every trade).page_sizedefaults to25and must be 1–1000; walknext_page_tokenuntil it comes back empty, which means the walk is finished. The token is pinned totaker_application_id, so it is rejected if the filter changes. Each client IP has a public read budget: over it the call fails withRESOURCE_EXHAUSTED. An invalid filter, page size or page token isINVALID_ARGUMENT.TradeDataonGetTrades,GetTradesRPC,GetTradeByIdandListTradescarriesmaker_address,taker_address,taker_fee_raw(the Monaco taker fee in raw quote-asset units, excluding the builder fee),quote_volume_raw(executed notional in raw quote-asset units),taker_application_idandbuilder_fee_raw(the taker’s builder fee, the add-on its frontend charged, in raw quote-asset units;"0"when none), each omitted when unset. The maker order’s application is not public.ListUserTradesis deprecated and will be removed. UseAccountsService.GetUserTrades(GET /api/v1/accounts/trades), which takes the samemargin_account_idandorder_idfilters and returns the full trade row with normalized and raw amounts. Until removal,ListUserTradesis authenticated, gRPC-only, returnsListedUserTraderows withfee,monaco_feeandbuilder_feeas raw quote-unit integer strings, and never setsrealized_pnl.

