Navigation

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

    opt_trader

    @opt_trader

    0
    Reputation
    5
    Posts
    2
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    opt_trader Follow

    Best posts made by opt_trader

    This user hasn't posted anything yet.

    Latest posts made by opt_trader

    • RE: Free Python Code for Websocket 2.0 and Get Live Feed Data

      @J88913 Thank you Sir for sharing the video. Very grateful and Appreciate!!

      Request a clarification. on line 85 of the code which reads as below, we would be able to fetch the high, low , volume for the day. But how do we code it if we want the details for open, high , low , close, volume and open interest for all ticks say for 1 minute, so we can compile the date into candlestick data of for 1 minute

      LIVE_FEED_JSON[msg['token']] = {'1' :datetime.datetime.fromtimestamp(msg['exchange_timestamp']/1000).strftime('%Y-%m-%d %H:%M:%S') ,'3' :msg['last_traded_price']/100 ,'4' :msg['average_traded_price']/100 ,'5' :msg['high_price_of_the_day']/100 ,'6':msg['low_price_of_the_day']/100 ,'7' :msg['closed_price']/100 ,'8':msg['volume_trade_for_the_day'],'9':msg['open_interest']}

      posted in General Discussion
      O
      opt_trader
    • RE: Historical API for Nifty and Bank Nifty

      @Moderator_2 Thank you for your kind and prompt responses.

      Kindly help how do we fetch open interest for historical data of options. I am using the below line of code but it is showing an error as

      Historic Api failed: 'Series' object has no attribute 'open_interest' BANKNIFTY20DEC2346000CE

      Code is as below:
      historicParam = {
      "exchange" : symbolInfo.exch_seg,
      "symboltoken": symbolInfo.token,
      "interval": "ONE_MINUTE",
      "fromdate": "2023-12-15 09:15",
      "todate": "2023-12-15 15:30",
      }
      res_json = obj.getCandleData(historicParam)
      columns = ["timestamp", "open", "high", "low", "close", "volume"]
      df = pd.DataFrame(res_json["data"], columns= columns )
      df["open_interest"] = symbolInfo.open_interest

      Without Open interest the code works fine. Thanks in advance

      posted in General Discussion
      O
      opt_trader
    • Historical Data for Options

      Re: Historical data for options

      @admin Do we have any update on historical data for options. Or any other solution available. Its much needed data

      posted in General Discussion
      O
      opt_trader