记录类 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(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记录类的实例。 -
方法概要
修饰符和类型方法说明返回actionDay记录组件的值。返回actionTime记录组件的值。long返回actionTimestamp记录组件的值。askPrice()返回askPrice记录组件的值。返回askVolume记录组件的值。doubleavgPrice()返回avgPrice记录组件的值。bidPrice()返回bidPrice记录组件的值。返回bidVolume记录组件的值。返回channelType记录组件的值。contract()返回contract记录组件的值。final boolean指示某个其他对象是否“等于”此对象。返回gatewayId记录组件的值。longfinal inthashCode()返回此对象的哈希代码值。double返回highPrice记录组件的值。doubleiopv()返回iopv记录组件的值。double返回lastPrice记录组件的值。double返回lowerLimit记录组件的值。doublelowPrice()返回lowPrice记录组件的值。double返回openInterest记录组件的值。double返回openInterestDelta记录组件的值。double返回openPrice记录组件的值。com.alibaba.fastjson.JSONObject返回otherInfo记录组件的值。double返回preClosePrice记录组件的值。double返回preOpenInterest记录组件的值。double返回preSettlePrice记录组件的值。double返回settlePrice记录组件的值。final StringtoString()返回此记录类的字符串表示形式。返回tradingDay记录组件的值。doubleturnover()返回turnover记录组件的值。double返回turnoverDelta记录组件的值。type()返回type记录组件的值。double返回upperLimit记录组件的值。longvolume()返回volume记录组件的值。long返回volumeDelta记录组件的值。
-
构造器详细资料
-
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
-
getTimestamp
public long getTimestamp()- 指定者:
getTimestamp在接口中Timed
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用Objects::equals(Object,Object)对参考组件进行比较;使用 '==' 对基元组件进行比较 -
gatewayId
返回gatewayId记录组件的值。- 返回:
gatewayId记录组件的值
-
contract
返回contract记录组件的值。- 返回:
contract记录组件的值
-
actionDay
返回actionDay记录组件的值。- 返回:
actionDay记录组件的值
-
actionTime
返回actionTime记录组件的值。- 返回:
actionTime记录组件的值
-
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
返回bidPrice记录组件的值。- 返回:
bidPrice记录组件的值
-
askPrice
返回askPrice记录组件的值。- 返回:
askPrice记录组件的值
-
bidVolume
返回bidVolume记录组件的值。- 返回:
bidVolume记录组件的值
-
askVolume
返回askVolume记录组件的值。- 返回:
askVolume记录组件的值
-
type
返回type记录组件的值。- 返回:
type记录组件的值
-
otherInfo
public com.alibaba.fastjson.JSONObject otherInfo()返回otherInfo记录组件的值。- 返回:
otherInfo记录组件的值
-
channelType
返回channelType记录组件的值。- 返回:
channelType记录组件的值
-