com.binance4j.market.param.TickersStatisticsParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of binance4j-market Show documentation
Show all versions of binance4j-market Show documentation
Connector for the Market endpoints of the Binance API
package com.binance4j.market.param;
import java.util.Collection;
import java.util.stream.Collectors;
import com.binance4j.core.annotation.Param;
import com.binance4j.core.param.Params;
import com.binance4j.market.client.MarketClient;
/**
* {@link MarketClient#get24hTickerStatistics} params.
*
* @param symbols Symbols. Format: '["BTCBUSD","BNBBUSD"]'
*/
@Param(weight = 40, recvWindow = false, timestamp = false)
public record TickersStatisticsParams(String symbols) implements Params {
/**
* Creates an instance of {@link TickersStatisticsParams}.
*
* @param symbols Symbols.
*/
public TickersStatisticsParams(Collection symbols) {
this("[" + String.join(",", symbols.stream().map(String::trim).map(s -> String.format("\"%s\"", s)).collect(Collectors.toList())) + "]");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy