-
Notifications
You must be signed in to change notification settings - Fork 1
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
Incorrect order type in API response #2
Comments
This is expected behaviour. For buy SL orders Trigger price should be above LTP. Same should be happening with other brokers too. |
Other brokers(Zerodha) don't allow SL orders with below LTP as trigger price. The problem is in the response we are receiving RL as order type but it shows SL type in your console. Is this discrepency expected? |
Yes, Other brokers are handling this in FrontEnd. But it is difficult to handle that in APIs as APIs won't have LTPs. If we do an LTP check on backend, it will add an extra step to every order placement, consequently adding to latency. So it is a question of speed vs "correctness". Here we have chosen speed. |
We placed an SL buy order below the LTP for an option and we saw that we are receiving order type as RL in the response of get orders API. Attaching screenshort for your reference.

Order response:
The text was updated successfully, but these errors were encountered: