Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Immediate Action Needed

    General Discussion
    13
    1
    17
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vatskartikey04 @bm12679 last edited by

      Re: [Blocking of equity scrips falling under surveillance measures from placeorder API from Friday 24th Jan](after market hours)

      Sir, pls enable scrips to trade, I have made the application with a lot of hardwork putting my time and effort of 2 months and now u are saying we can't place trade. All my work will be ruined and I have to migrate to another broker or can we file complain on consumer portal.

      1 Reply Last reply Reply Quote 0
      • P
        pruthvi @pruthvi last edited by

        Hi,

        we are trying to calculate margin using margin calculator api with body as

        {"positions":[{"exchange":"NFO","token":"51001","qty":75,"price":130.4,"producttype":"CARRYFORWARD","tradetype":"BUY","ordertype":"MARKET"}]}
        

        but getting this response

        {
            "message": "Null or Empty Margin Data",
            "errorcode": "AB4022",
            "status": false,
            "data": null
        }
        

        please help in this issuea

        U 1 Reply Last reply Reply Quote 0
        • U
          urveshmn @A584622 last edited by

          @a584622
          Same for me as well
          U r using smartApi.searchScrip function ?

          M 2 Replies Last reply Reply Quote 0
          • M
            mannsavaliya @A584622 last edited by mannsavaliya

            @a584622 @admin

            Intrument List Url is not working today.

            https://margincalculator.angelone.in/OpenAPI_File/files/OpenAPIScripMaster.json

            not working and throwing 503 error.

            Please Fix as soon as possible. It is needed for Symbol Search.![alt text](Instrument_list_url_not_working.jpg image url)

            J 1 Reply Last reply Reply Quote 0
            • M
              mannsavaliya @admin last edited by mannsavaliya

              @admin

              Instrument List Url is 503 Service Temporarily Unavailable since 16-July 2025 Morning. When you guys are solving this ?

              https://margincalculator.angelone.in/OpenAPI_File/files/OpenAPIScripMaster.json

              f120fe06-b121-4f73-a8c0-c3929d67f79e-image.png

              1 Reply Last reply Reply Quote 0
              • B
                bhatashweeja last edited by

                @bhaveshjain I was able to successfully get the web socket response for script

                script: "nse_cm|2885
                
                feed_token - I am using what i have got as a response from generate session
                

                but the response is something like this

                Receive stock ticks:: [ { ak: 'nk', task: 'cn', msg: 'cn' } ]
                Receive stock ticks:: [ { ak: 'nk', task: 'mw', msg: 'mw' } ]
                

                I can not make much sense out of this data

                Can you please tell me what i might be doing wrong

                p.s : I ran the code on Working days only

                S D 3 Replies Last reply Reply Quote 0
                • S
                  shenoytech @bhatashweeja last edited by

                  @taleevaalam1 hi, can you please share a snipe of python code you are using for streaming the tick data , as i'm trying but i'm not able to get the above format data, whereas @bhaveshjain had messaged me in one of the post that there is some issue with python websocket streaming service, they are trying to fix that,

                  1 Reply Last reply Reply Quote 0
                  • B
                    bhatashweeja last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • D
                      Diljeet @bhatashweeja last edited by

                      @taleevaalam1 I am using NodeJS for live feed through web socket and it is working fine. Two stock ticks you posted occurs everytime on first connection (these are just acknowledgement of successful connection) and after that we get actual market feed. So basically, market feed will come after these two ticks.

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        bhatashweeja @Diljeet last edited by

                        @mihirk So what are we suppose to do after we get this tick response, how do we get the actual market feed, are we suppose to wait and market feed response gonna come eventually after the tick responise?

                        1 Reply Last reply Reply Quote 0
                        • D
                          Diljeet @bhatashweeja last edited by

                          @taleevaalam1 I actually faced same issue that feed was not coming after these two, later found that I was not sending proper feed token and client id. Please check your message. Match it with: '{"task":"mw","channel":"nse_cm|3045","token":"' + feed_token + '","user": "' + user_id + '","acctid":"' + user_id + '"}'

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            bhatashweeja @Diljeet last edited by

                            @mihirk Man i feel so stupid, i had saved the feed token in a variable and was passing "feeedToken" the string as feed Token, anyhow thanks getting the response now.

                            K 1 Reply Last reply Reply Quote 0
                            • K
                              krunal96 @bhatashweeja last edited by

                              Hi @taleevaalam1 , @mihirk ,

                              Just wanted to check, Are you getting live feed data more than 10 mins? As I am getting disconnected from socket after approx 10 mins.

                              Please check:
                              https://smartapi.angelbroking.com/topic/25/auto-closing-of-web-socket

                              If you could help with that.

                              -vishant

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                Diljeet @krunal96 last edited by

                                Hi @vishant,

                                I am facing auto close issue, issue which you shared is opened by me.

                                @taleevaalam1 Can you please check if same is happening with you?

                                1 Reply Last reply Reply Quote 0
                                • T
                                  tcmstunner last edited by

                                  @admin
                                  Hi Admin, at first opening, tick data that I'm getting for token 49853 is as below
                                  { "to": "42797910.00", "lo": "14200.10", "e": "nse_fo", "sp": "14266.90", "c": "14189.45", "ltp": "14266.90", "ltq": "75", "tk": "49853", "bs": "300", "ltt": "07/01/2021 09:15:00", "tsq": "32625", "v": "3000", "bp": "14266.00", "cng": "77.45", "bq": "150", "ap": "14265.97", "nc": "00.55", "name": "sf", "tbq": "80175" }

                                  But when I'm checking here
                                  https://trade.angelbroking.com/portfolio/chart?flag=der&exch=FONSE&instru=FUTIDX&symbol=NIFTY&exp=28-01-2021&option=XX&strikePrice=-1&ntoken=49853&label=NIFTY 28 Jan 2021&lotsize=75&period=5m&views=&display=Candle&defaultPeriod=1D

                                  Opening price is showing 14,200.10
                                  But in above response ltp is 14266.90

                                  Can you please clarify what should be the market open price?

                                  T D 2 Replies Last reply Reply Quote 0
                                  • T
                                    tcmstunner @tcmstunner last edited by

                                    @admin
                                    Please also confirm low price & high price on first opening of market

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      daytrader @tcmstunner last edited by

                                      @tcmstunner said in Live market feed:

                                      @admin
                                      Hi Admin, at first opening, tick data that I'm getting for token 49853 is as below
                                      { "to": "42797910.00", "lo": "14200.10", "e": "nse_fo", "sp": "14266.90", "c": "14189.45", "ltp": "14266.90", "ltq": "75", "tk": "49853", "bs": "300", "ltt": "07/01/2021 09:15:00", "tsq": "32625", "v": "3000", "bp": "14266.00", "cng": "77.45", "bq": "150", "ap": "14265.97", "nc": "00.55", "name": "sf", "tbq": "80175" }

                                      But when I'm checking here
                                      https://trade.angelbroking.com/portfolio/chart?flag=der&exch=FONSE&instru=FUTIDX&symbol=NIFTY&exp=28-01-2021&option=XX&strikePrice=-1&ntoken=49853&label=NIFTY 28 Jan 2021&lotsize=75&period=5m&views=&display=Candle&defaultPeriod=1D

                                      Opening price is showing 14,200.10
                                      But in above response ltp is 14266.90

                                      Can you please clarify what should be the market open price?

                                      @tcmstunner said in Live market feed:

                                      @admin
                                      Please also confirm low price & high price on first opening of market

                                      The high and open field are missing at team is working on it as per admin
                                      https://smartapi.angelbroking.com/topic/142/websocket-data-missing-high-field

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        ameyakhot last edited by

                                        {'task': 'cn', 'channel': 'NONLM', 'token': '', 'user': '', 'acctid': ''}
                                        2021-08-02 09:23:02.974655 : Start task in the background
                                        {'task': 'hb', 'channel': '', 'token': '
                                        ', 'user': '', 'acctid': ''}
                                        on open
                                        Ticks: [{'ak': 'ok', 'msg': 'connected', 'task': 'cn'}]
                                        Ticks: [{'ak': 'ok', 'msg': 'heartbeat', 'task': 'hb'}]
                                        Ticks: [{'name': 'tm', 'tvalue': '02/08/2021 09:23:06'}]
                                        Ticks: [{'name': 'tm', 'tvalue': '02/08/2021 09:23:07'}]
                                        Ticks: [{'name': 'tm', 'tvalue': '02/08/2021 09:23:08'}]
                                        Ticks: [{'name': 'tm', 'tvalue': '02/08/2021 09:23:09'}]

                                        This is the return value I'm getting from the websockets live market feed.
                                        @admin Can you share why this might be happening?

                                        A 1 Reply Last reply Reply Quote 0
                                        • A
                                          admin @ameyakhot last edited by

                                          HI @ameyakhot post your piece of code here.

                                          1 Reply Last reply Reply Quote 0
                                          • P
                                            puna123 @priyanshu last edited by

                                            @bhaveshjain ,
                                            this link is not giving any information . can you check from your side.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post