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

com.binance4j.market.param.OrderBookParams 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.param.Params;
import com.binance4j.market.client.MarketClient;
import com.binance4j.market.dto.OrderBookLimit;

/**
 * {@link MarketClient#getOrderBook} params.
 * 
 * @param symbol Trading pair we want the depth.
 * @param limit  Market depth size.
 */
@Param(recvWindow = false, timestamp = false)
public record OrderBookParams(String symbol, String limit) implements Params {
	/**
	 * Creates an instance of {@link OrderBookParams}.
	 * 
	 * @param symbol Trading pair we want the depth.
	 */
	public OrderBookParams(String symbol) {
		this(symbol, "100");
	}

	/**
	 * Creates an instance of {@link OrderBookParams}.
	 * 
	 * @param symbol Trading pair we want the depth.
	 */
	public OrderBookParams(String symbol, OrderBookLimit limit) {
		this(symbol, limit.toString());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy