Skip to content

Huobi Account ID  #18

@blahblah1980

Description

@blahblah1980

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 id 1#,###,#9 does not exist [data] => [_method] => POST [_url] => https://api.huobi.pro/v1/order/orders/place [_httpcode] => 200 ) ) "

  1. For some reason it uses commas in the error code. My ID is an int without commas.
  2. what is user ID? I do not set this anywhere. All I have set is key, secret and ID.

Thank you for the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions