记录类 Bar

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

public record Bar(String gatewayId, Contract contract, LocalDate actionDay, LocalTime actionTime, LocalDate tradingDay, long actionTimestamp, double openPrice, double highPrice, double lowPrice, double closePrice, double openInterest, double openInterestDelta, long volume, long volumeDelta, double turnover, double turnoverDelta, double preOpenInterest, double preClosePrice, double preSettlePrice, ChannelType channelType) extends Record implements Timed
  • 构造器详细资料

    • Bar

      public Bar(String gatewayId, Contract contract, LocalDate actionDay, LocalTime actionTime, LocalDate tradingDay, long actionTimestamp, double openPrice, double highPrice, double lowPrice, double closePrice, double openInterest, double openInterestDelta, long volume, long volumeDelta, double turnover, double turnoverDelta, double preOpenInterest, double preClosePrice, double preSettlePrice, ChannelType channelType)
      创建 Bar 记录类的实例。
      参数:
      gatewayId - gatewayId 记录组件的值
      contract - contract 记录组件的值
      actionDay - actionDay 记录组件的值
      actionTime - actionTime 记录组件的值
      tradingDay - tradingDay 记录组件的值
      actionTimestamp - actionTimestamp 记录组件的值
      openPrice - openPrice 记录组件的值
      highPrice - highPrice 记录组件的值
      lowPrice - lowPrice 记录组件的值
      closePrice - closePrice 记录组件的值
      openInterest - openInterest 记录组件的值
      openInterestDelta - openInterestDelta 记录组件的值
      volume - volume 记录组件的值
      volumeDelta - volumeDelta 记录组件的值
      turnover - turnover 记录组件的值
      turnoverDelta - turnoverDelta 记录组件的值
      preOpenInterest - preOpenInterest 记录组件的值
      preClosePrice - preClosePrice 记录组件的值
      preSettlePrice - preSettlePrice 记录组件的值
      channelType - channelType 记录组件的值
  • 方法详细资料

    • toBarField

      public CoreField.BarField toBarField()
    • of

      public static Bar of(CoreField.BarField bar, Contract contract)
    • 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 记录组件的值
    • openPrice

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

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

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

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

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

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

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

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

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

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

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

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

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

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