Skip to content
wondereamer edited this page Jan 8, 2017 · 3 revisions

TradeSide 开平仓标志

  • BUY: 多头开仓, 1
  • SHORT: 空头开仓, 2
  • COVER: 空头平仓,3
  • SELL: 多头平仓,4
  • COVER_TODAY: 空头平今,5
  • SELL_TODAY: 多头平今,6
  • KAI: 开仓,7
  • PING: 平仓,8
  • CANCEL: 撤单,9

Captial 账号资金

  • broker_id: 经纪商
  • account_id: 交易账号
  • margin: 保证金占用
  • position_profit: 持仓盈亏
  • close_profit: 平仓盈亏
  • trading_day: 交易日
  • cash: 可用资金
  • equity: 当前权益

PriceType 价格类型

  • MKT: 市价单 - 1.
  • LMT: 限价单 - 2.

HedgeType 交易类型

  • SPEC: 投机 - 1.
  • HEDG: 套保 - 2.

Direction 多空方向

  • LONG: 多头 - 1.
  • SHORT: 空头 - 2.

Transaction 成交纪录

  • id: 成交编号
  • contract: 合约。
  • direction: 多空方向。
  • price: 成交价格。
  • quantity: 成交数量。
  • side: 开平仓标志。
  • datetime: 成交时间
  • price_type: 下单类型。
  • hedge_type: 交易类型。
  • volume_multiple: 合约乘数。

Order 订单

  • id: 报单编号
  • contract: 合约。
  • direction: 多空方向。
  • price: 成交价格。
  • quantity: 成交数量。
  • side: 开平仓标志。
  • datetime: 成交时间
  • price_type: 下单类型。
  • hedge_type: 交易类型。
  • volume_multiple: 合约乘数。

Contract 合约。

  • exchange: 市场类型。
  • code: 合约代码
  • is_stock: 是否是股票
  • margin_ratio: 保证金比例。
  • volume_multiple: 合约乘数。

Period 周期

  • unit: 时间单位
  • count: 数值

PContract 特定周期的合约

  • contract: 合约对象。
  • period: 周期。

Position 单笔仓位信息

  • contract: 合约。
  • quantity: 数目。
  • closable: 可平数目。
  • today: 当天开仓数目。
  • cost: 成本价。
  • direction: 开仓方向。
  • symbol: 合约编码

Bar Bar数据

  • datetime: 开盘时间。
  • open: 开盘价。
  • close: 收盘价。
  • high: 最高价。
  • low: 最低价。
  • volume: 成交量。

OneDeal 每笔开平仓交易信息

  • open_datetime: 开仓时间
  • close_datetime: 平仓时间
  • open_price: 开仓价格
  • close_price: 平仓价格
  • direction: 开仓方向

上一节 界面