☰
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
158
Node JS client
43
Go client
801
.Net API client
386
Kite Publisher
538
.Net / VBA / Excel (3rd party)
465
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
February 2024
MAG
February 2024
vaibhavsharma13
Python code - Bid and Ask
khalid
February 2024
in
Python client
Hello, I am using below for Last price.
ltp = kite.ltp(ticker_symbol)[ticker_symbol]["last_price"]
Can I know for Bid and Ask, what is the code?
Tagged:
hello
I am using below for Last price. ltp = kite.ltp(ticker_symbol)[ticker_symbol]["last_price"] Can I
what is the code?
vaibhavsharma13
February 2024
kite.ltp(ticker_symbol)[ticker_symbol]["buy_quantity"],kite.ltp(ticker_symbol)[ticker_symbol]["sell_quantity"]
MAG
February 2024
@vaibhavsharma13
your comment is incorrect.
@khalid
kite.ltp API call only returns the instrument token and last price. -
Check the documentation at
https://kite.trade/docs/connect/v3/market-quotes/
or
https://kite.trade/docs/pykiteconnect/v4/#kiteconnect.KiteConnect.ltp
In addition to the ltp method/call there are the kite.ohlc and kite.quote calls.
If you want market depth then you need to use the kite.quote call instead of the kite.ltp call
https://kite.trade/docs/pykiteconnect/v4/#kiteconnect.KiteConnect.quote
https://kite.trade/docs/connect/v3/market-quotes/#market-quotes
Sign In
or
Register
to comment.
@khalid
kite.ltp API call only returns the instrument token and last price. -
Check the documentation at
https://kite.trade/docs/connect/v3/market-quotes/ or https://kite.trade/docs/pykiteconnect/v4/#kiteconnect.KiteConnect.ltp
In addition to the ltp method/call there are the kite.ohlc and kite.quote calls.
If you want market depth then you need to use the kite.quote call instead of the kite.ltp call
https://kite.trade/docs/pykiteconnect/v4/#kiteconnect.KiteConnect.quote
https://kite.trade/docs/connect/v3/market-quotes/#market-quotes