Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Inactive Stock error #31

Closed
viniesta11 opened this issue Dec 10, 2021 · 2 comments · Fixed by #37
Closed

Getting Inactive Stock error #31

viniesta11 opened this issue Dec 10, 2021 · 2 comments · Fixed by #37

Comments

@viniesta11
Copy link

Hi,
I tried VerifyScriptCode() then tried to get Quote of a company stilll getting error
Can you please help me ?

@ahelpfulguy
Copy link

hey,
i think you just wrote something like this:-
b.verifyScripCode("500010")
#this is wrong as it does nothing
verifyScripCode() only provides name of the stock if it is vaild eg:- if a stock is invalid it will return "None" eg:- for invalid stock
print(b.verifyScripCode("999999"))
Output:- None
another eg:- for valid stock
print(b.verifyScripCode("543284"))
Output:- Eki Energy Services Ltd
ANSWER:- You have to use a if statement eg:-

if b.verifyScripCode("500010") == None:
print("invaid stock")
#codes to tell what to do if a stock is invalid, tip:- you could do break or continue etc

I had the same problem but then after some experimentation found the solution.
If you didnt understand read again or reply with your code i will try to solve it
just dont quit. I didnt quit when i had this problem cause i know
you only fail when you stop quit. Simple logic

@sdabhi23
Copy link
Owner

just published a new version on pypi, which should fix this issue. please upgrade to the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants