记录类 Tick

java.lang.Object
java.lang.Record
org.dromara.northstar.common.model.core.Tick
所有已实现的接口:
Timed

public record Tick(String gatewayId, Contract contract, LocalDate actionDay, LocalTime actionTime, LocalDate tradingDay, long actionTimestamp, double lastPrice, double avgPrice, double iopv, long volumeDelta, long volume, double turnover, double turnoverDelta, double openInterest, double openInterestDelta, double settlePrice, double preOpenInterest, double preClosePrice, double preSettlePrice, double openPrice, double highPrice, double lowPrice, double upperLimit, double lowerLimit, List<Double> bidPrice, List<Double> askPrice, List<Integer> bidVolume, List<Integer> askVolume, TickType type, com.alibaba.fastjson.JSONObject otherInfo, ChannelType channelType) extends Record implements Timed
  • 构造器详细资料

    • Tick

      public Tick(String gatewayId, Contract contract, LocalDate actionDay, LocalTime actionTime, LocalDate tradingDay, long actionTimestamp, double lastPrice, double avgPrice, double iopv, long volumeDelta, long volume, double turnover, double turnoverDelta, double openInterest, double openInterestDelta, double settlePrice, double preOpenInterest, double preClosePrice, double preSettlePrice, double openPrice, double highPrice, double lowPrice, double upperLimit, double lowerLimit, List<Double> bidPrice, List<Double> askPrice, List<Integer> bidVolume, List<Integer> askVolume, TickType type, com.alibaba.fastjson.JSONObject otherInfo, ChannelType channelType)
      创建 Tick 记录类的实例。
      参数:
      gatewayId - gatewayId 记录组件的值
      contract - contract 记录组件的值
      actionDay - actionDay 记录组件的值
      actionTime - actionTime 记录组件的值
      tradingDay - tradingDay 记录组件的值
      actionTimestamp - actionTimestamp 记录组件的值
      lastPrice - lastPrice 记录组件的值
      avgPrice - avgPrice 记录组件的值
      iopv - iopv 记录组件的值
      volumeDelta - volumeDelta 记录组件的值
      volume - volume 记录组件的值
      turnover - turnover 记录组件的值
      turnoverDelta - turnoverDelta 记录组件的值
      openInterest - openInterest 记录组件的值
      openInterestDelta - openInterestDelta 记录组件的值
      settlePrice - settlePrice 记录组件的值
      preOpenInterest - preOpenInterest 记录组件的值
      preClosePrice - preClosePrice 记录组件的值
      preSettlePrice - preSettlePrice 记录组件的值
      openPrice - openPrice 记录组件的值
      highPrice - highPrice 记录组件的值
      lowPrice - lowPrice 记录组件的值
      upperLimit - upperLimit 记录组件的值
      lowerLimit - lowerLimit 记录组件的值
      bidPrice - bidPrice 记录组件的值
      askPrice - askPrice 记录组件的值
      bidVolume - bidVolume 记录组件的值
      askVolume - askVolume 记录组件的值
      type - type 记录组件的值
      otherInfo - otherInfo 记录组件的值
      channelType - channelType 记录组件的值
  • 方法详细资料

    • toTickField

      public CoreField.TickField toTickField()
    • getTimestamp

      public long getTimestamp()
      指定者:
      getTimestamp 在接口中 Timed
    • toString

      public final String toString()
      返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。
      指定者:
      toString 在类中 Record
      返回:
      此对象的字符串表示形式
    • hashCode

      public final int hashCode()
      返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。
      指定者:
      hashCode 在类中 Record
      返回:
      此对象的哈希代码值
    • equals

      public final boolean equals(Object o)
      指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用 Objects::equals(Object,Object) 对参考组件进行比较;使用 '==' 对基元组件进行比较
      指定者:
      equals 在类中 Record
      参数:
      o - 要与之进行比较的对象
      返回:
      如果此对象与 o 参数相同,则为 true;否则为 false
    • gatewayId

      public String gatewayId()
      返回 gatewayId 记录组件的值。
      返回:
      gatewayId 记录组件的值
    • contract

      public Contract contract()
      返回 contract 记录组件的值。
      返回:
      contract 记录组件的值
    • actionDay

      public LocalDate actionDay()
      返回 actionDay 记录组件的值。
      返回:
      actionDay 记录组件的值
    • actionTime

      public LocalTime actionTime()
      返回 actionTime 记录组件的值。
      返回:
      actionTime 记录组件的值
    • tradingDay

      public LocalDate tradingDay()
      返回 tradingDay 记录组件的值。
      返回:
      tradingDay 记录组件的值
    • actionTimestamp

      public long actionTimestamp()
      返回 actionTimestamp 记录组件的值。
      返回:
      actionTimestamp 记录组件的值
    • lastPrice

      public double lastPrice()
      返回 lastPrice 记录组件的值。
      返回:
      lastPrice 记录组件的值
    • avgPrice

      public double avgPrice()
      返回 avgPrice 记录组件的值。
      返回:
      avgPrice 记录组件的值
    • iopv

      public double iopv()
      返回 iopv 记录组件的值。
      返回:
      iopv 记录组件的值
    • volumeDelta

      public long volumeDelta()
      返回 volumeDelta 记录组件的值。
      返回:
      volumeDelta 记录组件的值
    • volume

      public long volume()
      返回 volume 记录组件的值。
      返回:
      volume 记录组件的值
    • turnover

      public double turnover()
      返回 turnover 记录组件的值。
      返回:
      turnover 记录组件的值
    • turnoverDelta

      public double turnoverDelta()
      返回 turnoverDelta 记录组件的值。
      返回:
      turnoverDelta 记录组件的值
    • openInterest

      public double openInterest()
      返回 openInterest 记录组件的值。
      返回:
      openInterest 记录组件的值
    • openInterestDelta

      public double openInterestDelta()
      返回 openInterestDelta 记录组件的值。
      返回:
      openInterestDelta 记录组件的值
    • settlePrice

      public double settlePrice()
      返回 settlePrice 记录组件的值。
      返回:
      settlePrice 记录组件的值
    • preOpenInterest

      public double preOpenInterest()
      返回 preOpenInterest 记录组件的值。
      返回:
      preOpenInterest 记录组件的值
    • preClosePrice

      public double preClosePrice()
      返回 preClosePrice 记录组件的值。
      返回:
      preClosePrice 记录组件的值
    • preSettlePrice

      public double preSettlePrice()
      返回 preSettlePrice 记录组件的值。
      返回:
      preSettlePrice 记录组件的值
    • openPrice

      public double openPrice()
      返回 openPrice 记录组件的值。
      返回:
      openPrice 记录组件的值
    • highPrice

      public double highPrice()
      返回 highPrice 记录组件的值。
      返回:
      highPrice 记录组件的值
    • lowPrice

      public double lowPrice()
      返回 lowPrice 记录组件的值。
      返回:
      lowPrice 记录组件的值
    • upperLimit

      public double upperLimit()
      返回 upperLimit 记录组件的值。
      返回:
      upperLimit 记录组件的值
    • lowerLimit

      public double lowerLimit()
      返回 lowerLimit 记录组件的值。
      返回:
      lowerLimit 记录组件的值
    • bidPrice

      public List<Double> bidPrice()
      返回 bidPrice 记录组件的值。
      返回:
      bidPrice 记录组件的值
    • askPrice

      public List<Double> askPrice()
      返回 askPrice 记录组件的值。
      返回:
      askPrice 记录组件的值
    • bidVolume

      public List<Integer> bidVolume()
      返回 bidVolume 记录组件的值。
      返回:
      bidVolume 记录组件的值
    • askVolume

      public List<Integer> askVolume()
      返回 askVolume 记录组件的值。
      返回:
      askVolume 记录组件的值
    • type

      public TickType type()
      返回 type 记录组件的值。
      返回:
      type 记录组件的值
    • otherInfo

      public com.alibaba.fastjson.JSONObject otherInfo()
      返回 otherInfo 记录组件的值。
      返回:
      otherInfo 记录组件的值
    • channelType

      public ChannelType channelType()
      返回 channelType 记录组件的值。
      返回:
      channelType 记录组件的值