pub fn build_maker_fill_report(
mo: &PolymarketMakerOrder,
trade_id: &str,
trader_side: PolymarketLiquiditySide,
trade_side: PolymarketOrderSide,
taker_asset_id: &str,
account_id: AccountId,
instrument_id: InstrumentId,
price_precision: u8,
size_precision: u8,
currency: Currency,
liquidity_side: LiquiditySide,
ts_event: UnixNanos,
ts_init: UnixNanos,
) -> Result<FillReport>Expand description
Builds a [FillReport] from a PolymarketMakerOrder and trade-level context.
Maker fills never pay commission per Polymarket’s fee rules.
§Errors
Returns an error if the price or quantity cannot be represented by its domain type,
fee inputs are invalid, fee arithmetic overflows, or commission cannot be represented
as [Money].
§Panics
Panics if the maker order or generated trade identifier is invalid.