calculate_base_and_quote

Function calculate_base_and_quote 

Source
pub fn calculate_base_and_quote(
    market_type: MarketType,
    price: Price,
    amount: Number,
) -> Result<(Number, Number)>
Expand description

Returns a tuple containing (base, quote) calculated based on the market type