diff --git a/pom.xml b/pom.xml index 2845f784729..a0b2e0b47bb 100644 --- a/pom.xml +++ b/pom.xml @@ -34,7 +34,7 @@ 3.24.2 3.12.0 2.14.1 - 3.0 + 2.1.0 1.7.0 5.9.3 1.18.26 @@ -583,4 +583,5 @@ - \ No newline at end of file + + diff --git a/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendex.java b/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendex.java index d7d8c676fa4..3eab130d1e0 100644 --- a/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendex.java +++ b/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendex.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.ascendex.dto.AscendexResponse; import org.knowm.xchange.ascendex.dto.marketdata.AscendexAssetDto; import org.knowm.xchange.ascendex.dto.marketdata.AscendexBarHistDto; @@ -45,4 +45,4 @@ AscendexResponse> getHistoricalBarData( @QueryParam("from") Long from, @QueryParam("n") Integer noOfBars) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendexAuthenticated.java b/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendexAuthenticated.java index 9e79904e902..50c82851c19 100644 --- a/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendexAuthenticated.java +++ b/xchange-ascendex/src/main/java/org/knowm/xchange/ascendex/IAscendexAuthenticated.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.ascendex.dto.AscendexResponse; import org.knowm.xchange.ascendex.dto.account.AscendexCashAccountBalanceDto; import org.knowm.xchange.ascendex.dto.trade.AscendexOpenOrdersResponse; @@ -95,4 +95,4 @@ AscendexResponse> getOrdersHistory( @QueryParam("symbol") String symbol, @QueryParam("executedOnly") boolean executedOnly) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-bankera/src/main/java/org/knowm/xchange/bankera/Bankera.java b/xchange-bankera/src/main/java/org/knowm/xchange/bankera/Bankera.java index ffe30b1faba..4346d7d7c1c 100644 --- a/xchange-bankera/src/main/java/org/knowm/xchange/bankera/Bankera.java +++ b/xchange-bankera/src/main/java/org/knowm/xchange/bankera/Bankera.java @@ -1,13 +1,13 @@ package org.knowm.xchange.bankera; import java.io.IOException; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bankera.dto.BankeraException; import org.knowm.xchange.bankera.dto.BankeraToken; import org.knowm.xchange.bankera.dto.marketdata.BankeraMarketInfo; @@ -45,4 +45,4 @@ BankeraTradesResponse getRecentTrades(@PathParam("market") String market) @GET @Path("/general/info") BankeraMarketInfo getMarketInfo() throws BankeraException, IOException; -} \ No newline at end of file +} diff --git a/xchange-bankera/src/main/java/org/knowm/xchange/bankera/BankeraAuthenticated.java b/xchange-bankera/src/main/java/org/knowm/xchange/bankera/BankeraAuthenticated.java index a04f6f1fea8..aafa494b16b 100644 --- a/xchange-bankera/src/main/java/org/knowm/xchange/bankera/BankeraAuthenticated.java +++ b/xchange-bankera/src/main/java/org/knowm/xchange/bankera/BankeraAuthenticated.java @@ -2,15 +2,15 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bankera.dto.BankeraException; import org.knowm.xchange.bankera.dto.BaseBankeraRequest; import org.knowm.xchange.bankera.dto.CreateOrderRequest; @@ -68,4 +68,4 @@ BankeraUserTrades getUserTrades( BankeraOrder getUserOrder( @HeaderParam("Authorization") String authorization, @QueryParam("orderId") String orderId) throws BankeraException, IOException; -} \ No newline at end of file +} diff --git a/xchange-bibox/src/main/java/org/knowm/xchange/bibox/Bibox.java b/xchange-bibox/src/main/java/org/knowm/xchange/bibox/Bibox.java index e2bc7481600..59a06fa8533 100644 --- a/xchange-bibox/src/main/java/org/knowm/xchange/bibox/Bibox.java +++ b/xchange-bibox/src/main/java/org/knowm/xchange/bibox/Bibox.java @@ -2,13 +2,13 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bibox.dto.BiboxMultipleResponses; import org.knowm.xchange.bibox.dto.BiboxResponse; import org.knowm.xchange.bibox.dto.marketdata.BiboxMarket; @@ -88,4 +88,4 @@ BiboxResponse> marketAll(@QueryParam("cmd") String cmd) @POST @Path("mdata") BiboxMultipleResponses orderBooks(@FormParam(FORM_CMDS) String cmds); -} \ No newline at end of file +} diff --git a/xchange-bibox/src/main/java/org/knowm/xchange/bibox/BiboxAuthenticated.java b/xchange-bibox/src/main/java/org/knowm/xchange/bibox/BiboxAuthenticated.java index 324ee3d149b..ce59511e86e 100644 --- a/xchange-bibox/src/main/java/org/knowm/xchange/bibox/BiboxAuthenticated.java +++ b/xchange-bibox/src/main/java/org/knowm/xchange/bibox/BiboxAuthenticated.java @@ -1,11 +1,11 @@ package org.knowm.xchange.bibox; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bibox.dto.BiboxMultipleResponses; import org.knowm.xchange.bibox.dto.BiboxPagedResponses; import org.knowm.xchange.bibox.dto.BiboxSingleResponse; @@ -128,4 +128,4 @@ BiboxMultipleResponses cancelTrades( @FormParam(FORM_CMDS) String cmds, @FormParam(FORM_APIKEY) String apiKey, @FormParam(FORM_SIGNATURE) ParamsDigest signature); -} \ No newline at end of file +} diff --git a/xchange-bibox/src/main/java/org/knowm/xchange/bibox/service/BiboxDigest.java b/xchange-bibox/src/main/java/org/knowm/xchange/bibox/service/BiboxDigest.java index 0fda990d3c6..4348d7bf35a 100644 --- a/xchange-bibox/src/main/java/org/knowm/xchange/bibox/service/BiboxDigest.java +++ b/xchange-bibox/src/main/java/org/knowm/xchange/bibox/service/BiboxDigest.java @@ -1,7 +1,7 @@ package org.knowm.xchange.bibox.service; import java.io.UnsupportedEncodingException; -import jakarta.ws.rs.FormParam; +import javax.ws.rs.FormParam; import org.knowm.xchange.bibox.BiboxAuthenticated; import org.knowm.xchange.service.BaseParamsDigest; import org.knowm.xchange.utils.DigestUtils; @@ -37,4 +37,4 @@ public String digestParams(RestInvocation restInvocation) { throw new RuntimeException(e1.getMessage()); } } -} \ No newline at end of file +} diff --git a/xchange-binance/src/main/java/org/knowm/xchange/binance/Binance.java b/xchange-binance/src/main/java/org/knowm/xchange/binance/Binance.java index 4bfb59fbba7..f3524852b1d 100644 --- a/xchange-binance/src/main/java/org/knowm/xchange/binance/Binance.java +++ b/xchange-binance/src/main/java/org/knowm/xchange/binance/Binance.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.binance.dto.BinanceException; import org.knowm.xchange.binance.dto.marketdata.BinanceAggTrades; import org.knowm.xchange.binance.dto.marketdata.BinanceOrderbook; @@ -181,4 +181,4 @@ BinancePrice tickerPrice(@QueryParam("symbol") String symbol) @GET @Path("api/v3/ticker/bookTicker") List tickerAllBookTickers() throws IOException, BinanceException; -} \ No newline at end of file +} diff --git a/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceAuthenticated.java b/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceAuthenticated.java index ddf4dac26c8..59765319124 100644 --- a/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceAuthenticated.java +++ b/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceAuthenticated.java @@ -4,17 +4,17 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.PUT; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.DELETE; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.PUT; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.binance.dto.BinanceException; import org.knowm.xchange.binance.dto.account.*; import org.knowm.xchange.binance.dto.trade.BinanceCancelledOrder; @@ -549,4 +549,4 @@ BinanceListenKey startUserDataStream(@HeaderParam(X_MBX_APIKEY) String apiKey) Map closeUserDataStream( @HeaderParam(X_MBX_APIKEY) String apiKey, @PathParam("listenKey") String listenKey) throws IOException, BinanceException; -} \ No newline at end of file +} diff --git a/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFutures.java b/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFutures.java index 74774e71757..5c32fa8933f 100644 --- a/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFutures.java +++ b/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFutures.java @@ -8,11 +8,11 @@ import org.knowm.xchange.binance.dto.meta.BinanceSystemStatus; import org.knowm.xchange.binance.dto.meta.exchangeinfo.BinanceExchangeInfo; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import java.io.IOException; import java.util.List; @@ -115,4 +115,4 @@ List fundingRates() BinanceFundingRate fundingRate( @QueryParam("symbol") String symbol) throws IOException, BinanceException; -} \ No newline at end of file +} diff --git a/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFuturesAuthenticated.java b/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFuturesAuthenticated.java index 30e2ccbccfa..c8179b2ae2e 100644 --- a/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFuturesAuthenticated.java +++ b/xchange-binance/src/main/java/org/knowm/xchange/binance/BinanceFuturesAuthenticated.java @@ -7,8 +7,8 @@ import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.SynchronizedValueFactory; -import jakarta.ws.rs.*; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.*; +import javax.ws.rs.core.MediaType; import java.io.IOException; import java.math.BigDecimal; import java.util.List; @@ -208,4 +208,4 @@ List cancelAllFutureOpenOrders( @QueryParam(SIGNATURE) ParamsDigest signature) throws IOException, BinanceException; -} \ No newline at end of file +} diff --git a/xchange-binance/src/main/java/org/knowm/xchange/binance/service/BinanceHmacDigest.java b/xchange-binance/src/main/java/org/knowm/xchange/binance/service/BinanceHmacDigest.java index f9119898f5e..2bcd816c980 100644 --- a/xchange-binance/src/main/java/org/knowm/xchange/binance/service/BinanceHmacDigest.java +++ b/xchange-binance/src/main/java/org/knowm/xchange/binance/service/BinanceHmacDigest.java @@ -4,7 +4,7 @@ import java.nio.charset.StandardCharsets; import javax.crypto.Mac; -import jakarta.ws.rs.QueryParam; +import javax.ws.rs.QueryParam; import org.knowm.xchange.binance.BinanceAuthenticated; import org.knowm.xchange.service.BaseParamsDigest; import org.slf4j.Logger; @@ -59,4 +59,4 @@ public String digestParams(RestInvocation restInvocation) { String printBase64Binary = bytesToHex(mac.doFinal()); return printBase64Binary; } -} \ No newline at end of file +} diff --git a/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/Bitbay.java b/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/Bitbay.java index 5ee7b773a7d..d621a936287 100644 --- a/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/Bitbay.java +++ b/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/Bitbay.java @@ -1,12 +1,12 @@ package org.knowm.xchange.bitbay; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitbay.dto.marketdata.BitbayOrderBook; import org.knowm.xchange.bitbay.dto.marketdata.BitbayTicker; import org.knowm.xchange.bitbay.dto.marketdata.BitbayTrade; @@ -37,4 +37,4 @@ BitbayTrade[] getBitbayTrades( @QueryParam("sort") String sort, @QueryParam("limit") int limit) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/BitbayAuthenticated.java b/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/BitbayAuthenticated.java index af5e1db7d7c..ea6a9a9c207 100644 --- a/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/BitbayAuthenticated.java +++ b/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/BitbayAuthenticated.java @@ -4,13 +4,13 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitbay.dto.BitbayBaseResponse; import org.knowm.xchange.bitbay.dto.acount.BitbayAccountInfoResponse; import org.knowm.xchange.bitbay.dto.trade.BitbayCancelResponse; @@ -117,4 +117,4 @@ List transactions( @HeaderParam("API-Hash") ParamsDigest sign, @FormParam("moment") SynchronizedValueFactory timestamp, @FormParam("market") String market); -} \ No newline at end of file +} diff --git a/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/v3/BitbayAuthenticated.java b/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/v3/BitbayAuthenticated.java index 6a5faa658d0..0b9a9adb59f 100644 --- a/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/v3/BitbayAuthenticated.java +++ b/xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/v3/BitbayAuthenticated.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.UUID; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitbay.v3.dto.BitbayBalanceHistoryResponse; import org.knowm.xchange.bitbay.v3.dto.BitbayBalances; import org.knowm.xchange.bitbay.v3.dto.trade.BitbayUserTrades; @@ -48,4 +48,4 @@ BitbayBalanceHistoryResponse balanceHistory( @HeaderParam("Operation-Id") UUID operationId, @QueryParam("query") String query) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-bitcoinaverage/src/main/java/org/knowm/xchange/bitcoinaverage/BitcoinAverage.java b/xchange-bitcoinaverage/src/main/java/org/knowm/xchange/bitcoinaverage/BitcoinAverage.java index 035acdf4d34..b2ddc809a75 100644 --- a/xchange-bitcoinaverage/src/main/java/org/knowm/xchange/bitcoinaverage/BitcoinAverage.java +++ b/xchange-bitcoinaverage/src/main/java/org/knowm/xchange/bitcoinaverage/BitcoinAverage.java @@ -1,11 +1,11 @@ package org.knowm.xchange.bitcoinaverage; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitcoinaverage.dto.marketdata.BitcoinAverageTicker; import org.knowm.xchange.bitcoinaverage.dto.marketdata.BitcoinAverageTickers; @@ -21,4 +21,4 @@ public interface BitcoinAverage { @GET @Path("indices/global/ticker/short?crypto={crypto}") BitcoinAverageTickers getShortTickers(@PathParam("crypto") String crypto) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-bitcoincharts/src/main/java/org/knowm/xchange/bitcoincharts/BitcoinCharts.java b/xchange-bitcoincharts/src/main/java/org/knowm/xchange/bitcoincharts/BitcoinCharts.java index a93bf667f6b..8a160842a8c 100644 --- a/xchange-bitcoincharts/src/main/java/org/knowm/xchange/bitcoincharts/BitcoinCharts.java +++ b/xchange-bitcoincharts/src/main/java/org/knowm/xchange/bitcoincharts/BitcoinCharts.java @@ -1,10 +1,10 @@ package org.knowm.xchange.bitcoincharts; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitcoincharts.dto.marketdata.BitcoinChartsTicker; /** @author Matija Mazi */ @@ -15,4 +15,4 @@ public interface BitcoinCharts { @Path("v1/markets.json") @Produces(MediaType.APPLICATION_JSON) BitcoinChartsTicker[] getMarketData() throws IOException; -} \ No newline at end of file +} diff --git a/xchange-bitcoincore/src/main/java/org/knowm/xchange/bitcoincore/BitcoinCore.java b/xchange-bitcoincore/src/main/java/org/knowm/xchange/bitcoincore/BitcoinCore.java index de632f7333a..f9c321027b3 100644 --- a/xchange-bitcoincore/src/main/java/org/knowm/xchange/bitcoincore/BitcoinCore.java +++ b/xchange-bitcoincore/src/main/java/org/knowm/xchange/bitcoincore/BitcoinCore.java @@ -1,11 +1,11 @@ package org.knowm.xchange.bitcoincore; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitcoincore.dto.BitcoinCoreException; import org.knowm.xchange.bitcoincore.dto.account.BitcoinCoreBalanceRequest; import org.knowm.xchange.bitcoincore.dto.account.BitcoinCoreBalanceResponse; @@ -25,4 +25,4 @@ BitcoinCoreBalanceResponse getBalance(BitcoinCoreBalanceRequest request) @Path("") BitcoinCoreBalanceResponse getUnconfirmedBalance(BitcoinCoreUnconfirmedBalanceRequest request) throws IOException, BitcoinCoreException; -} \ No newline at end of file +} diff --git a/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/Bitcoinde.java b/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/Bitcoinde.java index daf08e6e62e..65647812157 100644 --- a/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/Bitcoinde.java +++ b/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/Bitcoinde.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.math.BigDecimal; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.DELETE; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitcoinde.dto.BitcoindeException; import org.knowm.xchange.bitcoinde.dto.account.BitcoindeAccountWrapper; import org.knowm.xchange.bitcoinde.dto.marketdata.BitcoindeOrderbookWrapper; @@ -84,4 +84,4 @@ BitcoindeMyOpenOrdersWrapper getOrders( @HeaderParam("X-API-NONCE") SynchronizedValueFactory nonce, @HeaderParam("X-API-SIGNATURE") ParamsDigest paramsDigest) throws BitcoindeException, IOException; -} \ No newline at end of file +} diff --git a/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/v4/Bitcoinde.java b/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/v4/Bitcoinde.java index df3eb25efbf..05fe44faa33 100644 --- a/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/v4/Bitcoinde.java +++ b/xchange-bitcoinde/src/main/java/org/knowm/xchange/bitcoinde/v4/Bitcoinde.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.math.BigDecimal; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.DELETE; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitcoinde.v4.dto.BitcoindeException; import org.knowm.xchange.bitcoinde.v4.dto.BitcoindeResponse; import org.knowm.xchange.bitcoinde.v4.dto.account.BitcoindeAccountLedgerWrapper; @@ -163,4 +163,4 @@ BitcoindeMyTradesWrapper getMyTrades( @QueryParam("date_end") String dateEnd, @QueryParam("page") Integer page) throws IOException, BitcoindeException; -} \ No newline at end of file +} diff --git a/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/Bitcointoyou.java b/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/Bitcointoyou.java index d8158cc5573..1ffcfb5444a 100644 --- a/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/Bitcointoyou.java +++ b/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/Bitcointoyou.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.Map; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitcointoyou.dto.marketdata.BitcointoyouMarketData; import org.knowm.xchange.bitcointoyou.dto.marketdata.BitcointoyouOrderBook; import org.knowm.xchange.bitcointoyou.dto.marketdata.BitcointoyouPublicTrade; @@ -62,4 +62,4 @@ BitcointoyouPublicTrade[] getTrades( @QueryParam("timestamp") Long tradeTimestamp, @QueryParam("tid") Long minTradeId) throws BitcointoyouException, IOException; -} \ No newline at end of file +} diff --git a/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/BitcointoyouAuthenticated.java b/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/BitcointoyouAuthenticated.java index f482aa6ba28..5ee65bd1e30 100644 --- a/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/BitcointoyouAuthenticated.java +++ b/xchange-bitcointoyou/src/main/java/org/knowm/xchange/bitcointoyou/BitcointoyouAuthenticated.java @@ -3,14 +3,14 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.HashMap; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitcointoyou.dto.account.BitcointoyouBalance; import org.knowm.xchange.bitcointoyou.dto.trade.BitcointoyouOrderResponse; import si.mazi.rescu.ParamsDigest; @@ -87,4 +87,4 @@ HashMap deleteOrder( @HeaderParam("signature") ParamsDigest signature, @QueryParam("id") String orderNumber) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/Bitfinex.java b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/Bitfinex.java index 98c362773bb..814ac2d7344 100644 --- a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/Bitfinex.java +++ b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/Bitfinex.java @@ -3,12 +3,12 @@ import java.io.IOException; import java.util.List; import java.util.Set; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitfinex.v1.dto.BitfinexExceptionV1; import org.knowm.xchange.bitfinex.v1.dto.marketdata.BitfinexDepth; import org.knowm.xchange.bitfinex.v1.dto.marketdata.BitfinexLend; @@ -67,4 +67,4 @@ BitfinexLend[] getLends( @GET @Path("symbols_details") List getSymbolsDetails() throws IOException, BitfinexExceptionV1; -} \ No newline at end of file +} diff --git a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/BitfinexAuthenticated.java b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/BitfinexAuthenticated.java index dab6fc3696f..feb322f413f 100644 --- a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/BitfinexAuthenticated.java +++ b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v1/BitfinexAuthenticated.java @@ -1,12 +1,12 @@ package org.knowm.xchange.bitfinex.v1; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitfinex.v1.dto.BitfinexExceptionV1; import org.knowm.xchange.bitfinex.v1.dto.account.BitfinexAccountFeesResponse; import org.knowm.xchange.bitfinex.v1.dto.account.BitfinexBalanceHistoryRequest; @@ -291,4 +291,4 @@ BitfinexBalanceHistoryResponse[] balanceHistory( @HeaderParam("X-BFX-SIGNATURE") ParamsDigest signature, BitfinexBalanceHistoryRequest balanceHistoryRequest) throws IOException, BitfinexExceptionV1; -} \ No newline at end of file +} diff --git a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/Bitfinex.java b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/Bitfinex.java index e7d2e31b614..724b1c0d35b 100644 --- a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/Bitfinex.java +++ b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/Bitfinex.java @@ -3,12 +3,12 @@ import com.fasterxml.jackson.databind.node.ArrayNode; import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitfinex.v2.dto.BitfinexExceptionV2; import org.knowm.xchange.bitfinex.v2.dto.marketdata.BitfinexCandle; import org.knowm.xchange.bitfinex.v2.dto.marketdata.BitfinexFundingOrder; @@ -119,4 +119,4 @@ List fundingBook( List fundingBookRaw( @PathParam("symbol") String symbol, @QueryParam("len") Integer len) throws IOException, BitfinexExceptionV2; -} \ No newline at end of file +} diff --git a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexAuthenticated.java b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexAuthenticated.java index b73fed3a62b..d65361d2713 100644 --- a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexAuthenticated.java +++ b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexAuthenticated.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitfinex.v2.dto.BitfinexExceptionV2; import org.knowm.xchange.bitfinex.v2.dto.EmptyRequest; import org.knowm.xchange.bitfinex.v2.dto.account.LedgerEntry; @@ -181,4 +181,4 @@ List> updateCollateralDerivativePosition( @HeaderParam(BFX_SIGNATURE) ParamsDigest signature, UpdateCollateralDerivativePositionRequest req) throws IOException, BitfinexExceptionV2; -} \ No newline at end of file +} diff --git a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexHmacSignature.java b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexHmacSignature.java index 0b91aca4ed3..0bca8834897 100644 --- a/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexHmacSignature.java +++ b/xchange-bitfinex/src/main/java/org/knowm/xchange/bitfinex/v2/BitfinexHmacSignature.java @@ -2,7 +2,7 @@ import java.io.UnsupportedEncodingException; import java.net.URLDecoder; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import lombok.extern.slf4j.Slf4j; import org.knowm.xchange.exceptions.ExchangeException; import org.knowm.xchange.service.BaseParamsDigest; @@ -57,4 +57,4 @@ public String digestParams(RestInvocation i) { throw new ExchangeException("Could not sign the request", e); } } -} \ No newline at end of file +} diff --git a/xchange-bitflyer/src/main/java/org/knowm/xchange/bitflyer/Bitflyer.java b/xchange-bitflyer/src/main/java/org/knowm/xchange/bitflyer/Bitflyer.java index 0527a223de6..0c50e7d0a13 100755 --- a/xchange-bitflyer/src/main/java/org/knowm/xchange/bitflyer/Bitflyer.java +++ b/xchange-bitflyer/src/main/java/org/knowm/xchange/bitflyer/Bitflyer.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitflyer.dto.BitflyerException; import org.knowm.xchange.bitflyer.dto.account.BitflyerAddress; import org.knowm.xchange.bitflyer.dto.account.BitflyerBalance; @@ -225,4 +225,4 @@ BitflyerChildOrderAcceptance sendChildOrder( @HeaderParam(ACCESS_SIGN) ParamsDigest paramsDigest, BitflyerChildOrder parentOrder) throws IOException, BitflyerException; -} \ No newline at end of file +} diff --git a/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/Bithumb.java b/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/Bithumb.java index b12b21433b7..d1f6dd4343c 100644 --- a/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/Bithumb.java +++ b/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/Bithumb.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bithumb.dto.BithumbResponse; import org.knowm.xchange.bithumb.dto.marketdata.BithumbOrderbook; import org.knowm.xchange.bithumb.dto.marketdata.BithumbOrderbookAll; @@ -40,4 +40,4 @@ BithumbResponse orderbook(@PathParam("currency") String curren @Path("transaction_history/{currency}") BithumbResponse> transactionHistory( @PathParam("currency") String currency) throws IOException, BithumbException; -} \ No newline at end of file +} diff --git a/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/BithumbAuthenticated.java b/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/BithumbAuthenticated.java index baa1484dd67..53ae95fd69f 100644 --- a/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/BithumbAuthenticated.java +++ b/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/BithumbAuthenticated.java @@ -3,13 +3,13 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bithumb.dto.BithumbResponse; import org.knowm.xchange.bithumb.dto.account.BithumbAccount; import org.knowm.xchange.bithumb.dto.account.BithumbBalance; @@ -186,4 +186,4 @@ BithumbTradeResponse marketSell( @FormParam("order_currency") String order_currency, @FormParam("payment_currency") String payment_currency) throws BithumbException, IOException; -} \ No newline at end of file +} diff --git a/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/service/BithumbDigest.java b/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/service/BithumbDigest.java index 84a03fcf25c..df091466165 100644 --- a/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/service/BithumbDigest.java +++ b/xchange-bithumb/src/main/java/org/knowm/xchange/bithumb/service/BithumbDigest.java @@ -9,7 +9,7 @@ import java.util.Map; import java.util.stream.Collectors; import javax.crypto.Mac; -import jakarta.ws.rs.FormParam; +import javax.ws.rs.FormParam; import org.apache.commons.lang3.StringUtils; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.Params; @@ -68,4 +68,4 @@ private String urlEncode(String path) { throw new IllegalStateException(e.getMessage(), e); } } -} \ No newline at end of file +} diff --git a/xchange-bithumb/src/test/java/org/knowm/xchange/bithumb/service/BithumbDigestTest.java b/xchange-bithumb/src/test/java/org/knowm/xchange/bithumb/service/BithumbDigestTest.java index 8a6a84457c2..9907199cf82 100644 --- a/xchange-bithumb/src/test/java/org/knowm/xchange/bithumb/service/BithumbDigestTest.java +++ b/xchange-bithumb/src/test/java/org/knowm/xchange/bithumb/service/BithumbDigestTest.java @@ -8,7 +8,7 @@ import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; -import jakarta.ws.rs.FormParam; +import javax.ws.rs.FormParam; import org.junit.Before; import org.junit.Test; import si.mazi.rescu.Params; @@ -46,4 +46,4 @@ public void testDigestParams() { .isEqualTo( "MTkzMGVmY2QzZGUzZWQ1ZmRkZmVhMGFhMmU2MjNkMThlYmQ2NTkyOTU1ZTcxMTc2N2NjZTY0ODdhOTJmOWRhMTNjZTYxMWVlYTJlOTEzOTBlYzlmMDU1MDVkMTk5OGY3YjUyMDY1NzVhZThlYWUxMmJmNjIxNjlkNTY2YmM0Nzc="); } -} \ No newline at end of file +} diff --git a/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/Bitmex.java b/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/Bitmex.java index 3efed16227e..308f3e16faf 100755 --- a/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/Bitmex.java +++ b/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/Bitmex.java @@ -3,11 +3,11 @@ import java.io.IOException; import java.util.Date; import javax.annotation.Nullable; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitmex.dto.account.BitmexTickerList; import org.knowm.xchange.bitmex.dto.marketdata.BitmexFundingList; import org.knowm.xchange.bitmex.dto.marketdata.BitmexKlineList; @@ -77,4 +77,4 @@ BitmexFundingList getFundingHistory( @Nullable @QueryParam("startTime") Date startTime, @Nullable @QueryParam("endTime") Date endTime) throws IOException, BitmexException; -} \ No newline at end of file +} diff --git a/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/BitmexAuthenticated.java b/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/BitmexAuthenticated.java index 00921ee76e1..98dc1f79ebe 100644 --- a/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/BitmexAuthenticated.java +++ b/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/BitmexAuthenticated.java @@ -4,17 +4,17 @@ import java.math.BigDecimal; import java.util.Date; import javax.annotation.Nullable; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.PUT; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.PUT; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitmex.dto.account.BitmexAccount; import org.knowm.xchange.bitmex.dto.account.BitmexMarginAccount; import org.knowm.xchange.bitmex.dto.account.BitmexMarginAccountList; @@ -443,4 +443,4 @@ BitmexWalletTransaction withdrawFunds( @FormParam("amount") BigDecimal amount, @FormParam("address") String address) throws IOException, BitmexException; -} \ No newline at end of file +} diff --git a/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/service/BitmexDigest.java b/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/service/BitmexDigest.java index 52881c81c16..b525393ac21 100755 --- a/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/service/BitmexDigest.java +++ b/xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/service/BitmexDigest.java @@ -1,7 +1,7 @@ package org.knowm.xchange.bitmex.service; import java.util.Base64; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import org.knowm.xchange.utils.DigestUtils; import si.mazi.rescu.RestInvocation; @@ -52,4 +52,4 @@ public String digestParams(RestInvocation restInvocation) { public String digestString(String payload) { return DigestUtils.bytesToHex(getMac().doFinal(payload.getBytes())).toLowerCase(); } -} \ No newline at end of file +} diff --git a/xchange-bitso/src/main/java/org/knowm/xchange/bitso/Bitso.java b/xchange-bitso/src/main/java/org/knowm/xchange/bitso/Bitso.java index b1ab22d6870..b1c415bc869 100644 --- a/xchange-bitso/src/main/java/org/knowm/xchange/bitso/Bitso.java +++ b/xchange-bitso/src/main/java/org/knowm/xchange/bitso/Bitso.java @@ -1,12 +1,12 @@ package org.knowm.xchange.bitso; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitso.dto.BitsoException; import org.knowm.xchange.bitso.dto.marketdata.BitsoOrderBook; import org.knowm.xchange.bitso.dto.marketdata.BitsoTicker; @@ -39,4 +39,4 @@ public interface Bitso { @Path("transactions/") BitsoTransaction[] getTransactions(@QueryParam("time") String time) throws BitsoException, IOException; -} \ No newline at end of file +} diff --git a/xchange-bitso/src/main/java/org/knowm/xchange/bitso/BitsoAuthenticated.java b/xchange-bitso/src/main/java/org/knowm/xchange/bitso/BitsoAuthenticated.java index ad2465a0cc3..76e2bd1b269 100644 --- a/xchange-bitso/src/main/java/org/knowm/xchange/bitso/BitsoAuthenticated.java +++ b/xchange-bitso/src/main/java/org/knowm/xchange/bitso/BitsoAuthenticated.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.math.BigDecimal; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitso.dto.BitsoException; import org.knowm.xchange.bitso.dto.account.BitsoBalance; import org.knowm.xchange.bitso.dto.account.BitsoDepositAddress; @@ -117,4 +117,4 @@ String withdrawToRipple( @FormParam("currency") String currency, @FormParam("address") String rippleAddress) throws BitsoException, IOException; -} \ No newline at end of file +} diff --git a/xchange-bitso/src/main/java/org/knowm/xchange/bitso/service/BitsoDigest.java b/xchange-bitso/src/main/java/org/knowm/xchange/bitso/service/BitsoDigest.java index e063410949e..07dca72ccb2 100644 --- a/xchange-bitso/src/main/java/org/knowm/xchange/bitso/service/BitsoDigest.java +++ b/xchange-bitso/src/main/java/org/knowm/xchange/bitso/service/BitsoDigest.java @@ -2,7 +2,7 @@ import java.math.BigInteger; import javax.crypto.Mac; -import jakarta.ws.rs.FormParam; +import javax.ws.rs.FormParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -31,4 +31,4 @@ public String digestParams(RestInvocation restInvocation) { return String.format("%064x", new BigInteger(1, mac256.doFinal())).toUpperCase(); } -} \ No newline at end of file +} diff --git a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampAuthenticatedV2.java b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampAuthenticatedV2.java index 9f6b9c56442..4ed2755c0cc 100644 --- a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampAuthenticatedV2.java +++ b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampAuthenticatedV2.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.math.BigDecimal; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitstamp.dto.BitstampException; import org.knowm.xchange.bitstamp.dto.BitstampTransferBalanceResponse; import org.knowm.xchange.bitstamp.dto.account.BitstampBalance; @@ -1174,4 +1174,4 @@ enum BankCurrency { ZMW, ZWL } -} \ No newline at end of file +} diff --git a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampV2.java b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampV2.java index 62b57d6d421..ff6644b1f62 100644 --- a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampV2.java +++ b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/BitstampV2.java @@ -3,12 +3,12 @@ import java.io.IOException; import java.util.List; import java.util.Objects; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitstamp.dto.BitstampException; import org.knowm.xchange.bitstamp.dto.marketdata.BitstampOrderBook; import org.knowm.xchange.bitstamp.dto.marketdata.BitstampPairInfo; @@ -87,4 +87,4 @@ public String toString() { pair.counter.getCurrencyCode().toLowerCase()); } } -} \ No newline at end of file +} diff --git a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigest.java b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigest.java index 82135ccdcde..8486eaa36a3 100644 --- a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigest.java +++ b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigest.java @@ -2,7 +2,7 @@ import java.math.BigInteger; import javax.crypto.Mac; -import jakarta.ws.rs.FormParam; +import javax.ws.rs.FormParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -43,4 +43,4 @@ public String digestParams(RestInvocation restInvocation) { return String.format("%064x", new BigInteger(1, mac256.doFinal())).toUpperCase(); } -} \ No newline at end of file +} diff --git a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigestV2.java b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigestV2.java index 156c18ae119..7c81d4e41dc 100644 --- a/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigestV2.java +++ b/xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampDigestV2.java @@ -2,7 +2,7 @@ import java.math.BigInteger; import javax.crypto.Mac; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -58,4 +58,4 @@ public String digestParams(RestInvocation restInvocation) { return String.format("%064x", new BigInteger(1, mac256.doFinal())).toUpperCase(); } -} \ No newline at end of file +} diff --git a/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/Bittrex.java b/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/Bittrex.java index faf7ba5f1f6..dd13a0bfde0 100644 --- a/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/Bittrex.java +++ b/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/Bittrex.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bittrex.dto.BittrexException; import org.knowm.xchange.bittrex.dto.marketdata.BittrexCurrency; import org.knowm.xchange.bittrex.dto.marketdata.BittrexDepth; @@ -56,4 +56,4 @@ List getTrades(@PathParam("marketSymbol") String marketSymbol) @Path("markets/{marketSymbol}/ticker") BittrexTicker getTicker(@PathParam("marketSymbol") String marketSymbol) throws IOException, BittrexException; -} \ No newline at end of file +} diff --git a/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/BittrexAuthenticated.java b/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/BittrexAuthenticated.java index d309c09d444..5b64a605415 100644 --- a/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/BittrexAuthenticated.java +++ b/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/BittrexAuthenticated.java @@ -3,16 +3,16 @@ import java.io.IOException; import java.util.Date; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bittrex.dto.BittrexException; import org.knowm.xchange.bittrex.dto.account.BittrexAccountVolume; import org.knowm.xchange.bittrex.dto.account.BittrexAddress; @@ -202,4 +202,4 @@ BittrexWithdrawal createNewWithdrawal( @HeaderParam("Api-Signature") ParamsDigest signature, BittrexNewWithdrawal newWithdrawal) throws IOException, BittrexException; -} \ No newline at end of file +} diff --git a/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/service/BittrexDigest.java b/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/service/BittrexDigest.java index e9494e892ba..55d377b0449 100644 --- a/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/service/BittrexDigest.java +++ b/xchange-bittrex/src/main/java/org/knowm/xchange/bittrex/service/BittrexDigest.java @@ -5,7 +5,7 @@ import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import javax.crypto.Mac; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import org.knowm.xchange.utils.DigestUtils; import si.mazi.rescu.RestInvocation; @@ -70,4 +70,4 @@ static String urlDecode(String data) { throw new RuntimeException("Illegal encoding, fix the code.", e); // should not happen } } -} \ No newline at end of file +} diff --git a/xchange-bity/src/main/java/org/knowm/xchange/bity/Bity.java b/xchange-bity/src/main/java/org/knowm/xchange/bity/Bity.java index b6f3750192a..d7391e8108e 100644 --- a/xchange-bity/src/main/java/org/knowm/xchange/bity/Bity.java +++ b/xchange-bity/src/main/java/org/knowm/xchange/bity/Bity.java @@ -1,11 +1,11 @@ package org.knowm.xchange.bity; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bity.dto.BityException; import org.knowm.xchange.bity.dto.BityResponse; import org.knowm.xchange.bity.dto.account.BityToken; @@ -32,4 +32,4 @@ BityToken createToken( @FormParam("username") String username, @FormParam("password") String password) throws BityException; -} \ No newline at end of file +} diff --git a/xchange-bity/src/main/java/org/knowm/xchange/bity/BityAuthenticated.java b/xchange-bity/src/main/java/org/knowm/xchange/bity/BityAuthenticated.java index 42c584950d8..44b33c78cb0 100644 --- a/xchange-bity/src/main/java/org/knowm/xchange/bity/BityAuthenticated.java +++ b/xchange-bity/src/main/java/org/knowm/xchange/bity/BityAuthenticated.java @@ -1,11 +1,11 @@ package org.knowm.xchange.bity; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bity.dto.BityException; import org.knowm.xchange.bity.dto.BityResponse; import org.knowm.xchange.bity.dto.account.BityOrder; @@ -22,4 +22,4 @@ BityResponse getOrders( @QueryParam("order_by") String orderBy, @HeaderParam("Authorization") String authorization) throws BityException; -} \ No newline at end of file +} diff --git a/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZ.java b/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZ.java index 335c10e9035..608e89737e4 100644 --- a/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZ.java +++ b/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZ.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.math.BigDecimal; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitz.dto.account.result.BitZUserAssetsResult; import org.knowm.xchange.bitz.dto.marketdata.result.BitZCurrencyCoinRateResult; import org.knowm.xchange.bitz.dto.marketdata.result.BitZCurrencyRateResult; @@ -176,4 +176,4 @@ BitZUserAssetsResult getUserAssets( @Path("kline?coin={symbol}&type={type}") BitZKlineResult getKlineResult(@PathParam("symbol") String symbol, @PathParam("type") String type) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZAuthenticated.java b/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZAuthenticated.java index ccbe51d3ab3..1bd3426e614 100644 --- a/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZAuthenticated.java +++ b/xchange-bitz/src/main/java/org/knowm/xchange/bitz/BitZAuthenticated.java @@ -1,12 +1,12 @@ package org.knowm.xchange.bitz; import java.math.BigDecimal; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bitz.dto.trade.result.BitZOpenOrderResult; import org.knowm.xchange.bitz.dto.trade.result.BitZTradeAddResult; import org.knowm.xchange.bitz.dto.trade.result.BitZTradeCancelResult; @@ -46,4 +46,4 @@ BitZOpenOrderResult openOrders( @FormParam("nonce") String nonce, @FormParam("coin") String coin, @FormParam("sign") String signed); -} \ No newline at end of file +} diff --git a/xchange-bitz/src/main/java/org/knowm/xchange/bitz/service/BitZDigest.java b/xchange-bitz/src/main/java/org/knowm/xchange/bitz/service/BitZDigest.java index 3f09169ad07..bd7e6da5425 100644 --- a/xchange-bitz/src/main/java/org/knowm/xchange/bitz/service/BitZDigest.java +++ b/xchange-bitz/src/main/java/org/knowm/xchange/bitz/service/BitZDigest.java @@ -4,7 +4,7 @@ import java.security.NoSuchAlgorithmException; import java.util.Map; import java.util.stream.Collectors; -import jakarta.ws.rs.FormParam; +import javax.ws.rs.FormParam; import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.RestInvocation; @@ -47,4 +47,4 @@ public String digestParams(RestInvocation restInvocation) { // TODO: Determine Charceter Encoding return String.valueOf(md5.digest(unsigned)); } -} \ No newline at end of file +} diff --git a/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3p.java b/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3p.java index 4de604a638e..6c7b7cfe2b1 100644 --- a/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3p.java +++ b/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3p.java @@ -1,11 +1,11 @@ package org.knowm.xchange.bl3p; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bl3p.dto.marketdata.Bl3pOrderBook; import org.knowm.xchange.bl3p.dto.marketdata.Bl3pTicker; import org.knowm.xchange.bl3p.dto.marketdata.Bl3pTrades; @@ -25,4 +25,4 @@ public interface Bl3p { @GET @Path("/{currencyPair}/trades") Bl3pTrades getTrades(@PathParam("currencyPair") String currency) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3pAuthenticated.java b/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3pAuthenticated.java index cc94ae961f4..e90b07dd3ea 100644 --- a/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3pAuthenticated.java +++ b/xchange-bl3p/src/main/java/org/knowm/xchange/bl3p/Bl3pAuthenticated.java @@ -1,14 +1,14 @@ package org.knowm.xchange.bl3p; import java.io.IOException; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bl3p.dto.Bl3pUserTransactions; import org.knowm.xchange.bl3p.dto.account.Bl3pAccountInfo; import org.knowm.xchange.bl3p.dto.account.Bl3pNewDepositAddress; @@ -236,4 +236,4 @@ Bl3pWithdrawFunds withdrawEuros( @FormParam("account_id") String accountId, @FormParam("account_name") String accountName, @FormParam("amount_int") long amount); -} \ No newline at end of file +} diff --git a/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/Bleutrade.java b/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/Bleutrade.java index 8be323161b3..8cd10bcd043 100644 --- a/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/Bleutrade.java +++ b/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/Bleutrade.java @@ -1,11 +1,11 @@ package org.knowm.xchange.bleutrade; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bleutrade.dto.marketdata.BleutradeCurrenciesReturn; import org.knowm.xchange.bleutrade.dto.marketdata.BleutradeMarketHistoryReturn; import org.knowm.xchange.bleutrade.dto.marketdata.BleutradeMarketsReturn; @@ -44,4 +44,4 @@ BleutradeOrderBookReturn getBleutradeOrderBook( @Path("public/getmarkethistory") BleutradeMarketHistoryReturn getBleutradeMarketHistory( @QueryParam("market") String market, @QueryParam("count") int count) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/BleutradeAuthenticated.java b/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/BleutradeAuthenticated.java index e1758c6eb7c..6e206cae2f4 100644 --- a/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/BleutradeAuthenticated.java +++ b/xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/BleutradeAuthenticated.java @@ -4,12 +4,12 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bleutrade.dto.account.BleutradeBalanceReturn; import org.knowm.xchange.bleutrade.dto.account.BleutradeBalancesReturn; import org.knowm.xchange.bleutrade.dto.account.BleutradeDepositAddressReturn; @@ -140,4 +140,4 @@ BleutradeResponse> withdrawHistory( @HeaderParam("apisign") ParamsDigest signature, @QueryParam("nonce") SynchronizedValueFactory nonce) throws IOException, BleutradeException; -} \ No newline at end of file +} diff --git a/xchange-bleutrade/src/test/java/org/knowm/xchange/bleutrade/service/BleutradeDigestTest.java b/xchange-bleutrade/src/test/java/org/knowm/xchange/bleutrade/service/BleutradeDigestTest.java index 36d3047d8f3..6d7c6c6635d 100644 --- a/xchange-bleutrade/src/test/java/org/knowm/xchange/bleutrade/service/BleutradeDigestTest.java +++ b/xchange-bleutrade/src/test/java/org/knowm/xchange/bleutrade/service/BleutradeDigestTest.java @@ -1,6 +1,6 @@ package org.knowm.xchange.bleutrade.service; -import static jakarta.ws.rs.core.MediaType.TEXT_PLAIN; +import static javax.ws.rs.core.MediaType.TEXT_PLAIN; import static org.assertj.core.api.Assertions.assertThat; import java.lang.annotation.Annotation; @@ -55,4 +55,4 @@ public void shouldEncodeRestInvocation() throws Exception { // then assertThat(encoded).isEqualTo(expected); } -} \ No newline at end of file +} diff --git a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/Blockchain.java b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/Blockchain.java index ca69135c72b..e563af0f850 100644 --- a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/Blockchain.java +++ b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/Blockchain.java @@ -4,11 +4,11 @@ import org.knowm.xchange.blockchain.dto.account.BlockchainSymbol; import org.knowm.xchange.blockchain.dto.marketdata.BlockchainOrderBook; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import java.io.IOException; import java.util.Map; @@ -40,4 +40,4 @@ public interface Blockchain { @Path("/l3/{symbol}") @GET BlockchainOrderBook getOrderBookL3(@PathParam("symbol") String symbol) throws IOException, BlockchainException; -} \ No newline at end of file +} diff --git a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainAuthenticated.java b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainAuthenticated.java index 45b19bbee9a..5103ad30a97 100644 --- a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainAuthenticated.java +++ b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainAuthenticated.java @@ -5,8 +5,8 @@ import org.knowm.xchange.blockchain.dto.trade.BlockchainOrder; import org.knowm.xchange.blockchain.params.BlockchainWithdrawalParams; -import jakarta.ws.rs.*; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.*; +import javax.ws.rs.core.MediaType; import java.io.IOException; import java.util.List; import java.util.Map; @@ -169,4 +169,4 @@ List getTrades(@QueryParam("symbol") String symbol, @QueryParam("to") Long endTime, @QueryParam("limit") Integer limit) throws IOException, BlockchainException; -} \ No newline at end of file +} diff --git a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainExchange.java b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainExchange.java index 2eb28b87236..b00f1dcef6b 100644 --- a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainExchange.java +++ b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainExchange.java @@ -13,7 +13,7 @@ import org.knowm.xchange.exceptions.NotYetImplementedForExchangeException; import si.mazi.rescu.SynchronizedValueFactory; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import java.io.IOException; import java.util.Map; @@ -73,4 +73,4 @@ public ResilienceRegistries getResilienceRegistries() { } return RESILIENCE_REGISTRIES; } -} \ No newline at end of file +} diff --git a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainResilience.java b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainResilience.java index 6f17998e6f5..8a8629b2df0 100644 --- a/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainResilience.java +++ b/xchange-blockchain/src/main/java/org/knowm/xchange/blockchain/BlockchainResilience.java @@ -5,7 +5,7 @@ import org.knowm.xchange.client.ResilienceRegistries; import si.mazi.rescu.ClientConfig; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import java.time.Duration; import static org.knowm.xchange.blockchain.BlockchainConstants.ENDPOINT_RATE_LIMIT; @@ -25,4 +25,4 @@ public static ResilienceRegistries getResilienceRegistries(){ ); return registries; } -} \ No newline at end of file +} diff --git a/xchange-btcc/src/main/java/org/knowm/xchange/btcc/BTCC.java b/xchange-btcc/src/main/java/org/knowm/xchange/btcc/BTCC.java index 30d4f39f9bb..3bb78b0348e 100644 --- a/xchange-btcc/src/main/java/org/knowm/xchange/btcc/BTCC.java +++ b/xchange-btcc/src/main/java/org/knowm/xchange/btcc/BTCC.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.Map; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.btcc.dto.marketdata.BTCCTicker; @Path("data/pro/") @@ -16,4 +16,4 @@ public interface BTCC { @GET @Path("ticker?symbol={symbol}") Map getMarketTicker(@PathParam("symbol") String symbol) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarkets.java b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarkets.java index 07ecbbe5514..3244878a71e 100644 --- a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarkets.java +++ b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarkets.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.btcmarkets.dto.marketdata.BTCMarketsOrderBook; import org.knowm.xchange.btcmarkets.dto.marketdata.BTCMarketsTicker; import org.knowm.xchange.btcmarkets.dto.v3.marketdata.BTCMarketsTrade; @@ -40,4 +40,4 @@ List getTrades( @QueryParam("limit") Integer limit, @PathParam("marketId") String marketId) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticated.java b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticated.java index 2e715d04d02..d878c52993d 100644 --- a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticated.java +++ b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticated.java @@ -2,13 +2,13 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.btcmarkets.dto.BTCMarketsException; import org.knowm.xchange.btcmarkets.dto.account.BTCMarketsBalance; import org.knowm.xchange.btcmarkets.dto.account.BTCMarketsFundtransferHistoryResponse; @@ -81,4 +81,4 @@ BTCMarketsFundtransferHistoryResponse fundtransferHistory( @HeaderParam("timestamp") SynchronizedValueFactory nonceFactory, @HeaderParam("signature") BTCMarketsDigest signer) throws BTCMarketsException, IOException; -} \ No newline at end of file +} diff --git a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticatedV3.java b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticatedV3.java index 4a13e060f82..c455eef8bed 100644 --- a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticatedV3.java +++ b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/BTCMarketsAuthenticatedV3.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.btcmarkets.dto.v3.BTCMarketsExceptionV3; import org.knowm.xchange.btcmarkets.dto.v3.account.BTCMarketsAddressesResponse; import org.knowm.xchange.btcmarkets.dto.v3.account.BTCMarketsTradingFeesResponse; @@ -61,4 +61,4 @@ BTCMarketsTradingFeesResponse tradingFees( @HeaderParam("BM-AUTH-TIMESTAMP") SynchronizedValueFactory nonceFactory, @HeaderParam("BM-AUTH-SIGNATURE") BTCMarketsDigestV3 signer) throws BTCMarketsExceptionV3, IOException; -} \ No newline at end of file +} diff --git a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigest.java b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigest.java index 1da6c06477d..114106ebbe4 100644 --- a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigest.java +++ b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigest.java @@ -2,7 +2,7 @@ import java.util.Base64; import javax.crypto.Mac; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -40,4 +40,4 @@ String digest(String url, String nonce, String requestBody, String queryString) return Base64.getEncoder().encodeToString(mac.doFinal()); } -} \ No newline at end of file +} diff --git a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigestV3.java b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigestV3.java index 357b15b0fac..e9270c5f716 100644 --- a/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigestV3.java +++ b/xchange-btcmarkets/src/main/java/org/knowm/xchange/btcmarkets/service/BTCMarketsDigestV3.java @@ -2,7 +2,7 @@ import java.util.Base64; import javax.crypto.Mac; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -28,4 +28,4 @@ public String sign(String stringToSign) { mac.update(stringToSign.getBytes()); return Base64.getEncoder().encodeToString(mac.doFinal()); } -} \ No newline at end of file +} diff --git a/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurk.java b/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurk.java index 800b95c261e..86740aa29f1 100644 --- a/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurk.java +++ b/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurk.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.btcturk.dto.marketdata.BTCTurkOHLC; import org.knowm.xchange.btcturk.dto.marketdata.BTCTurkOrderBook; import org.knowm.xchange.btcturk.dto.marketdata.BTCTurkTicker; @@ -47,4 +47,4 @@ List getTrades( List getOHLC( @QueryParam("pairSymbol") String pairSymbol, @QueryParam("last") Integer last) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurkAuthenticated.java b/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurkAuthenticated.java index a94490a8227..449f187714f 100644 --- a/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurkAuthenticated.java +++ b/xchange-btcturk/src/main/java/org/knowm/xchange/btcturk/BTCTurkAuthenticated.java @@ -2,15 +2,15 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.DELETE; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.btcturk.dto.account.BTCTurkAccountBalance; import org.knowm.xchange.btcturk.dto.account.BTCTurkDepositRequestResult; import org.knowm.xchange.btcturk.dto.account.BTCTurkUserTransactions; @@ -290,4 +290,4 @@ Boolean cancelWithdrawalRequest( @HeaderParam("X-Stamp") SynchronizedValueFactory stamp, @HeaderParam("X-Signature") ParamsDigest signature) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-bybit/src/main/java/org/knowm/xchange/bybit/Bybit.java b/xchange-bybit/src/main/java/org/knowm/xchange/bybit/Bybit.java index cfcb9778c52..e385ab18df8 100644 --- a/xchange-bybit/src/main/java/org/knowm/xchange/bybit/Bybit.java +++ b/xchange-bybit/src/main/java/org/knowm/xchange/bybit/Bybit.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.bybit.dto.BybitResult; import org.knowm.xchange.bybit.dto.marketdata.BybitSymbol; import org.knowm.xchange.bybit.dto.marketdata.BybitTicker; @@ -30,4 +30,4 @@ public interface Bybit { @Path("/v2/public/symbols") BybitResult> getSymbols() throws IOException, BybitException; -} \ No newline at end of file +} diff --git a/xchange-bybit/src/main/java/org/knowm/xchange/bybit/BybitAuthenticated.java b/xchange-bybit/src/main/java/org/knowm/xchange/bybit/BybitAuthenticated.java index ffadff217ca..43eb58c5dc5 100644 --- a/xchange-bybit/src/main/java/org/knowm/xchange/bybit/BybitAuthenticated.java +++ b/xchange-bybit/src/main/java/org/knowm/xchange/bybit/BybitAuthenticated.java @@ -8,8 +8,8 @@ import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.SynchronizedValueFactory; -import jakarta.ws.rs.*; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.*; +import javax.ws.rs.core.MediaType; import java.io.IOException; @Path("/spot/v1") @@ -46,4 +46,4 @@ BybitResult placeOrder( ) throws IOException, BybitException; -} \ No newline at end of file +} diff --git a/xchange-bybit/src/main/java/org/knowm/xchange/bybit/service/BybitDigest.java b/xchange-bybit/src/main/java/org/knowm/xchange/bybit/service/BybitDigest.java index d8f1659080a..e30a3fa8303 100644 --- a/xchange-bybit/src/main/java/org/knowm/xchange/bybit/service/BybitDigest.java +++ b/xchange-bybit/src/main/java/org/knowm/xchange/bybit/service/BybitDigest.java @@ -7,8 +7,8 @@ import si.mazi.rescu.RestInvocation; import javax.crypto.Mac; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.QueryParam; +import javax.ws.rs.FormParam; +import javax.ws.rs.QueryParam; import java.nio.charset.StandardCharsets; import java.util.Map; import java.util.TreeMap; @@ -50,4 +50,4 @@ private Map getInputParams(RestInvocation restInvocation) { throw new NotYetImplementedForExchangeException("Only GET and POST are supported in digest"); } -} \ No newline at end of file +} diff --git a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/BybitExchangeTest.java b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/BybitExchangeTest.java index 23059b7d133..8dda42183f4 100644 --- a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/BybitExchangeTest.java +++ b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/BybitExchangeTest.java @@ -8,7 +8,7 @@ import java.io.IOException; import java.nio.charset.StandardCharsets; -import jakarta.ws.rs.core.Response.Status; +import javax.ws.rs.core.Response.Status; import org.apache.commons.io.IOUtils; import org.junit.Test; import org.knowm.xchange.Exchange; @@ -39,4 +39,4 @@ public void testSymbolLoading() throws IOException { assertThat(bybitExchange.getExchangeMetaData().getInstruments()).hasSize(2); } -} \ No newline at end of file +} diff --git a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceRawTest.java b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceRawTest.java index 5ef8e44d5f1..2c25b60cfd9 100644 --- a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceRawTest.java +++ b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceRawTest.java @@ -8,7 +8,7 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.core.Response.Status; +import javax.ws.rs.core.Response.Status; import org.junit.Test; import org.knowm.xchange.Exchange; import org.knowm.xchange.bybit.dto.BybitResult; @@ -79,4 +79,4 @@ public void testGetWalletBalances() throws IOException { assertThat(balances.get(1).getCoinName()).isEqualTo("USDT"); } -} \ No newline at end of file +} diff --git a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceTest.java b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceTest.java index edc48a9a5b3..7183682044e 100644 --- a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceTest.java +++ b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitAccountServiceTest.java @@ -8,7 +8,7 @@ import java.io.IOException; import java.math.BigDecimal; -import jakarta.ws.rs.core.Response.Status; +import javax.ws.rs.core.Response.Status; import org.junit.Test; import org.knowm.xchange.Exchange; import org.knowm.xchange.currency.Currency; @@ -70,4 +70,4 @@ public void testGetWalletBalances() throws IOException { new BigDecimal("61.50059688096")); } -} \ No newline at end of file +} diff --git a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceRawTest.java b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceRawTest.java index 8f7ff99b95c..f890944379d 100644 --- a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceRawTest.java +++ b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceRawTest.java @@ -9,7 +9,7 @@ import java.math.BigDecimal; import java.nio.charset.StandardCharsets; import java.util.List; -import jakarta.ws.rs.core.Response.Status; +import javax.ws.rs.core.Response.Status; import org.apache.commons.io.IOUtils; import org.junit.Test; import org.knowm.xchange.Exchange; @@ -59,4 +59,4 @@ public void testGetSymbols() throws Exception { } -} \ No newline at end of file +} diff --git a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceTest.java b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceTest.java index 9dbe3d1283a..b7d116c0aa0 100644 --- a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceTest.java +++ b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitMarketDataServiceTest.java @@ -9,7 +9,7 @@ import java.math.BigDecimal; import java.nio.charset.StandardCharsets; import java.time.Instant; -import jakarta.ws.rs.core.Response.Status; +import javax.ws.rs.core.Response.Status; import org.apache.commons.io.IOUtils; import org.junit.Test; import org.knowm.xchange.Exchange; diff --git a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceRawTest.java b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceRawTest.java index 7cf4a5f6d58..03e032a6607 100644 --- a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceRawTest.java +++ b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceRawTest.java @@ -10,7 +10,7 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; -import jakarta.ws.rs.core.Response.Status; +import javax.ws.rs.core.Response.Status; import org.junit.Test; import org.knowm.xchange.Exchange; import org.knowm.xchange.bybit.dto.BybitResult; @@ -170,4 +170,4 @@ public void testPlaceBybitOrder() throws IOException { System.out.println(order); } -} \ No newline at end of file +} diff --git a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceTest.java b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceTest.java index 72255344a0c..274d356df67 100644 --- a/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceTest.java +++ b/xchange-bybit/src/test/java/org/knowm/xchange/bybit/service/BybitTradeServiceTest.java @@ -10,7 +10,7 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.Collection; -import jakarta.ws.rs.core.Response.Status; +import javax.ws.rs.core.Response.Status; import org.junit.Test; import org.knowm.xchange.Exchange; import org.knowm.xchange.currency.CurrencyPair; @@ -130,4 +130,4 @@ public void testPlaceBybitOrder() throws IOException { } -} \ No newline at end of file +} diff --git a/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEX.java b/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEX.java index ce9f72bf90e..7082f396fde 100644 --- a/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEX.java +++ b/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEX.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.Objects; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.ccex.dto.marketdata.CCEXGetorderbook; import org.knowm.xchange.ccex.dto.marketdata.CCEXMarkets; import org.knowm.xchange.ccex.dto.marketdata.CCEXTrades; @@ -75,4 +75,4 @@ public String toString() { pair.base.getCurrencyCode().toLowerCase(), pair.counter.getCurrencyCode().toLowerCase()); } } -} \ No newline at end of file +} diff --git a/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEXAuthenticated.java b/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEXAuthenticated.java index 923307de202..d1ac87e0753 100644 --- a/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEXAuthenticated.java +++ b/xchange-ccex/src/main/java/org/knowm/xchange/ccex/CCEXAuthenticated.java @@ -1,12 +1,12 @@ package org.knowm.xchange.ccex; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.ccex.dto.account.CCEXBalanceResponse; import org.knowm.xchange.ccex.dto.account.CCEXBalancesResponse; import org.knowm.xchange.ccex.dto.trade.CCEXBuySellLimitResponse; @@ -87,4 +87,4 @@ CCEXBuySellLimitResponse selllimit( @PathParam("quantity") String quantity, @PathParam("rate") String rate) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIO.java b/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIO.java index b4a03574d4c..833ee248bbf 100644 --- a/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIO.java +++ b/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIO.java @@ -1,14 +1,14 @@ package org.knowm.xchange.cexio; import java.io.IOException; -import jakarta.ws.rs.DefaultValue; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.DefaultValue; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.cexio.dto.marketdata.CexIOCurrencyLimits; import org.knowm.xchange.cexio.dto.marketdata.CexIODepth; import org.knowm.xchange.cexio.dto.marketdata.CexIOTicker; @@ -71,4 +71,4 @@ CexIOTrade[] getTradesSince( @GET @Path("currency_limits") CexIOCurrencyLimits getCurrencyLimits() throws IOException; -} \ No newline at end of file +} diff --git a/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIOAuthenticated.java b/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIOAuthenticated.java index 13e6ae3d936..2b5bb263e08 100644 --- a/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIOAuthenticated.java +++ b/xchange-cexio/src/main/java/org/knowm/xchange/cexio/CexIOAuthenticated.java @@ -3,13 +3,13 @@ import java.io.IOException; import java.util.List; import java.util.Map; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.cexio.dto.ArchivedOrdersRequest; import org.knowm.xchange.cexio.dto.CexIOGetPositionRequest; import org.knowm.xchange.cexio.dto.CexIOOpenPositionRequest; @@ -172,4 +172,4 @@ CexioOpenPositionsResponse getOpenPositions( @PathParam("symbol2") String symbol2, CexIORequest emptyRequest) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/Coinbase.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/Coinbase.java index a59bc7ac418..224c59e6158 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/Coinbase.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/Coinbase.java @@ -4,13 +4,13 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinbase.dto.CoinbaseException; import org.knowm.xchange.coinbase.dto.account.CoinbaseToken; import org.knowm.xchange.coinbase.dto.account.CoinbaseUser; @@ -62,4 +62,4 @@ String getHistoricalSpotRates(@QueryParam("page") Integer page) @POST @Path("tokens") CoinbaseToken createToken() throws IOException, CoinbaseException; -} \ No newline at end of file +} diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/CoinbaseAuthenticated.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/CoinbaseAuthenticated.java index c16c92c3a54..829ee3e5925 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/CoinbaseAuthenticated.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/CoinbaseAuthenticated.java @@ -1,17 +1,17 @@ package org.knowm.xchange.coinbase; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.PUT; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.PUT; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinbase.dto.CoinbaseBaseResponse; import org.knowm.xchange.coinbase.dto.CoinbaseException; import org.knowm.xchange.coinbase.dto.account.CoinbaseAccountChanges; @@ -311,4 +311,4 @@ CoinbaseTransfer sell( @HeaderParam("ACCESS_SIGNATURE") ParamsDigest signer, @HeaderParam("ACCESS_NONCE") SynchronizedValueFactory nonce) throws IOException, CoinbaseException; -} \ No newline at end of file +} diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/service/CoinbaseDigest.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/service/CoinbaseDigest.java index 19139c465b4..233fde48010 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/service/CoinbaseDigest.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/service/CoinbaseDigest.java @@ -2,7 +2,7 @@ import java.math.BigInteger; import javax.crypto.Mac; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -32,4 +32,4 @@ public String digestParams(RestInvocation restInvocation) { return String.format("%064x", new BigInteger(1, mac256.doFinal())); } -} \ No newline at end of file +} diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/Coinbase.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/Coinbase.java index 0ad41fee33c..f0097c22787 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/Coinbase.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/Coinbase.java @@ -1,13 +1,13 @@ package org.knowm.xchange.coinbase.v2; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinbase.v2.dto.CoinbaseException; import org.knowm.xchange.coinbase.v2.dto.marketdata.CoinbaseCurrencyData; import org.knowm.xchange.coinbase.v2.dto.marketdata.CoinbaseExchangeRateData; @@ -71,4 +71,4 @@ CoinbasePriceData getHistoricalSpotRate( @Path("time") CoinbaseTimeData getTime(@HeaderParam(CB_VERSION) String apiVersion) throws IOException, CoinbaseException; -} \ No newline at end of file +} diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseAuthenticated.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseAuthenticated.java index e55b09a396e..97e1fe95b4f 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseAuthenticated.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseAuthenticated.java @@ -3,15 +3,15 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.Map; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinbase.v2.dto.CoinbaseException; import org.knowm.xchange.coinbase.v2.dto.account.CoinbaseAccountData; import org.knowm.xchange.coinbase.v2.dto.account.CoinbaseAccountsData; @@ -171,4 +171,4 @@ CoinbaseSellData sell( @PathParam("account") String accountId, Object payload) throws IOException, CoinbaseException; -} \ No newline at end of file +} diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseV2Digest.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseV2Digest.java index 37d41bc46d6..dc0cfc9d7ef 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseV2Digest.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/CoinbaseV2Digest.java @@ -2,7 +2,7 @@ import static org.knowm.xchange.coinbase.v2.CoinbaseAuthenticated.CB_ACCESS_TIMESTAMP; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import org.knowm.xchange.utils.DigestUtils; import si.mazi.rescu.RestInvocation; @@ -27,4 +27,4 @@ public String digestParams(RestInvocation restInvocation) { return DigestUtils.bytesToHex(getMac().doFinal(message.getBytes())); } -} \ No newline at end of file +} diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseAccountServiceRaw.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseAccountServiceRaw.java index 6e826c76824..d02140d512f 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseAccountServiceRaw.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseAccountServiceRaw.java @@ -8,7 +8,7 @@ import java.util.List; import java.util.Map; import java.util.UUID; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.Exchange; import org.knowm.xchange.coinbase.v2.Coinbase; import org.knowm.xchange.coinbase.v2.dto.account.CoinbaseAccountData.CoinbaseAccount; @@ -158,4 +158,4 @@ public static class CreateCoinbaseAccountPayload { this.name = name; } } -} \ No newline at end of file +} diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseBaseService.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseBaseService.java index 69d87a28c69..dc0a4f427ae 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseBaseService.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseBaseService.java @@ -5,7 +5,7 @@ import java.nio.charset.StandardCharsets; import java.util.List; import javax.crypto.Mac; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.Exchange; import org.knowm.xchange.client.ExchangeRestProxyBuilder; import org.knowm.xchange.coinbase.service.CoinbaseDigest; @@ -93,4 +93,4 @@ public enum HttpMethod { GET, POST } -} \ No newline at end of file +} diff --git a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseTradeServiceRaw.java b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseTradeServiceRaw.java index bda09d8ad18..aea76fc1e3a 100644 --- a/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseTradeServiceRaw.java +++ b/xchange-coinbase/src/main/java/org/knowm/xchange/coinbase/v2/service/CoinbaseTradeServiceRaw.java @@ -4,7 +4,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import java.math.BigDecimal; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.Exchange; import org.knowm.xchange.coinbase.v2.Coinbase; import org.knowm.xchange.coinbase.v2.dto.account.CoinbaseBuyData.CoinbaseBuy; @@ -130,4 +130,4 @@ abstract class AbstractPayload { this.quote = quote; } } -} \ No newline at end of file +} diff --git a/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbasePro.java b/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbasePro.java index a6b4b430e97..fd4f8e08f3f 100644 --- a/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbasePro.java +++ b/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbasePro.java @@ -6,16 +6,16 @@ import java.util.Date; import java.util.List; import java.util.Map; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinbasepro.dto.CoinbasePagedResponse; import org.knowm.xchange.coinbasepro.dto.CoinbaseProException; import org.knowm.xchange.coinbasepro.dto.CoinbaseProTrades; @@ -384,4 +384,4 @@ public enum Format { csv } } -} \ No newline at end of file +} diff --git a/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbaseProResilience.java b/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbaseProResilience.java index 1e78b327e44..9474e5c6bbd 100644 --- a/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbaseProResilience.java +++ b/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/CoinbaseProResilience.java @@ -1,6 +1,6 @@ package org.knowm.xchange.coinbasepro; -import static jakarta.ws.rs.core.Response.Status.TOO_MANY_REQUESTS; +import static javax.ws.rs.core.Response.Status.TOO_MANY_REQUESTS; import io.github.resilience4j.ratelimiter.RateLimiterConfig; import java.time.Duration; @@ -40,4 +40,4 @@ public static ResilienceRegistries createRegistries() { return registries; } -} \ No newline at end of file +} diff --git a/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/service/CoinbaseProDigest.java b/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/service/CoinbaseProDigest.java index 6334b98ff27..69933f63dca 100644 --- a/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/service/CoinbaseProDigest.java +++ b/xchange-coinbasepro/src/main/java/org/knowm/xchange/coinbasepro/service/CoinbaseProDigest.java @@ -3,7 +3,7 @@ import java.nio.charset.StandardCharsets; import java.util.Base64; import javax.crypto.Mac; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import org.knowm.xchange.exceptions.ExchangeException; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -41,4 +41,4 @@ public String digestParams(RestInvocation restInvocation) { return Base64.getEncoder().encodeToString(mac256.doFinal()); } -} \ No newline at end of file +} diff --git a/xchange-coincheck/src/main/java/org/knowm/xchange/coincheck/Coincheck.java b/xchange-coincheck/src/main/java/org/knowm/xchange/coincheck/Coincheck.java index e7da198cec1..233b6adbbb2 100644 --- a/xchange-coincheck/src/main/java/org/knowm/xchange/coincheck/Coincheck.java +++ b/xchange-coincheck/src/main/java/org/knowm/xchange/coincheck/Coincheck.java @@ -1,11 +1,11 @@ package org.knowm.xchange.coincheck; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coincheck.dto.CoincheckException; import org.knowm.xchange.coincheck.dto.marketdata.CoincheckOrderBook; import org.knowm.xchange.coincheck.dto.marketdata.CoincheckPair; @@ -34,4 +34,4 @@ CoincheckTradesContainer getTrades( @QueryParam("starting_after") Long startingAfter, @QueryParam("ending_before") Long endingBefore) throws IOException, CoincheckException; -} \ No newline at end of file +} diff --git a/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/Coindeal.java b/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/Coindeal.java index 0b01a41a6d3..da988a0b259 100644 --- a/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/Coindeal.java +++ b/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/Coindeal.java @@ -1,11 +1,11 @@ package org.knowm.xchange.coindeal; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coindeal.dto.CoindealException; import org.knowm.xchange.coindeal.dto.marketdata.CoindealOrderBook; @@ -17,4 +17,4 @@ public interface Coindeal { @Path("/public/orderbook/{currencyPair}") CoindealOrderBook getOrderBook(@PathParam("currencyPair") String currencyPair) throws IOException, CoindealException; -} \ No newline at end of file +} diff --git a/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/CoindealAuthenticated.java b/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/CoindealAuthenticated.java index ffd7306919a..e08aca7bb23 100644 --- a/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/CoindealAuthenticated.java +++ b/xchange-coindeal/src/main/java/org/knowm/xchange/coindeal/CoindealAuthenticated.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.DELETE; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coindeal.dto.account.CoindealBalance; import org.knowm.xchange.coindeal.dto.trade.CoindealOrder; import org.knowm.xchange.coindeal.dto.trade.CoindealTradeHistory; @@ -73,4 +73,4 @@ CoindealOrder getOrderById( @HeaderParam(HEADER_AUTH) ParamsDigest credentials, @PathParam("clientOrderId") String cliendOrderId) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/Coindirect.java b/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/Coindirect.java index bc016f82e2a..9448b98e391 100644 --- a/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/Coindirect.java +++ b/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/Coindirect.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coindirect.dto.CoindirectException; import org.knowm.xchange.coindirect.dto.marketdata.CoindirectMarket; import org.knowm.xchange.coindirect.dto.marketdata.CoindirectOrderbook; @@ -40,4 +40,4 @@ CoindirectTicker getHistoricalExchangeData( @Path("api/v1/exchange/market") List listExchangeMarkets(@QueryParam("max") long max) throws IOException, CoindirectException; -} \ No newline at end of file +} diff --git a/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/CoindirectAuthenticated.java b/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/CoindirectAuthenticated.java index 67dfab2296f..18cac55b321 100644 --- a/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/CoindirectAuthenticated.java +++ b/xchange-coindirect/src/main/java/org/knowm/xchange/coindirect/CoindirectAuthenticated.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coindirect.dto.CoindirectException; import org.knowm.xchange.coindirect.dto.account.CoindirectAccountChannel; import org.knowm.xchange.coindirect.dto.account.CoindirectWallet; @@ -61,4 +61,4 @@ CoindirectOrder getExchangeOrder( @Path("api/account/channel") CoindirectAccountChannel getAccountChannel(@HeaderParam("Authorization") ParamsDigest signer) throws IOException, CoindirectException; -} \ No newline at end of file +} diff --git a/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEgg.java b/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEgg.java index 008cc4c4835..3dc82b2e3cb 100644 --- a/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEgg.java +++ b/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEgg.java @@ -1,11 +1,11 @@ package org.knowm.xchange.coinegg; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinegg.dto.marketdata.CoinEggOrders; import org.knowm.xchange.coinegg.dto.marketdata.CoinEggTicker; import org.knowm.xchange.coinegg.dto.marketdata.CoinEggTrade; @@ -26,4 +26,4 @@ public interface CoinEgg { @Path("depth/region/{region}?coin={symbol}") CoinEggOrders getOrders(@PathParam("region") String region, @PathParam("symbol") String symbol) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEggAuthenticated.java b/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEggAuthenticated.java index 3e1e1194d76..2be63facb9e 100644 --- a/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEggAuthenticated.java +++ b/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/CoinEggAuthenticated.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.math.BigDecimal; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinegg.dto.accounts.CoinEggBalance; import org.knowm.xchange.coinegg.dto.trade.CoinEggTradeAdd; import org.knowm.xchange.coinegg.dto.trade.CoinEggTradeCancel; @@ -70,4 +70,4 @@ CoinEggTradeAdd getTradeAdd( @FormParam("type") String type, @FormParam("coin") String coin) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/service/CoinEggDigest.java b/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/service/CoinEggDigest.java index 923043596d0..67e7e9e92c4 100644 --- a/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/service/CoinEggDigest.java +++ b/xchange-coinegg/src/main/java/org/knowm/xchange/coinegg/service/CoinEggDigest.java @@ -3,7 +3,7 @@ import java.nio.charset.Charset; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; -import jakarta.ws.rs.FormParam; +import javax.ws.rs.FormParam; import org.knowm.xchange.service.BaseParamsDigest; import org.knowm.xchange.utils.DigestUtils; import si.mazi.rescu.Params; @@ -48,4 +48,4 @@ public String digestParams(RestInvocation restInvocation) { // Create And Return Signature return hex(getMac().doFinal(queryString)); } -} \ No newline at end of file +} diff --git a/xchange-coinegg/src/test/java/org/knowm/xchange/coinegg/service/CoinEggDigestTest.java b/xchange-coinegg/src/test/java/org/knowm/xchange/coinegg/service/CoinEggDigestTest.java index 99655d89ff7..47b7319ffce 100644 --- a/xchange-coinegg/src/test/java/org/knowm/xchange/coinegg/service/CoinEggDigestTest.java +++ b/xchange-coinegg/src/test/java/org/knowm/xchange/coinegg/service/CoinEggDigestTest.java @@ -4,7 +4,7 @@ import java.lang.annotation.Annotation; import java.util.HashMap; -import jakarta.ws.rs.FormParam; +import javax.ws.rs.FormParam; import org.junit.Test; import si.mazi.rescu.RestInvocation; import si.mazi.rescu.RestMethodMetadata; @@ -66,4 +66,4 @@ public Class annotationType() { } }; } -} \ No newline at end of file +} diff --git a/xchange-coinex/src/main/java/org/knowm/xchange/coinex/CoinexAuthenticated.java b/xchange-coinex/src/main/java/org/knowm/xchange/coinex/CoinexAuthenticated.java index ad5bf1e1af4..354f243fa75 100644 --- a/xchange-coinex/src/main/java/org/knowm/xchange/coinex/CoinexAuthenticated.java +++ b/xchange-coinex/src/main/java/org/knowm/xchange/coinex/CoinexAuthenticated.java @@ -1,13 +1,13 @@ package org.knowm.xchange.coinex; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinex.dto.account.CoinexBalances; import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.SynchronizedValueFactory; @@ -28,4 +28,4 @@ CoinexBalances getWallet( @QueryParam("access_id") String access_id, @QueryParam("tonce") SynchronizedValueFactory tonce) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorAuthenticated.java b/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorAuthenticated.java index 72a1d6c97b1..894f5420826 100644 --- a/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorAuthenticated.java +++ b/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorAuthenticated.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.math.BigDecimal; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinfloor.dto.CoinfloorException; import org.knowm.xchange.coinfloor.dto.account.CoinfloorBalance; import org.knowm.xchange.coinfloor.dto.trade.CoinfloorMarketOrderResponse; @@ -81,4 +81,4 @@ boolean cancelOrder( @PathParam("counter") Currency counter, @FormParam("id") long id) throws CoinfloorException, IOException; -} \ No newline at end of file +} diff --git a/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorPublic.java b/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorPublic.java index d11622ece66..ec218d6e3f8 100644 --- a/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorPublic.java +++ b/xchange-coinfloor/src/main/java/org/knowm/xchange/coinfloor/CoinfloorPublic.java @@ -1,12 +1,12 @@ package org.knowm.xchange.coinfloor; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinfloor.dto.CoinfloorException; import org.knowm.xchange.coinfloor.dto.markedata.CoinfloorOrderBook; import org.knowm.xchange.coinfloor.dto.markedata.CoinfloorTicker; @@ -36,4 +36,4 @@ CoinfloorTransaction[] getTransactions( @PathParam("counter") Currency counter, @QueryParam("time") CoinfloorMarketDataServiceRaw.CoinfloorInterval period) throws CoinfloorException, IOException; -} \ No newline at end of file +} diff --git a/xchange-coingi/src/main/java/org/knowm/xchange/coingi/Coingi.java b/xchange-coingi/src/main/java/org/knowm/xchange/coingi/Coingi.java index 7b860380c64..86aa233a1dc 100644 --- a/xchange-coingi/src/main/java/org/knowm/xchange/coingi/Coingi.java +++ b/xchange-coingi/src/main/java/org/knowm/xchange/coingi/Coingi.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coingi.dto.CoingiException; import org.knowm.xchange.coingi.dto.marketdata.CoingiOrderBook; import org.knowm.xchange.coingi.dto.marketdata.CoingiRollingAggregation; @@ -43,4 +43,4 @@ List getTransaction( @GET @Path("24hours-rolling-aggregation") List getTradeAggregations() throws CoingiException, IOException; -} \ No newline at end of file +} diff --git a/xchange-coingi/src/main/java/org/knowm/xchange/coingi/CoingiAuthenticated.java b/xchange-coingi/src/main/java/org/knowm/xchange/coingi/CoingiAuthenticated.java index 65036c2300d..342c6e9dd69 100644 --- a/xchange-coingi/src/main/java/org/knowm/xchange/coingi/CoingiAuthenticated.java +++ b/xchange-coingi/src/main/java/org/knowm/xchange/coingi/CoingiAuthenticated.java @@ -1,11 +1,11 @@ package org.knowm.xchange.coingi; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coingi.dto.CoingiException; import org.knowm.xchange.coingi.dto.account.CoingiBalanceRequest; import org.knowm.xchange.coingi.dto.account.CoingiBalances; @@ -65,4 +65,4 @@ CoingiWithdrawalResponse createWithdrawal(CoingiWithdrawalRequest request) @Path("deposit-wallet") CoingiDepositWalletResponse depositWallet(CoingiDepositWalletRequest request) throws CoingiException, IOException; -} \ No newline at end of file +} diff --git a/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarData.java b/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarData.java index f3ac00c6162..bf1222fc581 100644 --- a/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarData.java +++ b/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarData.java @@ -1,11 +1,11 @@ package org.knowm.xchange.coinjar; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; import org.knowm.xchange.coinjar.dto.data.CoinjarOrderBook; import org.knowm.xchange.coinjar.dto.data.CoinjarTicker; @@ -25,4 +25,4 @@ CoinjarOrderBook getOrderBook( @PathParam("product") String product, @QueryParam("level") int level) throws CoinjarException, IOException; ; -} \ No newline at end of file +} diff --git a/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarTrading.java b/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarTrading.java index e56e42a1e03..aa17df02a6a 100644 --- a/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarTrading.java +++ b/xchange-coinjar/src/main/java/org/knowm/xchange/coinjar/CoinjarTrading.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinjar.dto.CoinjarOrder; import org.knowm.xchange.coinjar.dto.trading.CoinjarAccount; import org.knowm.xchange.coinjar.dto.trading.CoinjarFills; @@ -69,4 +69,4 @@ CoinjarFills getFills( CoinjarOrder cancelOrder( @HeaderParam("Authorization") String authHeader, @PathParam("id") String id) throws CoinjarException, IOException; -} \ No newline at end of file +} diff --git a/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/deprecated/v2/CoinMarketCap.java b/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/deprecated/v2/CoinMarketCap.java index ca683fc9b70..797cc82cd46 100644 --- a/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/deprecated/v2/CoinMarketCap.java +++ b/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/deprecated/v2/CoinMarketCap.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.Objects; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinmarketcap.deprecated.v2.dto.marketdata.CoinMarketCapArrayData; import org.knowm.xchange.coinmarketcap.deprecated.v2.dto.marketdata.CoinMarketCapTicker; import org.knowm.xchange.currency.CurrencyPair; @@ -106,4 +106,4 @@ public String toString() { pair.counter.getCurrencyCode().toLowerCase()); } } -} \ No newline at end of file +} diff --git a/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/pro/v1/CmcAuthenticated.java b/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/pro/v1/CmcAuthenticated.java index 57a1c0d2dc0..0beea3a7696 100644 --- a/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/pro/v1/CmcAuthenticated.java +++ b/xchange-coinmarketcap/src/main/java/org/knowm/xchange/coinmarketcap/pro/v1/CmcAuthenticated.java @@ -1,12 +1,12 @@ package org.knowm.xchange.coinmarketcap.pro.v1; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinmarketcap.pro.v1.dto.marketdata.response.CmcCurrencyInfoResponse; import org.knowm.xchange.coinmarketcap.pro.v1.dto.marketdata.response.CmcCurrencyMapResponse; import org.knowm.xchange.coinmarketcap.pro.v1.dto.marketdata.response.CmcTickerListResponse; @@ -52,4 +52,4 @@ CmcTickerResponse getLatestQuotes( @QueryParam("symbol") String symbol, @QueryParam("convert") String convert) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/Coinmate.java b/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/Coinmate.java index bf2d0c46c2a..a9dfc95dd9d 100644 --- a/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/Coinmate.java +++ b/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/Coinmate.java @@ -25,8 +25,8 @@ import java.io.IOException; import java.math.BigDecimal; -import jakarta.ws.rs.*; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.*; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinmate.dto.marketdata.CoinmateOrderBook; import org.knowm.xchange.coinmate.dto.marketdata.CoinmateQuickRate; import org.knowm.xchange.coinmate.dto.marketdata.CoinmateTicker; @@ -76,4 +76,4 @@ CoinmateQuickRate getBuyQuickRate( CoinmateQuickRate getSellQuickRate( @FormParam("amount") BigDecimal amount, @FormParam("currencyPair") String currencyPair) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/CoinmateAuthenticated.java b/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/CoinmateAuthenticated.java index 8703b35898f..6455f14c825 100644 --- a/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/CoinmateAuthenticated.java +++ b/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/CoinmateAuthenticated.java @@ -25,12 +25,12 @@ import java.io.IOException; import java.math.BigDecimal; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinmate.dto.account.CoinmateBalance; import org.knowm.xchange.coinmate.dto.account.CoinmateDepositAddresses; import org.knowm.xchange.coinmate.dto.account.CoinmateTradingFeesResponse; @@ -529,4 +529,4 @@ CoinmateReplaceResponse replaceBySellInstant( @FormParam("orderIdToBeReplaced") String orderIdToBeReplaced, @FormParam("clientOrderId") String clientOrderId) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/service/CoinmateDigest.java b/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/service/CoinmateDigest.java index dd887ecf030..feefe473fe3 100644 --- a/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/service/CoinmateDigest.java +++ b/xchange-coinmate/src/main/java/org/knowm/xchange/coinmate/service/CoinmateDigest.java @@ -25,7 +25,7 @@ import java.math.BigInteger; import javax.crypto.Mac; -import jakarta.ws.rs.FormParam; +import javax.ws.rs.FormParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -72,4 +72,4 @@ public String digestParams(RestInvocation restInvocation) { return String.format("%064x", new BigInteger(1, mac256.doFinal())).toUpperCase(); } -} \ No newline at end of file +} diff --git a/xchange-coinone/src/main/java/org/knowm/xchange/coinone/Coinone.java b/xchange-coinone/src/main/java/org/knowm/xchange/coinone/Coinone.java index c1fb3220286..3a14c3fa66b 100644 --- a/xchange-coinone/src/main/java/org/knowm/xchange/coinone/Coinone.java +++ b/xchange-coinone/src/main/java/org/knowm/xchange/coinone/Coinone.java @@ -1,9 +1,9 @@ package org.knowm.xchange.coinone; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.QueryParam; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.QueryParam; import org.knowm.xchange.coinone.dto.CoinoneException; import org.knowm.xchange.coinone.dto.marketdata.CoinoneOrderBook; import org.knowm.xchange.coinone.dto.marketdata.CoinoneTicker; @@ -26,4 +26,4 @@ CoinoneOrderBook getOrderBook(@QueryParam("currency") String currency) CoinoneTrades getTrades( @QueryParam("currency") String currency, @QueryParam("currency") String period) throws IOException, CoinoneException; -} \ No newline at end of file +} diff --git a/xchange-coinone/src/main/java/org/knowm/xchange/coinone/CoinoneAuthenticated.java b/xchange-coinone/src/main/java/org/knowm/xchange/coinone/CoinoneAuthenticated.java index 24a48fcdb70..1d4b456ff06 100644 --- a/xchange-coinone/src/main/java/org/knowm/xchange/coinone/CoinoneAuthenticated.java +++ b/xchange-coinone/src/main/java/org/knowm/xchange/coinone/CoinoneAuthenticated.java @@ -1,12 +1,12 @@ package org.knowm.xchange.coinone; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.coinone.dto.CoinoneException; import org.knowm.xchange.coinone.dto.account.CoinoneAuthRequest; import org.knowm.xchange.coinone.dto.account.CoinoneBalancesRequest; @@ -80,4 +80,4 @@ CoinoneWithdrawResponse withdrawFund( @HeaderParam("X-COINONE-SIGNATURE") ParamsDigest signature, CoinoneWithdrawRequest coinoneWithdrawRequest) throws IOException, CoinoneException; -} \ No newline at end of file +} diff --git a/xchange-core/src/main/java/org/knowm/xchange/client/ResilienceUtils.java b/xchange-core/src/main/java/org/knowm/xchange/client/ResilienceUtils.java index 847718154aa..050163ecd80 100644 --- a/xchange-core/src/main/java/org/knowm/xchange/client/ResilienceUtils.java +++ b/xchange-core/src/main/java/org/knowm/xchange/client/ResilienceUtils.java @@ -5,7 +5,7 @@ import io.vavr.control.Either; import java.io.IOException; import java.util.concurrent.Callable; -import jakarta.ws.rs.core.Response; +import javax.ws.rs.core.Response; import org.knowm.xchange.ExchangeSpecification; import si.mazi.rescu.HttpStatusExceptionSupport; @@ -86,4 +86,4 @@ public T call() throws IOException { return this.callable.call(); } } -} \ No newline at end of file +} diff --git a/xchange-cryptowatch/src/main/java/org/knowm/xchange/cryptowatch/Cryptowatch.java b/xchange-cryptowatch/src/main/java/org/knowm/xchange/cryptowatch/Cryptowatch.java index 26b0b0ec81c..264f457b904 100644 --- a/xchange-cryptowatch/src/main/java/org/knowm/xchange/cryptowatch/Cryptowatch.java +++ b/xchange-cryptowatch/src/main/java/org/knowm/xchange/cryptowatch/Cryptowatch.java @@ -1,11 +1,11 @@ package org.knowm.xchange.cryptowatch; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.cryptowatch.dto.marketdata.results.CryptowatchAssetPairsResult; import org.knowm.xchange.cryptowatch.dto.marketdata.results.CryptowatchAssetsResult; import org.knowm.xchange.cryptowatch.dto.marketdata.results.CryptowatchOHLCResult; @@ -58,4 +58,4 @@ CryptowatchOrderBookResult getOrderBook( @GET @Path("pairs") CryptowatchAssetPairsResult getAssetPairs(); -} \ No newline at end of file +} diff --git a/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/Deribit.java b/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/Deribit.java index b86d702f473..ddd8f10fcc2 100644 --- a/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/Deribit.java +++ b/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/Deribit.java @@ -3,11 +3,11 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.deribit.v2.dto.DeribitException; import org.knowm.xchange.deribit.v2.dto.DeribitResponse; import org.knowm.xchange.deribit.v2.dto.GrantType; @@ -177,4 +177,4 @@ DeribitResponse auth( @QueryParam("state") String state, @QueryParam("scope") String scope) throws DeribitException, IOException; -} \ No newline at end of file +} diff --git a/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/DeribitAuthenticated.java b/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/DeribitAuthenticated.java index 4088f90ce26..31001aed070 100644 --- a/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/DeribitAuthenticated.java +++ b/xchange-deribit/src/main/java/org/knowm/xchange/deribit/v2/DeribitAuthenticated.java @@ -3,12 +3,12 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.deribit.v2.dto.DeribitException; import org.knowm.xchange.deribit.v2.dto.DeribitResponse; import org.knowm.xchange.deribit.v2.dto.Kind; @@ -394,4 +394,4 @@ DeribitResponse> getOrderHistoryByInstrument( DeribitResponse getOrderState( @QueryParam("order_id") String orderId, @HeaderParam("Authorization") ParamsDigest auth) throws DeribitException, IOException; -} \ No newline at end of file +} diff --git a/xchange-dvchain/src/main/java/org/knowm/xchange/dvchain/DVChain.java b/xchange-dvchain/src/main/java/org/knowm/xchange/dvchain/DVChain.java index 00ec4d50baf..1286706d9a8 100644 --- a/xchange-dvchain/src/main/java/org/knowm/xchange/dvchain/DVChain.java +++ b/xchange-dvchain/src/main/java/org/knowm/xchange/dvchain/DVChain.java @@ -1,15 +1,15 @@ package org.knowm.xchange.dvchain; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.dvchain.dto.DVChainException; import org.knowm.xchange.dvchain.dto.marketdata.DVChainMarketResponse; import org.knowm.xchange.dvchain.dto.trade.DVChainNewLimitOrder; @@ -52,4 +52,4 @@ DVChainMarketResponse getPrices(@HeaderParam("Authorization") String apiKey) String cancelOrder( @PathParam("tradeId") String tradeId, @HeaderParam("Authorization") String apiKey) throws DVChainException, IOException; -} \ No newline at end of file +} diff --git a/xchange-enigma/src/main/java/org/knowm/xchange/enigma/Enigma.java b/xchange-enigma/src/main/java/org/knowm/xchange/enigma/Enigma.java index e0dc3a3475b..09e92c71735 100644 --- a/xchange-enigma/src/main/java/org/knowm/xchange/enigma/Enigma.java +++ b/xchange-enigma/src/main/java/org/knowm/xchange/enigma/Enigma.java @@ -1,11 +1,11 @@ package org.knowm.xchange.enigma; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.enigma.dto.account.EnigmaCredentials; import org.knowm.xchange.enigma.dto.account.EnigmaLoginResponse; @@ -17,4 +17,4 @@ public interface Enigma { @Path("user/login") @Consumes(MediaType.APPLICATION_JSON) EnigmaLoginResponse login(EnigmaCredentials loginRequest) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-enigma/src/main/java/org/knowm/xchange/enigma/EnigmaAuthenticated.java b/xchange-enigma/src/main/java/org/knowm/xchange/enigma/EnigmaAuthenticated.java index 3884726018e..36205e0bf35 100644 --- a/xchange-enigma/src/main/java/org/knowm/xchange/enigma/EnigmaAuthenticated.java +++ b/xchange-enigma/src/main/java/org/knowm/xchange/enigma/EnigmaAuthenticated.java @@ -4,14 +4,14 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.enigma.dto.BaseResponse; import org.knowm.xchange.enigma.dto.marketdata.EnigmaOpenOrders; import org.knowm.xchange.enigma.dto.marketdata.EnigmaOrderBook; @@ -130,4 +130,4 @@ List depositAddress( @GET @Path("xchange/order/open") EnigmaOpenOrders openOrders(@HeaderParam("Authorization") String accessToken); -} \ No newline at end of file +} diff --git a/xchange-exmo/src/main/java/org/knowm/xchange/exmo/Exmo.java b/xchange-exmo/src/main/java/org/knowm/xchange/exmo/Exmo.java index cdfa8919ef6..c769cc822e0 100644 --- a/xchange-exmo/src/main/java/org/knowm/xchange/exmo/Exmo.java +++ b/xchange-exmo/src/main/java/org/knowm/xchange/exmo/Exmo.java @@ -4,14 +4,14 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import si.mazi.rescu.SynchronizedValueFactory; // todo: strongly type the returned values @@ -120,4 +120,4 @@ Map withdrawCrypt( @FormParam("currency") String currency, @FormParam("address") String address, @FormParam("invoice") String invoice); -} \ No newline at end of file +} diff --git a/xchange-ftx/src/main/java/org/knowm/xchange/ftx/Ftx.java b/xchange-ftx/src/main/java/org/knowm/xchange/ftx/Ftx.java index a0b0995f33b..93755f79d06 100644 --- a/xchange-ftx/src/main/java/org/knowm/xchange/ftx/Ftx.java +++ b/xchange-ftx/src/main/java/org/knowm/xchange/ftx/Ftx.java @@ -2,13 +2,13 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.ftx.dto.FtxResponse; import org.knowm.xchange.ftx.dto.marketdata.FtxCandleDto; import org.knowm.xchange.ftx.dto.marketdata.FtxMarketDto; @@ -54,4 +54,4 @@ FtxResponse> getCandles( FtxResponse getOrderbook( @PathParam("market_name") String market, @QueryParam("depth") int depth) throws IOException, FtxException; -} \ No newline at end of file +} diff --git a/xchange-ftx/src/main/java/org/knowm/xchange/ftx/FtxAuthenticated.java b/xchange-ftx/src/main/java/org/knowm/xchange/ftx/FtxAuthenticated.java index 26f315d483d..5726088db0c 100644 --- a/xchange-ftx/src/main/java/org/knowm/xchange/ftx/FtxAuthenticated.java +++ b/xchange-ftx/src/main/java/org/knowm/xchange/ftx/FtxAuthenticated.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.ftx.dto.FtxResponse; import org.knowm.xchange.ftx.dto.account.FtxAccountDto; import org.knowm.xchange.ftx.dto.account.FtxBorrowingHistoryDto; @@ -420,4 +420,4 @@ FtxResponse> getTriggers( @HeaderParam("FTX-SUBACCOUNT") String subaccount, @PathParam("id") String id) throws IOException, FtxException; -} \ No newline at end of file +} diff --git a/xchange-ftx/src/main/java/org/knowm/xchange/ftx/service/FtxDigest.java b/xchange-ftx/src/main/java/org/knowm/xchange/ftx/service/FtxDigest.java index a9373f8d81a..6155bfe1b3e 100644 --- a/xchange-ftx/src/main/java/org/knowm/xchange/ftx/service/FtxDigest.java +++ b/xchange-ftx/src/main/java/org/knowm/xchange/ftx/service/FtxDigest.java @@ -2,7 +2,7 @@ import java.nio.charset.StandardCharsets; import javax.crypto.Mac; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import org.knowm.xchange.exceptions.ExchangeException; import org.knowm.xchange.service.BaseParamsDigest; import org.knowm.xchange.utils.DigestUtils; @@ -51,4 +51,4 @@ public String digestParams(RestInvocation restInvocation) { return DigestUtils.bytesToHex(mac256.doFinal()).toLowerCase(); } -} \ No newline at end of file +} diff --git a/xchange-gateio/src/main/java/org/knowm/xchange/gateio/Gateio.java b/xchange-gateio/src/main/java/org/knowm/xchange/gateio/Gateio.java index fb08c3e8d5f..28d7dd4ea56 100644 --- a/xchange-gateio/src/main/java/org/knowm/xchange/gateio/Gateio.java +++ b/xchange-gateio/src/main/java/org/knowm/xchange/gateio/Gateio.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.Map; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.gateio.dto.marketdata.GateioCandlestickHistory; import org.knowm.xchange.gateio.dto.marketdata.GateioCoinInfoWrapper; import org.knowm.xchange.gateio.dto.marketdata.GateioCurrencyPairs; @@ -73,4 +73,4 @@ GateioCandlestickHistory getKlinesGate( @QueryParam("range_hour") Integer hours, @QueryParam("group_sec") Long interval) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-gateio/src/main/java/org/knowm/xchange/gateio/GateioAuthenticated.java b/xchange-gateio/src/main/java/org/knowm/xchange/gateio/GateioAuthenticated.java index 19f0d18e21c..9ccf9b1a585 100644 --- a/xchange-gateio/src/main/java/org/knowm/xchange/gateio/GateioAuthenticated.java +++ b/xchange-gateio/src/main/java/org/knowm/xchange/gateio/GateioAuthenticated.java @@ -3,13 +3,13 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.Map; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.gateio.dto.GateioBaseResponse; import org.knowm.xchange.gateio.dto.account.GateioDepositAddress; import org.knowm.xchange.gateio.dto.account.GateioDepositsWithdrawals; @@ -124,4 +124,4 @@ GateioOrderStatus getOrderStatus( Map getFeeList( @HeaderParam("KEY") String apiKey, @HeaderParam("SIGN") ParamsDigest signer) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/Gemini.java b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/Gemini.java index de7da662378..276f49133b0 100644 --- a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/Gemini.java +++ b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/Gemini.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.Set; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.gemini.v1.dto.GeminiException; import org.knowm.xchange.gemini.v1.dto.marketdata.GeminiDepth; import org.knowm.xchange.gemini.v1.dto.marketdata.GeminiLend; @@ -62,4 +62,4 @@ GeminiLend[] getLends( @GET @Path("symbols") Set getSymbols() throws IOException, GeminiException; -} \ No newline at end of file +} diff --git a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/GeminiAuthenticated.java b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/GeminiAuthenticated.java index 2254f482eab..b5835e552ef 100644 --- a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/GeminiAuthenticated.java +++ b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/GeminiAuthenticated.java @@ -1,13 +1,13 @@ package org.knowm.xchange.gemini.v1; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.gemini.v1.dto.GeminiException; import org.knowm.xchange.gemini.v1.dto.account.GeminiBalancesRequest; import org.knowm.xchange.gemini.v1.dto.account.GeminiBalancesResponse; @@ -155,4 +155,4 @@ GeminiOrderStatusResponse heartBeat( @HeaderParam("X-GEMINI-SIGNATURE") ParamsDigest signatureCreator, GeminiNonceOnlyRequest nonceOnlyRequest) throws IOException, GeminiException; -} \ No newline at end of file +} diff --git a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/dto/account/GeminiWithdrawalRequest.java b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/dto/account/GeminiWithdrawalRequest.java index c8aa868d6cb..e0cb3806480 100644 --- a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/dto/account/GeminiWithdrawalRequest.java +++ b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v1/dto/account/GeminiWithdrawalRequest.java @@ -2,7 +2,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.math.BigDecimal; -import jakarta.ws.rs.PathParam; +import javax.ws.rs.PathParam; public class GeminiWithdrawalRequest { @@ -50,4 +50,4 @@ public String getAmount() { public String getAddress() { return address; } -} \ No newline at end of file +} diff --git a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v2/Gemini2.java b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v2/Gemini2.java index d739333589b..f188be1f6f2 100644 --- a/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v2/Gemini2.java +++ b/xchange-gemini/src/main/java/org/knowm/xchange/gemini/v2/Gemini2.java @@ -1,11 +1,11 @@ package org.knowm.xchange.gemini.v2; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.gemini.v1.dto.GeminiException; import org.knowm.xchange.gemini.v2.dto.marketdata.GeminiCandle; import org.knowm.xchange.gemini.v2.dto.marketdata.GeminiTicker2; @@ -22,4 +22,4 @@ GeminiCandle[] getCandles( @GET @Path("ticker/{symbol}") GeminiTicker2 getTicker(@PathParam("symbol") String symbol) throws IOException, GeminiException; -} \ No newline at end of file +} diff --git a/xchange-globitex/src/main/java/org/knowm/xchange/globitex/Globitex.java b/xchange-globitex/src/main/java/org/knowm/xchange/globitex/Globitex.java index 0899526a0cf..ea39c738b02 100644 --- a/xchange-globitex/src/main/java/org/knowm/xchange/globitex/Globitex.java +++ b/xchange-globitex/src/main/java/org/knowm/xchange/globitex/Globitex.java @@ -1,12 +1,12 @@ package org.knowm.xchange.globitex; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.globitex.dto.marketdata.GlobitexOrderBook; import org.knowm.xchange.globitex.dto.marketdata.GlobitexSymbols; import org.knowm.xchange.globitex.dto.marketdata.GlobitexTicker; @@ -42,4 +42,4 @@ GlobitexTrades getRecentTradesBySymbol( @QueryParam("formatItem") String formatItem, @QueryParam("side") boolean side) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-globitex/src/main/java/org/knowm/xchange/globitex/GlobitexAuthenticated.java b/xchange-globitex/src/main/java/org/knowm/xchange/globitex/GlobitexAuthenticated.java index f69a8199855..8d30256ebe5 100644 --- a/xchange-globitex/src/main/java/org/knowm/xchange/globitex/GlobitexAuthenticated.java +++ b/xchange-globitex/src/main/java/org/knowm/xchange/globitex/GlobitexAuthenticated.java @@ -1,14 +1,14 @@ package org.knowm.xchange.globitex; import java.io.IOException; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.globitex.dto.account.GlobitexAccounts; import org.knowm.xchange.globitex.dto.trade.GlobitexActiveOrders; import org.knowm.xchange.globitex.dto.trade.GlobitexExecutionReport; @@ -73,4 +73,4 @@ GlobitexExecutionReport cancelOrder( @HeaderParam("X-Signature") ParamsDigest signature, @FormParam("clientOrderId") String clientOrderId) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-globitex/src/main/java/org/knowm/xchange/globitex/service/GlobitexDigest.java b/xchange-globitex/src/main/java/org/knowm/xchange/globitex/service/GlobitexDigest.java index d9aa5d23508..dc81397cefd 100644 --- a/xchange-globitex/src/main/java/org/knowm/xchange/globitex/service/GlobitexDigest.java +++ b/xchange-globitex/src/main/java/org/knowm/xchange/globitex/service/GlobitexDigest.java @@ -3,7 +3,7 @@ import static org.knowm.xchange.utils.DigestUtils.bytesToHex; import javax.crypto.Mac; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -35,4 +35,4 @@ public String digestParams(RestInvocation restInvocation) { return bytesToHex(mac512.doFinal()).toLowerCase(); } -} \ No newline at end of file +} diff --git a/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/Hitbtc.java b/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/Hitbtc.java index b194a6ad2fa..0dd92989311 100644 --- a/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/Hitbtc.java +++ b/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/Hitbtc.java @@ -3,10 +3,10 @@ import java.io.IOException; import java.util.Date; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.QueryParam; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.QueryParam; import org.knowm.xchange.hitbtc.v2.dto.HitbtcCandle; import org.knowm.xchange.hitbtc.v2.dto.HitbtcCurrency; import org.knowm.xchange.hitbtc.v2.dto.HitbtcOrderBook; @@ -102,4 +102,4 @@ List getHitbtcOHLC( @QueryParam("offset") int offset, @QueryParam("sort") String sort) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/HitbtcAuthenticated.java b/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/HitbtcAuthenticated.java index 1f2cd35d0ae..ce5d5e075a3 100644 --- a/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/HitbtcAuthenticated.java +++ b/xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/HitbtcAuthenticated.java @@ -4,16 +4,16 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.PATCH; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.PATCH; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.hitbtc.v2.dto.HitbtcAddress; import org.knowm.xchange.hitbtc.v2.dto.HitbtcBalance; import org.knowm.xchange.hitbtc.v2.dto.HitbtcException; @@ -159,4 +159,4 @@ List getHitbtcOrder( @Path("/history/order/{id}/trades") List getHistorialTradesByOrder(@PathParam("id") String orderId) throws IOException, HitbtcException; -} \ No newline at end of file +} diff --git a/xchange-huobi/src/main/java/org/knowm/xchange/huobi/Huobi.java b/xchange-huobi/src/main/java/org/knowm/xchange/huobi/Huobi.java index b02d29e26d9..0e36ed88a6c 100644 --- a/xchange-huobi/src/main/java/org/knowm/xchange/huobi/Huobi.java +++ b/xchange-huobi/src/main/java/org/knowm/xchange/huobi/Huobi.java @@ -1,14 +1,14 @@ package org.knowm.xchange.huobi; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.huobi.dto.account.HuobiCreateWithdrawRequest; import org.knowm.xchange.huobi.dto.account.results.HuobiAccountResult; import org.knowm.xchange.huobi.dto.account.results.HuobiBalanceResult; @@ -307,4 +307,4 @@ HuobiOrderResult placeMarketOrder( @QueryParam("Timestamp") String nonce, @QueryParam("Signature") ParamsDigest signature) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-huobi/src/main/java/org/knowm/xchange/huobi/service/HuobiDigest.java b/xchange-huobi/src/main/java/org/knowm/xchange/huobi/service/HuobiDigest.java index 5ba8c2b2770..3a10d88a135 100644 --- a/xchange-huobi/src/main/java/org/knowm/xchange/huobi/service/HuobiDigest.java +++ b/xchange-huobi/src/main/java/org/knowm/xchange/huobi/service/HuobiDigest.java @@ -11,8 +11,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import javax.crypto.Mac; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.QueryParam; +import javax.ws.rs.FormParam; +import javax.ws.rs.QueryParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.Params; import si.mazi.rescu.RestInvocation; @@ -71,4 +71,4 @@ private String encodeValue(String value) { } return ret; } -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/CancelApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/CancelApi.java index 05264378915..1e8ffaf9121 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/CancelApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/CancelApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -32,4 +32,4 @@ public interface CancelApi { "To derive the signature for this API call, hash the following parameters in this orderorderHashnonceSalt and sign the hash as usual to prepare your payloadSample output:{ success: 1 }", response = CancelResponse.class)) CancelResponse cancel(CancelReq cancelReq); -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/OrderApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/OrderApi.java index 579201053d8..f9196a68ece 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/OrderApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/OrderApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -23,4 +23,4 @@ public interface OrderApi { @ApiOperation(value = "Limit Order", notes = "", tags = "trade") @ApiResponses(@ApiResponse(code = 200, message = "", response = OrderResponse.class)) OrderResponse order(OrderReq orderReq); -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/Return24VolumeApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/Return24VolumeApi.java index 9e0d0bfad4f..d96e459275b 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/Return24VolumeApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/Return24VolumeApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -30,4 +30,4 @@ public interface Return24VolumeApi { "This function takes no JSON arguments{ ETH_REP: { ETH: '1.3429046745', REP: '105.29046745' },ETH_DVIP: { ETH: '4', DVIP: '4' },totalETH: '5.3429046745' }", response = Volume24Response.class)) Volume24Response volume24(); -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnBalancesApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnBalancesApi.java index 754d86236b5..6375a029ce9 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnBalancesApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnBalancesApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -26,4 +26,4 @@ public interface ReturnBalancesApi { tags = "account") @ApiResponses(@ApiResponse(code = 200, message = "", response = ReturnBalancesResponse.class)) ReturnBalancesResponse balances(BalancesReq balancesReq); -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCompleteBalancesApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCompleteBalancesApi.java index e74beb3045a..5772692f58c 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCompleteBalancesApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCompleteBalancesApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -28,4 +28,4 @@ public interface ReturnCompleteBalancesApi { @ApiResponses( @ApiResponse(code = 200, message = "", response = ReturnCompleteBalancesResponse.class)) ReturnCompleteBalancesResponse completeBalances(CompleteBalancesReq completeBalancesReq); -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnContractAddressApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnContractAddressApi.java index 60dbc1d7ebb..2e842a12a56 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnContractAddressApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnContractAddressApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -26,4 +26,4 @@ public interface ReturnContractAddressApi { @ApiResponses( @ApiResponse(code = 200, message = "", response = ReturnContractAddressResponse.class)) ReturnContractAddressResponse contractAddress(); -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCurrenciesApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCurrenciesApi.java index 9699a25158b..2692afdfe05 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCurrenciesApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnCurrenciesApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -23,4 +23,4 @@ public interface ReturnCurrenciesApi { @ApiResponses( @ApiResponse(code = 200, message = "null", response = ReturnCurrenciesResponse.class)) ReturnCurrenciesResponse currencies(); -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnDepositsWithdrawalsApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnDepositsWithdrawalsApi.java index 23b579d5e3c..db0ce1889d8 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnDepositsWithdrawalsApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnDepositsWithdrawalsApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -28,4 +28,4 @@ public interface ReturnDepositsWithdrawalsApi { @ApiResponses( @ApiResponse(code = 200, message = "", response = ReturnDepositsWithdrawalsResponse.class)) ReturnDepositsWithdrawalsResponse fundingHistory(DepositsWithdrawalsReq depositsWithdrawalsReq); -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnNextNonceApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnNextNonceApi.java index ce5679932bc..91bffaeed21 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnNextNonceApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnNextNonceApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -31,4 +31,4 @@ public interface ReturnNextNonceApi { message = "Sample output: { nonce: 2650 }", response = ReturnNextNonceResponse.class)) ReturnNextNonceResponse nextNonce(NextNonceReq nextNonceReq); -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOpenOrdersApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOpenOrdersApi.java index 547791e0743..e586d70d996 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOpenOrdersApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOpenOrdersApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -26,4 +26,4 @@ public interface ReturnOpenOrdersApi { tags = "trade") @ApiResponses(@ApiResponse(code = 200, message = "", response = ReturnOpenOrdersResponse.class)) ReturnOpenOrdersResponse openOrders(OpenOrdersReq openOrdersReq); -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderBookApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderBookApi.java index 8eb3e115ab5..4a1006efdab 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderBookApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderBookApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -27,4 +27,4 @@ public interface ReturnOrderBookApi { tags = "market") @ApiResponses(@ApiResponse(code = 200, message = "", response = ReturnOrderBookResponse.class)) ReturnOrderBookResponse orderBook(OrderBookReq orderBookReq); -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderTradesApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderTradesApi.java index 5f9e3664c8b..b7215122dbd 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderTradesApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnOrderTradesApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -32,4 +32,4 @@ public interface ReturnOrderTradesApi { "Sample output: [ { date: '2017-10-11 21:41:15',amount: '0.3',type: 'buy',total: '1',price: '0.3',uuid: 'e8719a10-aecc-11e7-9535-3b8451fd4699',transactionHash: '0x28b945b586a5929c69337929533e04794d488c2d6e1122b7b915705d0dff8bb6' } ]", response = ReturnOrderTradesResponse.class)) ReturnOrderTradesResponse orderTrades(OrderTradesReq orderTradesReq); -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTickerApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTickerApi.java index aa5f0d0ff99..4660e2d38cf 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTickerApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTickerApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -23,4 +23,4 @@ public interface ReturnTickerApi { @ApiOperation(value = "", notes = "", tags = "market") @ApiResponses(@ApiResponse(code = 200, message = "", response = ReturnTickerResponse.class)) ReturnTickerResponse ticker(Market market); -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTradeHistoryApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTradeHistoryApi.java index 0dca29fb92d..32ad601a581 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTradeHistoryApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/ReturnTradeHistoryApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -28,4 +28,4 @@ public interface ReturnTradeHistoryApi { response = TradeHistoryItem.class, responseContainer = "List")) java.util.List tradeHistory(TradeHistoryReq tradeHistoryReq); -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/TradeApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/TradeApi.java index 635fc77d696..afcddb39569 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/TradeApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/TradeApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.dto.TradeReq; import org.knowm.xchange.idex.dto.TradeResponse; @@ -18,4 +18,4 @@ public interface TradeApi { @Consumes("application/json") @Produces("application/json") TradeResponse trade(TradeReq tradeReq); -} \ No newline at end of file +} diff --git a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/WithdrawApi.java b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/WithdrawApi.java index e275b0580b0..ac51178ce55 100644 --- a/xchange-idex/src/main/java/org/knowm/xchange/idex/service/WithdrawApi.java +++ b/xchange-idex/src/main/java/org/knowm/xchange/idex/service/WithdrawApi.java @@ -1,9 +1,9 @@ package org.knowm.xchange.idex.service; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; import org.knowm.xchange.idex.annotations.Api; import org.knowm.xchange.idex.annotations.ApiOperation; import org.knowm.xchange.idex.annotations.ApiResponse; @@ -32,4 +32,4 @@ public interface WithdrawApi { "To derive the signature for this API call, hash the following parameters in this order contract addresstokenamountaddressnonceSalt the hash as described earlier and sign it to produce your signature triplet.Useful response upon withdrawal success is in the works, for now simply test that there is no error propertyin the result object to confirm your withdrawal has succeeded.", response = WithdrawResponse.class)) WithdrawResponse withdraw(WithdrawReq withdrawReq); -} \ No newline at end of file +} diff --git a/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserve.java b/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserve.java index 6084ab46785..ca521699db3 100644 --- a/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserve.java +++ b/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserve.java @@ -1,11 +1,11 @@ package org.knowm.xchange.independentreserve; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.independentreserve.dto.marketdata.IndependentReserveOrderBook; import org.knowm.xchange.independentreserve.dto.marketdata.IndependentReserveTicker; @@ -27,4 +27,4 @@ IndependentReserveTicker getMarketSummary( @QueryParam("primaryCurrencyCode") String primaryCurrencyCode, @QueryParam("secondaryCurrencyCode") String secondaryCurrencyCode) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserveAuthenticated.java b/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserveAuthenticated.java index 71cd6f5b05d..de4126e7618 100644 --- a/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserveAuthenticated.java +++ b/xchange-independentreserve/src/main/java/org/knowm/xchange/independentreserve/IndependentReserveAuthenticated.java @@ -1,11 +1,11 @@ package org.knowm.xchange.independentreserve; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.independentreserve.dto.IndependentReserveHttpStatusException; import org.knowm.xchange.independentreserve.dto.account.IndependentReserveBalance; import org.knowm.xchange.independentreserve.dto.account.IndependentReserveBrokerageFeeRequest; @@ -126,4 +126,4 @@ Object withdrawDigitalCurrency(IndependentReserveWithdrawDigitalCurrencyRequest IndependentReserveBrokerageFeeResponse getBrokerageFees( IndependentReserveBrokerageFeeRequest independentReserveBrokerageFeeRequest) throws IndependentReserveHttpStatusException, IOException; -} \ No newline at end of file +} diff --git a/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBit.java b/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBit.java index 93e787a50f2..ab4e146c8e2 100644 --- a/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBit.java +++ b/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBit.java @@ -1,12 +1,12 @@ package org.knowm.xchange.itbit; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.itbit.dto.ItBitException; import org.knowm.xchange.itbit.dto.marketdata.ItBitDepth; import org.knowm.xchange.itbit.dto.marketdata.ItBitTrades; @@ -28,4 +28,4 @@ ItBitTrades getTrades( @PathParam("currency") String currency, @QueryParam("since") long sinceId) throws IOException, ItBitException; -} \ No newline at end of file +} diff --git a/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBitAuthenticated.java b/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBitAuthenticated.java index 19c214e2ccf..d761d38bd94 100644 --- a/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBitAuthenticated.java +++ b/xchange-itbit/src/main/java/org/knowm/xchange/itbit/ItBitAuthenticated.java @@ -3,16 +3,16 @@ import java.io.IOException; import java.util.Date; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.itbit.dto.ItBitException; import org.knowm.xchange.itbit.dto.ItBitFundingHistoryResponse; import org.knowm.xchange.itbit.dto.account.ItBitAccountInfoReturn; @@ -158,4 +158,4 @@ ItBitFundingHistoryResponse fundingHistory( @PathParam("walletId") String walletId, @QueryParam("page") int page, @QueryParam("perPage") int perPage); -} \ No newline at end of file +} diff --git a/xchange-koineks/src/main/java/org/knowm/xchange/koineks/Koineks.java b/xchange-koineks/src/main/java/org/knowm/xchange/koineks/Koineks.java index 2291c3a31c7..9ca384c22cc 100644 --- a/xchange-koineks/src/main/java/org/knowm/xchange/koineks/Koineks.java +++ b/xchange-koineks/src/main/java/org/knowm/xchange/koineks/Koineks.java @@ -1,10 +1,10 @@ package org.knowm.xchange.koineks; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.koineks.dto.marketdata.KoineksTicker; /** Created by semihunaldi on 05/12/2017 */ @@ -14,4 +14,4 @@ public interface Koineks { @GET @Path("ticker") KoineksTicker getTicker() throws IOException; -} \ No newline at end of file +} diff --git a/xchange-koinim/src/main/java/org/knowm/xchange/koinim/Koinim.java b/xchange-koinim/src/main/java/org/knowm/xchange/koinim/Koinim.java index 689f1854220..28f01dcaeb0 100644 --- a/xchange-koinim/src/main/java/org/knowm/xchange/koinim/Koinim.java +++ b/xchange-koinim/src/main/java/org/knowm/xchange/koinim/Koinim.java @@ -1,10 +1,10 @@ package org.knowm.xchange.koinim; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.koinim.dto.marketdata.KoinimTicker; /** @author ahmetoz */ @@ -15,4 +15,4 @@ public interface Koinim { @GET @Path("ticker") KoinimTicker getTicker() throws IOException; -} \ No newline at end of file +} diff --git a/xchange-kraken/src/main/java/org/knowm/xchange/kraken/Kraken.java b/xchange-kraken/src/main/java/org/knowm/xchange/kraken/Kraken.java index 57165c35869..e5dd6b10aa1 100644 --- a/xchange-kraken/src/main/java/org/knowm/xchange/kraken/Kraken.java +++ b/xchange-kraken/src/main/java/org/knowm/xchange/kraken/Kraken.java @@ -1,12 +1,12 @@ package org.knowm.xchange.kraken; import java.io.IOException; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.kraken.dto.marketdata.results.KrakenAssetPairsResult; import org.knowm.xchange.kraken.dto.marketdata.results.KrakenAssetsResult; import org.knowm.xchange.kraken.dto.marketdata.results.KrakenDepthResult; @@ -63,4 +63,4 @@ KrakenAssetsResult getAssets( @GET @Path("public/Time") KrakenServerTimeResult getServerTime() throws IOException; -} \ No newline at end of file +} diff --git a/xchange-kraken/src/main/java/org/knowm/xchange/kraken/KrakenAuthenticated.java b/xchange-kraken/src/main/java/org/knowm/xchange/kraken/KrakenAuthenticated.java index 6a111fdce09..34ca2bc8944 100644 --- a/xchange-kraken/src/main/java/org/knowm/xchange/kraken/KrakenAuthenticated.java +++ b/xchange-kraken/src/main/java/org/knowm/xchange/kraken/KrakenAuthenticated.java @@ -3,13 +3,13 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.Map; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.kraken.dto.account.results.DepositStatusResult; import org.knowm.xchange.kraken.dto.account.results.KrakenBalanceResult; import org.knowm.xchange.kraken.dto.account.results.KrakenDepositAddressResult; @@ -319,4 +319,4 @@ WithdrawStatusResult getWithdrawStatus( @HeaderParam("API-Sign") ParamsDigest signer, @FormParam("nonce") SynchronizedValueFactory nonce) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-kraken/src/main/java/org/knowm/xchange/kraken/service/KrakenDigest.java b/xchange-kraken/src/main/java/org/knowm/xchange/kraken/service/KrakenDigest.java index 2f742e8d40e..fb73c8ff4fb 100644 --- a/xchange-kraken/src/main/java/org/knowm/xchange/kraken/service/KrakenDigest.java +++ b/xchange-kraken/src/main/java/org/knowm/xchange/kraken/service/KrakenDigest.java @@ -4,7 +4,7 @@ import java.security.NoSuchAlgorithmException; import java.util.Base64; import javax.crypto.Mac; -import jakarta.ws.rs.FormParam; +import javax.ws.rs.FormParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -49,4 +49,4 @@ public String digestParams(RestInvocation restInvocation) { return Base64.getEncoder().encodeToString(mac512.doFinal()).trim(); } -} \ No newline at end of file +} diff --git a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFutures.java b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFutures.java index 558d5e520f5..a74d5325423 100644 --- a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFutures.java +++ b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFutures.java @@ -6,11 +6,11 @@ import org.knowm.xchange.krakenfutures.dto.marketData.KrakenFuturesTickers; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; /** @author Jean-Christophe Laruelle */ @Path("/api/v3") @@ -32,4 +32,4 @@ public interface KrakenFutures { @GET @Path("/history") KrakenFuturesPublicFills getHistory(@QueryParam("symbol") String symbol) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFuturesAuthenticated.java b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFuturesAuthenticated.java index 5ebdc120652..21b3c353c81 100644 --- a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFuturesAuthenticated.java +++ b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/KrakenFuturesAuthenticated.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.math.BigDecimal; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.krakenfutures.dto.account.KrakenFuturesAccounts; import org.knowm.xchange.krakenfutures.dto.marketData.KrakenFuturesOrder; @@ -131,4 +131,4 @@ KrakenFuturesOpenPositions openPositions( @HeaderParam("Authent") ParamsDigest signer, @HeaderParam("Nonce") SynchronizedValueFactory nonce) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesDigest.java b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesDigest.java index c2e81bf4a93..bcdb45da5db 100644 --- a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesDigest.java +++ b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesDigest.java @@ -7,8 +7,8 @@ import java.security.NoSuchAlgorithmException; import java.util.Base64; import javax.crypto.Mac; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.QueryParam; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.QueryParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -68,4 +68,4 @@ public String digestParams(RestInvocation restInvocation) { } -} \ No newline at end of file +} diff --git a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesTradeService.java b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesTradeService.java index cc26be13066..645abceeb9c 100644 --- a/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesTradeService.java +++ b/xchange-krakenfutures/src/main/java/org/knowm/xchange/krakenfutures/service/KrakenFuturesTradeService.java @@ -14,7 +14,7 @@ import org.knowm.xchange.service.trade.params.*; import org.knowm.xchange.service.trade.params.orders.OpenOrdersParams; -import jakarta.ws.rs.NotSupportedException; +import javax.ws.rs.NotSupportedException; /** @author Jean-Christophe Laruelle */ public class KrakenFuturesTradeService extends KrakenFuturesTradeServiceRaw @@ -108,4 +108,4 @@ public boolean cancelOrder(CancelOrderParams orderParams) throws IOException { public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException { return KrakenFuturesAdapters.adaptFills(getKrakenFuturesFills()); } -} \ No newline at end of file +} diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/KucoinResilience.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/KucoinResilience.java index e987e22f4db..b413834d635 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/KucoinResilience.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/KucoinResilience.java @@ -1,6 +1,6 @@ package org.knowm.xchange.kucoin; -import static jakarta.ws.rs.core.Response.Status.TOO_MANY_REQUESTS; +import static javax.ws.rs.core.Response.Status.TOO_MANY_REQUESTS; import io.github.resilience4j.ratelimiter.RateLimiterConfig; import java.time.Duration; @@ -40,4 +40,4 @@ public static ResilienceRegistries createRegistries() { return registries; } -} \ No newline at end of file +} diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/AccountAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/AccountAPI.java index 530150bf181..833ec8b533a 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/AccountAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/AccountAPI.java @@ -3,15 +3,15 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.KucoinException; import org.knowm.xchange.kucoin.dto.request.CreateAccountRequest; import org.knowm.xchange.kucoin.dto.request.InnerTransferRequest; @@ -112,4 +112,4 @@ KucoinResponse getAccount( @HeaderParam(APIConstants.API_HEADER_PASSPHRASE) String apiPassphrase, @PathParam("accountId") String accountId) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/DepositAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/DepositAPI.java index 81da3838b8f..425c3618b68 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/DepositAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/DepositAPI.java @@ -3,13 +3,13 @@ import jakarta.ws.rs.Consumes; import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.KucoinException; import org.knowm.xchange.kucoin.dto.request.CreateDepositAddressApiRequest; import org.knowm.xchange.kucoin.dto.response.DepositAddressResponse; @@ -82,4 +82,4 @@ KucoinResponse> getDepositAddresses( @HeaderParam(APIConstants.API_HEADER_PASSPHRASE) String apiPassphrase, @QueryParam("currency") String currency) throws IOException, KucoinException; -} \ No newline at end of file +} diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/FillAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/FillAPI.java index 20e67cab470..ca14826d25a 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/FillAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/FillAPI.java @@ -2,12 +2,12 @@ package org.knowm.xchange.kucoin.service; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.Pagination; import org.knowm.xchange.kucoin.dto.response.TradeResponse; @@ -49,4 +49,4 @@ KucoinResponse> queryTrades( @QueryParam("pageSize") Integer pageSize, @QueryParam("currentPage") Integer currentPage) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistOrdersAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistOrdersAPI.java index a0ef73f49c7..b539a9d61a5 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistOrdersAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistOrdersAPI.java @@ -1,12 +1,12 @@ package org.knowm.xchange.kucoin.service; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.response.HistOrdersResponse; import org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.Pagination; @@ -43,4 +43,4 @@ KucoinResponse> queryHistOrders( @QueryParam("pageSize") Integer pageSize, @QueryParam("currentPage") Integer currentPage) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistoryAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistoryAPI.java index 0897dbbbf0a..e4fa5998ec2 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistoryAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/HistoryAPI.java @@ -3,11 +3,11 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.TradeHistoryResponse; @@ -45,4 +45,4 @@ KucoinResponse> getKlines( @QueryParam("endAt") Long endAt, @QueryParam("type") String type) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/KucoinDigest.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/KucoinDigest.java index 264980620a6..5c0eac173d6 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/KucoinDigest.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/KucoinDigest.java @@ -4,7 +4,7 @@ import java.nio.charset.StandardCharsets; import java.util.Base64; import javax.crypto.Mac; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import org.knowm.xchange.exceptions.ExchangeException; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -52,4 +52,4 @@ public String digestParams(RestInvocation restInvocation) { public String getSignature() { return signature; } -} \ No newline at end of file +} diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/LimitOrderAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/LimitOrderAPI.java index 7aa99f92bcb..e2a8b5de61b 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/LimitOrderAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/LimitOrderAPI.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.OrderResponse; import si.mazi.rescu.ParamsDigest; @@ -23,4 +23,4 @@ KucoinResponse> getRecentOrders( @HeaderParam(APIConstants.API_HEADER_TIMESTAMP) SynchronizedValueFactory nonce, @HeaderParam(APIConstants.API_HEADER_PASSPHRASE) String apiPassphrase) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderAPI.java index 4db1e8e5746..af1dc765ebd 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderAPI.java @@ -2,16 +2,16 @@ package org.knowm.xchange.kucoin.service; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.request.OrderCreateApiRequest; import org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.OrderCancelResponse; @@ -130,4 +130,4 @@ KucoinResponse> queryOrders( @QueryParam("pageSize") Integer pageSize, @QueryParam("currentPage") Integer currentPage) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderBookAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderBookAPI.java index 2dec9b12441..a5e4e58d368 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderBookAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/OrderBookAPI.java @@ -2,12 +2,12 @@ package org.knowm.xchange.kucoin.service; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.OrderBookResponse; import si.mazi.rescu.ParamsDigest; @@ -85,4 +85,4 @@ KucoinResponse getFullOrderBookAggregated( @Path("v2/market/orderbook/level3") KucoinResponse getFullOrderBookAtomic(@QueryParam("symbol") String symbol) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/SymbolAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/SymbolAPI.java index a1a084d507d..ebcb7befdd5 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/SymbolAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/SymbolAPI.java @@ -5,12 +5,12 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.KucoinException; import org.knowm.xchange.kucoin.dto.response.AllTickersResponse; import org.knowm.xchange.kucoin.dto.response.CurrenciesResponse; @@ -102,4 +102,4 @@ public interface SymbolAPI { @Path("/v1/market/stats") KucoinResponse getMarketStats(@QueryParam("symbol") String symbol) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/TradingFeeAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/TradingFeeAPI.java index e354e9713f2..2e3506037f8 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/TradingFeeAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/TradingFeeAPI.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.TradeFeeResponse; import si.mazi.rescu.ParamsDigest; @@ -40,4 +40,4 @@ KucoinResponse> getTradeFee( @HeaderParam(APIConstants.API_HEADER_PASSPHRASE) String apiPassphrase, @QueryParam("symbols") String symbols) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WebsocketAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WebsocketAPI.java index 4f911798d30..fc95b07fee3 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WebsocketAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WebsocketAPI.java @@ -1,11 +1,11 @@ package org.knowm.xchange.kucoin.service; import java.io.IOException; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.response.KucoinResponse; import org.knowm.xchange.kucoin.dto.response.WebsocketResponse; import si.mazi.rescu.ParamsDigest; @@ -28,4 +28,4 @@ KucoinResponse getPrivateWebsocketDetails( @HeaderParam(APIConstants.API_HEADER_TIMESTAMP) SynchronizedValueFactory nonce, @HeaderParam(APIConstants.API_HEADER_PASSPHRASE) String apiPassphrase) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WithdrawalAPI.java b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WithdrawalAPI.java index 840a0fd8428..c9576e55c3b 100644 --- a/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WithdrawalAPI.java +++ b/xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/WithdrawalAPI.java @@ -1,14 +1,14 @@ package org.knowm.xchange.kucoin.service; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.kucoin.dto.KucoinException; import org.knowm.xchange.kucoin.dto.request.ApplyWithdrawApiRequest; import org.knowm.xchange.kucoin.dto.response.ApplyWithdrawResponse; @@ -65,4 +65,4 @@ KucoinResponse> getWithdrawalsList( @QueryParam("pageSize") Integer pageSize, @QueryParam("currentPage") Integer currentPage) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-kuna/src/main/java/org/knowm/xchange/kuna/Kuna.java b/xchange-kuna/src/main/java/org/knowm/xchange/kuna/Kuna.java index 3f88cb66a4d..02fa6c4fbce 100644 --- a/xchange-kuna/src/main/java/org/knowm/xchange/kuna/Kuna.java +++ b/xchange-kuna/src/main/java/org/knowm/xchange/kuna/Kuna.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.Map; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.kuna.dto.KunaAskBid; import org.knowm.xchange.kuna.dto.KunaException; import org.knowm.xchange.kuna.dto.KunaTimeTicker; @@ -72,4 +72,4 @@ public interface Kuna { @GET @Path("trades") KunaTrade[] getTradesHistory(@QueryParam("market") String pair) throws IOException, KunaException; -} \ No newline at end of file +} diff --git a/xchange-kuna/src/main/java/org/knowm/xchange/kuna/KunaAuthenticated.java b/xchange-kuna/src/main/java/org/knowm/xchange/kuna/KunaAuthenticated.java index 9b96720ca5a..c50c39b0b36 100644 --- a/xchange-kuna/src/main/java/org/knowm/xchange/kuna/KunaAuthenticated.java +++ b/xchange-kuna/src/main/java/org/knowm/xchange/kuna/KunaAuthenticated.java @@ -1,10 +1,10 @@ package org.knowm.xchange.kuna; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; /** @author Dat Bui */ @Path("/v2") @Produces(MediaType.APPLICATION_JSON) -public interface KunaAuthenticated extends Kuna {} \ No newline at end of file +public interface KunaAuthenticated extends Kuna {} diff --git a/xchange-latoken/src/main/java/org/knowm/xchange/latoken/Latoken.java b/xchange-latoken/src/main/java/org/knowm/xchange/latoken/Latoken.java index b3cac10760d..7d0036c0674 100644 --- a/xchange-latoken/src/main/java/org/knowm/xchange/latoken/Latoken.java +++ b/xchange-latoken/src/main/java/org/knowm/xchange/latoken/Latoken.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.latoken.dto.LatokenException; import org.knowm.xchange.latoken.dto.exchangeinfo.LatokenCurrency; import org.knowm.xchange.latoken.dto.exchangeinfo.LatokenPair; @@ -153,4 +153,4 @@ LatokenOrderbook getOrderbook(@PathParam("symbol") String symbol, @PathParam("li */ LatokenTrades getTrades(@PathParam("symbol") String symbol, @PathParam("limit") int limit) throws IOException, LatokenException; -} \ No newline at end of file +} diff --git a/xchange-latoken/src/main/java/org/knowm/xchange/latoken/LatokenAuthenticated.java b/xchange-latoken/src/main/java/org/knowm/xchange/latoken/LatokenAuthenticated.java index 89ae4ca63ce..329f741d22d 100644 --- a/xchange-latoken/src/main/java/org/knowm/xchange/latoken/LatokenAuthenticated.java +++ b/xchange-latoken/src/main/java/org/knowm/xchange/latoken/LatokenAuthenticated.java @@ -3,15 +3,15 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.List; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.latoken.dto.LatokenException; import org.knowm.xchange.latoken.dto.account.LatokenBalance; import org.knowm.xchange.latoken.dto.trade.LatokenCancelledOrders; @@ -282,4 +282,4 @@ LatokenBalance getBalance( @HeaderParam(API_KEY) String apiKey, @HeaderParam(SIGNATURE) ParamsDigest signature) throws IOException, LatokenException; -} \ No newline at end of file +} diff --git a/xchange-lgo/src/main/java/org/knowm/xchange/lgo/CertificateAuthority.java b/xchange-lgo/src/main/java/org/knowm/xchange/lgo/CertificateAuthority.java index 6398ece7aff..6af9ce27562 100644 --- a/xchange-lgo/src/main/java/org/knowm/xchange/lgo/CertificateAuthority.java +++ b/xchange-lgo/src/main/java/org/knowm/xchange/lgo/CertificateAuthority.java @@ -1,10 +1,10 @@ package org.knowm.xchange.lgo; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; @Path("/") public interface CertificateAuthority { @@ -18,4 +18,4 @@ public interface CertificateAuthority { @Produces(MediaType.TEXT_PLAIN) @GET String fetchKey(@PathParam("id") String keyId); -} \ No newline at end of file +} diff --git a/xchange-lgo/src/main/java/org/knowm/xchange/lgo/Lgo.java b/xchange-lgo/src/main/java/org/knowm/xchange/lgo/Lgo.java index 6a674dec0c6..b6672f7c34d 100644 --- a/xchange-lgo/src/main/java/org/knowm/xchange/lgo/Lgo.java +++ b/xchange-lgo/src/main/java/org/knowm/xchange/lgo/Lgo.java @@ -1,16 +1,16 @@ package org.knowm.xchange.lgo; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.lgo.dto.LgoException; import org.knowm.xchange.lgo.dto.WithCursor; import org.knowm.xchange.lgo.dto.currency.LgoCurrencies; @@ -109,4 +109,4 @@ LgoPriceHistory getPriceHistory( @QueryParam(END) String endTime, @QueryParam(GRANULARITY) int granularity) throws IOException, LgoException; -} \ No newline at end of file +} diff --git a/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/Livecoin.java b/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/Livecoin.java index c4a7df98633..0d73d0100df 100644 --- a/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/Livecoin.java +++ b/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/Livecoin.java @@ -4,15 +4,15 @@ import java.math.BigDecimal; import java.util.List; import java.util.Map; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.livecoin.dto.LivecoinException; import org.knowm.xchange.livecoin.dto.LivecoinPaginatedResponse; import org.knowm.xchange.livecoin.dto.LivecoinResponseWithDataMap; @@ -225,4 +225,4 @@ LivecoinCancelResponse cancelLimitOrder( @FormParam("currencyPair") String currencyPair, @FormParam("orderId") long orderId) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/LivecoinDigest.java b/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/LivecoinDigest.java index b83e0d4ea49..949ac36b385 100644 --- a/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/LivecoinDigest.java +++ b/xchange-livecoin/src/main/java/org/knowm/xchange/livecoin/LivecoinDigest.java @@ -9,8 +9,8 @@ import java.util.TreeMap; import java.util.TreeSet; import javax.crypto.Mac; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.QueryParam; +import javax.ws.rs.FormParam; +import javax.ws.rs.QueryParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.Params; import si.mazi.rescu.RestInvocation; @@ -58,4 +58,4 @@ public String digestParams(RestInvocation restInvocation) { return String.format("%064x", new BigInteger(1, mac.doFinal())).toUpperCase(); } -} \ No newline at end of file +} diff --git a/xchange-luno/src/main/java/org/knowm/xchange/luno/Luno.java b/xchange-luno/src/main/java/org/knowm/xchange/luno/Luno.java index be85d1b62e5..afa32445590 100644 --- a/xchange-luno/src/main/java/org/knowm/xchange/luno/Luno.java +++ b/xchange-luno/src/main/java/org/knowm/xchange/luno/Luno.java @@ -1,11 +1,11 @@ package org.knowm.xchange.luno; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.luno.dto.LunoException; import org.knowm.xchange.luno.dto.marketdata.LunoOrderBook; import org.knowm.xchange.luno.dto.marketdata.LunoTicker; @@ -68,4 +68,4 @@ public interface Luno { @Path("trades") LunoTrades trades(@QueryParam("pair") String pair, @QueryParam("since") Long since) throws IOException, LunoException; -} \ No newline at end of file +} diff --git a/xchange-luno/src/main/java/org/knowm/xchange/luno/LunoAuthenticated.java b/xchange-luno/src/main/java/org/knowm/xchange/luno/LunoAuthenticated.java index 7c9d3d7359e..0b684cd84df 100644 --- a/xchange-luno/src/main/java/org/knowm/xchange/luno/LunoAuthenticated.java +++ b/xchange-luno/src/main/java/org/knowm/xchange/luno/LunoAuthenticated.java @@ -2,17 +2,17 @@ import java.io.IOException; import java.math.BigDecimal; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.PUT; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.DELETE; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.PUT; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.luno.dto.LunoBoolean; import org.knowm.xchange.luno.dto.LunoException; import org.knowm.xchange.luno.dto.account.LunoAccount; @@ -478,4 +478,4 @@ LunoQuote exerciseQuote( LunoQuote discardQuote( @HeaderParam("Authorization") ParamsDigest auth, @PathParam("id") String quoteId) throws IOException, LunoException; -} \ No newline at end of file +} diff --git a/xchange-lykke/src/main/java/org/knowm/xchange/lykke/Lykke.java b/xchange-lykke/src/main/java/org/knowm/xchange/lykke/Lykke.java index 4107355630a..bfee06c5397 100644 --- a/xchange-lykke/src/main/java/org/knowm/xchange/lykke/Lykke.java +++ b/xchange-lykke/src/main/java/org/knowm/xchange/lykke/Lykke.java @@ -2,12 +2,12 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.lykke.dto.marketdata.LykkeAsset; import org.knowm.xchange.lykke.dto.marketdata.LykkeAssetPair; import org.knowm.xchange.lykke.dto.marketdata.LykkeOrderBook; @@ -37,4 +37,4 @@ List getOrderBookByAssetPair(@PathParam("assetPairId") String as @GET @Path("assets/dictionary") List getLykkeAsset() throws IOException; -} \ No newline at end of file +} diff --git a/xchange-lykke/src/main/java/org/knowm/xchange/lykke/LykkeAuthenticated.java b/xchange-lykke/src/main/java/org/knowm/xchange/lykke/LykkeAuthenticated.java index c2fb70f7c64..bb00ca3d5c8 100644 --- a/xchange-lykke/src/main/java/org/knowm/xchange/lykke/LykkeAuthenticated.java +++ b/xchange-lykke/src/main/java/org/knowm/xchange/lykke/LykkeAuthenticated.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.lykke.dto.account.LykkeWallet; import org.knowm.xchange.lykke.dto.trade.LykkeLimitOrder; import org.knowm.xchange.lykke.dto.trade.LykkeOrder; @@ -67,4 +67,4 @@ void cancelOrderById(@PathParam("id") String id, @HeaderParam(ApiKey) String api String cancelAllOrders( @QueryParam("assetPairId") String assetPairId, @HeaderParam(ApiKey) String apiKey) throws IOException, LykkeException; -} \ No newline at end of file +} diff --git a/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoin.java b/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoin.java index e9a26ded323..d26334f8140 100644 --- a/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoin.java +++ b/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoin.java @@ -1,11 +1,11 @@ package org.knowm.xchange.mercadobitcoin; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.mercadobitcoin.dto.marketdata.MercadoBitcoinOrderBook; import org.knowm.xchange.mercadobitcoin.dto.marketdata.MercadoBitcoinTicker; import org.knowm.xchange.mercadobitcoin.dto.marketdata.MercadoBitcoinTransaction; @@ -52,4 +52,4 @@ MercadoBitcoinTransaction[] getTransactions( @PathParam("start_timestamp") Long startTimestamp, @PathParam("end_timestamp") Long endTimestamp) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoinAuthenticated.java b/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoinAuthenticated.java index 42d232e0472..574af4f6f51 100644 --- a/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoinAuthenticated.java +++ b/xchange-mercadobitcoin/src/main/java/org/knowm/xchange/mercadobitcoin/MercadoBitcoinAuthenticated.java @@ -4,13 +4,13 @@ import java.math.BigDecimal; import javax.annotation.Nonnull; import javax.annotation.Nullable; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.mercadobitcoin.dto.MercadoBitcoinBaseTradeApiResult; import org.knowm.xchange.mercadobitcoin.dto.account.MercadoBitcoinAccountInfo; import org.knowm.xchange.mercadobitcoin.dto.trade.MercadoBitcoinCancelOrderResult; @@ -75,4 +75,4 @@ MercadoBitcoinBaseTradeApiResult cancelOrder( @Nonnull @FormParam("pair") String pair, @Nonnull @FormParam("order_id") String id) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-mexc/src/main/java/org/knowm/xchange/mexc/MEXCAuthenticated.java b/xchange-mexc/src/main/java/org/knowm/xchange/mexc/MEXCAuthenticated.java index e233439230e..3358a11d978 100644 --- a/xchange-mexc/src/main/java/org/knowm/xchange/mexc/MEXCAuthenticated.java +++ b/xchange-mexc/src/main/java/org/knowm/xchange/mexc/MEXCAuthenticated.java @@ -8,8 +8,8 @@ import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.SynchronizedValueFactory; -import jakarta.ws.rs.*; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.*; +import javax.ws.rs.core.MediaType; import java.io.IOException; import java.util.List; import java.util.Map; @@ -42,4 +42,4 @@ MEXCResult> getOrders( @HeaderParam("Signature") ParamsDigest signature, @QueryParam("order_ids") List orderIds) throws IOException, MEXCException; -} \ No newline at end of file +} diff --git a/xchange-mexc/src/main/java/org/knowm/xchange/mexc/service/MEXCDigest.java b/xchange-mexc/src/main/java/org/knowm/xchange/mexc/service/MEXCDigest.java index d1cb88a536e..2180b68551f 100644 --- a/xchange-mexc/src/main/java/org/knowm/xchange/mexc/service/MEXCDigest.java +++ b/xchange-mexc/src/main/java/org/knowm/xchange/mexc/service/MEXCDigest.java @@ -8,8 +8,8 @@ import si.mazi.rescu.RestInvocation; import javax.crypto.Mac; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.QueryParam; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.QueryParam; import java.lang.annotation.Annotation; import java.nio.charset.StandardCharsets; import java.util.Map; @@ -55,4 +55,4 @@ private String getDigestInputParams(RestInvocation restInvocation) { throw new NotYetImplementedForExchangeException("Only GET, DELETE and POST are supported in digest"); } -} \ No newline at end of file +} diff --git a/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoin.java b/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoin.java index 1e749841f62..bf5eaec2f2a 100644 --- a/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoin.java +++ b/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoin.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.okcoin.dto.account.OKCoinWithdraw; import org.knowm.xchange.okcoin.dto.account.OkCoinAccountRecords; import org.knowm.xchange.okcoin.dto.account.OkCoinFuturesUserInfoCross; @@ -387,4 +387,4 @@ OkCoinErrorResult fundsTransfer( @FormParam("to") int to, @FormParam("sign") ParamsDigest sign) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoinDigest.java b/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoinDigest.java index 0d31f6778c0..479c7953f95 100644 --- a/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoinDigest.java +++ b/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkCoinDigest.java @@ -7,7 +7,7 @@ import java.util.Collections; import java.util.List; import java.util.Map; -import jakarta.ws.rs.FormParam; +import javax.ws.rs.FormParam; import si.mazi.rescu.Params; import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.RestInvocation; @@ -85,4 +85,4 @@ public String digestParams(RestInvocation restInvocation) { throw new RuntimeException("Codec error", e); } } -} \ No newline at end of file +} diff --git a/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkexV3.java b/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkexV3.java index 5f4bfd22d8c..b39b1dd1824 100644 --- a/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkexV3.java +++ b/xchange-okcoin/src/main/java/org/knowm/xchange/okcoin/OkexV3.java @@ -3,15 +3,15 @@ import java.io.IOException; import java.util.List; import java.util.Map; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.okcoin.v3.dto.account.BillType; import org.knowm.xchange.okcoin.v3.dto.account.FuturesBillsResponse; import org.knowm.xchange.okcoin.v3.dto.account.FuturesLeverageResponse; @@ -695,4 +695,4 @@ List getMarginTransactionDetails( @QueryParam("to") String to, @QueryParam("limit") Integer limit) throws IOException, OkexException; -} \ No newline at end of file +} diff --git a/xchange-okex/src/main/java/org/knowm/xchange/okex/Okex.java b/xchange-okex/src/main/java/org/knowm/xchange/okex/Okex.java index c9fb3875da7..19bb2b6012f 100644 --- a/xchange-okex/src/main/java/org/knowm/xchange/okex/Okex.java +++ b/xchange-okex/src/main/java/org/knowm/xchange/okex/Okex.java @@ -1,19 +1,19 @@ package org.knowm.xchange.okex; -import static jakarta.ws.rs.core.MediaType.APPLICATION_JSON; +import static javax.ws.rs.core.MediaType.APPLICATION_JSON; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.okex.dto.OkexException; import org.knowm.xchange.okex.dto.OkexResponse; import org.knowm.xchange.okex.dto.marketdata.*; @@ -83,4 +83,4 @@ OkexResponse> getFundingRate( @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading) throws IOException, OkexException; -} \ No newline at end of file +} diff --git a/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexAuthenticated.java b/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexAuthenticated.java index 33a5c2bf101..3e7ec3e67b1 100644 --- a/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexAuthenticated.java +++ b/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexAuthenticated.java @@ -5,14 +5,14 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.currency.Currency; import org.knowm.xchange.okex.dto.OkexException; import org.knowm.xchange.okex.dto.OkexResponse; @@ -381,4 +381,4 @@ OkexResponse> amendBatchOrder( @HeaderParam("X-SIMULATED-TRADING") String simulatedTrading, List requestPayload) throws OkexException, IOException; -} \ No newline at end of file +} diff --git a/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexResilience.java b/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexResilience.java index 0a0781666f6..49753ef2717 100644 --- a/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexResilience.java +++ b/xchange-okex/src/main/java/org/knowm/xchange/okex/OkexResilience.java @@ -1,6 +1,6 @@ package org.knowm.xchange.okex; -import static jakarta.ws.rs.core.Response.Status.TOO_MANY_REQUESTS; +import static javax.ws.rs.core.Response.Status.TOO_MANY_REQUESTS; import io.github.resilience4j.ratelimiter.RateLimiterConfig; import java.time.Duration; @@ -42,4 +42,4 @@ public static ResilienceRegistries createRegistries() { return registries; } -} \ No newline at end of file +} diff --git a/xchange-okex/src/main/java/org/knowm/xchange/okex/service/OkexTradeService.java b/xchange-okex/src/main/java/org/knowm/xchange/okex/service/OkexTradeService.java index bef3b10fced..d20fc25a332 100644 --- a/xchange-okex/src/main/java/org/knowm/xchange/okex/service/OkexTradeService.java +++ b/xchange-okex/src/main/java/org/knowm/xchange/okex/service/OkexTradeService.java @@ -34,7 +34,7 @@ import org.knowm.xchange.service.trade.params.orders.OrderQueryParamInstrument; import org.knowm.xchange.service.trade.params.orders.OrderQueryParams; -import jakarta.ws.rs.NotSupportedException; +import javax.ws.rs.NotSupportedException; import static org.knowm.xchange.okex.OkexAdapters.*; @@ -227,4 +227,4 @@ public List cancelOrder(List params) throws IOExcept .map(result -> "0".equals(result.getCode())) .collect(Collectors.toList()); } -} \ No newline at end of file +} diff --git a/xchange-openexchangerates/src/main/java/org/knowm/xchange/oer/OER.java b/xchange-openexchangerates/src/main/java/org/knowm/xchange/oer/OER.java index 5bbd70728d0..b8c952bd2ff 100644 --- a/xchange-openexchangerates/src/main/java/org/knowm/xchange/oer/OER.java +++ b/xchange-openexchangerates/src/main/java/org/knowm/xchange/oer/OER.java @@ -1,11 +1,11 @@ package org.knowm.xchange.oer; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.oer.dto.marketdata.OERTickers; /** @author timmolter */ @@ -20,4 +20,4 @@ OERTickers getTickers( @QueryParam("base") String base, @QueryParam("symbols") String symbols) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-paribu/src/main/java/org/knowm/xchange/paribu/Paribu.java b/xchange-paribu/src/main/java/org/knowm/xchange/paribu/Paribu.java index e9a254d85a3..80e3e041071 100644 --- a/xchange-paribu/src/main/java/org/knowm/xchange/paribu/Paribu.java +++ b/xchange-paribu/src/main/java/org/knowm/xchange/paribu/Paribu.java @@ -1,10 +1,10 @@ package org.knowm.xchange.paribu; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.paribu.dto.marketdata.ParibuTicker; /** @author semihunaldi */ @@ -15,4 +15,4 @@ public interface Paribu { @GET @Path("ticker") ParibuTicker getTicker() throws IOException; -} \ No newline at end of file +} diff --git a/xchange-paymium/src/main/java/org/knowm/xchange/paymium/Paymium.java b/xchange-paymium/src/main/java/org/knowm/xchange/paymium/Paymium.java index 656ae883464..38fe780f28c 100644 --- a/xchange-paymium/src/main/java/org/knowm/xchange/paymium/Paymium.java +++ b/xchange-paymium/src/main/java/org/knowm/xchange/paymium/Paymium.java @@ -1,10 +1,10 @@ package org.knowm.xchange.paymium; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.paymium.dto.marketdata.PaymiumMarketDepth; import org.knowm.xchange.paymium.dto.marketdata.PaymiumTicker; import org.knowm.xchange.paymium.dto.marketdata.PaymiumTrade; @@ -28,4 +28,4 @@ public interface Paymium { @GET @Path("trades/") PaymiumTrade[] getTrades() throws IOException; -} \ No newline at end of file +} diff --git a/xchange-paymium/src/main/java/org/knowm/xchange/paymium/PaymiumAuthenticated.java b/xchange-paymium/src/main/java/org/knowm/xchange/paymium/PaymiumAuthenticated.java index 14ad61f1501..fe67f59a3eb 100644 --- a/xchange-paymium/src/main/java/org/knowm/xchange/paymium/PaymiumAuthenticated.java +++ b/xchange-paymium/src/main/java/org/knowm/xchange/paymium/PaymiumAuthenticated.java @@ -2,13 +2,13 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.paymium.dto.account.PaymiumBalance; import org.knowm.xchange.paymium.dto.account.PaymiumOrder; import si.mazi.rescu.ParamsDigest; @@ -38,4 +38,4 @@ List getOrders( @QueryParam("types[]") List types, @QueryParam("active") Boolean active) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-paymium/src/main/java/org/knowm/xchange/paymium/service/PaymiumDigest.java b/xchange-paymium/src/main/java/org/knowm/xchange/paymium/service/PaymiumDigest.java index 6ec9d4c095c..d6c38f152e2 100644 --- a/xchange-paymium/src/main/java/org/knowm/xchange/paymium/service/PaymiumDigest.java +++ b/xchange-paymium/src/main/java/org/knowm/xchange/paymium/service/PaymiumDigest.java @@ -2,7 +2,7 @@ import java.math.BigInteger; import javax.crypto.Mac; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.RestInvocation; @@ -32,4 +32,4 @@ public String digestParams(RestInvocation restInvocation) { mac.update(invocationUrl.getBytes()); return String.format("%064x", new BigInteger(1, mac.doFinal())); } -} \ No newline at end of file +} diff --git a/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/Poloniex.java b/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/Poloniex.java index 7be460f4af1..9daecb1995c 100644 --- a/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/Poloniex.java +++ b/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/Poloniex.java @@ -3,11 +3,11 @@ import java.io.IOException; import java.util.HashMap; import java.util.Map; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.poloniex.dto.PoloniexException; import org.knowm.xchange.poloniex.dto.marketdata.PoloniexChartData; import org.knowm.xchange.poloniex.dto.marketdata.PoloniexCurrencyInfo; @@ -62,4 +62,4 @@ PoloniexChartData[] getChartData( @QueryParam("end") Long endTime, @QueryParam("period") long period) throws PoloniexException, IOException; -} \ No newline at end of file +} diff --git a/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/PoloniexAuthenticated.java b/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/PoloniexAuthenticated.java index 1cda01463b8..7c1f1c62d0d 100755 --- a/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/PoloniexAuthenticated.java +++ b/xchange-poloniex/src/main/java/org/knowm/xchange/poloniex/PoloniexAuthenticated.java @@ -5,13 +5,13 @@ import java.util.HashMap; import java.util.Map; import javax.annotation.Nullable; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.poloniex.dto.PoloniexException; import org.knowm.xchange.poloniex.dto.account.PoloniexBalance; import org.knowm.xchange.poloniex.dto.account.PoloniexLoan; @@ -291,4 +291,4 @@ PoloniexDepositsWithdrawalsResponse returnDepositsWithdrawals( enum AllPairs { all } -} \ No newline at end of file +} diff --git a/xchange-quoine/src/main/java/org/knowm/xchange/quoine/Quoine.java b/xchange-quoine/src/main/java/org/knowm/xchange/quoine/Quoine.java index 882dd015b9d..56e15e6b864 100644 --- a/xchange-quoine/src/main/java/org/knowm/xchange/quoine/Quoine.java +++ b/xchange-quoine/src/main/java/org/knowm/xchange/quoine/Quoine.java @@ -1,11 +1,11 @@ package org.knowm.xchange.quoine; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.quoine.dto.marketdata.QuoineOrderBook; import org.knowm.xchange.quoine.dto.marketdata.QuoineProduct; @@ -25,4 +25,4 @@ QuoineProduct getQuoineProduct(@PathParam("currency_pair_code") String currencyP @GET @Path("products/{product_id}/price_levels?full=1") QuoineOrderBook getOrderBook(@PathParam("product_id") int currencyPairCode) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-quoine/src/main/java/org/knowm/xchange/quoine/QuoineAuthenticated.java b/xchange-quoine/src/main/java/org/knowm/xchange/quoine/QuoineAuthenticated.java index 7bfd70f546a..3cf4ca6f597 100644 --- a/xchange-quoine/src/main/java/org/knowm/xchange/quoine/QuoineAuthenticated.java +++ b/xchange-quoine/src/main/java/org/knowm/xchange/quoine/QuoineAuthenticated.java @@ -1,16 +1,16 @@ package org.knowm.xchange.quoine; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.PUT; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.PUT; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.quoine.dto.account.BitcoinAccount; import org.knowm.xchange.quoine.dto.account.FiatAccount; import org.knowm.xchange.quoine.dto.account.QuoineAccountBalance; @@ -132,4 +132,4 @@ QuoineTransactionsResponse transactions( @QueryParam("limit") Integer limit, @QueryParam("page") Integer page) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RippleAuthenticated.java b/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RippleAuthenticated.java index dbf03b98bde..6f70511eebd 100644 --- a/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RippleAuthenticated.java +++ b/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RippleAuthenticated.java @@ -1,14 +1,14 @@ package org.knowm.xchange.ripple; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.ripple.dto.RippleException; import org.knowm.xchange.ripple.dto.trade.RippleOrderCancelRequest; import org.knowm.xchange.ripple.dto.trade.RippleOrderCancelResponse; @@ -40,4 +40,4 @@ RippleOrderCancelResponse orderCancel( @QueryParam("validated") final boolean validated, final RippleOrderCancelRequest request) throws IOException, RippleException; -} \ No newline at end of file +} diff --git a/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RipplePublic.java b/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RipplePublic.java index 2b3fe8ec9e1..f0832b3c964 100644 --- a/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RipplePublic.java +++ b/xchange-ripple/src/main/java/org/knowm/xchange/ripple/RipplePublic.java @@ -1,12 +1,12 @@ package org.knowm.xchange.ripple; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.ripple.dto.RippleException; import org.knowm.xchange.ripple.dto.account.RippleAccountBalances; import org.knowm.xchange.ripple.dto.account.RippleAccountSettings; @@ -90,4 +90,4 @@ RippleNotifications notifications( @GET @Path("transaction-fee") RippleTransactionFee getTransactionFee(); -} \ No newline at end of file +} diff --git a/xchange-serum/src/main/java/com/knowm/xchange/serum/Serum.java b/xchange-serum/src/main/java/com/knowm/xchange/serum/Serum.java index 2e5bafa03b1..ea96c7e0210 100644 --- a/xchange-serum/src/main/java/com/knowm/xchange/serum/Serum.java +++ b/xchange-serum/src/main/java/com/knowm/xchange/serum/Serum.java @@ -3,11 +3,11 @@ import com.fasterxml.jackson.databind.JsonNode; import com.knowm.xchange.serum.dto.SolanaResponse; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; @Path("/") @Produces(MediaType.APPLICATION_JSON) @@ -16,4 +16,4 @@ public interface Serum { @POST @Consumes(MediaType.APPLICATION_JSON) SolanaResponse getAccountInfo(final JsonNode body) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRock.java b/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRock.java index 63129cbdad6..9adbb6f143d 100644 --- a/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRock.java +++ b/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRock.java @@ -3,12 +3,12 @@ import java.io.IOException; import java.util.Date; import java.util.Objects; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.currency.CurrencyPair; import org.knowm.xchange.therock.dto.TheRockException; import org.knowm.xchange.therock.dto.marketdata.TheRockOrderBook; @@ -67,4 +67,4 @@ public String toString() { return String.format("%s%s", pair.base.getCurrencyCode(), pair.counter.getCurrencyCode()); } } -} \ No newline at end of file +} diff --git a/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticated.java b/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticated.java index 48f006af15e..7b930ccf857 100644 --- a/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticated.java +++ b/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticated.java @@ -2,16 +2,16 @@ import java.io.IOException; import java.util.Date; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.therock.dto.TheRockException; import org.knowm.xchange.therock.dto.account.TheRockBalance; import org.knowm.xchange.therock.dto.account.TheRockBalances; @@ -144,4 +144,4 @@ TheRockTransactions transactions( @QueryParam("currency") String currency, @QueryParam("page") Integer page) throws TheRockException, IOException; -} \ No newline at end of file +} diff --git a/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticatedV0.java b/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticatedV0.java index 0b957334e5f..5224aadc7c0 100644 --- a/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticatedV0.java +++ b/xchange-therock/src/main/java/org/knowm/xchange/therock/TheRockAuthenticatedV0.java @@ -1,12 +1,12 @@ package org.knowm.xchange.therock; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.therock.dto.TheRockException; import org.knowm.xchange.therock.dto.trade.TheRockOrder; import org.knowm.xchange.therock.service.TheRockDigest; @@ -30,4 +30,4 @@ TheRockOrder placeOrder( @HeaderParam(X_TRT_NONCE) SynchronizedValueFactory nonceFactory, TheRockOrder order) throws TheRockException, IOException; -} \ No newline at end of file +} diff --git a/xchange-therock/src/main/java/org/knowm/xchange/therock/service/TheRockDigest.java b/xchange-therock/src/main/java/org/knowm/xchange/therock/service/TheRockDigest.java index 3c848372759..35f059b2345 100644 --- a/xchange-therock/src/main/java/org/knowm/xchange/therock/service/TheRockDigest.java +++ b/xchange-therock/src/main/java/org/knowm/xchange/therock/service/TheRockDigest.java @@ -4,7 +4,7 @@ import javax.crypto.Mac; import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; -import jakarta.ws.rs.HeaderParam; +import javax.ws.rs.HeaderParam; import org.knowm.xchange.therock.TheRockAuthenticated; import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.RestInvocation; @@ -36,4 +36,4 @@ public String digestParams(RestInvocation restInvocation) { return String.format("%0128x", new BigInteger(1, mac.doFinal())); } -} \ No newline at end of file +} diff --git a/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgre.java b/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgre.java index fce59fa70f6..06d012a4461 100644 --- a/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgre.java +++ b/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgre.java @@ -3,9 +3,9 @@ import java.io.IOException; import java.util.List; import java.util.Map; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; import org.knowm.xchange.tradeogre.dto.marketdata.TradeOgreOrderBook; import org.knowm.xchange.tradeogre.dto.marketdata.TradeOgreTicker; @@ -23,4 +23,4 @@ public interface TradeOgre { @GET @Path("orders/{market}") TradeOgreOrderBook getOrderBook(@PathParam("market") String market) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgreAuthenticated.java b/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgreAuthenticated.java index 8009d90d138..ce3de2e7acc 100644 --- a/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgreAuthenticated.java +++ b/xchange-tradeogre/src/main/java/org/knowm/xchange/tradeogre/TradeOgreAuthenticated.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.Collection; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; import org.knowm.xchange.tradeogre.dto.account.TradeOgreBalance; import org.knowm.xchange.tradeogre.dto.account.TradeOgreBalances; import org.knowm.xchange.tradeogre.dto.trade.TradeOgreOrder; @@ -55,4 +55,4 @@ TradeOgreTradeResponse cancel( Collection getOrders( @HeaderParam("Authorization") String base64UserPwd, @FormParam("market") String market) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-truefx/src/main/java/org/knowm/xchange/truefx/TrueFxPublic.java b/xchange-truefx/src/main/java/org/knowm/xchange/truefx/TrueFxPublic.java index 81c02417c2c..ddd2f1c5cc3 100644 --- a/xchange-truefx/src/main/java/org/knowm/xchange/truefx/TrueFxPublic.java +++ b/xchange-truefx/src/main/java/org/knowm/xchange/truefx/TrueFxPublic.java @@ -1,9 +1,9 @@ package org.knowm.xchange.truefx; import java.io.IOException; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; import org.knowm.xchange.currency.CurrencyPair; import org.knowm.xchange.truefx.dto.marketdata.TrueFxTicker; @@ -12,4 +12,4 @@ public interface TrueFxPublic { @GET @Path("rates/connect.html?f=csv&c={pair}") TrueFxTicker getTicker(@PathParam("pair") CurrencyPair pair) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-upbit/src/main/java/org/knowm/xchange/upbit/Upbit.java b/xchange-upbit/src/main/java/org/knowm/xchange/upbit/Upbit.java index 190035a86b4..9f10a3d5805 100644 --- a/xchange-upbit/src/main/java/org/knowm/xchange/upbit/Upbit.java +++ b/xchange-upbit/src/main/java/org/knowm/xchange/upbit/Upbit.java @@ -2,9 +2,9 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.QueryParam; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.QueryParam; import org.knowm.xchange.upbit.dto.UpbitException; import org.knowm.xchange.upbit.dto.marketdata.UpbitMarket; import org.knowm.xchange.upbit.dto.marketdata.UpbitOrderBooks; @@ -31,4 +31,4 @@ UpbitOrderBooks getOrderBook(@QueryParam("markets") String markets) @Path("trades/ticks") UpbitTrades getTrades(@QueryParam("market") String market, @QueryParam("count") int count) throws IOException, UpbitException; -} \ No newline at end of file +} diff --git a/xchange-upbit/src/main/java/org/knowm/xchange/upbit/UpbitAuthenticated.java b/xchange-upbit/src/main/java/org/knowm/xchange/upbit/UpbitAuthenticated.java index 3855f0a6ee4..3e6c927a023 100644 --- a/xchange-upbit/src/main/java/org/knowm/xchange/upbit/UpbitAuthenticated.java +++ b/xchange-upbit/src/main/java/org/knowm/xchange/upbit/UpbitAuthenticated.java @@ -1,15 +1,15 @@ package org.knowm.xchange.upbit; import java.io.IOException; -import jakarta.ws.rs.Consumes; -import jakarta.ws.rs.DELETE; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.upbit.dto.UpbitException; import org.knowm.xchange.upbit.dto.account.UpbitBalances; import org.knowm.xchange.upbit.dto.trade.UpbitOrderRequest; @@ -44,4 +44,4 @@ UpbitOrderResponse cancelOrder( UpbitOrderResponse getOrder( @HeaderParam("Authorization") ParamsDigest signatureCreator, @QueryParam("uuid") String uuid) throws IOException, UpbitException; -} \ No newline at end of file +} diff --git a/xchange-upbit/src/main/java/org/knowm/xchange/upbit/service/UpbitJWTDigest.java b/xchange-upbit/src/main/java/org/knowm/xchange/upbit/service/UpbitJWTDigest.java index 33172c4b192..d9f66a3b9f6 100644 --- a/xchange-upbit/src/main/java/org/knowm/xchange/upbit/service/UpbitJWTDigest.java +++ b/xchange-upbit/src/main/java/org/knowm/xchange/upbit/service/UpbitJWTDigest.java @@ -8,7 +8,7 @@ import java.util.Iterator; import java.util.Map; import java.util.UUID; -import jakarta.ws.rs.QueryParam; +import javax.ws.rs.QueryParam; import si.mazi.rescu.ParamsDigest; import si.mazi.rescu.RestInvocation; @@ -54,4 +54,4 @@ public String digestParams(RestInvocation restInvocation) { String jwtToken = builder.sign(algorithm); return "Bearer " + jwtToken; } -} \ No newline at end of file +} diff --git a/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/Vaultoro.java b/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/Vaultoro.java index 1479dea1593..e6cc2461dee 100644 --- a/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/Vaultoro.java +++ b/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/Vaultoro.java @@ -3,10 +3,10 @@ import java.io.IOException; import java.math.BigDecimal; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.vaultoro.dto.marketdata.VaultoroOrderBookResponse; import org.knowm.xchange.vaultoro.dto.marketdata.VaultoroTrade; @@ -25,4 +25,4 @@ public interface Vaultoro { @GET @Path("transactions/month") List getVaultoroTrades(String time) throws IOException, VaultoroException; -} \ No newline at end of file +} diff --git a/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/VaultoroAuthenticated.java b/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/VaultoroAuthenticated.java index ad023331bf3..286c77f5d32 100644 --- a/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/VaultoroAuthenticated.java +++ b/xchange-vaultoro/src/main/java/org/knowm/xchange/vaultoro/VaultoroAuthenticated.java @@ -2,14 +2,14 @@ import java.io.IOException; import java.math.BigDecimal; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.vaultoro.dto.account.VaultoroBalancesResponse; import org.knowm.xchange.vaultoro.dto.trade.VaultoroCancelOrderResponse; import org.knowm.xchange.vaultoro.dto.trade.VaultoroNewOrderResponse; @@ -69,4 +69,4 @@ VaultoroCancelOrderResponse cancel( @QueryParam("apikey") String apiKey, @HeaderParam("X-Signature") ParamsDigest signature) throws IOException, VaultoroException; -} \ No newline at end of file +} diff --git a/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBit.java b/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBit.java index e9846478e7c..c9bcb377a81 100644 --- a/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBit.java +++ b/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBit.java @@ -2,15 +2,15 @@ import java.io.IOException; import java.math.BigDecimal; -import jakarta.ws.rs.FormParam; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.HeaderParam; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.QueryParam; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.FormParam; +import javax.ws.rs.GET; +import javax.ws.rs.HeaderParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.yobit.dto.BaseYoBitResponse; import org.knowm.xchange.yobit.dto.marketdata.YoBitInfo; import org.knowm.xchange.yobit.dto.marketdata.YoBitOrderBooksReturn; @@ -132,4 +132,4 @@ BaseYoBitResponse trade( @FormParam("rate") BigDecimal price, @FormParam("amount") BigDecimal amount) throws IOException; -} \ No newline at end of file +} diff --git a/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBitDigest.java b/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBitDigest.java index a5d6d0dbf79..69c5e021c79 100644 --- a/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBitDigest.java +++ b/xchange-yobit/src/main/java/org/knowm/xchange/yobit/YoBitDigest.java @@ -5,7 +5,7 @@ import java.nio.charset.Charset; import java.util.Random; import javax.crypto.Mac; -import jakarta.ws.rs.FormParam; +import javax.ws.rs.FormParam; import org.knowm.xchange.service.BaseParamsDigest; import si.mazi.rescu.Params; import si.mazi.rescu.RestInvocation; @@ -44,4 +44,4 @@ private static String getRandomSecretKey() { new Random().nextBytes(array); return new String(array, Charset.forName("UTF-8")); } -} \ No newline at end of file +} diff --git a/xchange-zaif/src/main/java/org/knowm/xchange/zaif/Zaif.java b/xchange-zaif/src/main/java/org/knowm/xchange/zaif/Zaif.java index 16d0ec1e82b..6b05c0cf941 100644 --- a/xchange-zaif/src/main/java/org/knowm/xchange/zaif/Zaif.java +++ b/xchange-zaif/src/main/java/org/knowm/xchange/zaif/Zaif.java @@ -2,11 +2,11 @@ import java.io.IOException; import java.util.List; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; import org.knowm.xchange.zaif.dto.ZaifException; import org.knowm.xchange.zaif.dto.marketdata.ZaifFullBook; import org.knowm.xchange.zaif.dto.marketdata.ZaifMarket; @@ -25,4 +25,4 @@ ZaifFullBook getDepth( @GET @Path("api/1/currency_pairs/all") List getCurrencyPairs(); -} \ No newline at end of file +}