• sujith
    When you request for a quote data and if the server doesn't have any cached value then it will return empty JSON in response. Before you consume data, add a check for the containsKey NSE:IL&FSTRANS. I just tried and got this response
    {
    "status": "success",
    "data": {
    "NSE:IL\u0026FSTRANS": {
    "instrument_token": 4696321,
    "timestamp": "2018-02-08 11:24:48",
    "last_price": 76.2,
    "last_quantity": 50,
    "last_trade_time": "2018-02-08 11:24:48",
    "average_price": 75.97,
    "volume": 86831,
    "buy_quantity": 106869,
    "sell_quantity": 121404,
    "ohlc": {
    "open": 75.1,
    "high": 76.9,
    "low": 74.05,
    "close": 74.05
    },
    "net_change": 0,
    "oi": 0,
    "oi_day_high": 0,
    "oi_day_low": 0,
    "depth": {
    "buy": [{
    "price": 76.05,
    "quantity": 50,
    "orders": 1
    }, {
    "price": 76,
    "quantity": 1729,
    "orders": 8
    }, {
    "price": 75.95,
    "quantity": 790,
    "orders": 2
    }, {
    "price": 75.85,
    "quantity": 705,
    "orders": 3
    }, {
    "price": 75.8,
    "quantity": 1,
    "orders": 1
    }],
    "sell": [{
    "price": 76.2,
    "quantity": 140,
    "orders": 1
    }, {
    "price": 76.25,
    "quantity": 409,
    "orders": 2
    }, {
    "price": 76.3,
    "quantity": 144,
    "orders": 1
    }, {
    "price": 76.35,
    "quantity": 730,
    "orders": 3
    }, {
    "price": 76.4,
    "quantity": 56,
    "orders": 1
    }]
    }
    }
    }
    }
  • onkarmurthy_85
    Hi Sujith

    Can you please post here what api you used....i mean how did you get the response
  • onkarmurthy_85
    got it..thanks
This discussion has been closed.