☰
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.1K
All Categories
0
Incidents
157
Node JS client
41
Go client
798
.Net API client
385
Kite Publisher
537
.Net / VBA / Excel (3rd party)
463
Algorithms and Strategies
1K
Java client
1.1K
API clients
408
PHP client
4.1K
Python client
349
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.