Struct lfest::Config [−][src]
pub struct Config { /* fields omitted */ }
Expand description
Define the Exchange configuration
Implementations
Create a new Config
Arguments
fee_maker: The maker fee as fraction, e.g 6bp -> 0.0006 fee_taker: The taker fee as fraction starting_balance: Initial Wallet Balance, denoted in QUOTE if using linear futures, denoted in BASE for inverse futures leverage: The positions leverage futures_type: The type of futures contract to simulate identification: A way to identify an exchange
Returns
Either a valid Config or an Error
Return the starting wallet balance of this Config
Return the FuturesType of the Config
Return the exchange identification
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more