Struct CThostFtdcInvestorPositionField

Source
#[repr(C)]
pub struct CThostFtdcInvestorPositionField {
Show 47 fields pub InstrumentID: TThostFtdcInstrumentIDType, pub BrokerID: TThostFtdcBrokerIDType, pub InvestorID: TThostFtdcInvestorIDType, pub PosiDirection: TThostFtdcPosiDirectionType, pub HedgeFlag: TThostFtdcHedgeFlagType, pub PositionDate: TThostFtdcPositionDateType, pub YdPosition: TThostFtdcVolumeType, pub Position: TThostFtdcVolumeType, pub LongFrozen: TThostFtdcVolumeType, pub ShortFrozen: TThostFtdcVolumeType, pub LongFrozenAmount: TThostFtdcMoneyType, pub ShortFrozenAmount: TThostFtdcMoneyType, pub OpenVolume: TThostFtdcVolumeType, pub CloseVolume: TThostFtdcVolumeType, pub OpenAmount: TThostFtdcMoneyType, pub CloseAmount: TThostFtdcMoneyType, pub PositionCost: TThostFtdcMoneyType, pub PreMargin: TThostFtdcMoneyType, pub UseMargin: TThostFtdcMoneyType, pub FrozenMargin: TThostFtdcMoneyType, pub FrozenCash: TThostFtdcMoneyType, pub FrozenCommission: TThostFtdcMoneyType, pub CashIn: TThostFtdcMoneyType, pub Commission: TThostFtdcMoneyType, pub CloseProfit: TThostFtdcMoneyType, pub PositionProfit: TThostFtdcMoneyType, pub PreSettlementPrice: TThostFtdcPriceType, pub SettlementPrice: TThostFtdcPriceType, pub TradingDay: TThostFtdcDateType, pub SettlementID: TThostFtdcSettlementIDType, pub OpenCost: TThostFtdcMoneyType, pub ExchangeMargin: TThostFtdcMoneyType, pub CombPosition: TThostFtdcVolumeType, pub CombLongFrozen: TThostFtdcVolumeType, pub CombShortFrozen: TThostFtdcVolumeType, pub CloseProfitByDate: TThostFtdcMoneyType, pub CloseProfitByTrade: TThostFtdcMoneyType, pub TodayPosition: TThostFtdcVolumeType, pub MarginRateByMoney: TThostFtdcRatioType, pub MarginRateByVolume: TThostFtdcRatioType, pub StrikeFrozen: TThostFtdcVolumeType, pub StrikeFrozenAmount: TThostFtdcMoneyType, pub AbandonFrozen: TThostFtdcVolumeType, pub ExchangeID: TThostFtdcExchangeIDType, pub YdStrikeFrozen: TThostFtdcVolumeType, pub InvestUnitID: TThostFtdcInvestUnitIDType, pub PositionCostOffset: TThostFtdcMoneyType,
}
Expand description

投资者持仓

Fields§

§InstrumentID: TThostFtdcInstrumentIDType

合约代码

§BrokerID: TThostFtdcBrokerIDType

经纪公司代码

§InvestorID: TThostFtdcInvestorIDType

投资者代码

§PosiDirection: TThostFtdcPosiDirectionType

持仓多空方向

§HedgeFlag: TThostFtdcHedgeFlagType

投机套保标志

§PositionDate: TThostFtdcPositionDateType

持仓日期

§YdPosition: TThostFtdcVolumeType

上日持仓

§Position: TThostFtdcVolumeType

今日持仓

§LongFrozen: TThostFtdcVolumeType

多头冻结

§ShortFrozen: TThostFtdcVolumeType

空头冻结

§LongFrozenAmount: TThostFtdcMoneyType

开仓冻结金额

§ShortFrozenAmount: TThostFtdcMoneyType

开仓冻结金额

§OpenVolume: TThostFtdcVolumeType

开仓量

§CloseVolume: TThostFtdcVolumeType

平仓量

§OpenAmount: TThostFtdcMoneyType

开仓金额

§CloseAmount: TThostFtdcMoneyType

平仓金额

§PositionCost: TThostFtdcMoneyType

持仓成本

§PreMargin: TThostFtdcMoneyType

上次占用的保证金

§UseMargin: TThostFtdcMoneyType

占用的保证金

§FrozenMargin: TThostFtdcMoneyType

冻结的保证金

§FrozenCash: TThostFtdcMoneyType

冻结的资金

§FrozenCommission: TThostFtdcMoneyType

冻结的手续费

§CashIn: TThostFtdcMoneyType

资金差额

§Commission: TThostFtdcMoneyType

手续费

§CloseProfit: TThostFtdcMoneyType

平仓盈亏

§PositionProfit: TThostFtdcMoneyType

持仓盈亏

§PreSettlementPrice: TThostFtdcPriceType

上次结算价

§SettlementPrice: TThostFtdcPriceType

本次结算价

§TradingDay: TThostFtdcDateType

交易日

§SettlementID: TThostFtdcSettlementIDType

结算编号

§OpenCost: TThostFtdcMoneyType

开仓成本

§ExchangeMargin: TThostFtdcMoneyType

交易所保证金

§CombPosition: TThostFtdcVolumeType

组合成交形成的持仓

§CombLongFrozen: TThostFtdcVolumeType

组合多头冻结

§CombShortFrozen: TThostFtdcVolumeType

组合空头冻结

§CloseProfitByDate: TThostFtdcMoneyType

逐日盯市平仓盈亏

§CloseProfitByTrade: TThostFtdcMoneyType

逐笔对冲平仓盈亏

§TodayPosition: TThostFtdcVolumeType

今日持仓

§MarginRateByMoney: TThostFtdcRatioType

保证金率

§MarginRateByVolume: TThostFtdcRatioType

保证金率(按手数)

§StrikeFrozen: TThostFtdcVolumeType

执行冻结

§StrikeFrozenAmount: TThostFtdcMoneyType

执行冻结金额

§AbandonFrozen: TThostFtdcVolumeType

放弃执行冻结

§ExchangeID: TThostFtdcExchangeIDType

交易所代码

§YdStrikeFrozen: TThostFtdcVolumeType

执行冻结的昨仓

§InvestUnitID: TThostFtdcInvestUnitIDType

投资单元代码

§PositionCostOffset: TThostFtdcMoneyType

大商所持仓成本差值,只有大商所使用

Trait Implementations§

Source§

impl Clone for CThostFtdcInvestorPositionField

Source§

fn clone(&self) -> Self

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 CThostFtdcInvestorPositionField

Source§

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

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

impl Default for CThostFtdcInvestorPositionField

Source§

fn default() -> CThostFtdcInvestorPositionField

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

impl Copy for CThostFtdcInvestorPositionField

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.