Navigation

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

    Posts made by keer2405

    • RE: SymbolToken API Call

      @aditya79india Well said, what idiot developers are implementing this, parsing the JSON file takes almost 20 mins.

      posted in Python SDK
      K
      keer2405
    • RE: Total buy quantity and Total sell quantity Missing in websocket stream

      @admin oops! this is very odd. I think every broker provides this including AngelOne in their web platform.

      is there any setting/command I use to get this info?

      posted in Python SDK
      K
      keer2405
    • Total buy quantity and Total sell quantity Missing in websocket stream

      Im using the same python websocket example as mentioned in the Github,

      i receive tickes like -

      Ticks: [{'bno': '4', 'bno1': '1', 'bno2': '1', 'bno3': '1', 'bno4': '2', 'bp': '1864.60', 'bp1': '1864.10', 'bp2': '1864.05', 'bp3': '1864.00', 'bp4': '1863.85', 'bq': '1586', 'bq1': '7', 'bq2': '10', 'bq3': '1', 'bq4': '17', 'bs': '202', 'bs1': '320', 'bs2': '70', 'bs3': '144', 'bs4': '417', 'e': 'nse_cm', 'name': 'dp', 'sno': '1', 'sno1': '2', 'sno2': '2', 'sno3': '2', 'sno4': '4', 'sp': '1864.65', 'sp1': '1864.80', 'sp2': '1864.85', 'sp3': '1864.90', 'sp4': '1864.95', 'tk': '1594'}, {'bno': '3', 'bno1': '10', 'bno2': '6', 'bno3': '6', 'bno4': '8', 'bp': '489.70', 'bp1': '489.65', 'bp2': '489.60', 'bp3': '489.55', 'bp4': '489.50', 'bq': '568', 'bq1': '1396', 'bq2': '1490', 'bq3': '1461', 'bq4': '2672', 'bs': '645', 'bs1': '667', 'bs2': '757', 'bs3': '828', 'bs4': '3904', 'e': 'nse_cm', 'name': 'dp', 'sno': '3', 'sno1': '5', 'sno2': '5', 'sno3': '8', 'sno4': '23', 'sp': '489.90', 'sp1': '489.95', 'sp2': '490.00', 'sp3': '490.05', 'sp4': '490.10', 'tk': '3045'}]
      

      this is using task="dp"

      why i dont see total buy quantity and total sell quantity in depth ? this is mentioned in the documentation.

      from doc - https://smartapi.angelbroking.com/docs/WebSocketStreaming
      32 tbq Total buy quantity
      33 tsq Total sell quantity

      how to get these info in websocket ?

      posted in Python SDK
      K
      keer2405
    • max length of historical data ?

      Hi All,

      whats the maximum length of historical data that i can retrieve in 1 min resolution ?

      is it possible to get 2 years of data with 1 min res ?

      Keerthan

      posted in Python SDK
      K
      keer2405
    • Whats the trading symbol for place order command in options ?

      Whats the trading symbol for options f
      In placing order command?

      posted in Python SDK
      K
      keer2405
    • token update time

      I see that we need to fetch token from the URL - https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json

      • Is it updated daily?

      • If yes, What time this will be updated?

      posted in Python SDK
      K
      keer2405
    • RE: unpredictble live data feed data

      @keer2405 @admin Please respond

      posted in Python SDK
      K
      keer2405
    • RE: AB1004 error code

      @admin I see these errors in couple of other posts as well. Is there any timeline on fix ?

      posted in Python SDK
      K
      keer2405
    • AB1004 error code

      whats this error supposed to be ?

      {'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}

      posted in Python SDK
      K
      keer2405
    • RE: unpredictble live data feed data

      @admin that answers the second question, Please respond to question 1

      posted in Python SDK
      K
      keer2405
    • RE: unpredictble live data feed data

      @keer2405 @admin what am i missing here?

      posted in Python SDK
      K
      keer2405
    • unpredictble live data feed data

      Hi im using market depth feed,

      task="dp"   # mw|sfi|dp
      

      I get a response like

      Ticks:  [{'bno': '1', 'bno1': '1', 'bno2': '13', 'bno3': '1', 'bno4': '1', 'bp': '3122.50', 'bp1': '3122.45', 'bp2': '3122.00', 'bp3': '3121.90', 'bp4': '3121.80', 'bq': '31', 'bq1': '1', 'bq2': '278', 'bq3': '1', 'bq4': '1', 'bs': '265', 'bs1': '124', 'bs2': '14', 'bs3': '22', 'bs4': '330', 'e': 'nse_cm', 'name': 'dp', 'sno': '2', 'sno1': '4', 'sno2': '2', 'sno3': '2', 'sno4': '2', 'sp': '3122.55', 'sp1': '3122.60', 'sp2': '3122.65', 'sp3': '3122.70', 'sp4': '3122.80', 'tk': '11536'}, {'e': 'nse_cm', 'name': 'dp', 'tk': '11536'}]
      Ticks:  [{'e': 'nse_cm', 'name': 'dp', 'tk': '10666'}]
      Ticks:  [{'name': 'tm', 'tvalue': '02/06/2021 10:26:28'}]
      Ticks:  [{'bno': '1', 'bno1': '1', 'bno2': '13', 'bno3': '1', 'bno4': '1', 'bp': '3122.50', 'bp1': '3122.45', 'bp2': '3122.00', 'bp3': '3121.90', 'bp4': '3121.80', 'bq': '31', 'bq1': '1', 'bq2': '278', 'bq3': '1', 'bq4': '1', 'bs': '263', 'bs1': '124', 'bs2': '14', 'bs3': '22', 'bs4': '330', 'e': 'nse_cm', 'name': 'dp', 'sno': '2', 'sno1': '4', 'sno2': '2', 'sno3': '2', 'sno4': '2', 'sp': '3122.55', 'sp1': '3122.60', 'sp2': '3122.65', 'sp3': '3122.70', 'sp4': '3122.80', 'tk': '11536'}, {'e': 'nse_cm', 'name': 'dp', 'tk': '11536'}]
      Ticks:  [{'name': 'tm', 'tvalue': '02/06/2021 10:26:29'}]
      Ticks:  [{'e': 'nse_cm', 'name': 'dp', 'tk': '10666'}, {'bno': '117', 'bno1': '101', 'bno2': '186', 'bno3': '180', 'bno4': '527', 'bp': '42.20', 'bp1': '42.15', 'bp2': '42.10', 'bp3': '42.05', 'bp4': '42.00', 'bq': '362383', 'bq1': '258922', 'bq2': '450022', 'bq3': '434404', 'bq4': '838742', 'bs': '175313', 'bs1': '671856', 'bs2': '466205', 'bs3': '579969', 'bs4': '676587', 'e': 'nse_cm', 'name': 'dp', 'sno': '46', 'sno1': '239', 'sno2': '185', 'sno3': '288', 'sno4': '226', 'sp': '42.25', 'sp1': '42.30', 'sp2': '42.35', 'sp3': '42.40', 'sp4': '42.45', 'tk': 
      '10666'}]
      Ticks:  [{'bno': '1', 'bno1': '15', 'bno2': '1', 'bno3': '1', 'bno4': '2', 'bp': '3122.45', 'bp1': '3122.00', 'bp2': '3121.90', 'bp3': '3121.80', 'bp4': '3121.60', 'bq': '1', 'bq1': '379', 'bq2': '1', 'bq3': '1', 'bq4': '13', 'bs': '257', 'bs1': '75', 'bs2': '14', 'bs3': '33', 'bs4': '12', 'e': 'nse_cm', 'name': 'dp', 'sno': '2', 'sno1': '3', 'sno2': '2', 'sno3': '3', 'sno4': '1', 'sp': '3122.55', 'sp1': '3122.60', 'sp2': '3122.65', 'sp3': '3122.70', 'sp4': '3122.75', 'tk': '11536'}]
      Ticks:  [{'e': 'nse_cm', 'name': 'dp', 'tk': '11536'}]
      Ticks:  [{'name': 'tm', 'tvalue': '02/06/2021 10:26:30'}]
      Ticks:  [{'e': 'nse_cm', 'name': 'dp', 'tk': '10666'}]
      Ticks:  [{'bno': '1', 'bno1': '1', 'bno2': '15', 'bno3': '1', 'bno4': '1', 'bp': '3122.50', 'bp1': '3122.45', 'bp2': '3122.00', 'bp3': '3121.90', 'bp4': '3121.80', 'bq': '3', 'bq1': '1', 'bq2': '379', 'bq3': '1', 'bq4': '1', 'bs': '254', 'bs1': '75', 'bs2': '14', 'bs3': '33', 'bs4': '22', 'e': 'nse_cm', 'name': 'dp', 'sno': '2', 'sno1': '3', 'sno2': '2', 'sno3': '3', 'sno4': '2', 'sp': '3122.55', 'sp1': '3122.60', 'sp2': '3122.65', 'sp3': '3122.70', 'sp4': '3122.75', 'tk': '11536'}]
      Ticks:  [{'e': 'nse_cm', 'name': 'dp', 'tk': '11536'}]
      Ticks:  [{'name': 'tm', 'tvalue': '02/06/2021 10:26:31'}]
      Ticks:  [{'e': 'nse_cm', 'name': 'dp', 'tk': '10666'}]
      Ticks:  [{'e': 'nse_cm', 'name': 'dp', 'tk': '11536'}]
      

      a couple of questions here -

      1. why I'm getting time feed? when I have not subscribed to it.
      Ticks:  [{'name': 'tm', 'tvalue': '02/06/2021 10:26:30'}]
      
      1. why I get all the market depth values at some time and no values at other time?

      can explain these?

      posted in Python SDK
      K
      keer2405
    • RE: leverage offering

      @admin Can you tell how leverages are calculated for equity segment ? does it vary depending on var margin or else if anyother calculation present ?

      posted in General Discussion
      K
      keer2405
    • RE: any command to get order Info

      @admin But the order books gives all the order infor, isnt there anyway to get info for a particular order id ?

      posted in Python SDK
      K
      keer2405
    • any command to get order Info

      Hi once the order is placed with command ```
      obj.placeOrder(orderparams), this return order ID, if i want to the order info like filledquanity etc, whats the command to use ?

      posted in Python SDK
      K
      keer2405
    • leverage offering

      is there any command in api to know whats the leverage offerred at angel broking ? looks no one knows in customer care. all are suggesting when i place order ill know. If there any way to know it api Please suggest. If there calculation based on var+extreme loss margin please tell me , so that i can implemnt it in my code.

      posted in General Discussion
      K
      keer2405
    • Im getting error in websocket

      Im using the same code for websocket as in the example -

      ## WebSocket
      from smartapi import WebSocket 
      FEED_TOKEN= "your feed token"
      CLIENT_CODE="your client Id"
      token="channel you want the information of" #"nse_cm|2885&nse_cm|1594&nse_cm|11536"
      task="task" #"mw"|"sfi"|"dp"
      ss = WebSocket(FEED_TOKEN, CLIENT_CODE)
      
      def on_tick(ws, tick):
          print("Ticks: {}".format(tick))
      
      def on_connect(ws, response):
          ws.websocket_connection() # Websocket connection  
          ws.send_request(token,task) 
          
      def on_close(ws, code, reason):
          ws.stop()
      
      # Assign the callbacks.
      ss.on_ticks = on_tick
      ss.on_connect = on_connect
      ss.on_close = on_close
      
      ss.connect( )
      

      But I get error like -

      07-04-2021 20:16:01 -DEBUG-Connection error: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: 'WebSocket' object has no attribute 'websocket_connection')
      07-04-2021 20:16:01 -DEBUG-Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: 'WebSocket' object has no attribute 'websocket_connection')
      

      Please fix it.

      posted in Python SDK
      K
      keer2405
    • limitations for historical data fetch

      Hi All,
      is there any limitations for fetching historical data, like x calls for in 1second/1min ?

      posted in Python SDK
      K
      keer2405
    • can i create 2 apps

      Hi All,

      1. can i create 2 apps, at https://smartapi.angelbroking.com/apps separate interactive and market data? I want to use market app and interactive app in 2 seperate systems? is this possible?
      2. is there any limitation for creating multiple apps?
      posted in Python SDK
      K
      keer2405
    • RE: maximum nuber of tickers

      @rajanprabu can you answer the first 2 questions as well ?

      posted in Python SDK
      K
      keer2405