py5paisa icon indicating copy to clipboard operation
py5paisa copied to clipboard

Incorrect BrokerOrderID is returned

Open jrdinesh opened this issue 2 years ago • 0 comments

  • 5paisa Python SDK version:
  • Python version:
  • Operating System:

The response for order placement is the following

{'BrokerOrderID': 671625048, 'ClientCode': '59425229', 'Exch': 'N', 'ExchOrderID': '0', 'ExchType': 'D', 'LocalOrderID': 0, 'Message': 'Success', 'RMSResponseCode': 0, 'ScripInfo': '58546', 'Status': 0, 'Time': '/Date(1648060200000+0530)/'}

This is returned as 'BrokerOrderID': 671625048, but when i checked orderbook the brokerid was different different. This is creating problems as i get exhange order id from brokerid only. In orderbook brokerid is "BrokerOrderId": 671626895

{ "AHProcess": "N", "AfterHours": "N", "AtMarket": "N", "BrokerOrderId": 671626895, "BrokerOrderTime": "/Date(1648104290633+0530)/", "BuySell": "B", "DelvIntra": "D", "DisClosedQty": 0, "Exch": "N", "ExchOrderID": "1100000042613446", "ExchOrderTime": "/Date(1648104266000+0530)/", "ExchType": "D", "OldorderQty": 50, "OrderRequesterCode": "59425229 ", "OrderStatus": "Cancelled", "OrderValidUpto": "24 Mar 2022", "OrderValidity": 0, "PendingQty": 50, "Qty": 50, "Rate": 95, "Reason": "", "RequestType": "C", "SLTriggerRate": 94, "SLTriggered": "N", "SMOProfitRate": 0, "SMOSLLimitRate": 0, "SMOSLTriggerRate": 0, "SMOTrailingSL": 0, "ScripCode": 58546, "ScripName": "NIFTY 31 Mar 2022 CE 17600.00", "TerminalId": 40510, "TradedQty": 0, "WithSL": "Y" }

Anyone else facing similar issue this does happen occasionally not all the time, but its a problem?

jrdinesh avatar Mar 24 '22 07:03 jrdinesh