Skip to content

Commit

Permalink
- working WithdrawCoin method
Browse files Browse the repository at this point in the history
  • Loading branch information
Muffon committed Oct 22, 2015
1 parent ad37b70 commit 077bc38
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Expand Up @@ -138,7 +138,8 @@ enum SortOrder {
@POST
@Path("tapi")
@FormParam("method")
BTCEWithDrawInfoReturn Withdraw(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") ParamsDigest signer,
BTCEWithDrawInfoReturn WithdrawCoin(@HeaderParam("Key") String apiKey, @HeaderParam("Sign") ParamsDigest signer,
@FormParam("nonce") SynchronizedValueFactory<Long> nonce,
@FormParam("coinName") String coinName, @FormParam("amount") BigDecimal amount, @FormParam("address")String address );

}
Expand Up @@ -15,7 +15,7 @@ public class BTCEWithdrawInfo {
private final int tId;


private final int amountSent;
private final BigDecimal amountSent;

/**
* Constructor
Expand All @@ -28,14 +28,14 @@ public BTCEWithdrawInfo(@JsonProperty("tId") int tId, @JsonProperty("amountSent"
@JsonProperty("funds") Map<String, BigDecimal> funds) {
this.funds = funds;
this.tId = tId;
this.amountSent = tId;
this.amountSent = amountSent;
}

public int gettId() {
return tId;
}

public int getAmountSent() {
public BigDecimal getAmountSent() {
return amountSent;
}

Expand Down
Expand Up @@ -34,7 +34,7 @@ public AccountInfo getAccountInfo() throws IOException {

@Override
public String withdrawFunds(String currency, BigDecimal amount, String address) throws IOException {
String s = withdrawFunds(currency, amount, address);
String s = withdraw(currency, amount, address);
return s;
}

Expand Down
Expand Up @@ -54,7 +54,7 @@ public BTCEAccountInfo getBTCEAccountInfo(Long from, Long count, Long fromId, Lo
*/
public String withdraw(String currency, BigDecimal amount, String address)
{
BTCEWithDrawInfoReturn info = btce.Withdraw(apiKey, signatureCreator, currency, amount, address);
BTCEWithDrawInfoReturn info = btce.WithdrawCoin(apiKey, signatureCreator,exchange.getNonceFactory(), currency, amount, address);

return String.valueOf(info.getReturnValue().gettId());
}
Expand Down

0 comments on commit 077bc38

Please sign in to comment.