package com.yami.trading.huobi.tradingview.api.model;
|
|
/**
|
* @Author: TG:哪吒出海
|
* @Date: 2025-05-27-22:07
|
* @Description:
|
*/
|
public class Kline {
|
|
private long timestamp;
|
private double open;
|
private double high;
|
private double low;
|
private double close;
|
private double volume;
|
|
private long index;
|
|
// 构造函数
|
public Kline(long index,long timestamp, double open, double high, double low, double close, double volume) {
|
this.index = index;
|
this.timestamp = timestamp;
|
this.open = open;
|
this.high = high;
|
this.low = low;
|
this.close = close;
|
this.volume = volume;
|
}
|
|
public long getIndex() {
|
return index;
|
}
|
|
public void setIndex(long index) {
|
this.index = index;
|
}
|
|
public long getTimestamp() {
|
return timestamp;
|
}
|
|
public void setTimestamp(long timestamp) {
|
this.timestamp = timestamp;
|
}
|
|
public double getOpen() {
|
return open;
|
}
|
|
public void setOpen(double open) {
|
this.open = open;
|
}
|
|
public double getHigh() {
|
return high;
|
}
|
|
public void setHigh(double high) {
|
this.high = high;
|
}
|
|
public double getLow() {
|
return low;
|
}
|
|
public void setLow(double low) {
|
this.low = low;
|
}
|
|
public double getClose() {
|
return close;
|
}
|
|
public void setClose(double close) {
|
this.close = close;
|
}
|
|
public double getVolume() {
|
return volume;
|
}
|
|
public void setVolume(double volume) {
|
this.volume = volume;
|
}
|
}
|