public class BinanceTradeServiceRaw extends BinanceBaseService
apiKey, binance, LOG, signatureCreatorexchange| Modifier | Constructor and Description |
|---|---|
protected |
BinanceTradeServiceRaw(Exchange exchange) |
| Modifier and Type | Method and Description |
|---|---|
List<BinanceOrder> |
allOrders(CurrencyPair pair,
Long orderId,
Integer limit,
Long recvWindow,
long timestamp) |
BinanceCancelledOrder |
cancelOrder(CurrencyPair pair,
long orderId,
String origClientOrderId,
String newClientOrderId,
Long recvWindow,
long timestamp) |
void |
closeDataStream(String listenKey) |
void |
keepAliveDataStream(String listenKey) |
List<BinanceTrade> |
myTrades(CurrencyPair pair,
Integer limit,
Long fromId,
Long recvWindow,
long timestamp) |
BinanceNewOrder |
newOrder(CurrencyPair pair,
OrderSide side,
OrderType type,
TimeInForce timeInForce,
BigDecimal quantity,
BigDecimal price,
String newClientOrderId,
BigDecimal stopPrice,
BigDecimal icebergQty,
Long recvWindow,
long timestamp) |
List<BinanceOrder> |
openOrders(CurrencyPair pair,
Long recvWindow,
long timestamp) |
List<BinanceOrder> |
openOrders(Long recvWindow,
long timestamp) |
BinanceOrder |
orderStatus(CurrencyPair pair,
long orderId,
String origClientOrderId,
Long recvWindow,
long timestamp) |
BinanceListenKey |
startUserDataStream() |
void |
testNewOrder(CurrencyPair pair,
OrderSide side,
OrderType type,
TimeInForce timeInForce,
BigDecimal quantity,
BigDecimal price,
String newClientOrderId,
BigDecimal stopPrice,
BigDecimal icebergQty,
Long recvWindow,
long timestamp) |
getExchangeInfo, getTimestamp, refreshTimestampgetClientConfig, verifyOrder, verifyOrder, verifyOrderprotected BinanceTradeServiceRaw(Exchange exchange)
public List<BinanceOrder> openOrders(Long recvWindow, long timestamp) throws BinanceException, IOException
BinanceExceptionIOExceptionpublic List<BinanceOrder> openOrders(CurrencyPair pair, Long recvWindow, long timestamp) throws BinanceException, IOException
BinanceExceptionIOExceptionpublic BinanceNewOrder newOrder(CurrencyPair pair, OrderSide side, OrderType type, TimeInForce timeInForce, BigDecimal quantity, BigDecimal price, String newClientOrderId, BigDecimal stopPrice, BigDecimal icebergQty, Long recvWindow, long timestamp) throws IOException, BinanceException
IOExceptionBinanceExceptionpublic void testNewOrder(CurrencyPair pair, OrderSide side, OrderType type, TimeInForce timeInForce, BigDecimal quantity, BigDecimal price, String newClientOrderId, BigDecimal stopPrice, BigDecimal icebergQty, Long recvWindow, long timestamp) throws IOException, BinanceException
IOExceptionBinanceExceptionpublic BinanceOrder orderStatus(CurrencyPair pair, long orderId, String origClientOrderId, Long recvWindow, long timestamp) throws IOException, BinanceException
IOExceptionBinanceExceptionpublic BinanceCancelledOrder cancelOrder(CurrencyPair pair, long orderId, String origClientOrderId, String newClientOrderId, Long recvWindow, long timestamp) throws IOException, BinanceException
IOExceptionBinanceExceptionpublic List<BinanceOrder> allOrders(CurrencyPair pair, Long orderId, Integer limit, Long recvWindow, long timestamp) throws BinanceException, IOException
BinanceExceptionIOExceptionpublic List<BinanceTrade> myTrades(CurrencyPair pair, Integer limit, Long fromId, Long recvWindow, long timestamp) throws BinanceException, IOException
BinanceExceptionIOExceptionpublic BinanceListenKey startUserDataStream() throws IOException
IOExceptionpublic void keepAliveDataStream(String listenKey) throws IOException
IOExceptionpublic void closeDataStream(String listenKey) throws IOException
IOExceptionCopyright © 2012–2018 Knowm Inc.. All rights reserved.