pub struct Account {Show 22 fields
pub user_id: String,
pub currency: String,
pub available: f64,
pub balance: f64,
pub close_profit: f64,
pub commission: f64,
pub ctp_available: f64,
pub ctp_balance: f64,
pub deposit: f64,
pub float_profit: f64,
pub frozen_commission: f64,
pub frozen_margin: f64,
pub frozen_premium: f64,
pub margin: f64,
pub market_value: f64,
pub position_profit: f64,
pub pre_balance: f64,
pub premium: f64,
pub risk_ratio: f64,
pub static_balance: f64,
pub withdraw: f64,
pub epoch: Option<i64>,
}Expand description
账户资金信息
Fields§
§user_id: String用户ID
currency: String货币类型(默认 CNY)
available: f64可用资金
balance: f64账户权益
close_profit: f64本交易日内平仓盈亏
commission: f64手续费 - 本交易日内交纳的手续费
ctp_available: f64CTP可用资金
ctp_balance: f64CTP账户权益
deposit: f64入金金额 - 本交易日内的入金金额
float_profit: f64浮动盈亏
frozen_commission: f64冻结手续费
frozen_margin: f64冻结保证金
冻结权利金
margin: f64保证金占用
market_value: f64期权市值
position_profit: f64持仓盈亏
pre_balance: f64昨日账户权益
权利金 - 本交易日内交纳的权利金
risk_ratio: f64风险度 = 1 - available / balance
static_balance: f64静态权益
withdraw: f64出金金额 - 本交易日内的出金金额
epoch: Option<i64>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
Source§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 Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
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