Skip to content

Commit

Permalink
additional changes int -> long
Browse files Browse the repository at this point in the history
  • Loading branch information
andre77 committed Sep 17, 2018
1 parent c20c27c commit 493dddf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ boolean cancelOrder(
@FormParam("key") String apiKey,
@FormParam("signature") ParamsDigest signer,
@FormParam("nonce") SynchronizedValueFactory<Long> nonce,
@FormParam("id") int orderId)
@FormParam("id") long orderId)
throws BitstampException, IOException;

/** @return true if order has been canceled. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public String placeLimitOrder(LimitOrder order) throws IOException, BitstampExce
@Override
public boolean cancelOrder(String orderId) throws IOException, BitstampException {

return cancelBitstampOrder(Integer.parseInt(orderId));
return cancelBitstampOrder(Long.parseLong(orderId));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public BitstampOrder placeBitstampOrder(
}
}

public boolean cancelBitstampOrder(int orderId) throws IOException {
public boolean cancelBitstampOrder(long orderId) throws IOException {

try {
return bitstampAuthenticated.cancelOrder(apiKey, signatureCreator, nonceFactory, orderId);
Expand Down

0 comments on commit 493dddf

Please sign in to comment.