Skip to content

Commit a194c09

Browse files
authored
[Poloniex] Parse withdrawalNumber (#650)
* Fix parsing Bitfinex ticker symbol * Set order status * [Poloniex] Parse withdrawalNumber Fixes #649
1 parent b9659e1 commit a194c09

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/ExchangeSharp/API/Exchanges/Poloniex/ExchangePoloniexAPI.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -910,10 +910,14 @@ protected override async Task<ExchangeWithdrawalResponse> OnWithdrawAsync(Exchan
910910
paramsList.Add(withdrawalRequest.AddressTag);
911911
}
912912

913-
JToken token = await MakePrivateAPIRequestAsync("withdraw", paramsList.ToArray());
914-
ExchangeWithdrawalResponse resp = new ExchangeWithdrawalResponse { Message = token["response"].ToStringInvariant() };
915-
return resp;
916-
}
913+
var token = await MakePrivateAPIRequestAsync("withdraw", paramsList.ToArray());
914+
915+
return new ExchangeWithdrawalResponse
916+
{
917+
Id = token["withdrawalNumber"]?.ToString(),
918+
Message = token["response"].ToStringInvariant()
919+
};
920+
}
917921

918922
protected override async Task<ExchangeDepositDetails> OnGetDepositAddressAsync(string currency, bool forceRegenerate = false)
919923
{

0 commit comments

Comments
 (0)