Navigation

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

    pratikpopat92

    @pratikpopat92

    1
    Reputation
    8
    Posts
    9
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Location Mumbai Age 32

    pratikpopat92 Follow

    Best posts made by pratikpopat92

    This user hasn't posted anything yet.

    Latest posts made by pratikpopat92

    • RE: Incorrect Nifty 50 data from sockets

      @pratikpopat92 @admin Any update on this? Close value of Nifty and Bank nifty today also was not proper.

      {
      subscriptionMode: 3,
      exchangeType: 1,
      token: '99926000'
      sequenceNumber: 0,
      exchangeTimeStamp: '3/13/2023, 3:31:25 PM',
      LTP: '17,154.3',
      LTQ: '0',
      averagePrice: '0',
      volume: '0',
      totalBuyQuantity: '0',
      totalSellQuantity: '0',
      open: '17,421.9',
      high: '17,529.9',
      low: '17,113.45',
      previousClose: '17,589.6',
      lastTradedTimestamp: 1970-01-01T00:00:00.000Z,
      openIntrest: '0',
      upperCircuitLimit: '0',
      lowerCircuitLimit: '0',
      high_52_week: '0',
      low_52_week: '0',
      }

      {
      subscriptionMode: 3,
      exchangeType: 1,
      token: '99926009',
      sequenceNumber: 0,
      exchangeTimeStamp: '3/13/2023, 3:31:23 PM',
      LTP: '39,564.7',
      LTQ: '0',
      averagePrice: '0',
      volume: '0',
      totalBuyQuantity: '0',
      totalSellQuantity: '0',
      open: '40,356.1',
      high: '40,690.05',
      low: '39,454.6',
      previousClose: '41,577.1',
      lastTradedTimestamp: 1970-01-01T00:00:00.000Z,
      openIntrest: '0',
      upperCircuitLimit: '0',
      lowerCircuitLimit: '0',
      high_52_week: '0',
      low_52_week: '0',

      }

      posted in General Discussion
      P
      pratikpopat92
    • Incorrect Nifty 50 data from sockets

      Hello,
      I have subscribed to websocket 2.0 and converting data from binary using nodejs buffer library, so far data is appropriate but for nifty 50 index, data (open,high,low) is not proper, and 52 week low for all instruments is 0, attaching decrypted data for reference, (ignore market depth) please check.

      {
      subscriptionMode: 3,
      exchangeType: 1,
      token: '26000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00',
      sequenceNumber: 9622957,
      exchangeTimeStamp: '06/02/2023, 13:48:37',
      LTP: '17,751.4',
      LTQ: '0',
      averagePrice: '0',
      volume: '0',
      totalBuyQuantity: '0',
      totalSellQuantity: '0',
      open: '16,798.05',
      high: '17,187.1',
      low: '16,747.7',
      previousClose: '17,854.05',
      lastTradedTimestamp: 1970-01-01T00:00:00.000Z,
      openIntrest: '9,81,35,450',
      upperCircuitLimit: '0',
      lowerCircuitLimit: '0',
      high_52_week: '17,642.15',
      low_52_week: '0',
      marketDepth: [
      { flag: 1, quantity: '0', price: '0', ordersNo: '0' },
      { flag: 1, quantity: '0', price: '0', ordersNo: '0' },
      { flag: 1, quantity: '0', price: '0', ordersNo: '0' },
      { flag: 1, quantity: '0', price: '0', ordersNo: '0' },
      { flag: 1, quantity: '0', price: '0', ordersNo: '0' },
      { flag: 0, quantity: '0', price: '0', ordersNo: '0' },
      { flag: 0, quantity: '0', price: '0', ordersNo: '0' },
      { flag: 0, quantity: '0', price: '0', ordersNo: '0' },
      { flag: 0, quantity: '0', price: '0', ordersNo: '0' },
      { flag: 0, quantity: '0', price: '0', ordersNo: '0' }
      ]
      }

      posted in General Discussion
      P
      pratikpopat92
    • RE: Getting Error AB1050

      @sauronx After installing library from npm, make changes in lib > smart-api.js > line 148 there is a function "self.generateSession" and in function call "smart_api.generateSession("CLIENT_CODE", "PASSWORD")" pass totp here.

      posted in Bugs
      P
      pratikpopat92
    • RE: About TOTP

      @Mr-Depp Hi Depp, why don't you make changes in the library and submit pr?

      posted in C#/.Net SDK
      P
      pratikpopat92
    • RE: getLtp returning AB1018 error

      @Mahesh Hi Mahesh, it seems you are passing wrong token, I guess you are asking for this.

      {
      "token": "245263",
      "symbol": "NATURALGAS22OCTFUT",
      "name": "NATURALGAS",
      "expiry": "26OCT2022",
      "strike": "0.000000",
      "lotsize": "1250",
      "instrumenttype": "FUTCOM",
      "exch_seg": "MCX",
      "tick_size": "10.000000"
      }

      posted in NodeJS SDK
      P
      pratikpopat92
    • RE: Getting Error AB1050

      @sauronx
      You are not passing totp, I guess they haven't updated their library to accept totp in constructor.

      posted in Bugs
      P
      pratikpopat92
    • CORS error

      Hello,
      I am sending request from react app to socket endpoint, there is an issue of CORS, can anyone help what is the workaround or is there any other way to connect to socket from javascript?

      posted in General Discussion
      P
      pratikpopat92
    • Market Depth Data

      Hello @admin
      I am getting data from WebSockets but market depth info viz, best 5 bids/asks are missing, where to find them?
      Screenshot 2020-12-16 at 3.05.59 PM.png

      posted in Bugs
      P
      pratikpopat92