Navigation

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

    Posts made by rajbahadur

    • RE: Getting only time feed when requesting with nse_fo and MW

      @admin any update this ?

      posted in NodeJS SDK
      R
      rajbahadur
    • RE: Websocket Order Status

      @rajbahadur @admin Any update on this?

      posted in Bugs
      R
      rajbahadur
    • RE: Websocket Order Status

      @admin Here is my code

          //register websocket
          smartWebsocket = new SmartWebsocket(AngelBrokingConstant.CLIENT_ID, user.getAccessToken(), AngelBrokingConstant.API_KEY, "subscribe", "order_feed");
          smartWebsocket.setOnTickerArrivalListener(this);
          smartWebsocket.setOnDisconnectedListener(this);
          smartWebsocket.setOnConnectedListener(this);
          smartWebsocket.connect();
      

      /// AND

      @Override
      public void onTicks(JSONArray jsonArray) {
          System.out.println(" On Ticks " + jsonArray);
      }
      
      @Override
      public void onConnected() {
          System.out.println("Web:socket connected.");
          smartWebsocket.runscript();
          System.out.println("WS connection is " + this.smartWebsocket.isConnectionOpen());
      }
      
      @Override
      public void onDisconnected() {
          System.out.println("Web:socket is disconnected.");
      }
      
      posted in Bugs
      R
      rajbahadur
    • RE: Websocket Order Status

      @admin Does Websocket Order Status API in Java work? I am able to successfully subscribe to the order feed but do not get any callback/update when I place the order.

      posted in Bugs
      R
      rajbahadur
    • RE: Not able to place AMO order

      @Ashok Thanks. It worked.

      posted in NodeJS SDK
      R
      rajbahadur
    • RE: Not able to place AMO order

      @admin Not able to place AMO order. Always getting 400 ( Bad request )

      Params are
      {"quantity":25,"triggerprice":"0","squareoff":"0","stoploss":"0","transactiontype":"BUY","producttype":"NRML","duration":"DAY","variety":"amo","price":0,"tradingsymbol":"BANKNIFTY01JUL2132500PE","exchange":"NFO","symboltoken":"52193","ordertype":"MARKET"}

      posted in NodeJS SDK
      R
      rajbahadur