pub struct AccountCapabilities {
pub has_balances: bool,
pub has_account_info: bool,
pub has_fees: bool,
pub has_transfers: bool,
pub has_sub_accounts: bool,
pub has_deposit_withdraw: bool,
pub has_margin: bool,
pub has_earn_staking: bool,
pub has_funding_history: bool,
pub has_ledger: bool,
pub has_convert: bool,
pub has_positions: bool,
}Expand description
Describes which account management operations a connector supports.
Fields§
§has_balances: boolSupports fetching account balances
has_account_info: boolSupports fetching full account info (permissions, tier, etc.)
has_fees: boolSupports fetching trading fees / fee schedule
has_transfers: boolSupports internal fund transfers (spot ↔ futures, sub-account, etc.)
has_sub_accounts: boolSupports sub-account management
has_deposit_withdraw: boolSupports on-chain deposit address / withdrawal requests
has_margin: boolSupports margin borrowing and repayment
has_earn_staking: boolSupports earn / staking products
has_funding_history: boolSupports funding payment history (for perp/futures)
has_ledger: boolSupports full account ledger / transaction log
has_convert: boolSupports instant coin-to-coin conversion (swap)
has_positions: boolSupports fetching open positions (futures/perp)
Implementations§
Source§impl AccountCapabilities
impl AccountCapabilities
Sourcepub const fn full_cex() -> AccountCapabilities
pub const fn full_cex() -> AccountCapabilities
Standard full-featured CEX account (no margin/earn/staking, no convert).
Sourcepub const fn basic() -> AccountCapabilities
pub const fn basic() -> AccountCapabilities
Basic account: balances + account info + fees only.
Sourcepub const fn none() -> AccountCapabilities
pub const fn none() -> AccountCapabilities
No account support.
Sourcepub const fn permissive() -> AccountCapabilities
pub const fn permissive() -> AccountCapabilities
All-true placeholder for connectors that have not yet filled in real caps.
Trait Implementations§
Source§impl Clone for AccountCapabilities
impl Clone for AccountCapabilities
Source§fn clone(&self) -> AccountCapabilities
fn clone(&self) -> AccountCapabilities
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more