Package org.knowm.xchange.bitfinex.v2
Interface BitfinexAuthenticated
-
-
Field Summary
Fields Modifier and Type Field Description static StringBFX_APIKEYstatic StringBFX_NONCEstatic StringBFX_SIGNATURE
-
Method Summary
All Methods Instance Methods Abstract Methods 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, EmptyRequest empty)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, EmptyRequest empty)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)-
Methods inherited from interface org.knowm.xchange.bitfinex.v2.Bitfinex
getPublicFundingTrades, getPublicTrades, getStatus, getTickers
-
-
-
-
Field Detail
-
BFX_APIKEY
static final String BFX_APIKEY
- See Also:
- Constant Field Values
-
BFX_SIGNATURE
static final String BFX_SIGNATURE
- See Also:
- Constant Field Values
-
BFX_NONCE
static final String BFX_NONCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
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, EmptyRequest empty) 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, EmptyRequest empty) 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
-
-