#[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 Default for CThostFtdcInvestorPositionField
impl Default for CThostFtdcInvestorPositionField
Source§fn default() -> CThostFtdcInvestorPositionField
fn default() -> CThostFtdcInvestorPositionField
Returns the “default value” for a type. Read more
impl Copy for CThostFtdcInvestorPositionField
Auto Trait Implementations§
impl Freeze for CThostFtdcInvestorPositionField
impl RefUnwindSafe for CThostFtdcInvestorPositionField
impl Send for CThostFtdcInvestorPositionField
impl Sync for CThostFtdcInvestorPositionField
impl Unpin for CThostFtdcInvestorPositionField
impl UnwindSafe for CThostFtdcInvestorPositionField
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