HoldingInfoByCode(Code, Market, Hold, MktPrice, AvgPrice, MktValue, AgeCost, PNL)
Code 输入参数,指定的品种代码
Market 输入参数,指定的品种市场
Hold 输出参数,该该持仓品种持仓量,若空仓返回负数
MktPrice 输出参数,该持仓品种市价
AvgPrice 输出参数,该持仓品种均价
MktValue 输出参数,该持仓品种市值
AgeCost 输出参数,该持仓品种成本
PNL 输出参数,该持仓品种浮动盈亏
返回值: 成功返回1,失败返回0
最后一单价格要看成交明细了,这个都在order对象下方法都有
TradeDetalied 方法
取指定基于0索引序号的IB帐户成交明细
HoldingInfoByCode我知道他就可以输出Hold (输出参数,该该持仓品种持仓量,若空仓返回负数),但是像HoldingInfo2(Index, BuyHolding, BuyCost, BuyTodayHolding, SellHolding, SellCost,SellTodayHolding,PNL, UseMargin,Code, Market,Account)是细分BuyHolding和sellholding的这个IB外盘怎么实现
|