pub struct Bot {
pub name: String,
pub id: usize,
pub account_id: usize,
pub is_enabled: bool,
pub max_safety_orders: usize,
pub max_active_deals: usize,
pub base_order_volume: Decimal,
pub safety_order_volume: Decimal,
pub safety_order_step_percentage: Decimal,
pub martingale_volume_coefficient: Decimal,
pub martingale_step_coefficient: Decimal,
pub pairs: Vec<Pair>,
}Fields§
§name: String§id: usize§account_id: usize§is_enabled: bool§max_safety_orders: usize§max_active_deals: usize§base_order_volume: Decimal§safety_order_volume: Decimal§safety_order_step_percentage: Decimal§martingale_volume_coefficient: Decimal§martingale_step_coefficient: Decimal§pairs: Vec<Pair>Implementations§
Source§impl Bot
impl Bot
pub fn name(&self) -> &str
pub fn id(&self) -> usize
pub fn account_id(&self) -> usize
pub fn is_enabled(&self) -> bool
pub fn pairs(&self) -> &[Pair]
pub fn base_order_volume(&self) -> Decimal
pub fn safety_order_volume(&self) -> Decimal
pub fn max_safety_orders(&self) -> usize
pub fn max_active_deals(&self) -> usize
pub fn max_budget_per_deal(&self) -> Decimal
pub fn max_budget(&self) -> Decimal
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bot
impl<'de> Deserialize<'de> for Bot
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Bot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Bot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Bot
impl RefUnwindSafe for Bot
impl Send for Bot
impl Sync for Bot
impl Unpin for Bot
impl UnwindSafe for Bot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more