YQL使用新的pm.finance表

时间:2017-11-03 18:07:11

标签: authentication google-api yql yahoo-api stockquotes

此旧网址完美无缺

http://query.yahooapis.com/v1/public/yql?q=select%20Symbol%2C%20LastTradeDate%2C%20Open%2C%20DaysHigh%2C%20DaysLow%2C%20LastTradePriceOnly%2C%20Volume%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(' MSFT'' AAPL')及诊断=假安培; ENV =商店%3A%2F%2Fdatatables.org%2Falltableswithkeys

SQL是

从yahoo.finance.quotes中选择Symbol,LastTradeDate,Open,DaysHigh,DaysLow,LastTradePriceOnly,Volume,其中包含符号(' MSFT',' AAPL')

所以现在yahoo.finance.quotes表已经死了,我用新的pm.finance表替换它,在控制台上我输入select * from pm.finance,其中symbol =" AAPL"我得到了新的表格字段

        <Name>Apple Inc.</Name>
        <Symbol>AAPL</Symbol>
        <Open>174.000000</Open>
        <DaysHigh>174.240005</DaysHigh>
        <DaysLow>171.119995</DaysLow>
        <MarketCapitalization>896.093B</MarketCapitalization>
        <YearHigh>174.240005</YearHigh>
        <YearLow>104.080000</YearLow>
        <Volume>44234059</Volume>
        <AverageDailyVolume>-</AverageDailyVolume>
        <PERatio>19.696367</PERatio>
        <LastTradePriceOnly>173.485596</LastTradePriceOnly>
        <Change>5.375595</Change>
        <realtime_price>173.485596</realtime_price>
        <realtime_change>5.375595</realtime_change>
        <realtime_chg_percent>3.197665</realtime_chg_percent>
        <eps_curr_year>8.808000</eps_curr_year>
        <realtime_ts>11 03 2017 17:36:24 GMT</realtime_ts>
        <ts>11 03 2017 17:36:24 GMT</ts>

所以我将上面的SQL更改为..并且它在CONSOLE YIPPEE上工作

选择符号,ts,打开,DaysHigh,DaysLow,LastTradePriceOnly,来自pm.finance的音量,其中符号位于(&#39; MSFT&#39;,&#39; AAPL&#39;)

现在将它转换为URL的技巧??

我试过

https://query.yahooapis.com/v1/public/yql?q=select%20Symbol%2C%20ts%2C%20Open%2C%20DaysHigh%2C%20DaysLow%2C%20LastTradePriceOnly%2C%20Volume%20from%20pm.finance%20where%20symbol%20in%20(%27MSFT%27,%27AAPL%27)&diagnostics=false

我得到了

身份验证错误。表pm.finance需要比提供的更高的安全级别,您提供ANY但至少需要APP

问题,我是否需要应用程序ID密钥或其他内容,我无法找到有关如何添加&#39;身份验证&#39; ...

的任何说明

请告知

更多信息我使用的是Vb.net,这是用于屏幕顶部URL的代码

Dim doc As New Xml.XmlDocument

doc.Load(URL)

现在看来我们需要使用像Google API这样的OATH 2身份验证,但是他们在.Net这里有dll就像这里一样 https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth

雅虎YQL有这个吗?

0 个答案:

没有答案