py5paisa
py5paisa copied to clipboard
Order Rejected by RMS. Trail value should be atleast 0.5% of Limit Rate/Market Rate
*5paisa Python SDK version: 0.3.6 *Python version: 3.9.7 *Operating System: windows 10
Description
While trying to place a bracket order with a trailing stop loss, the order gets rejected and I get the below error message: 'Order Rejected by RMS. Trail value should be atleast 0.5% of Limit Rate/Market Rate'
What I Did
I tried to keep a trailing stop loss of 15 points as mentioned in the code below
test_order=bo_co_order(scrip_code=scrip1,BuySell='B',Qty=lot_size*25, LimitPriceInitialOrder=long_price+0.1, TriggerPriceInitialOrder=0, LimitPriceProfitOrder=long_price+30,TriggerPriceForSL=long_price-14.9,LimitPriceForSL=long_price-15, TrailingSL=15,ExchType='D',Exch='N',RequestType='P',AtMarket=False)
client.bo_order(test_order)
But, it shows an error that the Trail value should be atleast 0.5% of Limit Rate/Market Rate. As defined in the bo_co_order class, the trailing SL accepts int value.
Kindly resolve the issue
Thanks and Regards Chinmaya Kumar Rath E-Mail: [email protected]
Even i am facing the same issue. Is the issue resolved ?
@srivatsa-bc not resolved yet. I checked the bo_co_order class in order.py file. The trailingSL has been defined there. But it's not mentioned in the documentation. Also, in the front end it is not possible to place a trailing SL order. Perhaps, they are still working on it
any update on this??
No reply by the team till now. I called the customer support. They told me to raise a ticket with the screenshot of error. I did that. Waiting for reply from their end. It's been more than a week. Did you try anything that worked? For me there is currently only one way around this. That is by manually trailing the SL
I am facing the same issue. no value works. I have tried bunch of it. also not able to understand these nomenclatures (LimitPriceInitialOrder, TriggerPriceInitialOrder, TriggerPriceInitialOrderm TriggerPriceInitialOrder)