You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Thank you for the great work. When trying to post a sample trade with Huobi I get an error. I first get the Account ID using the $result=$huobi->account()->get(); method. I set this ID in the key_secret.php and then require the key_secret.php in my script.
use Lin\Exchange\Exchanges;
require 'exchanges/vendor/linwj/exchanges/tests/key_secret.php';
"Array ( [_error] => Array ( [status] => error [err-code] => account-frozen-account-inexistent-error [err-msg] => account for id 1#,###,##6 and user id 1#,###,#9 does not exist [data] => [_method] => POST [_url] => https://api.huobi.pro/v1/order/orders/place [_httpcode] => 200 ) ) "
For some reason it uses commas in the error code. My ID is an int without commas.
what is user ID? I do not set this anywhere. All I have set is key, secret and ID.
Thank you for the help.
The text was updated successfully, but these errors were encountered:
Exchange-PHP is an SDK abstracted and encapsulated by the underlying exchange again. You can instantiate the underlying exchange to obtain the ID first. Even you directly instantiate the underlying SDK。
useLin\Huobi\HuobiSpot;
$huobi=newHuobiSpot($key,$secret);
//get the status of an accounttry {
$result=$huobi->account()->get();
print_r($result);
}catch (\Exception$e){
print_r(json_decode($e->getMessage(),true));
}
Hi! Thank you for the great work. When trying to post a sample trade with Huobi I get an error. I first get the Account ID using the $result=$huobi->account()->get(); method. I set this ID in the key_secret.php and then require the key_secret.php in my script.
use Lin\Exchange\Exchanges;
require 'exchanges/vendor/linwj/exchanges/tests/key_secret.php';
$key=$keysecret['huobi']['key'];
$secret=$keysecret['huobi']['secret'];
$host=$keysecret['huobi']['host'];
$account_id=$keysecret['huobi']['account_id'];
$exchanges=new Exchanges('huobi',$key,$secret,$account_id,$host);
I then get the following error:
"Array ( [_error] => Array ( [status] => error [err-code] => account-frozen-account-inexistent-error [err-msg] => account for id
1#,###,##6
and user id1#,###,#9
does not exist [data] => [_method] => POST [_url] => https://api.huobi.pro/v1/order/orders/place [_httpcode] => 200 ) ) "Thank you for the help.
The text was updated successfully, but these errors were encountered: