Skip to main content

is_crypto_contract

Function is_crypto_contract 

Source
pub fn is_crypto_contract(contract: &Contract) -> bool
Expand description

Returns true if the contract is a cryptocurrency contract.

Centralizes the crypto check used to gate crypto-specific request handling (e.g. the AGGTRADES whatToShow rule - see crate::data::convert::price_type_to_ib_what_to_show_for_security).