pub fn parse_fill_report(
fill: &Fill,
instrument: &InstrumentAny,
account_id: AccountId,
ts_init: UnixNanos,
) -> Result<FillReport>Expand description
Parses a Coinbase Fill into a [FillReport].
Commission currency defaults to the instrument’s quote currency, as reported for spot products. Quote-sized fills are converted to base quantity using the fill price. Commissions are positive when paid.
§Errors
Returns an error if the order side or trade time is invalid, if the price, size, or commission cannot be parsed or converted, or if a quote-sized fill has a non-positive price.