py5paisa icon indicating copy to clipboard operation
py5paisa copied to clipboard

Order Rejected by RMS. Trail value should be atleast 0.5% of Limit Rate/Market Rate

Open kumarchinmaya116 opened this issue 3 years ago • 5 comments

*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]

kumarchinmaya116 avatar May 17 '22 07:05 kumarchinmaya116

Even i am facing the same issue. Is the issue resolved ?

srivatsa-bc avatar May 26 '22 08:05 srivatsa-bc

@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

kumarchinmaya116 avatar May 26 '22 11:05 kumarchinmaya116

any update on this??

Sushantmkarande avatar Jun 17 '22 05:06 Sushantmkarande

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

kumarchinmaya116 avatar Jun 18 '22 00:06 kumarchinmaya116

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)

Sushantmkarande avatar Jun 22 '22 16:06 Sushantmkarande