Skip to content

Commit

Permalink
Merge pull request knowm#3972 from zdary/develop
Browse files Browse the repository at this point in the history
knowm#3971 set correct Exception to v3
  • Loading branch information
earce authored Mar 9, 2021
2 parents cfae489 + 1c5dc0f commit beac298
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.btcmarkets.dto.BTCMarketsException;
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;
import org.knowm.xchange.btcmarkets.dto.v3.trade.BTCMarketsPlaceOrderRequest;
Expand All @@ -25,7 +26,7 @@ BTCMarketsPlaceOrderResponse placeOrder(
@HeaderParam("BM-AUTH-TIMESTAMP") SynchronizedValueFactory<Long> nonceFactory,
@HeaderParam("BM-AUTH-SIGNATURE") BTCMarketsDigestV3 signer,
BTCMarketsPlaceOrderRequest order)
throws BTCMarketsException, IOException;
throws BTCMarketsExceptionV3, IOException;

@GET
@Path("addresses")
Expand All @@ -34,7 +35,7 @@ BTCMarketsAddressesResponse depositAddress(
@HeaderParam("BM-AUTH-TIMESTAMP") SynchronizedValueFactory<Long> nonceFactory,
@HeaderParam("BM-AUTH-SIGNATURE") BTCMarketsDigestV3 signer,
@QueryParam("assetName") String assetName)
throws BTCMarketsException, IOException;
throws BTCMarketsExceptionV3, IOException;

@GET
@Path("trades")
Expand All @@ -46,13 +47,13 @@ List<BTCMarketsTradeHistoryResponse> trades(
@QueryParam("before") String before,
@QueryParam("after") String after,
@QueryParam("limit") Integer limit)
throws BTCMarketsException, IOException;
throws BTCMarketsExceptionV3, IOException;

@GET
@Path("accounts/me/trading-fees")
BTCMarketsTradingFeesResponse tradingFees(
@HeaderParam("BM-AUTH-APIKEY") String publicKey,
@HeaderParam("BM-AUTH-TIMESTAMP") SynchronizedValueFactory<Long> nonceFactory,
@HeaderParam("BM-AUTH-SIGNATURE") BTCMarketsDigestV3 signer)
throws BTCMarketsException, IOException;
throws BTCMarketsExceptionV3, IOException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public BTCMarketsMarketTradeParams(
public String toString() {

return String.format(
"BTCMarketsMarketTradeParams: {limt: %s, before: %s, after: %s, CurrencyPair: %s}",
"BTCMarketsMarketTradeParams: {limit: %s, before: %s, after: %s, CurrencyPair: %s}",
limit, before, after, currencyPair);
}
}

0 comments on commit beac298

Please sign in to comment.