☰
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.3K
All Categories
0
Incidents
128
Node JS client
39
Go client
770
.Net API client
364
Kite Publisher
532
.Net / VBA / Excel (3rd party)
437
Algorithms and Strategies
973
Java client
1K
API clients
401
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.2K
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