Comments (2)
This is because of changes made to the API service being used. It now requires an API key. The bash snippet will be needed to be updated to provide the API key.
Lines 86 to 94 in 97a1c0d
Output of bash -x stocks nvda
...
+ unset response
+ printStockInformation NVDA
++ httpGet https://financialmodelingprep.com/api/v3/company/profile/NVDA
++ case "$configuredClient" in
++ curl -A curl -s https://financialmodelingprep.com/api/v3/company/profile/NVDA
+ stockProfile='{"Error Message" : "Invalid API KEY. Please retry or visit our documentation to create one FREE https://financialmodelingprep.com/developer/docs"}'
++ httpGet https://financialmodelingprep.com/api/v3/stock/real-time-price/NVDA
++ case "$configuredClient" in
++ curl -A curl -s https://financialmodelingprep.com/api/v3/stock/real-time-price/NVDA
+ stockPrice='{"Error Message" : "Invalid API KEY. Please retry or visit our documentation to create one FREE https://financialmodelingprep.com/developer/docs"}'
+ export PYTHONIOENCODING=utf8
+ PYTHONIOENCODING=utf8
+ AccessJsonElement '{"Error Message" : "Invalid API KEY. Please retry or visit our documentation to create one FREE https://financialmodelingprep.com/developer/docs"}' profile companyName
+ echo 'NVDA: Not a valid stock symbol'
NVDA: Not a valid stock symbol
+ exit 1
As you can see the error message states the API key is invalid. You can either patch the snippet yourself and pass a free API key you can get from their website or you can wait until this issue is fixed ( but even then you will have to generate the API key yourself and put it in you ~/.bashrc
, ~/.bash_profile
or ~./zshrc
as the API key cannot be provided with the bash-snippets code.
from bash-snippets.
Hmm so if they now require an api key it means I should try to find another service that does it for free, my goal with bash-snippets is to prevent any need for setup and api keys are usually something I try to work around. If anyone would like to take up replacing the current stocks api with a different one that didn't use an API key I would most likely merge the changes.
from bash-snippets.
Related Issues (20)
- Currency conversion does not work HOT 7
- Qrify file reading bug HOT 6
- stocks script not working HOT 3
- ytview not working on Mac - error message HOT 3
- Multiple Tests Broken HOT 3
- Stock script returns "Not a valid stock symbol" HOT 7
- Pwned no longer working HOT 4
- Lyrics script fails when it finds the lyrics HOT 13
- Can't use ytview HOT 4
- Package in the AUR HOT 2
- Newton result field empty HOT 1
- ytview doesnt work HOT 2
- Installing from source fails on MacOS
- Currency syntax error 1, the whole command doesn't work. HOT 2
- meme doesn't work
- transfer.sh domain is not working anymore instead.. HOT 4
- ytview doesn't work
- movies script returns empty variable values in results HOT 2
- heavy user of bash and zsh
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bash-snippets.