|
actuallytwolamas
Member
Offline
Activity: 69
Merit: 20
Lama
|
|
June 05, 2018, 04:09:01 PM |
|
I'm just making a blind guess, but I think you don't include Time zone in your Date format, you just passing current date without time zone, which they mentioned in documentation, that you need to include it.
There is js snippet to encode this string: encodeURIComponent("2018-05-04T12:10:36+UTC TIME ZONE"); or encodeURIComponent("2018-05-04T12:10:36+00:00"); which results in something like this 2018-05-04T12%3A10%3A36%2B00%3A00
|
|
|
|
ilya1966 (OP)
Newbie
Offline
Activity: 5
Merit: 0
|
|
June 05, 2018, 05:30:42 PM Last edit: June 05, 2018, 05:43:06 PM by ilya1966 |
|
I'm just making a blind guess, but I think you don't include Time zone in your Date format, you just passing current date without time zone, which they mentioned in documentation, that you need to include it.
There is js snippet to encode this string: encodeURIComponent("2018-05-04T12:10:36+UTC TIME ZONE"); or encodeURIComponent("2018-05-04T12:10:36+00:00"); which results in something like this 2018-05-04T12%3A10%3A36%2B00%3A00
Thank you. It's a good point. I tried to include my UTC zone (UTC-5) this ways: 2018-05-04T12%3A10%3A36%2B-5%3A00 and 2018-05-04T12%3A10%3A36%2B-5 and got another error - Incorrect Time Format. But, maybe 2018-05-04T12%3A10%3A36%2B-05%3A00 will work. I'll try it. Thanks.
|
|
|
|
actuallytwolamas
Member
Offline
Activity: 69
Merit: 20
Lama
|
|
June 05, 2018, 06:51:13 PM |
|
I'm just making a blind guess, but I think you don't include Time zone in your Date format, you just passing current date without time zone, which they mentioned in documentation, that you need to include it.
There is js snippet to encode this string: encodeURIComponent("2018-05-04T12:10:36+UTC TIME ZONE"); or encodeURIComponent("2018-05-04T12:10:36+00:00"); which results in something like this 2018-05-04T12%3A10%3A36%2B00%3A00
Thank you. It's a good point. I tried to include my UTC zone (UTC-5) this ways: 2018-05-04T12%3A10%3A36%2B-5%3A00 and 2018-05-04T12%3A10%3A36%2B-5 and got another error - Incorrect Time Format. But, maybe 2018-05-04T12%3A10%3A36%2B-05%3A00 will work. I'll try it. Thanks. I think Time zone format has a strict rules it should always be +00:00, or -03:00, you must include all four numbers.
|
|
|
|
ilya1966 (OP)
Newbie
Offline
Activity: 5
Merit: 0
|
|
June 05, 2018, 11:04:36 PM |
|
I'm just making a blind guess, but I think you don't include Time zone in your Date format, you just passing current date without time zone, which they mentioned in documentation, that you need to include it.
There is js snippet to encode this string: encodeURIComponent("2018-05-04T12:10:36+UTC TIME ZONE"); or encodeURIComponent("2018-05-04T12:10:36+00:00"); which results in something like this 2018-05-04T12%3A10%3A36%2B00%3A00
Thank you. It's a good point. I tried to include my UTC zone (UTC-5) this ways: 2018-05-04T12%3A10%3A36%2B-5%3A00 and 2018-05-04T12%3A10%3A36%2B-5 and got another error - Incorrect Time Format. But, maybe 2018-05-04T12%3A10%3A36%2B-05%3A00 will work. I'll try it. Thanks. I think Time zone format has a strict rules it should always be +00:00, or -03:00, you must include all four numbers. I tried 2018-05-04T12%3A10%3A36%2B-05%3A00 but got Incorrect Time Format. Maybe I get this error, because I have zero balances in Huobi.
|
|
|
|
actuallytwolamas
Member
Offline
Activity: 69
Merit: 20
Lama
|
|
June 06, 2018, 04:55:35 PM |
|
I'm just making a blind guess, but I think you don't include Time zone in your Date format, you just passing current date without time zone, which they mentioned in documentation, that you need to include it.
There is js snippet to encode this string: encodeURIComponent("2018-05-04T12:10:36+UTC TIME ZONE"); or encodeURIComponent("2018-05-04T12:10:36+00:00"); which results in something like this 2018-05-04T12%3A10%3A36%2B00%3A00
Thank you. It's a good point. I tried to include my UTC zone (UTC-5) this ways: 2018-05-04T12%3A10%3A36%2B-5%3A00 and 2018-05-04T12%3A10%3A36%2B-5 and got another error - Incorrect Time Format. But, maybe 2018-05-04T12%3A10%3A36%2B-05%3A00 will work. I'll try it. Thanks. I think Time zone format has a strict rules it should always be +00:00, or -03:00, you must include all four numbers. I tried 2018-05-04T12%3A10%3A36%2B-05%3A00 but got Incorrect Time Format. Maybe I get this error, because I have zero balances in Huobi. Wierd. Maybe you already find solution? because in google there is no answers at all.
|
|
|
|
ilya1966 (OP)
Newbie
Offline
Activity: 5
Merit: 0
|
|
June 06, 2018, 05:49:23 PM |
|
I'm just making a blind guess, but I think you don't include Time zone in your Date format, you just passing current date without time zone, which they mentioned in documentation, that you need to include it.
There is js snippet to encode this string: encodeURIComponent("2018-05-04T12:10:36+UTC TIME ZONE"); or encodeURIComponent("2018-05-04T12:10:36+00:00"); which results in something like this 2018-05-04T12%3A10%3A36%2B00%3A00
Thank you. It's a good point. I tried to include my UTC zone (UTC-5) this ways: 2018-05-04T12%3A10%3A36%2B-5%3A00 and 2018-05-04T12%3A10%3A36%2B-5 and got another error - Incorrect Time Format. But, maybe 2018-05-04T12%3A10%3A36%2B-05%3A00 will work. I'll try it. Thanks. I think Time zone format has a strict rules it should always be +00:00, or -03:00, you must include all four numbers. I tried 2018-05-04T12%3A10%3A36%2B-05%3A00 but got Incorrect Time Format. Maybe I get this error, because I have zero balances in Huobi. Wierd. Maybe you already find solution? because in google there is no answers at all. I found a similar problem in chat here https://github.com/ccxt/ccxt/issues/1485. But it didn't help me. Do you use Houbi API sometimes?
|
|
|
|
actuallytwolamas
Member
Offline
Activity: 69
Merit: 20
Lama
|
|
June 06, 2018, 06:51:03 PM |
|
Which language are you making API requests? I'm digging deeper and looks like, Timestamp should be current request time, so you must generate timestamp on request. Have you looked at their REST API Demos? Here is url https://github.com/huobiapi/REST-API-demos
|
|
|
|
ilya1966 (OP)
Newbie
Offline
Activity: 5
Merit: 0
|
|
June 06, 2018, 08:29:04 PM |
|
Which language are you making API requests? I'm digging deeper and looks like, Timestamp should be current request time, so you must generate timestamp on request. Have you looked at their REST API Demos? Here is url https://github.com/huobiapi/REST-API-demosI found the problem - the time should be strictly Greenwich (UTC-0) time without any offsets. Thank you for your help! I sends API in PHP and C#. If you need something - I'm always ready to help.
|
|
|
|
izooomrud
|
|
June 05, 2019, 06:12:08 AM |
|
i have same trouble and i set (UTC -0) but it's doesn't not work
|
|
|
|
|