Skip to main content

fee_currency

Function fee_currency 

Source
pub fn fee_currency(reported: &str, instrument: &InstrumentAny) -> Currency
Expand description

Resolves a venue-reported fee currency, preferring the instrument’s own definition.

A code the instrument already carries keeps that definition, so its precision is preserved rather than replaced by whatever the registry holds. Anything else, such as a base-currency fee on an inverse contract, resolves normally.