nibroc / hubot-stocks Goto Github PK
View Code? Open in Web Editor NEWA hubot script for retrieving stock quotes, viewing graphs, searching symbols, etc
A hubot script for retrieving stock quotes, viewing graphs, searching symbols, etc
Running the script results in:
[Thu Sep 21 2017 11:32:56 GMT-0700 (PDT)] ERROR TypeError: Cannot read property 'results' of undefined
at parseQuoteForSymbol (/Users/gvalente/src/hubot/node_modules/hubot-stocks/src/service/stock.coffee:12:27)
at /Users/gvalente/src/hubot/node_modules/hubot-stocks/src/service/stock.coffee:45:19
at /Users/gvalente/src/hubot/node_modules/hubot-stocks/src/service/stock.coffee:9:5
at IncomingMessage.<anonymous> (/Users/gvalente/src/hubot/node_modules/scoped-http-client/src/index.js:95:22)
at emitNone (events.js:110:20)
at IncomingMessage.emit (events.js:207:7)
at endReadableNT (_stream_readable.js:1059:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Which is due to the server returning
{ error:
{ lang: 'en-US',
description: 'No definition found for Table yahoo.finance.quote' } }
Hello, thanks for the script. I followed the instructions and have the following error when I call hubot stock aapl:
[Sat Feb 03 2018 22:06:27 GMT-0500 (EST)] ERROR TypeError: Cannot read property 'results' of undefined
at parseQuoteForSymbol (/home/andyph666/myhubot/node_modules/hubot-stocks/src/service/stock.coffee:12:21, <js>:18:30)
at /home/andyph666/myhubot/node_modules/hubot-stocks/src/service/stock.coffee:45:11, <js>:57:28
at /home/andyph666/myhubot/node_modules/hubot-stocks/src/service/stock.coffee:9:5, <js>:12:14
at IncomingMessage.<anonymous> (/home/andyph666/myhubot/node_modules/scoped-http-client/src/index.js:95:22)
at IncomingMessage.emit (events.js:165:20)
at endReadableNT (_stream_readable.js:1101:12)
at process._tickCallback (internal/process/next_tick.js:152:19)
Has anyone come across this problem? Thanks.
It looks like Yahoo has officially removed support for this API:
https://yahoo.uservoice.com/forums/382977-finance/suggestions/32103877-http-download-finance-yahoo-com-d-quotes-csv-s-a
And: https://forums.yahoo.net/t5/Yahoo-Finance-help/http-download-finance-yahoo-com-d-quotes-csv-s-GOOG-amp-f/td-p/387096
The API calls actually respond with the same message:
It has come to our attention that this service is being used in violation of the Yahoo Terms of Service. As such, the service is being discontinued. For all future markets and equities data research, please refer to finance.yahoo.com.
Any ideas or suggestions to use a different endpoint to fetch stock data?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.