All Downloads are FREE. Search and download functionalities are using the official Maven repository.

estonlabs.cxtl.exchanges.mexc.spot.v3.domain.Kline Maven / Gradle / Ivy

There is a newer version: 1.4.14
Show newest version
package estonlabs.cxtl.exchanges.mexc.spot.v3.domain;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import estonlabs.cxtl.exchanges.a.specification.domain.Olhcv;
import lombok.Data;

@Data
@JsonFormat(shape = JsonFormat.Shape.ARRAY)
public class Kline implements Olhcv {
    private long openTime;
    private Double open;
    private Double high;
    private Double low;
    private Double close;
    private Double volume;
    private long closeTime;
    private String quoteAssetVolume;

    @JsonCreator
    public Kline(
            @JsonProperty(index = 0) long openTime,
            @JsonProperty(index = 1) Double open,
            @JsonProperty(index = 2) Double high,
            @JsonProperty(index = 3) Double low,
            @JsonProperty(index = 4) Double close,
            @JsonProperty(index = 5) Double volume,
            @JsonProperty(index = 6) long closeTime,
            @JsonProperty(index = 7) String quoteAssetVolume
    ) {
        this.openTime = openTime;
        this.open = open;
        this.high = high;
        this.low = low;
        this.close = close;
        this.volume = volume;
        this.closeTime = closeTime;
        this.quoteAssetVolume = quoteAssetVolume;
    }

    @Override
    public Long getStartMs() {
        return openTime;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy