Class BinanceTradeServiceRaw
java.lang.Object
org.knowm.xchange.service.BaseExchangeService<E>
org.knowm.xchange.service.BaseResilientExchangeService<BinanceExchange>
org.knowm.xchange.binance.service.BinanceBaseService
org.knowm.xchange.binance.service.BinanceTradeServiceRaw
- Direct Known Subclasses:
BinanceTradeService
public class BinanceTradeServiceRaw extends BinanceBaseService
-
Field Summary
Fields inherited from class org.knowm.xchange.binance.service.BinanceBaseService
apiKey, binance, LOG, signatureCreatorFields inherited from class org.knowm.xchange.service.BaseResilientExchangeService
resilienceRegistriesFields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange -
Constructor Summary
Constructors Modifier Constructor Description protectedBinanceTradeServiceRaw(BinanceExchange exchange, BinanceAuthenticated binance, ResilienceRegistries resilienceRegistries) -
Method Summary
Methods inherited from class org.knowm.xchange.binance.service.BinanceBaseService
getExchangeInfo, getRecvWindow, getSystemStatus, getTimestampFactoryMethods inherited from class org.knowm.xchange.service.BaseResilientExchangeService
decorateApiCall, rateLimiter, rateLimiter, retry, retryMethods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
-
Constructor Details
-
BinanceTradeServiceRaw
protected BinanceTradeServiceRaw(BinanceExchange exchange, BinanceAuthenticated binance, ResilienceRegistries resilienceRegistries)
-
-
Method Details
-
openOrders
- Throws:
BinanceExceptionIOException
-
openOrders
- Throws:
BinanceExceptionIOException
-
newOrder
public BinanceNewOrder newOrder(CurrencyPair pair, OrderSide side, OrderType type, TimeInForce timeInForce, BigDecimal quantity, BigDecimal price, String newClientOrderId, BigDecimal stopPrice, BigDecimal icebergQty) throws IOException, BinanceException- Throws:
IOExceptionBinanceException
-
testNewOrder
public void testNewOrder(CurrencyPair pair, OrderSide side, OrderType type, TimeInForce timeInForce, BigDecimal quantity, BigDecimal price, String newClientOrderId, BigDecimal stopPrice, BigDecimal icebergQty) throws IOException, BinanceException- Throws:
IOExceptionBinanceException
-
orderStatus
public BinanceOrder orderStatus(CurrencyPair pair, long orderId, String origClientOrderId) throws IOException, BinanceException- Throws:
IOExceptionBinanceException
-
cancelOrder
public BinanceCancelledOrder cancelOrder(CurrencyPair pair, long orderId, String origClientOrderId, String newClientOrderId) throws IOException, BinanceException- Throws:
IOExceptionBinanceException
-
cancelAllOpenOrders
public List<BinanceCancelledOrder> cancelAllOpenOrders(CurrencyPair pair) throws IOException, BinanceException- Throws:
IOExceptionBinanceException
-
allOrders
public List<BinanceOrder> allOrders(CurrencyPair pair, Long orderId, Integer limit) throws BinanceException, IOException- Throws:
BinanceExceptionIOException
-
myTrades
public List<BinanceTrade> myTrades(CurrencyPair pair, Integer limit, Long startTime, Long endTime, Long fromId) throws BinanceException, IOException- Throws:
BinanceExceptionIOException
-
startUserDataStream
- Throws:
IOException
-
keepAliveDataStream
- Throws:
IOException
-
closeDataStream
- Throws:
IOException
-
openOrdersPermits
-
myTradesPermits
-