Package org.knowm.xchange.binance
Interface BinanceFuturesAuthenticated
- All Superinterfaces:
BinanceFutures
@Path("")
@Produces("application/json")
public interface BinanceFuturesAuthenticated
extends BinanceFutures
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncancelAllFutureOpenOrders(String symbol, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Cancels all active orders on a symbol.cancelFutureOrder(String symbol, Long orderId, String origClientOrderId, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Cancel an active futures order.cancelInverseFutureOrder(String symbol, Long orderId, String origClientOrderId, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Cancel an active inverse futures order.cancelPortfolioMarginFutureOrder(String symbol, Long orderId, String origClientOrderId, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Cancel an active portfolio margin futures order.cancelPortfolioMarginInverseFutureOrder(String symbol, Long orderId, String origClientOrderId, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Cancel an active inverse portfolio margin futures order.futureInverseOrderStatus(String symbol, Long orderId, String origClientOrderId, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Check an inverse order's status.
Either orderId or origClientOrderId must be sent.futureOpenInverseOrders(String symbol, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Get future open orders on a symbol.futureOpenOrders(String symbol, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Get future open orders on a symbol.futureOpenPortfolioMarginInverseOrders(String symbol, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Get future open portfolio margin orders on a symbol.futureOpenPortfolioMarginOrders(String symbol, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Get future open portfolio margin orders on a symbol.futureOrderStatus(String symbol, Long orderId, String origClientOrderId, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Check an order's status.
Either orderId or origClientOrderId must be sent.futurePortfolioMarginInverseOrderStatus(String symbol, Long orderId, String origClientOrderId, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Check a portfolio margin inverse/coin margin order's status.
Either orderId or origClientOrderId must be sent.futurePortfolioMarginOrderStatus(String symbol, Long orderId, String origClientOrderId, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Check a portfolio margin order's status.
Either orderId or origClientOrderId must be sent.futuresAccount(Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Get current futures account information.futuresV3Account(Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Account Information V3(USER_DATA)getAllFutureOrders(String symbol, Long orderId, Long startTime, Long endTime, Integer limit, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) All Orders (USER_DATA)getFutureCommissionRate(String symbol, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Get User Commission Rate for a Future symbol.getFuturesPositionRisk(String symbol, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Position Information V2 (USER_DATA)getFuturesV3PositionRisk(String symbol, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Position Information V3 (USER_DATA)modifyOrder(Long orderId, String origClientOrderId, String symbol, OrderSide side, BigDecimal quantity, BigDecimal price, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queuemyFutureTrades(String symbol, Long orderId, Long startTime, Long endTime, Long fromId, Integer limit, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Get trades for a specific account and symbol.newInverseOrder(String symbol, OrderSide side, OrderType type, TimeInForce timeInForce, BigDecimal quantity, boolean reduceOnly, BigDecimal price, String newClientOrderId, BigDecimal stopPrice, boolean closePosition, BigDecimal activationPrice, BigDecimal callbackRate, BinanceNewOrder.NewOrderResponseType newOrderRespType, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Send in a new inverse futures ordernewOrder(String symbol, OrderSide side, OrderType type, TimeInForce timeInForce, BigDecimal quantity, Boolean reduceOnly, BigDecimal price, String newClientOrderId, BigDecimal stopPrice, boolean closePosition, BigDecimal activationPrice, BigDecimal callbackRate, BinanceNewOrder.NewOrderResponseType newOrderRespType, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Send in a new futures ordernewPortfolioMarginInverseOrder(String symbol, OrderSide side, OrderType type, TimeInForce timeInForce, BigDecimal quantity, boolean reduceOnly, BigDecimal price, String newClientOrderId, BinanceNewOrder.NewOrderResponseType newOrderRespType, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Send in a new coin based (inverse) futures order to portfolio margin enginenewPortfolioMarginLinearOrder(String symbol, OrderSide side, OrderType type, TimeInForce timeInForce, BigDecimal quantity, boolean reduceOnly, BigDecimal price, String newClientOrderId, BinanceNewOrder.NewOrderResponseType newOrderRespType, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Send in a new USD based (linear) futures order to portfolio margin enginesetDualSidePosition(boolean dualSidePosition, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbolsetLeverage(String symbol, int leverage, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) setMarginType(String symbol, MarginType marginType, Long recvWindow, si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, String apiKey, si.mazi.rescu.ParamsDigest signature) Change symbol level margin typeMethods inherited from interface org.knowm.xchange.binance.BinanceFutures
aggTrades, depth, exchangeInfo, fundingRate, fundingRateHistory, fundingRateInfo, fundingRates, klines, systemStatus, ticker24h, ticker24h
-
Field Details
-
SIGNATURE
- See Also:
-
X_MBX_APIKEY
- See Also:
-
-
Method Details
-
futuresAccount
@GET @Path("fapi/v2/account") BinanceFutureAccountInformation futuresAccount(@QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Get current futures account information.- Parameters:
recvWindow- optionaltimestamp-- Returns:
- Throws:
IOExceptionBinanceException
-
futuresV3Account
@GET @Path("fapi/v3/account") BinanceFutureAccountInformation futuresV3Account(@QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Account Information V3(USER_DATA)- Parameters:
recvWindow- optionaltimestamp-- Returns:
- Throws:
IOExceptionBinanceException
-
newOrder
@POST @Path("fapi/v1/order") BinanceFutureNewOrder newOrder(@FormParam("symbol") String symbol, @FormParam("side") OrderSide side, @FormParam("type") OrderType type, @FormParam("timeInForce") TimeInForce timeInForce, @FormParam("quantity") BigDecimal quantity, @FormParam("reduceOnly") Boolean reduceOnly, @FormParam("price") BigDecimal price, @FormParam("newClientOrderId") String newClientOrderId, @FormParam("stopPrice") BigDecimal stopPrice, @FormParam("closePosition") boolean closePosition, @FormParam("activationPrice") BigDecimal activationPrice, @FormParam("callbackRate") BigDecimal callbackRate, @FormParam("newOrderRespType") BinanceNewOrder.NewOrderResponseType newOrderRespType, @FormParam("recvWindow") Long recvWindow, @FormParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Send in a new futures order- Parameters:
symbol-side-type-timeInForce-quantity-price- optional, must be provided for limit orders onlynewClientOrderId- optional, a unique id for the order. Automatically generated if not sent.stopPrice- optional, used with stop ordersnewOrderRespType- optional, MARKET and LIMIT order types default to FULL, all other orders default to ACKrecvWindow- optionaltimestamp-- Returns:
- Throws:
IOExceptionBinanceException- See Also:
-
newInverseOrder
@POST @Path("dapi/v1/order") BinanceFutureNewOrder newInverseOrder(@FormParam("symbol") String symbol, @FormParam("side") OrderSide side, @FormParam("type") OrderType type, @FormParam("timeInForce") TimeInForce timeInForce, @FormParam("quantity") BigDecimal quantity, @FormParam("reduceOnly") boolean reduceOnly, @FormParam("price") BigDecimal price, @FormParam("newClientOrderId") String newClientOrderId, @FormParam("stopPrice") BigDecimal stopPrice, @FormParam("closePosition") boolean closePosition, @FormParam("activationPrice") BigDecimal activationPrice, @FormParam("callbackRate") BigDecimal callbackRate, @FormParam("newOrderRespType") BinanceNewOrder.NewOrderResponseType newOrderRespType, @FormParam("recvWindow") Long recvWindow, @FormParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Send in a new inverse futures order- Parameters:
symbol-side-type-timeInForce-quantity-price- optional, must be provided for limit orders onlynewClientOrderId- optional, a unique id for the order. Automatically generated if not sent.stopPrice- optional, used with stop ordersnewOrderRespType- optional, MARKET and LIMIT order types default to FULL, all other orders default to ACKrecvWindow- optionaltimestamp-- Returns:
- Throws:
IOExceptionBinanceException- See Also:
-
newPortfolioMarginLinearOrder
@POST @Path("papi/v1/um/order") BinanceFutureNewOrder newPortfolioMarginLinearOrder(@FormParam("symbol") String symbol, @FormParam("side") OrderSide side, @FormParam("type") OrderType type, @FormParam("timeInForce") TimeInForce timeInForce, @FormParam("quantity") BigDecimal quantity, @FormParam("reduceOnly") boolean reduceOnly, @FormParam("price") BigDecimal price, @FormParam("newClientOrderId") String newClientOrderId, @FormParam("newOrderRespType") BinanceNewOrder.NewOrderResponseType newOrderRespType, @FormParam("recvWindow") Long recvWindow, @FormParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Send in a new USD based (linear) futures order to portfolio margin engine- Parameters:
symbol-side-type-timeInForce-quantity-price- optional, must be provided for limit orders onlynewClientOrderId- optional, a unique id for the order. Automatically generated if not sent.newOrderRespType- optional, MARKET and LIMIT order types default to FULL, all other orders default to ACKrecvWindow- optionaltimestamp-- Returns:
- Throws:
IOExceptionBinanceException- See Also:
-
newPortfolioMarginInverseOrder
@POST @Path("papi/v1/cm/order") BinanceFutureNewOrder newPortfolioMarginInverseOrder(@FormParam("symbol") String symbol, @FormParam("side") OrderSide side, @FormParam("type") OrderType type, @FormParam("timeInForce") TimeInForce timeInForce, @FormParam("quantity") BigDecimal quantity, @FormParam("reduceOnly") boolean reduceOnly, @FormParam("price") BigDecimal price, @FormParam("newClientOrderId") String newClientOrderId, @FormParam("newOrderRespType") BinanceNewOrder.NewOrderResponseType newOrderRespType, @FormParam("recvWindow") Long recvWindow, @FormParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Send in a new coin based (inverse) futures order to portfolio margin engine- Parameters:
symbol-side-type-timeInForce-quantity-price- optional, must be provided for limit orders onlynewClientOrderId- optional, a unique id for the order. Automatically generated if not sent.newOrderRespType- optional, MARKET and LIMIT order types default to FULL, all other orders default to ACKrecvWindow- optionaltimestamp-- Returns:
- Throws:
IOExceptionBinanceException- See Also:
-
cancelFutureOrder
@DELETE @Path("fapi/v1/order") BinanceCancelledOrder cancelFutureOrder(@QueryParam("symbol") String symbol, @QueryParam("orderId") Long orderId, @QueryParam("origClientOrderId") String origClientOrderId, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Cancel an active futures order.- Parameters:
symbol-orderId- optionalorigClientOrderId- optional generated by default.recvWindow- optionaltimestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
cancelInverseFutureOrder
@DELETE @Path("dapi/v1/order") BinanceCancelledOrder cancelInverseFutureOrder(@QueryParam("symbol") String symbol, @QueryParam("orderId") Long orderId, @QueryParam("origClientOrderId") String origClientOrderId, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Cancel an active inverse futures order.- Parameters:
symbol-orderId- optionalorigClientOrderId- optional generated by default.recvWindow- optionaltimestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
cancelPortfolioMarginInverseFutureOrder
@DELETE @Path("papi/v1/cm/order") BinanceCancelledOrder cancelPortfolioMarginInverseFutureOrder(@QueryParam("symbol") String symbol, @QueryParam("orderId") Long orderId, @QueryParam("origClientOrderId") String origClientOrderId, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Cancel an active inverse portfolio margin futures order.- Parameters:
symbol-orderId- optionalorigClientOrderId- optional generated by default.recvWindow- optionaltimestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
cancelPortfolioMarginFutureOrder
@DELETE @Path("papi/v1/um/order") BinanceCancelledOrder cancelPortfolioMarginFutureOrder(@QueryParam("symbol") String symbol, @QueryParam("orderId") Long orderId, @QueryParam("origClientOrderId") String origClientOrderId, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Cancel an active portfolio margin futures order.- Parameters:
symbol-orderId- optionalorigClientOrderId- optional generated by default.recvWindow- optionaltimestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
futureOpenOrders
@GET @Path("fapi/v1/openOrders") List<BinanceOrder> futureOpenOrders(@QueryParam("symbol") String symbol, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Get future open orders on a symbol.- Parameters:
symbol- optionalrecvWindow- optionaltimestamp-- Returns:
- Throws:
IOExceptionBinanceException
-
futureOpenInverseOrders
@GET @Path("dapi/v1/openOrders") List<BinanceOrder> futureOpenInverseOrders(@QueryParam("symbol") String symbol, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Get future open orders on a symbol.- Parameters:
symbol- optionalrecvWindow- optionaltimestamp-- Returns:
- Throws:
IOExceptionBinanceException
-
futureOpenPortfolioMarginOrders
@GET @Path("/papi/v1/um/openOrders ") List<BinanceOrder> futureOpenPortfolioMarginOrders(@QueryParam("symbol") String symbol, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Get future open portfolio margin orders on a symbol.- Parameters:
symbol- optionalrecvWindow- optionaltimestamp-- Returns:
- Throws:
IOExceptionBinanceException
-
futureOpenPortfolioMarginInverseOrders
@GET @Path("/papi/v1/cm/openOrders") List<BinanceOrder> futureOpenPortfolioMarginInverseOrders(@QueryParam("symbol") String symbol, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Get future open portfolio margin orders on a symbol.- Parameters:
symbol- optionalrecvWindow- optionaltimestamp-- Returns:
- Throws:
IOExceptionBinanceException
-
myFutureTrades
@GET @Path("fapi/v1/userTrades") List<BinanceTrade> myFutureTrades(@QueryParam("symbol") String symbol, @QueryParam("orderId") Long orderId, @QueryParam("startTime") Long startTime, @QueryParam("endTime") Long endTime, @QueryParam("fromId") Long fromId, @QueryParam("limit") Integer limit, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Get trades for a specific account and symbol.- Parameters:
symbol-orderId- optionalstartTime- optionalendTime- optionalfromId- optional, tradeId to fetch from. Default gets most recent trades.limit- optional, default 500; max 1000.recvWindow- optionaltimestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
futureOrderStatus
@GET @Path("fapi/v1/order") BinanceOrder futureOrderStatus(@QueryParam("symbol") String symbol, @QueryParam("orderId") Long orderId, @QueryParam("origClientOrderId") String origClientOrderId, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Check an order's status.
Either orderId or origClientOrderId must be sent.- Parameters:
symbol-orderId- optionalorigClientOrderId- optionalrecvWindow- optionaltimestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
futureInverseOrderStatus
@GET @Path("dapi/v1/order") BinanceOrder futureInverseOrderStatus(@QueryParam("symbol") String symbol, @QueryParam("orderId") Long orderId, @QueryParam("origClientOrderId") String origClientOrderId, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Check an inverse order's status.
Either orderId or origClientOrderId must be sent.- Parameters:
symbol-orderId- optionalorigClientOrderId- optionalrecvWindow- optionaltimestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
futurePortfolioMarginOrderStatus
@GET @Path("/papi/v1/um/order") BinanceOrder futurePortfolioMarginOrderStatus(@QueryParam("symbol") String symbol, @QueryParam("orderId") Long orderId, @QueryParam("origClientOrderId") String origClientOrderId, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Check a portfolio margin order's status.
Either orderId or origClientOrderId must be sent.- Parameters:
symbol-orderId- optionalorigClientOrderId- optionalrecvWindow- optionaltimestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
futurePortfolioMarginInverseOrderStatus
@GET @Path("/papi/v1/cm/order") BinanceOrder futurePortfolioMarginInverseOrderStatus(@QueryParam("symbol") String symbol, @QueryParam("orderId") Long orderId, @QueryParam("origClientOrderId") String origClientOrderId, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Check a portfolio margin inverse/coin margin order's status.
Either orderId or origClientOrderId must be sent.- Parameters:
symbol-orderId- optionalorigClientOrderId- optionalrecvWindow- optionaltimestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
cancelAllFutureOpenOrders
@DELETE @Path("fapi/v1/allOpenOrders") BinanceChangeStatus cancelAllFutureOpenOrders(@QueryParam("symbol") String symbol, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Cancels all active orders on a symbol. This includes OCO orders.- Parameters:
symbol-recvWindow- optionaltimestamp-- Returns:
- Throws:
IOExceptionBinanceException
-
getFutureCommissionRate
@GET @Path("/fapi/v1/commissionRate") BinanceFutureCommissionRate getFutureCommissionRate(@QueryParam("symbol") String symbol, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Get User Commission Rate for a Future symbol.- Parameters:
symbol-recvWindow- optionaltimestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
modifyOrder
@PUT @Path("fapi/v1/order") BinanceFutureNewOrder modifyOrder(@QueryParam("orderId") Long orderId, @QueryParam("origClientOrderId") String origClientOrderId, @QueryParam("symbol") String symbol, @QueryParam("side") OrderSide side, @QueryParam("quantity") BigDecimal quantity, @QueryParam("price") BigDecimal price, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue- Parameters:
orderId- optionalorigClientOrderId- optionalsymbol-side-quantity-price-recvWindow- optionaltimestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
getAllFutureOrders
@GET @Path("fapi/v1/allOrders") List<BinanceOrder> getAllFutureOrders(@QueryParam("symbol") String symbol, @QueryParam("orderId") Long orderId, @QueryParam("startTime") Long startTime, @QueryParam("endTime") Long endTime, @QueryParam("limit") Integer limit, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException All Orders (USER_DATA)- Parameters:
symbol-orderId-startTime-endTime-limit-recvWindow-timestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
setMarginType
@POST @Path("/fapi/v1/marginType") BinanceChangeStatus setMarginType(@FormParam("symbol") String symbol, @FormParam("marginType") MarginType marginType, @FormParam("recvWindow") Long recvWindow, @FormParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Change symbol level margin type- Parameters:
symbol-marginType-recvWindow-timestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
setDualSidePosition
@POST @Path("/fapi/v1/positionSide/dual") BinanceChangeStatus setDualSidePosition(@FormParam("dualSidePosition") boolean dualSidePosition, @FormParam("recvWindow") Long recvWindow, @FormParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol- Parameters:
dualSidePosition- "true": Hedge Mode; "false": One-way ModerecvWindow-timestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
setLeverage
@POST @Path("/fapi/v1/leverage") BinanceSetLeverage setLeverage(@FormParam("symbol") String symbol, @FormParam("leverage") int leverage, @FormParam("recvWindow") Long recvWindow, @FormParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException - Parameters:
symbol-leverage-recvWindow- optionaltimestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
getFuturesPositionRisk
@GET @Path("/fapi/v2/positionRisk") List<BinancePosition> getFuturesPositionRisk(@QueryParam("symbol") String symbol, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Position Information V2 (USER_DATA)- Parameters:
symbol-recvWindow-timestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-
getFuturesV3PositionRisk
@GET @Path("/fapi/v3/positionRisk") List<BinancePosition> getFuturesV3PositionRisk(@QueryParam("symbol") String symbol, @QueryParam("recvWindow") Long recvWindow, @QueryParam("timestamp") si.mazi.rescu.SynchronizedValueFactory<Long> timestamp, @HeaderParam("X-MBX-APIKEY") String apiKey, @QueryParam("signature") si.mazi.rescu.ParamsDigest signature) throws IOException, BinanceException Position Information V3 (USER_DATA)- Parameters:
symbol-recvWindow-timestamp-apiKey-signature-- Returns:
- Throws:
IOExceptionBinanceException
-