eg2501是前一交易日的持仓,昨收4663,当前最新价4657,多头开仓均价4631,多头浮动盈亏应该是520,web_gui显示的是-120。下图代码是 几分钟之后输出的eg2501的持仓信息。请老师看一下,多头浮动盈亏对应哪个字段?
{'exchange_id': 'DCE', 'instrument_id': 'eg2501', 'pos_long_his': 2, 'pos_long_today': 0, 'pos_short_his': 0, 'pos_short_today': 0, 'volume_long_today': 2, 'volume_long_his': 0, 'volume_long': 2, 'volume_long_frozen_today': 0, 'volume_long_frozen_his': 0, 'volume_long_frozen': 0, 'volume_short_today': 0, 'volume_short_his': 0, 'volume_short': 0, 'volume_short_frozen_today': 0, 'volume_short_frozen_his': 0, 'volume_short_frozen': 0, 'open_price_long': 4631.0, 'open_price_short': nan, 'open_cost_long': 92620.0, 'open_cost_short': nan, 'position_price_long': 4663.0, 'position_price_short': nan, 'position_cost_long': 93260.0, 'position_cost_short': 0.0, 'float_profit_long': 600.0, 'float_profit_short': nan, 'float_profit': 600.0, 'position_profit_long': -40.0, 'position_profit_short': 0.0, 'position_profit': -40.0, 'margin_long': 5511.6, 'margin_short': nan, 'margin': 5511.6, 'market_value_long': nan, 'market_value_short': nan, 'market_value': nan, 'pos': 2, 'pos_long': 2, 'pos_short': 0, 'user_id': 'f5a38e28-562a-40ce-83e9-0cd103fc6b05', 'volume_long_yd': 2, 'volume_short_yd': 0, 'last_price': 4661.0}
[/apcode]