web-socket rates are hanged for 1 hour yesterday

sbdavra
Hello Team,
yesterday i faced very serious issue in web-socket streaming ,

i did not get live feed of MCXFUT from 10:50 PM to till market closed.
i restarted our running application lot of times but every time i got same rate .

because of this i got some wrong analysis alert ..

so please let me know that what was that issue , is it from your end ??
if it is , then please resolve it ..

thanks
  • rakeshr
    @sbdavra
    Websocket-streaming was working fine throughout till the market close till 23:55.
    i restarted our running application lot of times but every time i got same rate.
    Can you paste a complete error log here?
  • sbdavra
    no, it was not worked well from 10:55 PM to 11:55 PM
    hello sir, i am using your service since last 1 year..

    unfortunately i don't have any specific log right now , but it was hanged for sure...

    i tried everything and lot of times in that 1 hour period , but i did not got any feed from your server...
    every time i got same hanged rates in your web-socket feed and in your REST API request both ..

    so i request you to check it seriously from your end . and reply very genuinely ..

    thanks
    regards
    Shailesh

  • sujith
    Hi @sbdavra,
    We did check the logs, we didn't observe any irregularities. We also checked the candles on the charts. Everything indeed seems fine from our end. I am not sure what happened in your case.
  • sbdavra
    just wants to one technical thing from your end.

    suppose your web-socket stream is hanged and i will generate new token and reconnect with new generated token then it will connect with different server then previous one...

    ....
  • sujith
    It will connect to the same server.
  • ruchanavjyot1907
    I had also faced same problem for MCX FUT instruments. There were no ticks on socket from 10:39:20 PM till market close. There was no error but still it was running without ticks as if non-market hours.

    I have copied my logs below:
    2020-02-19 22:39:17.319 [ReadingThread] INFO  TROnTicks.onTicks - Received tick for 55530247 with LTP : 166.75 and timestamp Wed Feb 19 22:39:16 IST 2020
    2020-02-19 22:39:17.330 [ReadingThread] INFO TROnTicks.onTicks - Received tick for 0 instruments
    2020-02-19 22:39:17.921 [ReadingThread] INFO TROnTicks.onTicks - Received tick for 1 instruments
    2020-02-19 22:39:17.921 [ReadingThread] INFO TROnTicks.onTicks - Received tick for 55506951 with LTP : 3837.0 and timestamp Wed Feb 19 22:39:17 IST 2020
    2020-02-19 22:39:18.511 [ReadingThread] INFO TROnTicks.onTicks - Received tick for 1 instruments
    2020-02-19 22:39:18.511 [ReadingThread] INFO TROnTicks.onTicks - Received tick for 55530247 with LTP : 166.7 and timestamp Wed Feb 19 22:39:17 IST 2020
    2020-02-19 22:39:20.327 [ReadingThread] INFO TROnTicks.onTicks - Received tick for 0 instruments
    2020-02-19 22:39:23.327 [ReadingThread] INFO TROnTicks.onTicks - Received tick for 0 instruments
    2020-02-19 22:39:26.336 [ReadingThread] INFO TROnTicks.onTicks - Received tick for 0 instruments
    2020-02-19 22:39:29.326 [ReadingThread] INFO TROnTicks.onTicks - Received tick for 0 instruments
    2020-02-19 22:39:32.327 [ReadingThread] INFO TROnTicks.onTicks - Received tick for 0 instruments
    2020-02-19 22:39:35.338 [ReadingThread] INFO TROnTicks.onTicks - Received tick for 0 instruments
    2020-02-19 22:39:38.336 [ReadingThread] INFO TROnTicks.onTicks - Received tick for 0 instruments
  • sujith
    sujith edited February 2020
    We have asked our team to run some tests tonight. Let us see if we can get to know something.

    @sbdavra, @ruchanavjyot1907, You were connected but there were no ticks, right?
  • ruchanavjyot1907
    @sujith Yes that's right. I was connected but there were no ticks received on socket.
  • rakeshr
    @sbdavra @ruchanavjyot1907
    no, it was not worked well from 10:55 PM to 11:55 PM
    All the ticks were coming correct for the above mentioned period on 20th and 21st,as checked from log.You can check tick details as below.
    Ticks: [{'tradable': True, 'mode': 'full', 'instrument_token': 55506951, 'last_price': 3898.0, 'last_quantity': 1, 'average_price': 3886.08, 'volume': 409067, 'buy_quantity': 12091, 'sell_quantity': 10533, 'ohlc': {'open': 3860.0, 'high': 3949.0, 'low': 3843.0, 'close': 3850.0}, 'change': 1.2467532467532467, 'last_trade_time': datetime.datetime(2020, 2, 20, 22, 58, 13), 'oi': 24556, 'oi_day_high': 31678, 'oi_day_low': 15878, 'timestamp': datetime.datetime(2020, 2, 20, 22, 58, 15), 'depth': {'buy': [{'quantity': 430, 'price': 3897.0, 'orders': 74}, {'quantity': 187, 'price': 3896.0, 'orders': 77}, {'quantity': 347, 'price': 3895.0, 'orders': 73}, {'quantity': 149, 'price': 3894.0, 'orders': 50}, {'quantity': 140, 'price': 3893.0, 'orders': 39}], 'sell': [{'quantity': 295, 'price': 3898.0, 'orders': 27}, {'quantity': 414, 'price': 3899.0, 'orders': 75}, {'quantity': 342, 'price': 3900.0, 'orders': 84}, {'quantity': 187, 'price': 3901.0, 'orders': 50}, {'quantity': 131, 'price': 3902.0, 'orders': 25}]}}]

    Ticks: [{'tradable': True, 'mode': 'full', 'instrument_token': 55506951, 'last_price': 3909.0, 'last_quantity': 5, 'average_price': 3887.01, 'volume': 439730, 'buy_quantity': 6521, 'sell_quantity': 5446, 'ohlc': {'open': 3860.0, 'high': 3949.0, 'low': 3843.0, 'close': 3850.0}, 'change': 1.5324675324675325, 'last_trade_time': datetime.datetime(2020, 2, 20, 23, 53, 19), 'oi': 15472, 'oi_day_high': 31678, 'oi_day_low': 15472, 'timestamp': datetime.datetime(2020, 2, 20, 23, 53, 20), 'depth': {'buy': [{'quantity': 116, 'price': 3909.0, 'orders': 7}, {'quantity': 271, 'price': 3908.0, 'orders': 45}, {'quantity': 184, 'price': 3907.0, 'orders': 19}, {'quantity': 280, 'price': 3906.0, 'orders': 17}, {'quantity': 174, 'price': 3905.0, 'orders': 17}], 'sell': [{'quantity': 239, 'price': 3910.0, 'orders': 49}, {'quantity': 147, 'price': 3911.0, 'orders': 22}, {'quantity': 11, 'price': 3912.0, 'orders': 4}, {'quantity': 22, 'price': 3913.0, 'orders': 11}, {'quantity': 99, 'price': 3914.0, 'orders': 12}]}}]

    Ticks: [{'tradable': True, 'mode': 'full', 'instrument_token': 55506951, 'last_price': 3844.0, 'last_quantity': 1, 'average_price': 3825.71, 'volume': 247259, 'buy_quantity': 14844, 'sell_quantity': 10133, 'ohlc': {'open': 3896.0, 'high': 3896.0, 'low': 3800.0, 'close': 3904.0}, 'change': -1.5368852459016393, 'last_trade_time': datetime.datetime(2020, 2, 21, 22, 45, 19), 'oi': 24344, 'oi_day_high': 26903, 'oi_day_low': 14881, 'timestamp': datetime.datetime(2020, 2, 21, 22, 45, 20), 'depth': {'buy': [{'quantity': 140, 'price': 3843.0, 'orders': 17}, {'quantity': 359, 'price': 3842.0, 'orders': 92}, {'quantity': 193, 'price': 3841.0, 'orders': 88}, {'quantity': 273, 'price': 3840.0, 'orders': 124}, {'quantity': 72, 'price': 3839.0, 'orders': 25}], 'sell': [{'quantity': 220, 'price': 3844.0, 'orders': 39}, {'quantity': 398, 'price': 3845.0, 'orders': 92}, {'quantity': 269, 'price': 3846.0, 'orders': 71}, {'quantity': 336, 'price': 3847.0, 'orders': 117}, {'quantity': 241, 'price': 3848.0, 'orders': 112}]}}]

    Ticks: [{'tradable': True, 'mode': 'full', 'instrument_token': 55506951, 'last_price': 3855.0, 'last_quantity': 1, 'average_price': 3829.98, 'volume': 294521, 'buy_quantity': 4989, 'sell_quantity': 4442, 'ohlc': {'open': 3896.0, 'high': 3896.0, 'low': 3800.0, 'close': 3904.0}, 'change': -1.2551229508196722, 'last_trade_time': datetime.datetime(2020, 2, 21, 23, 53, 20), 'oi': 14904, 'oi_day_high': 26903, 'oi_day_low': 14881, 'timestamp': datetime.datetime(2020, 2, 21, 23, 53, 20), 'depth': {'buy': [{'quantity': 17, 'price': 3854.0, 'orders': 4}, {'quantity': 113, 'price': 3853.0, 'orders': 28}, {'quantity': 39, 'price': 3852.0, 'orders': 14}, {'quantity': 122, 'price': 3851.0, 'orders': 23}, {'quantity': 81, 'price': 3850.0, 'orders': 28}], 'sell': [{'quantity': 127, 'price': 3855.0, 'orders': 12}, {'quantity': 12, 'price': 3856.0, 'orders': 7}, {'quantity': 30, 'price': 3857.0, 'orders': 5}, {'quantity': 11, 'price': 3858.0, 'orders': 5}, {'quantity': 27, 'price': 3859.0, 'orders': 4}]}}]
  • ruchanavjyot1907
    ruchanavjyot1907 edited February 2020
    @rakeshr can you please check logs I have provided earlier, the issue has been reported for 19th Feb 2020 from 22:40 to 23:55 and not for 20th/21st Feb.
  • sujith
    We had checked the logs and we haven't found anything wrong and the candles exist for the 19th Feb 2020. Hence we ran tests to check if the same thing happened indeed on 20/21st Feb 2020.
Sign In or Register to comment.