krishnavelu / alice_blue

Official Python library for Alice Blue API trading
GNU General Public License v3.0
134 stars 82 forks source link

Get Quote [LTP / Marketdepth (ASK & BID)] without subscribing to websocket #249

Closed qFactorin closed 3 years ago

qFactorin commented 3 years ago

Hi Krishna,

Is there a way to fetch just quote information without having to subscribe to web socket streaming.

Not trying to compare products here, but on Zerodha Kite I use kite.quote to fetch this information. And is quite convenient.

I just need LTP and Market depth of a symbol in every 5 minutes, Subscribing to symbol streaming is an overkill for my purpose. And the connection termination / unsubscribing is not always clean.

Any assistance here would be really helpful. Thank you in advance.

krishnavelu commented 3 years ago

No. You've to subscribe to get quote.

qFactorin commented 3 years ago

Ok, thank you for confirming.

Piyushjoshi007 commented 3 years ago

Hi @qFactorin have you got any solution to this? Also @krishnavelu it would be very convenient if you can do something like what zerodha had done for LTP values.Thanks

krishnavelu commented 3 years ago

Zerodha has implemented in it’s server. That’s why api also provides the same. Alice doesn’t provide this. So cannot be done in api. Make a small function which subscribes and unsubscribe immediately.