-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bittrex auth issue #175
Comments
I have never had this issue, so I am not sure, but you could try getting debugging info by setting BittrexClientOptions.LogVerbosity to Debug. Also, you could try to get the error info in the response message sent by Bittrex. The code would look something like this: private async void TestGetClosedWithdrawls()
{
string key = "yourkey";
string secret = "yourSecret";
BittrexClientV3.SetDefaultOptions(new BittrexClientOptions
{
LogWriters = new List<TextWriter>() { Console.Out },
LogVerbosity = LogVerbosity.Debug,
ApiCredentials = new ApiCredentials(key, secret)
});
using (var client = new BittrexClientV3())
{
try
{
var result = await client.GetClosedWithdrawalsAsync();
if (result.Success)
{
// do something with the data
}
else
{ // print error info
Console.WriteLine($"Failed to receive withdrawl records.");
Console.WriteLine($"ResponseStatusCode = {result.ResponseStatusCode}");
Console.WriteLine($"Error code = {result.Error.Code}");
Console.WriteLine($"Error message = {result.Error.Message}");
Console.WriteLine($"Error data = {result.Error.Data}");
}
}
catch(Exception exception)
{
Console.WriteLine($"Caught an exception in TestGetClosedWithdrawls:");
Console.WriteLine($"{exception}");
}
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I often get this type of error for private API operations. To solve this I have to generate a new set of auth tokens. But for some reason, after some time I get this error once again... I suspect it has something to Bittrex security policy.
Is it possible to get a more descriptive error message?
How to reproduce:
The text was updated successfully, but these errors were encountered: