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

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

There is a newer version: 2.4.0
Show newest version
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