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

com.grafana.foundation.candlestick.CandlestickFieldMap Maven / Gradle / Ivy

There is a newer version: 11.3.0-1730898216
Show newest version
// Code generated - EDITING IS FUTILE. DO NOT EDIT.

package com.grafana.foundation.candlestick;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

public class CandlestickFieldMap {
    // Corresponds to the starting value of the given period
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("open")
    public String open;
    // Corresponds to the highest value of the given period
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("high")
    public String high;
    // Corresponds to the lowest value of the given period
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("low")
    public String low;
    // Corresponds to the final (end) value of the given period
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("close")
    public String close;
    // Corresponds to the sample count in the given period. (e.g. number of trades)
    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @JsonProperty("volume")
    public String volume;
    
    public String toJSON() throws JsonProcessingException {
        ObjectWriter ow = new ObjectMapper().writer().withDefaultPrettyPrinter();
        return ow.writeValueAsString(this);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy