Skip to main content

RiskSettleInvstPositionField

Struct RiskSettleInvstPositionField 

Source
#[repr(C)]
pub struct RiskSettleInvstPositionField {
Show 50 fields pub is_null: bool, pub InstrumentID: String, pub BrokerID: String, pub InvestorID: String, pub PosiDirection: u8, pub HedgeFlag: u8, pub PositionDate: u8, pub YdPosition: i32, pub Position: i32, pub LongFrozen: i32, pub ShortFrozen: i32, pub LongFrozenAmount: f64, pub ShortFrozenAmount: f64, pub OpenVolume: i32, pub CloseVolume: i32, pub OpenAmount: f64, pub CloseAmount: f64, pub PositionCost: f64, pub PreMargin: f64, pub UseMargin: f64, pub FrozenMargin: f64, pub FrozenCash: f64, pub FrozenCommission: f64, pub CashIn: f64, pub Commission: f64, pub CloseProfit: f64, pub PositionProfit: f64, pub PreSettlementPrice: f64, pub SettlementPrice: f64, pub TradingDay: String, pub SettlementID: i32, pub OpenCost: f64, pub ExchangeMargin: f64, pub CombPosition: i32, pub CombLongFrozen: i32, pub CombShortFrozen: i32, pub CloseProfitByDate: f64, pub CloseProfitByTrade: f64, pub TodayPosition: i32, pub MarginRateByMoney: f64, pub MarginRateByVolume: f64, pub StrikeFrozen: i32, pub StrikeFrozenAmount: f64, pub AbandonFrozen: i32, pub ExchangeID: String, pub YdStrikeFrozen: i32, pub InvestUnitID: String, pub PositionCostOffset: f64, pub TasPosition: i32, pub TasPositionCost: f64,
}
Expand description

投资者风险结算持仓

Fields§

§is_null: bool

C++ 端传入的整体 Field 是否为 nullptr

§InstrumentID: String

合约代码

§BrokerID: String

经纪公司代码

§InvestorID: String

投资者代码

§PosiDirection: u8

持仓多空方向

§HedgeFlag: u8

投机套保标志

§PositionDate: u8

持仓日期

§YdPosition: i32

上日持仓

§Position: i32

今日持仓

§LongFrozen: i32

多头冻结

§ShortFrozen: i32

空头冻结

§LongFrozenAmount: f64

开仓冻结金额

§ShortFrozenAmount: f64

开仓冻结金额

§OpenVolume: i32

开仓量

§CloseVolume: i32

平仓量

§OpenAmount: f64

开仓金额

§CloseAmount: f64

平仓金额

§PositionCost: f64

持仓成本

§PreMargin: f64

上次占用的保证金

§UseMargin: f64

占用的保证金

§FrozenMargin: f64

冻结的保证金

§FrozenCash: f64

冻结的资金

§FrozenCommission: f64

冻结的手续费

§CashIn: f64

资金差额

§Commission: f64

手续费

§CloseProfit: f64

平仓盈亏

§PositionProfit: f64

持仓盈亏

§PreSettlementPrice: f64

上次结算价

§SettlementPrice: f64

本次结算价

§TradingDay: String

交易日

§SettlementID: i32

结算编号

§OpenCost: f64

开仓成本

§ExchangeMargin: f64

交易所保证金

§CombPosition: i32

组合成交形成的持仓

§CombLongFrozen: i32

组合多头冻结

§CombShortFrozen: i32

组合空头冻结

§CloseProfitByDate: f64

逐日盯市平仓盈亏

§CloseProfitByTrade: f64

逐笔对冲平仓盈亏

§TodayPosition: i32

今日持仓

§MarginRateByMoney: f64

保证金率

§MarginRateByVolume: f64

保证金率(按手数)

§StrikeFrozen: i32

执行冻结

§StrikeFrozenAmount: f64

执行冻结金额

§AbandonFrozen: i32

放弃执行冻结

§ExchangeID: String

交易所代码

§YdStrikeFrozen: i32

执行冻结的昨仓

§InvestUnitID: String

投资单元代码

§PositionCostOffset: f64

持仓成本差值

§TasPosition: i32

tas持仓手数

§TasPositionCost: f64

tas持仓成本

Trait Implementations§

Source§

impl Clone for RiskSettleInvstPositionField

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for RiskSettleInvstPositionField

Source§

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

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

impl Default for RiskSettleInvstPositionField

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl ExternType for RiskSettleInvstPositionField

Source§

type Kind = Trivial

Source§

type Id

A type-level representation of the type’s C++ namespace and type name. 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.