Navigation

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

    Posts made by nbmaiti

    • RE: WebSocket streaming did not work the whole day today. However, I'm able to fetch LTP data using ltpData method. Was something wrong with streaming today?

      @Ashok
      old websocket 1 streaming stopped and not working?

      posted in Python SDK
      N
      nbmaiti
    • RE: Invalid feed token or client code on smartapigo

      Definitely go backend misbehaving. I am not removing subscription list, just closing websocket while exiting the app. Please please respond @admin / any user

      First time run

      /app # /usr/bin/angel_ws 
      Credentials: UID PIN apikey
      User Session Tokens :-  {eyJhbGciOiJIUzUxMiJ9.eyJ1c2VybmFtZSI6Ik44MjgxNyIsInJvbGVzIjowLCJ1c2VydHlwZSI6IlVTRVIiLCJpYXQiOjE2NzI5MTQ3NzksImV4cCI6MTc1OTMxNDc3OX0.EWgg3GaxWApYyvkfDsgkfJDo5Y0YvD3Ijcn9GyCJTjVgH5RXuwcLbVdCI1XS_glciCvP2y9mHUIVCZdfIBfmCg eyJhbGciOiJIUzUxMiJ9.eyJ0b2tlbiI6IlJFRlJFU0gtVE9LRU4iLCJpYXQiOjE2NzI5MTQ3Nzl9.hg7Tjr9dgISFinyDL43zO-VB9arV1OvANp-otmWYF2wWkotdUFe0ucBWZ5xy4LcMJWdepFH-LmMQje3-b6l1XQ 0802811807}
      User Profile:
      
      
      {UID CLIENT NAME MAITI    [CNC NRML MARGIN MIS BO CO]  [mcx_fo ncx_fo nse_fo nse_cm bse_cm]}
       
      &{<nil> {wss  <nil> wsfeeds.angelbroking.com /NestHtml5Mobile/socket/stream  false   } {<nil> <nil> <nil> <nil> <nil> <nil>} true 300 60000000000 7000000000 0 nse_cm|17963&nse_cm|3499&nse_cm|11536&nse_cm|21808&nse_cm|317 0802811807 UID}
      
      ws Connected
      Message Received :- [map[e:nse_cm ltt:NA name:sf tk:21808] map[name:tm tvalue:05/01/2023 16:03:56] map[e:nse_cm ltt:NA name:sf tk:317] map[e:nse_cm ltt:NA name:sf tk:3499] map[e:nse_cm ltt:NA name:sf tk:11536] map[e:nse_cm ltt:NA name:sf tk:17963]]
      

      Same binary , just restarted its non responsive
      NON working case

      /app # /usr/bin/angel_ws 
      Credentials: UID PIN apikey
      User Session Tokens :-  {eyJhbGciOiJIUzUxMiJ9.eyJ1c2VybmFtZSI6Ik44MjgxNyIsInJvbGVzIjowLCJ1c2VydHlwZSI6IlVTRVIiLCJpYXQiOjE2NzI5MTUxMjMsImV4cCI6MTc1OTMxNTEyM30.QnAlSbPZWeY0rlwf0AlQowsLTEIrUg2j0dlehm9ai99RXw9g2NgNHEtoiboYYnucPN02ipX884vYNPvmvgNJEQ eyJhbGciOiJIUzUxMiJ9.eyJ0b2tlbiI6IlJFRlJFU0gtVE9LRU4iLCJpYXQiOjE2NzI5MTUxMjN9.TnciuQ4riyp4YQ853dHlAaBWNZzki31zx4ge_7QUlUw_c7_PmVD7MY77z8oCA11wiN7g6oh_QqAKyiZA88Fbcw 0862637450}
      User Profile:
      
      {UID CLIENT NAME MAITI    [CNC NRML MARGIN MIS BO CO]  [mcx_fo ncx_fo nse_fo nse_cm bse_cm]}
      FeedTokens:  
      
      &{<nil> {wss  <nil> wsfeeds.angelbroking.com /NestHtml5Mobile/socket/stream  false   } {<nil> <nil> <nil> <nil> <nil> <nil>} true 300 60000000000 7000000000 0 nse_cm|17963&nse_cm|3499&nse_cm|11536&nse_cm|21808&nse_cm|317 0802811807 UID}
      
      Error:  Invalid feed token or client code
      
      posted in Go SDK
      N
      nbmaiti
    • Invalid feed token or client code on smartapigo

      Following code stopped working after password change issue. Using MPIN in place of password. Same uname+pin+totp working on python. Getting following in smartapigo

      Error:  Invalid feed token or client code
      

      @admin Note in example websocket/example dont have update for totp in generate session. Plesae update

      code_text
      ABCClient  := smartApi.New("ANGEL_USER_NAME"),"ANGEL_PWD","ANGEL_API_KEY")
      session, err := ABCClient.GenerateSession(Otp now)
          if err != nil {
      		fmt.Println(err.Error())
      		return
      	}
      
      	fmt.Println("User Session Tokens :- ", session.UserSessionTokens)
      
      
          session.UserSessionTokens, err = StelebotClient.RenewAccessToken(session.RefreshToken)
      
      socketClient = websocket.New(session.ClientCode, session.FeedToken, "nse_cm|17963&nse_cm|3499&nse_cm|11536&nse_cm|21808&nse_cm|317")
      
      socketClient.Serve()
      
      posted in Go SDK
      N
      nbmaiti
    • RE: Bigger script feed is not providing tick data in go-sdk

      NEVER MIND 🙂 Solved

      posted in Bugs
      N
      nbmaiti
    • RE: Bigger script feed is not providing tick data in go-sdk

      @nbmaiti @administrators @admin any acknowledgement/support? losing confidence on smart-api for my highly efficient and low resource consuming cloud app,🙁

      posted in Bugs
      N
      nbmaiti
    • RE: Bigger script feed is not providing tick data in go-sdk

      @nbmaiti 😧

      posted in Bugs
      N
      nbmaiti
    • RE: Bigger script feed is not providing tick data in go-sdk

      @nbmaiti @admin No support blocking my system 😞

      posted in Bugs
      N
      nbmaiti
    • RE: Bigger script feed is not providing tick data in go-sdk

      Any update @admin

      posted in Bugs
      N
      nbmaiti
    • Bigger script feed is not providing tick data in go-sdk

      Weird problem which is not present in python (working perfectly) @admin please look into the problem. Is there go specific problem due to websocket packet/your internal data structure size/anything else. Please fix the bug

      While using gosdk using big feedtoken size stopping tick data ,e.g.
      nse_cm|21690&nse_cm|25897&nse_cm|14537&nse_cm|8075&nse_cm|13976&nse_cm|3432&nse_cm|8163&nse_cm|20825&nse_cm|592&nse_cm|11399&nse_cm|20936&nse_cm|1639&nse_cm|13816&nse_cm|11626&nse_cm|13409&nse_cm|14657&nse_cm|1756&nse_cm|21508&nse_cm|9552&nse_cm|3637&nse_cm|3351&nse_cm|1250&nse_cm|2316&nse_cm|9385&nse_cm|14977&nse_cm|1270&nse_cm|385&nse_cm|2475&nse_cm|7229&nse_cm|11411&nse_cm|1660&nse_cm|18039&nse_cm|18391&nse_cm|1168&nse_cm|1919&nse_cm|14111&nse_cm|10637&nse_cm|3509&nse_cm|17424&nse_cm|4747&nse_cm|31415&nse_cm|11778&nse_cm|12489&nse_cm|13081&nse_cm|11723&nse_cm|22377&nse_cm|4433&nse_cm|16713&nse_cm|4306&nse_cm|15007&nse_cm|11983&nse_cm|3426&nse_cm|3329&nse_cm|31181&nse_cm|5926&nse_cm|1nse_cm|21690&nse_cm|25897&nse_cm|14537&nse_cm|8075&nse_cm|13976&nse_cm|3432&nse_cm|8163&nse_cm|20825&nse_cm|592&nse_cm|11399&nse_cm|20936&nse_cm|1639&nse_cm|13816&nse_cm|11626&nse_cm|13409&nse_cm|14657&nse_cm|1756&nse_cm|21508&nse_cm|9552&nse_cm|3637&nse_cm|3351&nse_cm|1250&nse_cm|2316&nse_cm|9385&nse_cm|14977&nse_cm|1270&nse_cm|385&nse_cm|2475&nse_cm|7229&nse_cm|11411&nse_cm|1660&nse_cm|18039&nse_cm|18391&nse_cm|1168&nse_cm|1919&nse_cm|14111&nse_cm|10637&nse_cm|3509&nse_cm|17424&nse_cm|4747&nse_cm|31415&nse_cm|11778&nse_cm|12489&nse_cm|13081&nse_cm|11723&nse_cm|22377&nse_cm|4433&nse_cm|16713&nse_cm|4306&nse_cm|15007&nse_cm|11983&nse_cm|3426&nse_cm|3329&nse_cm|31181&nse_cm|5926&nse_cm|14947&nse_cm|24532&nse_cm|3546&nse_cm|10099&nse_cm|3672&nse_cm|18822&nse_cm|4481&nse_cm|330&nse_cm|13688&nse_cm|2972&nse_cm|1041&nse_cm|17438&nse_cm|11351&nse_cm|9590&nse_cm|6994&bse_cm|532742&nse_cm|14068&nse_cm|1267&nse_cm|17094&nse_cm|422&nse_cm|19235&nse_cm|25718&bse_cm|531543&nse_cm|18908&nse_cm|11301&nse_cm|25724&nse_cm|270&nse_cm|6596&nse_cm|3499&nse_cm|14304&nse_cm|1127&nse_cm|15184&nse_cm|380&nse_cm|3423&nse_cm|981&bse_cm|543458&nse_cm|11522&nse_cm|8124&nse_cm|1185&nse_cm|17635&nse_cm|13538&nse_cm|3375&nse_cm|14086&nse_cm|20778&nse_cm|29284&nse_cm|3048&nse_cm|1174&nse_cm|10755&nse_cm|30023&nse_cm|3745&nse_cm|2783&nse_cm|2489&nse_cm|1315&nse_cm|275&nse_cm|100&nse_cm|17939&nse_cm|2708&nse_cm|2142&nse_cm|11872&nse_cm|5475&nse_cm|163&nse_cm|3906&nse_cm|3024&nse_cm|18154&nse_cm|20560&nse_cm|25780&nse_cm|1196&nse_cm|1594&nse_cm|2085&nse_cm|18652&nse_cm|15332&nse_cm|24184&nse_cm|2043&nse_cm|3220&nse_cm|13648&nse_cm|17486&nse_cm|15313&nse_cm|2963&nse_cm|20877&nse_cm|1134&nse_cm|17945&nse_cm|5610&nse_cm|1330&nse_cm|1455&nse_cm|324&nse_cm|7406&nse_cm|1336&nse_cm|13750&nse_cm|10440&nse_cm|17818&nse_cm|18365&nse_cm|10738&nse_cm|11536&nse_cm|15283&nse_cm|8119&nse_cm|3718&nse_cm|11630&nse_cm|14329&nse_cm|17957&nse_cm|11543&nse_cm|9356&nse_cm|263&nse_cm|10940&nse_cm|6818&nse_cm|10726&nse_cm|772&nse_cm|5748&nse_cm|11739&nse_cm|17728&nse_cm|5385&nse_cm|1726&nse_cm|11782&nse_cm|399&nse_cm|1076&nse_cm|11253&nse_cm|220&nse_cm|14299&nse_cm|18252&nse_cm|24231&nse_cm|467&nse_cm|14567&nse_cm|857&nse_cm|2144&nse_cm|811&nse_cm|10999&nse_cm|13826&nse_cm|676&nse_cm|10447&nse_cm|4717&nse_cm|11195&nse_cm|8054&nse_cm|25017&nse_cm|3456&nse_cm|2442&nse_cm|1164&nse_cm|1838&nse_cm|3273&nse_cm|357&nse_cm|11654&nse_cm|438&nse_cm|18321&nse_cm|16669&nse_cm|13310&nse_cm|10243&nse_cm|20302&nse_cm|739&nse_cm|18096&nse_cm|4598&nse_cm|3493&nse_cm|317&nse_cm|2841&nse_cm|19234&nse_cm|1808&nse_cm|1363&nse_cm|12124&nse_cm|10666&nse_cm|7374&nse_cm|2412&nse_cm|30089&nse_cm|21951&nse_cm|13270&nse_cm|9917&nse_cm|1232&nse_cm|1205&nse_cm|30108&nse_cm|1139&nse_cm|14356&nse_cm|338&nse_cm|7&nse_cm|1476&nse_cm|11355&nse_cm|17641&nse_cm|335&nse_cm|1624&nse_cm|14922&nse_cm|21808&nse_cm|6705&nse_cm|13966&nse_cm|1485&nse_cm|16725&nse_cm|15034&nse_cm|13221&nse_cm|15254&nse_cm|3150&nse_cm|1521&nse_cm|2073&nse_cm|1508&nse_cm|547&nse_cm|14937&nse_cm|3475&nse_cm|12026&nse_cm|19184&nse_cm|2885&nse_cm|7053&nse_cm|10238&nse_cm|13147&nse_cm|527&nse_cm|1530&nse_cm|17869&nse_cm|10577&nse_cm|14255&nse_cm|2031&nse_cm|12716&nse_cm|10217&nse_cm|9309&nse_cm|14208&nse_cm|8828&nse_cm|8840&nse_cm|341&nse_cm|10925&nse_cm|25392&nse_cm|4843&nse_cm|1085&nse_cm|1515&nse_cm|4244&nse_cm|12347&nse_cm|11905&nse_cm|18866&nse_cm|21406&nse_cm|1964&nse_cm|8546

      But for small no of scripts its working fine
      "nse_cm|21690&nse_cm|25897&nse_cm|14537&nse_cm|8075&nse_cm|13976&nse_cm|3432&nse_cm|8163&nse_cm|20825&nse_cm|592&nse_cm|11399&nse_cm|20936&nse_cm|1639&nse_cm|13816&nse_cm|11626&nse_cm|13409&nse_cm|14657&nse_cm|1756&nse_cm|21508&nse_cm|9552&nse_cm|3637&nse_cm|3351&nse_cm|1250&nse_cm|2316&nse_cm|9385&nse_cm|14977&nse_cm|1270&nse_cm|385&nse_cm|2475&nse_cm|7229&nse_cm|11411&nse_cm|1660&nse_cm|18039&nse_cm|18391&nse_cm|1168&nse_cm|1919&nse_cm|14111&nse_cm|10637&nse_cm|3509&nse_cm|17424&nse_cm|4747&nse_cm|31415&nse_cm|11778&nse_cm|12489&nse_cm|13081&nse_cm|11723&nse_cm|22377&nse_cm|4433&nse_cm|16713&nse_cm|4306&nse_cm|15007&nse_cm|11983&nse_cm|3426&nse_cm|3329&nse_cm|31181&nse_cm|5926&nse_cm|1nse_cm|21690&nse_cm|25897&nse_cm|14537&nse_cm|8075&nse_cm|13976&nse_cm|3432&nse_cm|8163&nse_cm|20825&nse_cm|592&nse_cm|11399&nse_cm|20936&nse_cm|1639&nse_cm|13816&nse_cm|11626&nse_cm|13409&nse_cm|14657&nse_cm|1756&nse_cm|21508&nse_cm|9552&nse_cm|3637&nse_cm|3351&nse_cm|1250&nse_cm|2316&nse_cm|9385&nse_cm|14977&nse_cm|1270&nse_cm|385&nse_cm|2475&nse_cm|7229&nse_cm|11411&nse_cm|1660&nse_cm|18039&nse_cm|18391&nse_cm|1168&nse_cm|1919&nse_cm|14111&nse_cm|10637&nse_cm|3509&nse_cm|17424&nse_cm|4747&nse_cm|31415&nse_cm|11778&nse_cm|12489&nse_cm|13081&nse_cm|11723&nse_cm|22377&nse_cm|4433&nse_cm|16713&nse_cm|4306&nse_cm|15007&nse_cm|11983&nse_cm|3426&nse_cm|3329&nse_cm|31181&nse_cm|5926&nse_cm|14947&nse_cm|24532&nse_cm|3546&nse_cm|10099&nse_cm|3672&nse_cm|18822&nse_cm|4481&nse_cm|330&nse_cm|13688&nse_cm|2972&nse_cm|1041&nse_cm|17438&nse_cm|11351&nse_cm|9590&nse_cm|6994&bse_cm|532742&nse_cm|14068&nse_cm|1267&nse_cm|17094&nse_cm|422&nse_cm|19235&nse_cm|25718&bse_cm|531543&nse_cm|18908&nse_cm|11301&nse_cm|25724&nse_cm|270&nse_cm|6596&nse_cm|3499&nse_cm|14304&nse_cm|1127&nse_cm|15184&nse_cm|380&nse_cm|3423&nse_cm|981&bse_cm|543458&nse_cm|11522&nse_cm|8124&nse_cm|1185&nse_cm|17635&nse_cm|13538&nse_cm|3375&nse_cm|14086&nse_cm|20778&nse_cm|29284&nse_cm|3048&nse_cm|1174&nse_cm|10755&nse_cm|30023&nse_cm|3745&nse_cm|2783&nse_cm|2489&nse_cm|1315&nse_cm|275&nse_cm|100&nse_cm|17939&nse_cm|2708&nse_cm|2142&nse_cm|11872&nse_cm|5475&nse_cm|163&nse_cm|3906&nse_cm|3024&nse_cm|18154&nse_cm|20560&nse_cm|25780&nse_cm|1196&nse_cm|1594&nse_cm|2085&nse_cm|18652&nse_cm|15332&nse_cm|24184&nse_cm|2043&nse_cm|3220&nse_cm|13648&nse_cm|17486&nse_cm|15313&nse_cm|2963&nse_cm|20877&nse_cm|1134&nse_cm|17945&nse_cm|5610&nse_cm|1330&nse_cm|1455&nse_cm|324&nse_cm|7406&nse_cm|1336&nse_cm|13750&nse_cm|10440&nse_cm|17818&nse_cm|18365&nse_cm|10738&nse_cm|11536&nse_cm|15283&nse_cm|8119&nse_cm|3718&nse_cm|11630&nse_cm|14329&nse_cm|17957&nse_cm|11543&nse_cm|9356&nse_cm|263&nse_cm|10940&nse_cm|6818&nse_cm|10726&nse_cm|772&nse_cm|5748&nse_cm|11739&nse_cm|17728&nse_cm|5385&nse_cm|1726&nse_cm|11782&nse_cm|399&nse_cm|1076&nse_cm|11253&nse_cm|220&nse_cm|14299&nse_cm|18252&nse_cm|24231&nse_cm|467&nse_cm|14567&nse_cm|857&nse_cm|2144&nse_cm|811&nse_cm|10999&nse_cm|13826&nse_cm|676&nse_cm|10447&nse_cm|4717&nse_cm|11195&nse_cm|8054&nse_cm|25017&nse_cm|3456&nse_cm|2442&nse_cm|1164&nse_cm|1838&nse_cm|3273&nse_cm|357&nse_cm|11654&nse_cm|438&nse_cm|18321&nse_cm|16669&nse_cm|13310&nse_cm|10243&nse_cm|20302&nse_cm|739&nse_cm|18096&nse_cm|4598&nse_cm|3493&nse_cm|317&nse_cm|2841&nse_cm|19234&nse_cm|1808&nse_cm|1363&nse_cm|12124&nse_cm|10666&nse_cm|7374&nse_cm|2412&nse_cm|30089&nse_cm|21951&nse_cm|13270&nse_cm|9917&nse_cm|14889&nse_cm|17520&nse_cm|19061&nse_cm|15337&nse_cm|19271&nse_cm|17307&nse_cm|3186&nse_cm|3579&nse_cm|193&nse_cm|1627&nse_cm|637&nse_cm|11840&nse_cm|17971&nse_cm|17758&nse_cm|305&nse_cm|1333&nse_cm|17685&nse_cm|1375&nse_cm|20374&nse_cm|17534&nse_cm|7936&nse_cm|3766&nse_cm|5049&nse_cm|2183&nse_cm|16675&nse_cm|4668&nse_cm|277&nse_cm|1805&nse_cm|7506&nse_cm|11581&nse_cm|2705&nse_cm|714&nse_cm|13920&nse_cm|14672&nse_cm|881&nse_cm|18457&nse_cm|1232&nse_cm|1205&nse_cm|30108&nse_cm|1139&nse_cm|14356&nse_cm|338&nse_cm|7&nse_cm|1476&nse_cm|11355&nse_cm|17641&nse_cm|335

      posted in Bugs
      N
      nbmaiti
    • RE: Unable to genrate session or refresh token

      @admin

      I am also getyting error on
      #fetch User Profile
      userProfile= obj.getProfile(refreshToken)

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

      Used clientID N82817. -- It was working fine for last few months now stopped why...

      posted in Python SDK
      N
      nbmaiti
    • RE: Websocket No error but no update

      @rajanprabu @admin

      Is there any limitation on websocket , no of scripts/ websocket no of datafeed /sec/min..

      I have around 750 scripts subscribed
      I didn't receive any data script data today. Only "hb" and "tm" datas are I am getting....

      Please reply its urgent, its blocking my trades

      posted in General Discussion
      N
      nbmaiti
    • RE: Websocket No error but no update

      @admin can you please reply. Tried to reach on through phone customer support, still waiting call back from smart api team. none replied.

      Was the web socket was down for data feed? Will it work further?

      Using Python SDK.. No backend change/sdk change happened in 1-2 days which may have broken it.

      posted in General Discussion
      N
      nbmaiti
    • Websocket No error but no update

      Re: websocket

      Websocket showing no error today. But Not givining any stream data . only hearbeat datas are getting received. today.

      1. Is it down today.?? @administrators @admin ??? It was working yday.

      2. Can I rely on the smart api websocket?

      posted in General Discussion
      N
      nbmaiti
    • RE: Socket close method

      Yes I also dont know, as of now killing the spawned process.

      posted in Bugs
      N
      nbmaiti
    • RE: Dynamic symbol change for websocket

      Is there any update on it?

      posted in Python SDK
      N
      nbmaiti
    • How to fetch last price (LTP) of multiple instrument in one API Call

      Re: How to fetch last price (LTP) of multiple instrument in one API Call

      Hi @admin is it supported now? I am trying to fetch multi instrument

      posted in Python SDK
      N
      nbmaiti