程序包 xyz.redtorch.pb

接口 CoreField.PositionFieldOrBuilder

所有超级接口:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
所有已知实现类:
CoreField.PositionField, CoreField.PositionField.Builder
封闭类:
CoreField

public static interface CoreField.PositionFieldOrBuilder extends com.google.protobuf.MessageOrBuilder
  • 方法详细资料

    • getPositionId

      String getPositionId()
       持仓在系统中的唯一代码,通常是<合约代码@交易所代码@产品类型@方向@投机套保标志@账户@币种@网关>
       
      string positionId = 1;
      返回:
      The positionId.
    • getPositionIdBytes

      com.google.protobuf.ByteString getPositionIdBytes()
       持仓在系统中的唯一代码,通常是<合约代码@交易所代码@产品类型@方向@投机套保标志@账户@币种@网关>
       
      string positionId = 1;
      返回:
      The bytes for positionId.
    • getAccountId

      String getAccountId()
       账户ID
       
      string accountId = 2;
      返回:
      The accountId.
    • getAccountIdBytes

      com.google.protobuf.ByteString getAccountIdBytes()
       账户ID
       
      string accountId = 2;
      返回:
      The bytes for accountId.
    • getPositionDirectionValue

      int getPositionDirectionValue()
       持仓方向
       
      .xyz.redtorch.pb.PositionDirectionEnum positionDirection = 3;
      返回:
      The enum numeric value on the wire for positionDirection.
    • getPositionDirection

      CoreEnum.PositionDirectionEnum getPositionDirection()
       持仓方向
       
      .xyz.redtorch.pb.PositionDirectionEnum positionDirection = 3;
      返回:
      The positionDirection.
    • getPosition

      int getPosition()
       持仓量
       
      fixed32 position = 4;
      返回:
      The position.
    • getFrozen

      int getFrozen()
       冻结数量
       
      fixed32 frozen = 5;
      返回:
      The frozen.
    • getYdPosition

      int getYdPosition()
       昨持仓
       
      fixed32 ydPosition = 6;
      返回:
      The ydPosition.
    • getYdFrozen

      int getYdFrozen()
       冻结数量
       
      fixed32 ydFrozen = 7;
      返回:
      The ydFrozen.
    • getTdPosition

      int getTdPosition()
       今持仓
       
      fixed32 tdPosition = 8;
      返回:
      The tdPosition.
    • getTdFrozen

      int getTdFrozen()
       冻结数量
       
      fixed32 tdFrozen = 9;
      返回:
      The tdFrozen.
    • getLastPrice

      double getLastPrice()
       计算盈亏使用的行情最后价格
       
      double lastPrice = 10;
      返回:
      The lastPrice.
    • getPrice

      double getPrice()
       持仓均价
       
      double price = 11;
      返回:
      The price.
    • getPriceDiff

      double getPriceDiff()
       持仓价格差
       
      double priceDiff = 12;
      返回:
      The priceDiff.
    • getOpenPrice

      double getOpenPrice()
       开仓均价
       
      double openPrice = 13;
      返回:
      The openPrice.
    • getOpenPriceDiff

      double getOpenPriceDiff()
       开仓价格差
       
      double openPriceDiff = 14;
      返回:
      The openPriceDiff.
    • getPositionProfit

      double getPositionProfit()
       持仓盈亏
       
      double positionProfit = 15;
      返回:
      The positionProfit.
    • getPositionProfitRatio

      double getPositionProfitRatio()
       持仓盈亏率
       
      double positionProfitRatio = 16;
      返回:
      The positionProfitRatio.
    • getOpenPositionProfit

      double getOpenPositionProfit()
       开仓盈亏
       
      double openPositionProfit = 17;
      返回:
      The openPositionProfit.
    • getOpenPositionProfitRatio

      double getOpenPositionProfitRatio()
       开仓盈亏率
       
      double openPositionProfitRatio = 18;
      返回:
      The openPositionProfitRatio.
    • getUseMargin

      double getUseMargin()
       占用的保证金
       
      double useMargin = 19;
      返回:
      The useMargin.
    • getExchangeMargin

      double getExchangeMargin()
       交易所的保证金
       
      double exchangeMargin = 20;
      返回:
      The exchangeMargin.
    • getContractValue

      double getContractValue()
       最新合约价值
       
      double contractValue = 21;
      返回:
      The contractValue.
    • getHedgeFlagValue

      int getHedgeFlagValue()
       投机套保标识
       
      .xyz.redtorch.pb.HedgeFlagEnum hedgeFlag = 22;
      返回:
      The enum numeric value on the wire for hedgeFlag.
    • getHedgeFlag

      CoreEnum.HedgeFlagEnum getHedgeFlag()
       投机套保标识
       
      .xyz.redtorch.pb.HedgeFlagEnum hedgeFlag = 22;
      返回:
      The hedgeFlag.
    • hasContract

      boolean hasContract()
       合约
       
      .xyz.redtorch.pb.ContractField contract = 23;
      返回:
      Whether the contract field is set.
    • getContract

       合约
       
      .xyz.redtorch.pb.ContractField contract = 23;
      返回:
      The contract.
    • getContractOrBuilder

      CoreField.ContractFieldOrBuilder getContractOrBuilder()
       合约
       
      .xyz.redtorch.pb.ContractField contract = 23;
    • getGatewayId

      String getGatewayId()
       网关ID
       
      string gatewayId = 24;
      返回:
      The gatewayId.
    • getGatewayIdBytes

      com.google.protobuf.ByteString getGatewayIdBytes()
       网关ID
       
      string gatewayId = 24;
      返回:
      The bytes for gatewayId.