Skip to content
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

BybitSpot #8

Open
webflyx opened this issue Apr 1, 2022 · 2 comments
Open

BybitSpot #8

webflyx opened this issue Apr 1, 2022 · 2 comments

Comments

@webflyx
Copy link

webflyx commented Apr 1, 2022

Hi!
I'll try post order on Spot, my code:

$key = 'xxxx';
$secret = 'xxxx';

$bybit = new \Lin\Bybit\BybitSpot($key, $secret);
    
$result=$bybit->privates()->postOrder([
            'side'=>'Buy',
            'symbol'=>'BTCUSDT',
            'type'=>'MARKET',
            'qty'=>0.1,
        ]);
        
print_r($result);

But i get error
Array ( [ret_code] => -1001 [ret_msg] => Internal error. [ext_code] => [ext_info] => [result] => )

could you tell me please what the mistake is?
Thanks :)

@zhouaini528
Copy link
Owner

Hi! I'll try post order on Spot, my code:

$key = 'xxxx';
$secret = 'xxxx';

$bybit = new \Lin\Bybit\BybitSpot($key, $secret);
    
$result=$bybit->privates()->postOrder([
            'side'=>'Buy',
            'symbol'=>'BTCUSDT',
            'type'=>'MARKET',
            'qty'=>0.1,
        ]);
        
print_r($result);

But i get error Array ( [ret_code] => -1001 [ret_msg] => Internal error. [ext_code] => [ext_info] => [result] => )

could you tell me please what the mistake is? Thanks :)

I've fixed it. Try again. composer update

@webflyx
Copy link
Author

webflyx commented Apr 2, 2022

@zhouaini528 great, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants