AccountBalance
struct AccountBalance
Account balance
Fields
Total cash
Total cash
Total cash
Maximum financing amount
Maximum financing amount
Maximum financing amount
Remaining financing amount
Remaining financing amount
Remaining financing amount
Risk control level
Risk control level
Risk control level
Margin call
Margin call
Margin call
Cash details
Cash details
Cash details
Net assets
Net assets
Net assets
Initial margin
Initial margin
Initial margin
Maintenance margin
Maintenance margin
Maintenance margin
Methods
new
pub fn new(inner: AccountBalance): AccountBalance
[src]
fn new(inner: _AccountBalance): AccountBalance {
let cash_infos: [CashInfo] = [];
for (let _cash_info in inner.cash_infos) {
cash_infos.push(CashInfo.new(_cash_info));
}
return AccountBalance {
total_cash: inner.total_cash,
max_finance_amount: inner.max_finance_amount,
remaining_finance_amount: inner.remaining_finance_amount,
risk_level: inner.risk_level,
margin_call: inner.margin_call,
currency: inner.currency,
cash_infos: cash_infos,
net_assets: inner.net_assets,
init_margin: inner.init_margin,
maintenance_margin: inner.maintenance_margin,
};
}
new
pub fn new(inner: AccountBalance): AccountBalance
[src]
fn new(inner: _AccountBalance): AccountBalance {
let cash_infos: [CashInfo] = [];
for (let _cash_info in inner.cash_infos) {
cash_infos.push(CashInfo.new(_cash_info));
}
return AccountBalance {
total_cash: inner.total_cash,
max_finance_amount: inner.max_finance_amount,
remaining_finance_amount: inner.remaining_finance_amount,
risk_level: inner.risk_level,
margin_call: inner.margin_call,
currency: inner.currency,
cash_infos: cash_infos,
net_assets: inner.net_assets,
init_margin: inner.init_margin,
maintenance_margin: inner.maintenance_margin,
};
}