com.binance4j.market.param.ExchangeInfoParams 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.List;
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#getExchangeInfo} params.
*
* @param symbol Symbol.
*/
@Param(weight = 10, recvWindow = false, timestamp = false)
public record ExchangeInfoParams(String symbol) implements Params {
/** Creates an instance of {@link ExchangeInfoParams}. */
public ExchangeInfoParams() {
this((String) null);
}
/**
* @param symbols The trading pair list.
*/
public ExchangeInfoParams(List symbols) {
this("[" + symbols.stream().map(s -> String.format("\"%s\"", s)).collect(Collectors.joining(",")) + "]");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy