1
zyy
3 days ago c272cabfe3814857218601ae7aa61b5923d7d4ec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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;
    }
}