Package org.knowm.xchange.bitfinex.v2
Interface BitfinexAuthenticated
- All Superinterfaces:
Bitfinex
@Path("v2")
@Produces("application/json")
@Consumes("application/json")
public interface BitfinexAuthenticated
extends Bitfinex
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionactivePositions
(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, EmptyRequest empty) https://docs.bitfinex.com/v2/reference#rest-auth-positionsgetActiveOrders
(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, String symbol, EmptyRequest empty) https://docs.bitfinex.com/v2/reference#rest-auth-ordersgetLedgerEntries
(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, Long startTimeMillis, Long endTimeMillis, Long limit, LedgerRequest req) https://docs.bitfinex.com/reference#rest-auth-ledgersgetLedgerEntries
(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, String currency, Long startTimeMillis, Long endTimeMillis, Long limit, LedgerRequest req) getMovementsHistory
(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, Long startTimeMillis, Long endTimeMillis, Integer limit, EmptyRequest empty) getMovementsHistory
(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, String symbol, Long startTimeMillis, Long endTimeMillis, Integer limit, EmptyRequest empty) getOrderTrades
(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, String symbol, Long orderId, EmptyRequest empty) https://docs.bitfinex.com/reference#rest-auth-order-trades *getTrades
(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, Long startTimeMillis, Long endTimeMillis, Long limit, Long sort, EmptyRequest empty) https://docs.bitfinex.com/v2/reference#rest-auth-trades-histgetTrades
(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, String symbol, Long startTimeMillis, Long endTimeMillis, Long limit, Long sort, EmptyRequest empty) getWallets
(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, EmptyRequest empty) https://docs.bitfinex.com/reference#rest-auth-walletstransferBetweenWallets
(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, TransferBetweenWalletsRequest req) updateCollateralDerivativePosition
(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, UpdateCollateralDerivativePositionRequest req) Methods inherited from interface org.knowm.xchange.bitfinex.v2.Bitfinex
fundingBook, fundingBookRaw, getHistoricCandles, getHistoricFundingCandles, getPlatformStatus, getPublicFundingTrades, getPublicTrades, getStats, getStatus, getTickers, tradingBook, tradingBookRaw
-
Field Details
-
BFX_APIKEY
- See Also:
-
BFX_SIGNATURE
- See Also:
-
BFX_NONCE
- See Also:
-
-
Method Details
-
activePositions
@POST @Path("auth/r/positions") List<Position> activePositions(@HeaderParam("bfx-nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @HeaderParam("bfx-apikey") String apiKey, @HeaderParam("bfx-signature") si.mazi.rescu.ParamsDigest signature, EmptyRequest empty) throws IOException, BitfinexExceptionV2 https://docs.bitfinex.com/v2/reference#rest-auth-positions- Throws:
IOException
BitfinexExceptionV2
-
getWallets
@POST @Path("auth/r/wallets") List<Wallet> getWallets(@HeaderParam("bfx-nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @HeaderParam("bfx-apikey") String apiKey, @HeaderParam("bfx-signature") si.mazi.rescu.ParamsDigest signature, EmptyRequest empty) throws IOException, BitfinexExceptionV2 https://docs.bitfinex.com/reference#rest-auth-wallets- Throws:
IOException
BitfinexExceptionV2
-
getTrades
@POST @Path("auth/r/trades/hist") List<Trade> getTrades(@HeaderParam("bfx-nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @HeaderParam("bfx-apikey") String apiKey, @HeaderParam("bfx-signature") si.mazi.rescu.ParamsDigest signature, @QueryParam("start") Long startTimeMillis, @QueryParam("end") Long endTimeMillis, @QueryParam("limit") Long limit, @QueryParam("sort") Long sort, EmptyRequest empty) throws IOException, BitfinexExceptionV2 https://docs.bitfinex.com/v2/reference#rest-auth-trades-histTwo implementations: 1. returns trades of all symboles 2. returns trades of a specific symbol
This is necessary because @Path doesn't seems to support optional parameters
- Throws:
IOException
BitfinexExceptionV2
-
getTrades
@POST @Path("auth/r/trades/{symbol}/hist") List<Trade> getTrades(@HeaderParam("bfx-nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @HeaderParam("bfx-apikey") String apiKey, @HeaderParam("bfx-signature") si.mazi.rescu.ParamsDigest signature, @PathParam("symbol") String symbol, @QueryParam("start") Long startTimeMillis, @QueryParam("end") Long endTimeMillis, @QueryParam("limit") Long limit, @QueryParam("sort") Long sort, EmptyRequest empty) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-
getActiveOrders
@POST @Path("auth/r/orders/{symbol}") List<ActiveOrder> getActiveOrders(@HeaderParam("bfx-nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @HeaderParam("bfx-apikey") String apiKey, @HeaderParam("bfx-signature") si.mazi.rescu.ParamsDigest signature, @PathParam("symbol") String symbol, EmptyRequest empty) throws IOException, BitfinexExceptionV2 https://docs.bitfinex.com/v2/reference#rest-auth-orders- Throws:
IOException
BitfinexExceptionV2
-
getLedgerEntries
@POST @Path("auth/r/ledgers/hist") List<LedgerEntry> getLedgerEntries(@HeaderParam("bfx-nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @HeaderParam("bfx-apikey") String apiKey, @HeaderParam("bfx-signature") si.mazi.rescu.ParamsDigest signature, @QueryParam("start") Long startTimeMillis, @QueryParam("end") Long endTimeMillis, @QueryParam("limit") Long limit, LedgerRequest req) throws IOException, BitfinexExceptionV2 https://docs.bitfinex.com/reference#rest-auth-ledgers- Throws:
IOException
BitfinexExceptionV2
-
getLedgerEntries
@POST @Path("auth/r/ledgers/{currency}/hist") List<LedgerEntry> getLedgerEntries(@HeaderParam("bfx-nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @HeaderParam("bfx-apikey") String apiKey, @HeaderParam("bfx-signature") si.mazi.rescu.ParamsDigest signature, @PathParam("currency") String currency, @QueryParam("start") Long startTimeMillis, @QueryParam("end") Long endTimeMillis, @QueryParam("limit") Long limit, LedgerRequest req) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-
getOrderTrades
@POST @Path("auth/r/order/{symbol}:{orderId}/trades") List<OrderTrade> getOrderTrades(@HeaderParam("bfx-nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @HeaderParam("bfx-apikey") String apiKey, @HeaderParam("bfx-signature") si.mazi.rescu.ParamsDigest signature, @PathParam("symbol") String symbol, @PathParam("orderId") Long orderId, EmptyRequest empty) throws IOException, BitfinexExceptionV2 https://docs.bitfinex.com/reference#rest-auth-order-trades *- Throws:
IOException
BitfinexExceptionV2
-
getMovementsHistory
@POST @Path("/auth/r/movements/{symbol}/hist") List<Movement> getMovementsHistory(@HeaderParam("bfx-nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @HeaderParam("bfx-apikey") String apiKey, @HeaderParam("bfx-signature") si.mazi.rescu.ParamsDigest signature, @PathParam("symbol") String symbol, @QueryParam("start") Long startTimeMillis, @QueryParam("end") Long endTimeMillis, @QueryParam("limit") Integer limit, EmptyRequest empty) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-
getMovementsHistory
@POST @Path("/auth/r/movements/hist") List<Movement> getMovementsHistory(@HeaderParam("bfx-nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @HeaderParam("bfx-apikey") String apiKey, @HeaderParam("bfx-signature") si.mazi.rescu.ParamsDigest signature, @QueryParam("start") Long startTimeMillis, @QueryParam("end") Long endTimeMillis, @QueryParam("limit") Integer limit, EmptyRequest empty) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-
transferBetweenWallets
@POST @Path("/auth/w/transfer") TransferBetweenWalletsResponse transferBetweenWallets(@HeaderParam("bfx-nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @HeaderParam("bfx-apikey") String apiKey, @HeaderParam("bfx-signature") si.mazi.rescu.ParamsDigest signature, TransferBetweenWalletsRequest req) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-
updateCollateralDerivativePosition
@POST @Path("/auth/w/deriv/collateral/set") List<List<Integer>> updateCollateralDerivativePosition(@HeaderParam("bfx-nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @HeaderParam("bfx-apikey") String apiKey, @HeaderParam("bfx-signature") si.mazi.rescu.ParamsDigest signature, UpdateCollateralDerivativePositionRequest req) throws IOException, BitfinexExceptionV2 - Throws:
IOException
BitfinexExceptionV2
-