☰
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.7K
All Categories
0
Incidents
144
Node JS client
38
Go client
786
.Net API client
375
Kite Publisher
537
.Net / VBA / Excel (3rd party)
452
Algorithms and Strategies
986
Java client
1.1K
API clients
402
PHP client
3.9K
Python client
343
Mobile and Desktop apps
1.3K
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