Account

Struct Account 

Source
pub struct Account {
Show 50 fields pub id: AccountId, pub auto_balance_period: u32, pub auto_balance_portfolio_id: Option<u32>, pub auto_balance_currency_change_limit: Option<u32>, pub autobalance_enabled: bool, pub hedge_mode_available: bool, pub hedge_mode_enabled: bool, pub is_locked: bool, pub smart_trading_supported: bool, pub stats_supported: bool, pub trading_supported: bool, pub market_buy_supported: bool, pub market_sell_supported: bool, pub conditional_buy_supported: bool, pub bots_allowed: bool, pub bots_ttp_allowed: bool, pub bots_tsl_allowed: bool, pub gordon_bots_available: bool, pub multi_bots_allowed: bool, pub created_at: Option<DateTime<Utc>>, pub updated_at: Option<DateTime<Utc>>, pub last_auto_balance: Option<DateTime<Utc>>, pub fast_convert_available: bool, pub grid_bots_allowed: bool, pub api_key_invalid: bool, pub deposit_enabled: bool, pub supported_market_types: Vec<String>, pub api_key: Option<String>, pub name: String, pub auto_balance_method: Option<AutoBalanceMethod>, pub auto_balance_error: Option<String>, pub customer_id: Option<String>, pub subaccount_name: Option<String>, pub lock_reason: Option<String>, pub btc_amount: Decimal, pub usd_amount: Decimal, pub day_profit_btc: Decimal, pub day_profit_usd: Decimal, pub day_profit_btc_percentage: Decimal, pub day_profit_usd_percentage: Decimal, pub btc_profit: Decimal, pub usd_profit: Decimal, pub usd_profit_percentage: Decimal, pub btc_profit_percentage: Decimal, pub total_btc_profit: Decimal, pub total_usd_profit: Decimal, pub pretty_display_type: String, pub exchange_name: String, pub market_code: String, pub address: Option<String>,
}

Fields§

§id: AccountId§auto_balance_period: u32§auto_balance_portfolio_id: Option<u32>§auto_balance_currency_change_limit: Option<u32>§autobalance_enabled: bool§hedge_mode_available: bool§hedge_mode_enabled: bool§is_locked: bool§smart_trading_supported: bool§stats_supported: bool§trading_supported: bool§market_buy_supported: bool§market_sell_supported: bool§conditional_buy_supported: bool§bots_allowed: bool§bots_ttp_allowed: bool§bots_tsl_allowed: bool§gordon_bots_available: bool§multi_bots_allowed: bool§created_at: Option<DateTime<Utc>>§updated_at: Option<DateTime<Utc>>§last_auto_balance: Option<DateTime<Utc>>§fast_convert_available: bool

Sell all to USD/BTC possibility

§grid_bots_allowed: bool§api_key_invalid: bool§deposit_enabled: bool§supported_market_types: Vec<String>§api_key: Option<String>§name: String§auto_balance_method: Option<AutoBalanceMethod>§auto_balance_error: Option<String>§customer_id: Option<String>§subaccount_name: Option<String>§lock_reason: Option<String>§btc_amount: Decimal§usd_amount: Decimal§day_profit_btc: Decimal§day_profit_usd: Decimal§day_profit_btc_percentage: Decimal§day_profit_usd_percentage: Decimal§btc_profit: Decimal

Month period

§usd_profit: Decimal

Month period

§usd_profit_percentage: Decimal

Month period

§btc_profit_percentage: Decimal

Month period

§total_btc_profit: Decimal§total_usd_profit: Decimal§pretty_display_type: String§exchange_name: String§market_code: String§address: Option<String>

Trait Implementations§

Source§

impl Clone for Account

Source§

fn clone(&self) -> Account

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Account

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Account

Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,