Kotak-Neo / kotak-neo-api

96 stars 80 forks source link

Quotes not working #157

Open rahulshah9713 opened 3 months ago

rahulshah9713 commented 3 months ago

client.quotes gives None as output

instrument_tokens = [{"instrument_token": "21951", "exchange_segment": "nse_cm"}]
print(client.quotes(instrument_tokens, isIndex=False, quote_type="ltp"))
nishantmoreatgit commented 3 months ago

Yes facing difficulty in fetching client.quotes...giving None output.......How reliable is Kotak Neo API

rahulshah9713 commented 3 months ago

@Kotak-Neo when will this be resolved?

ronak24069 commented 2 months ago

You can use the previous version, this is a bug from the current version

rahulshah9713 commented 2 months ago

You can use the previous version, this is a bug from the current version

How can that be done? Can you please give me pip command for the same?

ronak24069 commented 2 months ago

You cannot do that using pip now, what you can do is replace the current 'neo_api_client' package folder with the previous version folder. If you don't have one, let me know, will share the zip through mail.

rahulshah9713 commented 2 months ago

You cannot do that using pip now, what you can do is replace the current 'neo_api_client' package folder with the previous version folder. If you don't have one, let me know, will share the zip through mail.

Yes, please share here itself as attachment so others can use it as well

arunjain9988 commented 2 months ago

@Kotak-Neo, can we check and resolve this.

ronak24069 commented 2 months ago

Sure, please check this out.

neo_api_client.zip

deepakbairy commented 2 months ago

neo_api_client.zip works sometime, but not consistent. I am trying to access last_traded_price. Sometimes I get, but not always

mshh9 commented 2 months ago

Last year they completely revamped the API and made it to NEO. And now with version 1.0.1 updates things dont work the same way starting with session init. @Kotak-Neo if you are making changes please ensure that it works

arunjain9988 commented 2 months ago

@dev3180, This is older version. If things are not working in newer version then why kotak are merging such updates.

dev3180 commented 2 months ago

dear its new version

dev3180 commented 2 months ago

lets me check, wait

dev3180 commented 2 months ago

its modified version, u can use it

ronak24069 commented 2 months ago

i got solution for quote, everything work perfectly neo_api_client.zip

You updated the script yourself?

dev3180 commented 2 months ago

yes

dev3180 commented 2 months ago

u can check its new version

ronak24069 commented 2 months ago

Oh thanks, will try

dev3180 commented 2 months ago

sure, u can, its modified

ronak24069 commented 2 months ago

Please raise a pull request then for the same, let's see if they merge it

dev3180 commented 2 months ago

sure dear

deepakbairy commented 2 months ago

I am trying to get an option price. I see the newer fix works sometimes, but sometimes gives empty response. Hello repo owners. Please make sure to test this quotes API before creating pull request.

dev3180 commented 2 months ago

deepak shre ur code here, will provide solution if possible

dev3180 commented 2 months ago

its working without any error, i tested it

gmarwaha77 commented 2 months ago

its working without any error, i tested it

it worked thanks a lot I copied your changes to neo_api and NeoWebSocket to get the quotes

soumyajyotibiswas commented 2 months ago

Hello,

I wrote some sample code, nothing fancy, just of the examples to test how client.quotes would work. But it's giving me None as output. How to resolve this? I tried the zip files in the thread but did not work for me.

nishantmoreatgit commented 2 months ago

@Kotak-Neo why don't you shut your API shop, you don't have courtesy to inform API users about your so called bug which could halt the users code

nishu88 commented 2 months ago

@dev3180 I don't see your zip file anymore, can you reshare. Also which files did you change??

dev3180 commented 2 months ago

yes i will soon nishu

dev3180 commented 2 months ago

modified api [Uploading neo_api_client.zip…]()

dev3180 commented 1 month ago

angel one is best for algo trading, leave kotak and join angel one, everytime got error in quotes and many more, but angel one wow amazing, no one error,

kotak west of time and money

vzanvar-wdc commented 1 month ago

It is such a shame that @Kotak-Neo never interacts in the forum. They make only big claims here:

Dependable support You can count on our dedicated support team for a quick turnaround for all your queries

vzanvar-wdc commented 1 month ago

modified api Uploading neo_api_client.zip…

This link does not point to api_client?

dev3180 commented 3 weeks ago

quotes can't fetch

kotak neo west of time and money, angel one much batter for algo trading

soumyajyotibiswas commented 3 weeks ago

quotes can't fetch

kotak neo west of time and money, angel one much batter for algo trading

I switched to 5paisa. Hope kotak's team fixes all these bumps sooner than later.

vzanvar-wdc commented 3 weeks ago

quotes can't fetch

kotak neo west of time and money, angel one much batter for algo trading

+1

CREATER247 commented 3 weeks ago

brother I have used your neo_client but it is giving black message and None object at the same time.... Am I doing something wrong. Please help...........

Hari3115 commented 1 week ago

can anyone share the sample code for correctly using the callback function with client.quotes?

vijaykz commented 1 week ago

can anyone share the sample code for correctly using the callback function with client.quotes?

I have spent several days doing just that. For @Kotak-Neo, there is no "correct" method. 😜 I got the idea to move to Angel from one of the comments above. And Angel is already up and running!

sudhanshupati commented 1 week ago

The quote method return None but the response is inside on_message method, if you put a print statement inside on_message , you will see the response printed , but you will not get any response from quote method

vijaykz commented 1 week ago

The quote method return None but the response is inside on_message method, if you put a print statement inside on_message , you will see the response printed , but you will not get any response from quote method

This is an incorrect design, so it is difficult to use.

sudhanshupati commented 1 week ago

Agreed,, i have stopped using the quote method