package com.nq.pojo;
|
|
import java.util.List;
|
|
public class HBData {
|
|
|
/**
|
* ch : market.btcusdt.detail.merged
|
* status : ok
|
* ts : 1711452466761
|
* tick : {"id":339321896246,"version":339321896246,"open":66860.62,"close":70754.98,"low":66750.01,"high":71540.34,"amount":4448.863696904556,"vol":3.091908139344081E8,"count":178297,"bid":[70754.97,0.298382],"ask":[70754.98,0.637937]}
|
*/
|
|
private String ch;
|
private String status;
|
private long ts;
|
private TickBean tick;
|
|
public String getCh() {
|
return ch;
|
}
|
|
public void setCh(String ch) {
|
this.ch = ch;
|
}
|
|
public String getStatus() {
|
return status;
|
}
|
|
public void setStatus(String status) {
|
this.status = status;
|
}
|
|
public long getTs() {
|
return ts;
|
}
|
|
public void setTs(long ts) {
|
this.ts = ts;
|
}
|
|
public TickBean getTick() {
|
return tick;
|
}
|
|
public void setTick(TickBean tick) {
|
this.tick = tick;
|
}
|
|
public static class TickBean {
|
/**
|
* id : 339321896246
|
* version : 339321896246
|
* open : 66860.62
|
* close : 70754.98
|
* low : 66750.01
|
* high : 71540.34
|
* amount : 4448.863696904556
|
* vol : 3.091908139344081E8
|
* count : 178297
|
* bid : [70754.97,0.298382]
|
* ask : [70754.98,0.637937]
|
*/
|
|
private long id;
|
private long version;
|
private double open;
|
private double close;
|
private double low;
|
private double high;
|
private double amount;
|
private double vol;
|
private int count;
|
|
|
public long getId() {
|
return id;
|
}
|
|
public void setId(long id) {
|
this.id = id;
|
}
|
|
public long getVersion() {
|
return version;
|
}
|
|
public void setVersion(long version) {
|
this.version = version;
|
}
|
|
public double getOpen() {
|
return open;
|
}
|
|
public void setOpen(double open) {
|
this.open = open;
|
}
|
|
public double getClose() {
|
return close;
|
}
|
|
public void setClose(double close) {
|
this.close = close;
|
}
|
|
public double getLow() {
|
return low;
|
}
|
|
public void setLow(double low) {
|
this.low = low;
|
}
|
|
public double getHigh() {
|
return high;
|
}
|
|
public void setHigh(double high) {
|
this.high = high;
|
}
|
|
public double getAmount() {
|
return amount;
|
}
|
|
public void setAmount(double amount) {
|
this.amount = amount;
|
}
|
|
public double getVol() {
|
return vol;
|
}
|
|
public void setVol(double vol) {
|
this.vol = vol;
|
}
|
|
public int getCount() {
|
return count;
|
}
|
|
public void setCount(int count) {
|
this.count = count;
|
}
|
}
|
}
|