☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
14.2K
All Categories
0
Incidents
159
Node JS client
45
Go client
804
.Net API client
386
Kite Publisher
538
.Net / VBA / Excel (3rd party)
466
Algorithms and Strategies
1K
Java client
1.1K
API clients
408
PHP client
4.1K
Python client
350
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
November 2021
SRIJAN
How to get 1st Buy (bid) and 1st (sell) ask price from depth
shivesh1987
November 2021
in
Python client
Hi Sir,
I am doing below code. Till "buy" I am getting it. But I want to retrieve 1st buy and 1st sell price from depth
Code -
symbol='NFO:ICICIBANK21DECFUT'
f2=quoteMethod1(symbol)
#print(f2)
current=f2['NFO:ICICIBANK21DECFUT']['depth']['buy']
print (current)
output -
[{'price': 731.05, 'quantity': 1375, 'orders': 1}, {'price': 731, 'quantity': 5500, 'orders': 4}, {'price': 730.95, 'quantity': 1375, 'orders': 1}, {'price': 730.9, 'quantity': 1375, 'orders': 1}, {'price': 730.85, 'quantity': 2750, 'orders': 2}]
Now how can I get 1st price like "731.05" ?????
SRIJAN
November 2021
edited November 2021
You should learn some python instead of asking about basic python here on the forum. Its about kite connect api,not to teach you basic python.
Sign In
or
Register
to comment.