com.binance4j.market.param.OrderBookParams 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 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