☰
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
13.8K
All Categories
0
Incidents
153
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
403
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
February 23
MAG
February 22
vaibhavsharma13
Python code - Bid and Ask
khalid
February 15
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 22
kite.ltp(ticker_symbol)[ticker_symbol]["buy_quantity"],kite.ltp(ticker_symbol)[ticker_symbol]["sell_quantity"]
MAG
February 23
@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