What's the error you are getting when placing orders?? Do you have enough margin to place a sl and limit order at once?? That could be the error too. If you don't place orders inside try-except block as in the documentation,if any exception occurs,your code will show error and close.
@krishkalyani, You shouldn't block the main thread that is receiving ticks. Do all your operations, data dump and calculations on another thread, don't block the thread that is receiving ticks.
The below is error
"The underlying connection was closed: The connection was closed unexpectedly."
I am testing placing orders using API.
just placing 1 quantity only placing Order and Stop Loss for testing. its not working at a time.
I have enough margin as it only 1 quantity.
Thanks
Krishna
You shouldn't block the main thread that is receiving ticks. Do all your operations, data dump and calculations on another thread, don't block the thread that is receiving ticks.