Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. sawantnitesh
    S
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    sawantnitesh

    @sawantnitesh

    0
    Reputation
    3
    Posts
    4
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    sawantnitesh Follow

    Best posts made by sawantnitesh

    This user hasn't posted anything yet.

    Latest posts made by sawantnitesh

    • RE: SmartAPI now provides real-time market data for 120 indices across NSE, BSE, and MCX

      @melad smartAPI.ltpData("NSE", "Nifty 50", "99926000")

      posted in General Discussion
      S
      sawantnitesh
    • 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)
      
      
      posted in Python SDK
      S
      sawantnitesh
    • 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.

      posted in Python SDK
      S
      sawantnitesh