jugaad-py/jugaad-data

Display Buy and Sell Qty Live tick data

riteshdhoke opened this issue · 0 comments

Request for New Feature

Hi, Can you please add 2 more elements(Buy and Sell Qty) respectively to Live tick data which may display as follows:

tick_data = n.tick_data("HDFC")
tick_data['grapthData'][0:2]

[[1611566100000, 2635,2453,1235],
 [1611566101000, 2636.25,2108,1987]]

Thanks in advance

where you observed this data

sellQty and buyQty can be viewed in premarket data, same required for live tick data.

q = n.stock_quote("HDFC")
q['preOpenMarket']

{'preopen': [{'price': 2330.55, 'buyQty': 0, 'sellQty': 57},
  {'price': 2400, 'buyQty': 0, 'sellQty': 7},
  {'price': 2408.2, 'buyQty': 0, 'sellQty': 253},
  {'price': 2449, 'buyQty': 0, 'sellQty': 10},
  {'price': 2630.45, 'buyQty': 0, 'sellQty': 0, 'iep': True},
  {'price': 2705.95, 'buyQty': 306, 'sellQty': 0},
  {'price': 2710.5, 'buyQty': 8864, 'sellQty': 0},
  {'price': 2718.9, 'buyQty': 16076, 'sellQty': 0},
  {'price': 2750, 'buyQty': 100, 'sellQty': 0}],
 'ato': {'buy': 1329, 'sell': 169},
 'IEP': 2630.45,
 'totalTradedVolume': 51122,
 'finalPrice': 0,
 'finalQuantity': 0,
 'lastUpdateTime': '25-Jan-2021 09:07:41',
 'totalBuyQuantity': 79071,
 'totalSellQuantity': 58736,
 'atoBuyQty': 1329,
 'atoSellQty': 169}

API endpoint involved

No response