Navigation

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

    Posts made by charlotteemma4

    • RE: Discrepancy Between Real-Time and Historical Market Data: Causes and Impact on Algo Trading Decisions

      Bad data can lead to wrong trading decisions, as it can cause the algorithm to buy or sell at the wrong time or price. Slow or incomplete data can cause the algorithm to miss profit opportunities spacebar clicker and delay orders, leading to slippage or failed trades.While algorithmic trading is criticized for creating excess volatility and destabilizing stock markets, some evidence suggests that algorithmic trading positively impacts market quality by

      posted in General Discussion
      charlotteemma4
      charlotteemma4
    • RE: OHL of Index

      you share your snippet of websocket connection

      posted in Python SDK
      charlotteemma4
      charlotteemma4
    • RE: OHL of Index

      @admin {'26000': {'High': 0.0, 'Low': 0.0, 'Open': 0.0, 'close': 24334.2, 'ltp': 24346.7, 'Bid': 0.0, 'Ask': 0.0}, '26009': {'High': 0.0, 'Low': 0.0, 'Open': 0.0, 'close': 55087.15, 'ltp': 55115.35, 'Bid': 0.0, 'Ask': 0.0}, '38608': {'High': 319.9, 'Low': 92.5, 'Open': 180.9, 'close': 180.25, 'ltp': 96.1, 'Bid': 96.2, 'Ask': 97.25}, '58549': {'High': 1981.3, 'Low': 1428.0, 'Open': 1599.95, 'close': 1552.75, 'ltp': 1458.15, 'Bid': 1458.25, 'Ask': 1465.0}, '57130': {'High': 55929.0, 'Low': 55073.6, 'Open': 55250.2, 'close': 55241.8, 'ltp': 55191.8, 'Bid': 55191.8, 'Ask': 55195.0}, '38610': {'High': 284.0, 'Low': 75.6, 'Open': 146.0, 'close': 156.85, 'ltp': 79.25, 'Bid': 78.35, 'Ask': 78.95}, '120151': {'High': 19.4, 'Low': 13.1, 'Open': 14.15, 'close': 13.45, 'ltp': 17.65, 'Bid': 17.45, 'Ask': 17.65}, '57133': {'High': 24718.3, 'Low': 24310.0, 'Open': 24399.9, 'close': 24418.4, 'ltp': 24395.1, 'Bid': 24394.2, 'Ask': 24395.1}, '38603': {'High': 234.0, 'Low': 83.8, 'Open': 234.0, 'close': 217.45, 'ltp': 148.4, 'Bid': 148.4, 'Ask': 150.15}, '58539': {'High': 705.15, 'Low': 446.1, 'Open': 680.0, 'close': 658.15, 'ltp': 618.0, 'Bid': 618.0, 'Ask': 620.0}}

      posted in Python SDK
      charlotteemma4
      charlotteemma4
    • OHL of Index

      Why Open, High, Low data not is available in web socket for INDEX( Bank Nifty, Nifty 50, Nifty Next 50 ,Nifty Fin Service, NIFTY MID SELECT) Why only LTP?

      posted in Python SDK
      charlotteemma4
      charlotteemma4
    • RE: AMO order

      @admin [E 250314 09:20:42 smartConnect:246] Error occurred while making a POST request to https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/cancelOrder. Error: Invalid Order Variety. Value should be NORMAL, STOPLOSS, ROBO.
      OrderBook's variety is AMO

      posted in Python SDK
      charlotteemma4
      charlotteemma4
    • AMO order

      How to cancel AMO "open" order?

      posted in Python SDK
      charlotteemma4
      charlotteemma4
    • INVALID TOKEN

      Error code AG8001-invalid token. which token is invalid?
      jwtToken;
      refreshToken;
      feedToken;
      symbol token

      posted in General Discussion
      charlotteemma4
      charlotteemma4
    • Option Greeks

      Option Greeks data is available after market close?
      if not mention in doc data not available after market close

      posted in General Discussion
      charlotteemma4
      charlotteemma4
    • Unsubscribe token

      What is right in following:
      sws.unsubscribe(correlation_id, mode, token_list1)
      or
      sws.subscribe(action=0, correlation_id, mode)
      or
      sws.subscribe(action=0, mode, token_list1)
      or
      sws.unsubscribe(action=0, correlation_id, mode, token_list1)
      or
      sws.unsubscribe(action=0, correlation_id, mode, )

      or
      sws.unsubscribe(action=0, correlation_id, token_list1)

      or
      sws.unsubscribe( correlation_id, mode, token_list1)

      or
      sws.unsubscribe(action, mode, token_list1)

      posted in General Discussion
      charlotteemma4
      charlotteemma4
    • error. ver1.4.8

      [E 240321 11:39:06 smartWebSocketV2:212] Error occurred during subscribe: [WinError 10054] An existing connection was forcibly closed by the remote host
      [WinError 10054] An existing connection was forcibly closed by the remote host

      posted in Test
      charlotteemma4
      charlotteemma4
    • RE: Python function for Option Greeks

      @godboleamit .Not works. getOptionGreeks not define

      posted in Python SDK
      charlotteemma4
      charlotteemma4
    • RE: Wrong historical data

      @Moderator_2 Angel.png nse.png

      check Nse fobhacopy with your (daily) historical data.

      posted in Test
      charlotteemma4
      charlotteemma4
    • Wrong historical data

      Nuvama.png Hdfcbank29FEB24FUT.png. in Nuvama's(pic) was right data but in your excel show wrong. check it.

      posted in Test
      charlotteemma4
      charlotteemma4
    • For connection timeout

      May be issue with internet connection connectivity if ok then check your internet connection is public connection or private connection, if public connection, change to private connection

      posted in General Discussion
      charlotteemma4
      charlotteemma4
    • __version__ = "1.4.1"

      SmartApi\smartConnect.py", line 97, in init

          self.ssl_context = ssl.create_default_context()
      
      NameError: name 'ssl' is not defined
      
      posted in Test
      charlotteemma4
      charlotteemma4
    • RE: Websocket order status in JavaScript

      @jayesh_sapkale
      /* Order Websocket */
      String userClientId = "<clientId>";
      User userGenerateSession = smartConnect.generateSession("<clientId>", "<password>", "<totp>");
      smartConnect.setAccessToken(userGenerateSession.getAccessToken());
      smartConnect.setUserId(userGenerateSession.getUserId());
      String accessToken = userGenerateSession.getAccessToken();

      examples.orderUpdateUsage(accessToken);
      
      /**
       * Order update websocket
       *
       * To retrieve order update websocket data
       * @param accessToken
       */
      public void orderUpdateUsage(String accessToken){
              OrderUpdateWebsocket orderUpdateWebsocket = new OrderUpdateWebsocket(accessToken, new OrderUpdateListner() {
      /**
       * Check if the websocket is connected or not
       */
      @Override
      public void onConnected() {
          
          log.info("order update websocket connected");
          
      }
      
      /**
       * Handle the onDisconnected event
       */
      @Override
      public void onDisconnected() {
          
          log.info("order update websocket disconnected");
          
      }
      
      /**
       * Handle the onError event
       * @param error
       */
      @Override
      public void onError(SmartStreamError error) {
          
          log.info("on error event");
          
      }
      
      /**
       * Handle the onPong event
       */
      @Override
      public void onPong() {
          
          log.info("or pong event");
          
      }
      
      /**
       * Handle the onOrderUpdate event
       * @param data
       */
      @Override
      public void onOrderUpdate(String data) {
          
          log.info("order update data {} ",data);
              
       }});
              
      }
      
      posted in General Discussion
      charlotteemma4
      charlotteemma4
    • ChatGTP's answer

      Increase Timeout Values:

      If you have control over the connection parameters, consider increasing the timeout values. Depending on the library or method you're using to establish the connection, there might be a timeout parameter that you can adjust.

      posted in General Discussion
      charlotteemma4
      charlotteemma4
    • Basic needs

      A basic requirement is a stable connection to any API. Which has not been resolved till date.

      posted in General Discussion
      charlotteemma4
      charlotteemma4
    • ERROR

      error from callback <bound method SmartWebSocketV2._on_close of <SmartApi.smartWebSocketV2.SmartWebSocketV2 object at 0x000001B472CBF1C0>>: _on_close() takes 2 positional arguments but 4 were given

      posted in Test
      charlotteemma4
      charlotteemma4