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

Need Help with 003_quantitative_value_strategy #50

Open
jeeventh opened this issue Feb 22, 2023 · 0 comments
Open

Need Help with 003_quantitative_value_strategy #50

jeeventh opened this issue Feb 22, 2023 · 0 comments

Comments

@jeeventh
Copy link

`symbol = 'AAPL'
batch_api_call_url = f'https://cloud.iexapis.com/stable/stock/market/batch/?symbols={symbol}&types=quote,advanced-stats&token={IEX_CLOUD_API_TOKEN}'
data = requests.get(batch_api_call_url).json()

print (data)

P/E Ratio

pe_ratio = data[symbol]['quote']['peRatio']`

I get the following error:
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I'm using the 30 trial from IEX Cloud.

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

No branches or pull requests

1 participant