Navigation

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

    Posts made by s4ntosh

    • RE: Read Timed out

      Screenshot_1.jpg

      Same happened with me when using get ltp method in a loop.
      Websocket is throwing connection to remote host error so started using get ltp method but even this fails if you are using continuously.

      Force reinstalled the smart api library still no luck.

      @admin any ETA to fix this?

      posted in Test
      S
      s4ntosh
    • RE: Error info: Connection to remote host was lost. Connection to remote host was lost.

      @admin Min of 2, max I have tried is 3 scrips.

      posted in General Discussion
      S
      s4ntosh
    • RE: Error info: Connection to remote host was lost. Connection to remote host was lost.

      @admin Screenshot_10.jpg

      This has happened today at 12:24 again, this time with a different error code

      posted in General Discussion
      S
      s4ntosh
    • RE: Error info: Connection to remote host was lost. Connection to remote host was lost.

      @admin while your team is working on a resolution, please provide a way or a code snippet to reconnect the WebSocket , this will be really helpful as the connection to the host was lost error is coming every now and then.

      posted in General Discussion
      S
      s4ntosh
    • RE: Error info: Connection to remote host was lost. Connection to remote host was lost.

      @admin

      Got the same error today again:

      2021-06-15 10:38:07.204511 : Start task in the background
      {'task': 'hb', 'channel': '', 'token': '', 'user': '', 'acctid': ''} (removed acctid and token for privacy issue)
      457.7 10:38:07
      478.4 10:38:08
      Error info: Connection to remote host was lost.
      Connection to remote host was lost.

      posted in General Discussion
      S
      s4ntosh
    • RE: Error info: Connection to remote host was lost. Connection to remote host was lost.

      @admin I have faced the similar issue a while back for crude oil.

      How do I reconnect to the websocket incase of an event like this.

      posted in General Discussion
      S
      s4ntosh
    • RE: Which API to get All positions for an option expiry

      @vamseeds

      https://smartapi.angelbroking.com/docs/Portfolio#position

      You can use the above API call to get your positions.

      Filter only the net positions to get the carry positions and initiate your next steps accordingly.

      Hope that helps!

      posted in General Discussion
      S
      s4ntosh
    • RE: All Strikes not listed for BankNifty

      @admin Can you please fix the strike price format as well? it shows 3610000 instead of 36100.

      Basically extra 00 at the end for every strike.

      Thank you in advance!

      posted in Test
      S
      s4ntosh
    • RE: Which API to get All positions for an option expiry

      @vamseeds Can you elaborate more with an example? I didn't get your question.

      posted in General Discussion
      S
      s4ntosh
    • RE: Technical Indicator

      @athul_4554 You have to pull the historical data for stocks, push that data to a dataframe and get your indicator values using talib library

      posted in General Discussion
      S
      s4ntosh
    • RE: Past Expiry Data | Script Master Instrument List

      @admin Thanks for the quick response!

      Kindly provide an ETA as the data still contains old expiry information including 03 Jun 2021.

      posted in Test
      S
      s4ntosh
    • Past Expiry Data | Script Master Instrument List

      https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json

      I have observed that the old expiry (eg expiry":"27MAY2021") related data still appears on the instrument list.

      Is it on purpose? if not kindly remove all the old data so that it is easier to fetch the current expiry date from the instrument list itself.

      posted in Test
      S
      s4ntosh
    • RE: How do I reuse the refreshtoken without having to generate it throughout the day whenever I want to use the API?

      @rajanprabu Can you please provide a code snippet for python? I tried but I am still getting the following response:

      {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}

      posted in Python SDK
      S
      s4ntosh
    • How do I reuse the refreshtoken without having to generate it throughout the day whenever I want to use the API?

      How do I reuse the refreshtoken without having to generate it throughout the day whenever I want to use the API?
      Currently I am generating token every time I have to use the API.

      posted in Python SDK
      S
      s4ntosh