-
Notifications
You must be signed in to change notification settings - Fork 12
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
Problems during postOrderCreate - body not json #17
Comments
[body] => {"api_key":"....","order_type":"Limit","price":"4000","qty":"1","side":"Buy","symbol":"BTCUSD","time_in_force":"GoodTillCancel","timestamp":1673401541233,"sign":"...."} your body is not right. |
Hello
Could you provide an example of working with websocket
For websocketposition example:
https://bybit-exchange.github.io/docs/futuresV2/linear/#t-websocketposition
I have secretkey, and your lib :)
Thank you very much
ср, 11 янв. 2023 г. в 11:37, lin ***@***.***>:
… Hello I'm using $bybit->privates()->postOrderCreate with necessary
parameters [body] =>
{"0":{"side":"Sell","symbol":"ETHUSDT","qty":0.2,"price":1261.15},"api_key":"...","timestamp":16730...,"sign":"..."}
but getting the answer: [ret_msg] => body not json Help plese Thank you
[image: 2023-01-11 17-36-00屏幕截图]
<https://user-images.githubusercontent.com/5442664/211770734-2fbfc0c8-d015-41e3-8764-71e1dd45a9de.png>
$bybit=new BybitLinear($key,$secret);
$result=$bybit->privates()->postOrderCreate([
//'order_link_id'=>'xxxxxxxxxxxxxx',
'side'=>'Sell',
'symbol'=>'ETHUSDT',
'order_type'=>'Limit',
'qty'=>'0.25',
'price'=>'40000',
'time_in_force'=>'GoodTillCancel',
'reduce_only'=>'false',
'close_on_trigger'=>'false',
]);
print_r($result);
—
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABYAPFXKR56AV6LP4QNKODWRZ5OLANCNFSM6AAAAAATT4A36M>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
How use SocketClient with Subscribe for detect orders and positions?
Give me example code please
Thank you
сб, 21 янв. 2023 г. в 16:40, Savchuk Ivan ***@***.***>:
… Hello
Could you provide an example of working with websocket
For websocketposition example:
https://bybit-exchange.github.io/docs/futuresV2/linear/#t-websocketposition
I have secretkey, and your lib :)
Thank you very much
ср, 11 янв. 2023 г. в 11:37, lin ***@***.***>:
> Hello I'm using $bybit->privates()->postOrderCreate with necessary
> parameters [body] =>
> {"0":{"side":"Sell","symbol":"ETHUSDT","qty":0.2,"price":1261.15},"api_key":"...","timestamp":16730...,"sign":"..."}
>
> but getting the answer: [ret_msg] => body not json Help plese Thank you
> [image: 2023-01-11 17-36-00屏幕截图]
> <https://user-images.githubusercontent.com/5442664/211770734-2fbfc0c8-d015-41e3-8764-71e1dd45a9de.png>
>
> $bybit=new BybitLinear($key,$secret);
>
>
> $result=$bybit->privates()->postOrderCreate([
>
> //'order_link_id'=>'xxxxxxxxxxxxxx',
>
> 'side'=>'Sell',
>
> 'symbol'=>'ETHUSDT',
>
> 'order_type'=>'Limit',
>
> 'qty'=>'0.25',
>
> 'price'=>'40000',
>
> 'time_in_force'=>'GoodTillCancel',
>
>
>
> 'reduce_only'=>'false',
>
> 'close_on_trigger'=>'false',
>
> ]);
>
> print_r($result);
>
> —
> Reply to this email directly, view it on GitHub
> <#17 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AABYAPFXKR56AV6LP4QNKODWRZ5OLANCNFSM6AAAAAATT4A36M>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
How use SocketClient with Subscribe for detect orders and positions?
Secretkey too
Give me example code please
Thank you
ср, 25 янв. 2023 г. в 11:46, Savchuk Ivan ***@***.***>:
… How use SocketClient with Subscribe for detect orders and positions?
Give me example code please
Thank you
сб, 21 янв. 2023 г. в 16:40, Savchuk Ivan ***@***.***>:
> Hello
> Could you provide an example of working with websocket
> For websocketposition example:
>
> https://bybit-exchange.github.io/docs/futuresV2/linear/#t-websocketposition
> I have secretkey, and your lib :)
> Thank you very much
>
>
>
> ср, 11 янв. 2023 г. в 11:37, lin ***@***.***>:
>
>> Hello I'm using $bybit->privates()->postOrderCreate with necessary
>> parameters [body] =>
>> {"0":{"side":"Sell","symbol":"ETHUSDT","qty":0.2,"price":1261.15},"api_key":"...","timestamp":16730...,"sign":"..."}
>>
>> but getting the answer: [ret_msg] => body not json Help plese Thank you
>> [image: 2023-01-11 17-36-00屏幕截图]
>> <https://user-images.githubusercontent.com/5442664/211770734-2fbfc0c8-d015-41e3-8764-71e1dd45a9de.png>
>>
>> $bybit=new BybitLinear($key,$secret);
>>
>>
>> $result=$bybit->privates()->postOrderCreate([
>>
>> //'order_link_id'=>'xxxxxxxxxxxxxx',
>>
>> 'side'=>'Sell',
>>
>> 'symbol'=>'ETHUSDT',
>>
>> 'order_type'=>'Limit',
>>
>> 'qty'=>'0.25',
>>
>> 'price'=>'40000',
>>
>> 'time_in_force'=>'GoodTillCancel',
>>
>>
>>
>> 'reduce_only'=>'false',
>>
>> 'close_on_trigger'=>'false',
>>
>> ]);
>>
>> print_r($result);
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#17 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AABYAPFXKR56AV6LP4QNKODWRZ5OLANCNFSM6AAAAAATT4A36M>
>> .
>> You are receiving this because you authored the thread.Message ID:
>> ***@***.***>
>>
>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello
I'm using $bybit->privates()->postOrderCreate with necessary parameters
[body] => {"0":{"side":"Sell","symbol":"ETHUSDT","qty":0.2,"price":1261.15},"api_key":"...","timestamp":16730...,"sign":"..."}
but getting the answer:
[ret_msg] => body not json
Help plese
Thank you
The text was updated successfully, but these errors were encountered: