@melad smartAPI.ltpData("NSE", "Nifty 50", "99926000")
sawantnitesh
@sawantnitesh
Best posts made by sawantnitesh
Latest posts made by sawantnitesh
-
RE: SmartAPI now provides real-time market data for 120 indices across NSE, BSE, and MCX
-
ROBO order not getting cancelled from API
Not able to cancel ROBO order from SmartAPI.
SmartConnect.cancelOrder method returns Success response but ROBO order is not getting cancelled in Angel Broking portal.
Response of cancelOrder example : {'status': True, 'message': 'SUCCESS', 'errorcode': '', 'data': {'orderid': '231228000172901', 'uniqueorderid': '231228000172901'}}Following is code to cancel all open orders :
def cancell_all_open_robo_orders(smartAPI): #Cancel all open orders including ROBO orders order_book = smartAPI.orderBook() if order_book['data'] : for order in order_book['data']: if order['status'] == 'open' or order['status'] == 'trigger pending': orderOutput = smartAPI.cancelOrder(order['orderid'], 'NORMAL') print(orderOutput) time.sleep(1)
-
LogZero related changes failing in cloud
Following error is thrown while creating SmartConnect object from Azure Function Python docker:
OS[Errno 38] Function not implemented 'Logs'
smartConnect.py : version 1.4.1 : Line number 99
There are recent changes done related to log files writing that fails in docker image because of not having write permissions.
Can you please revisit these code changes related to logzero.
I think, SmartAPI python SDK should not create app.log files, it should be just light weight tool.