-
Notifications
You must be signed in to change notification settings - Fork 23
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
api posttransfer problem #9
Comments
I can return the results after the test, but I didn't succeed. {"status":"error","err-code":"gateway-internal-error","err-msg":"Failed to load data. Try again later.","data":null,"_method":"POST","_url":"https://api.huobi.pro/v1/account |
I am not returning any error codes. Can you share the php code where you got this error code? |
$key='******';
$secret='******';
$parent_account_id='37***47';
$child_account_id='203***31';
try {
$result=$huobi->account()->postTransfer([
'from-user'=>'419***55',//this is parent account number UID
'from-account-type'=>'spot',
'from-account'=>$parent_account_id,//parent account get via API
'to-user'=>'193***246',//this is child account number UID
'to-account-type'=>'spot',
'to-account'=>$child_account_id,//child account get via API
'currency'=>'usdt',
'amount'=>'1',
]);
echo($result);
}catch (\Exception $e){
print_r($e->getMessage());
} Uid can only be viewed by logging in to the exchange. |
use Lin\Huobi\HuobiSpot; require './vendor/autoload.php'; $huobi=new HuobiSpot($key,$secret); try { |
Why 'from-user'=>'37xxx264' and 'to-user'=>'37xx264' are the same number? |
The user transfers from his/her own bank account to other sub-accounts |
hello, did you find any solution? can the problem return with post because error code is not returning |
You try again. composer update 2.2.0 |
hi, now it's error code but in all timing operations there was error like transfer. api also has transfer permission Array | ( |
In fact, I also encountered the same problem. Now I am restricted by the exchange and cannot complete the test. You can try to ask customer service. |
with a code like this, the request returns empty
$key = 'xx';
$secret = 'xx;
$account_id = '00';
$huobi=new HuobiSpot($key,$secret);
try {
$result=$huobi->account()->get();
print_r($result);
}catch (\Exception $e){
print_r(json_decode($e->getMessage(),true));
}
try {
$result=$huobi->account()->postTransfer([
'from-user'=>'xx',
'from-account-type'=>'spot',
'from-account'=>'xx',
'to-user'=>'xx',
'to-account-type'=>'spot',
'to-account'=>'xx',
'currency'=>'USDT',
'amount'=>'20',
]);
echo($result);
}catch (\Exception $e){
print_r($e->getMessage());
}
The text was updated successfully, but these errors were encountered: