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

io.mstream.trader.datafeed.config.AppConfig Maven / Gradle / Ivy

The newest version!
package io.mstream.trader.datafeed.config;


import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.mstream.trader.commons.config.model.DownstreamService;


class AppConfig {
    
    private final String quandlApiKey;
    
    private final DownstreamService quandl;
    
    @JsonCreator
    public AppConfig(
            @JsonProperty(
                    value = "quandlApiKey",
                    required = true
            )
                    String quandlApiKey,
            @JsonProperty(
                    value = "quandl",
                    required = true
            )
                    DownstreamService quandl
    ) {
        
        this.quandlApiKey = quandlApiKey;
        this.quandl = quandl;
    }
    
    public String getQuandlApiKey() {
        
        return quandlApiKey;
    }
    
    public DownstreamService getQuandl() {
    
        return quandl;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy