mscheetz / KuCoinApi.Net

KuCoin api access built in .Net Standard
MIT License
6 stars 4 forks source link

Exception: {"code":"400005","msg":"Invalid KC-API-SIGN"} #13

Closed SergeevGregory closed 5 years ago

SergeevGregory commented 5 years ago

Dear developer, today I tested new feature of version 0.3.0 - GetPrivateChannels. It doesn't work: Exception: {"code":"400005","msg":"Invalid KC-API-SIGN"}

Other functions like GetBalances work good. Please, fix this issue :)

mscheetz commented 5 years ago

Left a message on the KuCoin API Telegram, this is the only endpoint throwing this error.

Lets see what they say.

SergeevGregory commented 5 years ago

Same issue with PlaceLimitOrder… :(

mscheetz commented 5 years ago

I'll take a look tonight

SergeevGregory commented 5 years ago

Dear Matt, I think I found problem.

It is in string: var response = body == null ? await _restRepo.PostApi<ApiResponse<T>, SortedDictionary<string, object>>(url, body, headers) : await _restRepo.PostApi<ApiResponse<T>>(url, headers);

fix: var response = body != null ? await _restRepo.PostApi<ApiResponse<T>, SortedDictionary<string, object>>(url, body, headers) : await _restRepo.PostApi<ApiResponse<T>>(url, headers);

Now all work well, please, update nuget packages :)