|
7 | 7 | import javax.ws.rs.GET;
|
8 | 8 | import javax.ws.rs.HeaderParam;
|
9 | 9 | import javax.ws.rs.Path;
|
10 |
| -import javax.ws.rs.PathParam; |
11 | 10 | import javax.ws.rs.Produces;
|
12 | 11 | import javax.ws.rs.QueryParam;
|
13 | 12 | import javax.ws.rs.core.MediaType;
|
@@ -37,24 +36,24 @@ BitmexAccount getAccount(@HeaderParam("API-KEY") String apiKey, @HeaderParam("AP
|
37 | 36 | @GET
|
38 | 37 | @Path("user/wallet")
|
39 | 38 | 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; |
41 | 40 |
|
42 | 41 | // Get a history of all of your wallet transactions (deposits, withdrawals, PNL)
|
43 | 42 | @GET
|
44 | 43 | @Path("user/walletHistory")
|
45 | 44 | 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; |
47 | 46 |
|
48 | 47 | // Get a summary of all of your wallet transactions (deposits, withdrawals, PNL)
|
49 | 48 | @GET
|
50 | 49 | @Path("user/walletSummary")
|
51 | 50 | 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; |
53 | 52 |
|
54 | 53 | @GET
|
55 | 54 | @Path("user/margin")
|
56 | 55 | 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; |
58 | 57 |
|
59 | 58 | @GET
|
60 | 59 | @Path("user/margin?currency=all")
|
@@ -85,7 +84,7 @@ List<BitmexPosition> getPositions(@HeaderParam("API-KEY") String apiKey, @Header
|
85 | 84 |
|
86 | 85 | @GET
|
87 | 86 | @Path("instrument")
|
88 |
| - List<BitmexTicker> getTicker(@PathParam("symbol") String symbol) throws IOException, BitmexException; |
| 87 | + List<BitmexTicker> getTicker(@QueryParam("symbol") String symbol) throws IOException, BitmexException; |
89 | 88 |
|
90 | 89 | @GET
|
91 | 90 | @Path("instrument/active")
|
|
0 commit comments