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

com.binance4j.market.param.KlinesParams Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package com.binance4j.market.param;

import com.binance4j.core.annotation.Param;
import com.binance4j.core.dto.CandlestickInterval;
import com.binance4j.core.param.Params;
import com.binance4j.market.client.MarketClient;

/**
 * {@link MarketClient#getKlines} params.
 * 
 * @param symbol   Trading pair we want the data.
 * @param interval Candlestick interval.
 */
@Param(recvWindow = false, timestamp = false)
public record KlinesParams(String symbol, String interval) implements Params {
	/**
	 * @param symbol   Trading pair we want the data.
	 * @param interval Candlestick interval.
	 */
	public KlinesParams(String symbol, CandlestickInterval interval) {
		this(symbol, interval.toString());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy