Skip to content

Commit 58f7b1e

Browse files
committed
[bitmex] fix API query parameters
1 parent 72b774c commit 58f7b1e

File tree

1 file changed

+5
-6
lines changed
  • xchange-bitmex/src/main/java/org/knowm/xchange/bitmex

1 file changed

+5
-6
lines changed

xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/Bitmex.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import javax.ws.rs.GET;
88
import javax.ws.rs.HeaderParam;
99
import javax.ws.rs.Path;
10-
import javax.ws.rs.PathParam;
1110
import javax.ws.rs.Produces;
1211
import javax.ws.rs.QueryParam;
1312
import javax.ws.rs.core.MediaType;
@@ -37,24 +36,24 @@ BitmexAccount getAccount(@HeaderParam("API-KEY") String apiKey, @HeaderParam("AP
3736
@GET
3837
@Path("user/wallet")
3938
BitmexWallet getWallet(@HeaderParam("API-KEY") String apiKey, @HeaderParam("API-NONCE") SynchronizedValueFactory<Long> nonce, @HeaderParam("API-SIGNATURE") ParamsDigest paramsDigest,
40-
@Nullable @PathParam("currency") String currency) throws IOException;
39+
@Nullable @QueryParam("currency") String currency) throws IOException;
4140

4241
// Get a history of all of your wallet transactions (deposits, withdrawals, PNL)
4342
@GET
4443
@Path("user/walletHistory")
4544
List<BitmexWalletTransaction> getWalletHistory(@HeaderParam("API-KEY") String apiKey, @HeaderParam("API-NONCE") SynchronizedValueFactory<Long> nonce,
46-
@HeaderParam("API-SIGNATURE") ParamsDigest paramsDigest, @Nullable @PathParam("currency") String currency) throws IOException;
45+
@HeaderParam("API-SIGNATURE") ParamsDigest paramsDigest, @Nullable @QueryParam("currency") String currency) throws IOException;
4746

4847
// Get a summary of all of your wallet transactions (deposits, withdrawals, PNL)
4948
@GET
5049
@Path("user/walletSummary")
5150
List<BitmexWalletTransaction> getWalletSummary(@HeaderParam("API-KEY") String apiKey, @HeaderParam("API-NONCE") SynchronizedValueFactory<Long> nonce,
52-
@HeaderParam("API-SIGNATURE") ParamsDigest paramsDigest, @Nullable @PathParam("currency") String currency) throws IOException;
51+
@HeaderParam("API-SIGNATURE") ParamsDigest paramsDigest, @Nullable @QueryParam("currency") String currency) throws IOException;
5352

5453
@GET
5554
@Path("user/margin")
5655
BitmexMarginAccount getMarginAccountStatus(@HeaderParam("API-KEY") String apiKey, @HeaderParam("API-NONCE") SynchronizedValueFactory<Long> nonce,
57-
@HeaderParam("API-SIGNATURE") ParamsDigest paramsDigest, @Nullable @PathParam("currency") String currency) throws IOException;
56+
@HeaderParam("API-SIGNATURE") ParamsDigest paramsDigest, @Nullable @QueryParam("currency") String currency) throws IOException;
5857

5958
@GET
6059
@Path("user/margin?currency=all")
@@ -85,7 +84,7 @@ List<BitmexPosition> getPositions(@HeaderParam("API-KEY") String apiKey, @Header
8584

8685
@GET
8786
@Path("instrument")
88-
List<BitmexTicker> getTicker(@PathParam("symbol") String symbol) throws IOException, BitmexException;
87+
List<BitmexTicker> getTicker(@QueryParam("symbol") String symbol) throws IOException, BitmexException;
8988

9089
@GET
9190
@Path("instrument/active")

0 commit comments

Comments
 (0)