delta-exchange / python-rest-client

https://pypi.org/project/delta-rest-client/
13 stars 19 forks source link

PLACING ORDERS #36

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hello Sir, I can use all features of this package except for placing orders. In the place_order function,it doesn't take market orders,a limit price is necessary.But i want to place market orders. In the place_stop_order function,limit price and stop price both are necessary. But in my trading style,i only place one of them at a time. And,even when i put values of both stop and limit in function,it errors out saying 400 Client error.Also,the order_type parameter is not working. There is no class named OrderType opposed to what's shown in the code. The only thing working for me is placing limit orders through place_order function. In summary, please let me know the correct procedure to place market orders,stoploss orders and trailing stoploss orders. Thanks.

varu060603 commented 1 month ago

having a similar issue can you tell me how did you close the issue or resolve the issue

varu060603 commented 1 month ago

Hello Sir, I can use all features of this package except for placing orders. In the place_order function,it doesn't take market orders,a limit price is necessary.But i want to place market orders. In the place_stop_order function,limit price and stop price both are necessary. But in my trading style,i only place one of them at a time. And,even when i put values of both stop and limit in function,it errors out saying 400 Client error.Also,the order_type parameter is not working. There is no class named OrderType opposed to what's shown in the code. The only thing working for me is placing limit orders through place_order function. In summary, please let me know the correct procedure to place market orders,stoploss orders and trailing stoploss orders. Thanks.