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 Modifier and Type Field Description static StringBFX_APIKEYstatic StringBFX_NONCEstatic StringBFX_SIGNATURE -
Method Summary
Modifier and Type Method Description List<Position>activePositions(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, EmptyRequest empty)https://docs.bitfinex.com/v2/reference#rest-auth-positionsList<ActiveOrder>getActiveOrders(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-ordersList<LedgerEntry>getLedgerEntries(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-ledgersList<LedgerEntry>getLedgerEntries(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, String currency, Long startTimeMillis, Long endTimeMillis, Long limit, LedgerRequest req)List<Movement>getMovementsHistory(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, Long startTimeMillis, Long endTimeMillis, Integer limit, EmptyRequest empty)List<Movement>getMovementsHistory(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, String symbol, Long startTimeMillis, Long endTimeMillis, Integer limit, EmptyRequest empty)List<OrderTrade>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 *List<Trade>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-histList<Trade>getTrades(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)List<Wallet>getWallets(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, EmptyRequest empty)https://docs.bitfinex.com/reference#rest-auth-walletsTransferBetweenWalletsResponsetransferBetweenWallets(si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String apiKey, si.mazi.rescu.ParamsDigest signature, TransferBetweenWalletsRequest req)Methods inherited from interface org.knowm.xchange.bitfinex.v2.Bitfinex
fundingBook, fundingBookRaw, getHistoricCandles, getHistoricFundingCandles, getPublicFundingTrades, getPublicTrades, getStats, getStatus, getTickers, tradingBook, tradingBookRaw
-
Field Details
-
BFX_APIKEY
- See Also:
- Constant Field Values
-
BFX_SIGNATURE
- See Also:
- Constant Field Values
-
BFX_NONCE
- See Also:
- Constant Field Values
-
-
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, BitfinexExceptionV2https://docs.bitfinex.com/v2/reference#rest-auth-positions- Throws:
IOExceptionBitfinexExceptionV2
-
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, BitfinexExceptionV2https://docs.bitfinex.com/reference#rest-auth-wallets- Throws:
IOExceptionBitfinexExceptionV2
-
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, BitfinexExceptionV2https://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:
IOExceptionBitfinexExceptionV2
-
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:
IOExceptionBitfinexExceptionV2
-
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, BitfinexExceptionV2https://docs.bitfinex.com/v2/reference#rest-auth-orders- Throws:
IOExceptionBitfinexExceptionV2
-
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, BitfinexExceptionV2https://docs.bitfinex.com/reference#rest-auth-ledgers- Throws:
IOExceptionBitfinexExceptionV2
-
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:
IOExceptionBitfinexExceptionV2
-
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, BitfinexExceptionV2https://docs.bitfinex.com/reference#rest-auth-order-trades *- Throws:
IOExceptionBitfinexExceptionV2
-
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:
IOExceptionBitfinexExceptionV2
-
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:
IOExceptionBitfinexExceptionV2
-
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:
IOExceptionBitfinexExceptionV2
-