Navigation

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

    Topics created by sevrus

    • S

      getTotalBuyQty and getTotalSellQty returning invalid values
      NodeJS SDK • • sevrus  

      13
      0
      Votes
      13
      Posts
      96
      Views

      S

      @Moderator_3 https://github.com/angel-one/smartapi-java/blob/c568e4f1329ac4b1eb56c3ead08c57c9c29f8351/src/main/java/com/angelbroking/smartapi/smartstream/models/Quote.java#L37 should this be double here? totalBuyQty and totalSellQty lombok is casting it to double in the constructor this.totalBuyQty = (double)buffer.getLong(75); this.totalSellQty = (double)buffer.getLong(83); why should these be double ?
    • S

      How to fetch live data for indices using websockets
      Python SDK • • sevrus  

      2
      0
      Votes
      2
      Posts
      45
      Views

      N

      @sevrus from smartWebSocketV2 import SmartWebSocketV2 For Live NIFTY, BANKNIFTY LTP AUTH_TOKEN = angelapikey = feed_token = client_code = correlation_id = "live_data" action = 1 mode = 1 sws = SmartWebSocketV2(AUTH_TOKEN, angelapikey, client_code, feed_token) token_Nifty = "26000" token_Bank = "26009" token_Fin = "26037" token_Mid = "26074" token_list = [{"exchangeType": 1, "tokens": [token_Nifty,token_Bank,token_Fin,token_Mid]}] def on_data(wsapp, message): # print("Ticks: {}".format(message)) token = message['token'] last_price = message['last_traded_price'] last_price = last_price/100 def on_open(wsapp): print("\n------Options Live LTP subscribed------") sws.subscribe(correlation_id, mode, token_list) def on_error(wsapp, error): print(error) def on_close(wsapp): print("Close") sws.on_open = on_open sws.on_data = on_data sws.on_error = on_error sws.on_close = on_close threading.Thread(target = sws.connect).start() "" Do check the indent correctly ""
    • S

      "errorcode":"AB1004" while trying to generatesession using js library
      Bugs • • sevrus  

      3
      1
      Votes
      3
      Posts
      13
      Views

      S

      @Moderator_2 , It got resolved automatically. but idk what are the chances of it happening again. my client code is s138496