Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Buy and Sell Qty Live tick data #43

Open
riteshdhoke opened this issue Jan 26, 2023 · 0 comments
Open

Display Buy and Sell Qty Live tick data #43

riteshdhoke opened this issue Jan 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@riteshdhoke
Copy link

riteshdhoke commented Jan 26, 2023

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

@riteshdhoke riteshdhoke added the enhancement New feature or request label Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant