validate_market_active

Function validate_market_active 

Source
pub fn validate_market_active(
    ticker: &str,
    status: &DydxMarketStatus,
) -> Result<()>
Expand description

Validates that a market is active and tradable.

ยงErrors

Returns an error if the market status is not Active.