财务Google API调用中的多个报价限制 [英] Limit of multiple Quote in a finance google API call

查看:97
本文介绍了财务Google API调用中的多个报价限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有成千上万的股票代号,并且实时价格要求财务Google API http://finance.google.com/finance/info?client=ig& ; q = AAPL 在上面,我得到的是AAPL的价格,所以我正在考虑将其视为单个HTTP请求(即AAPL)

I have thousands of stock symbol and for real time prices requesting finance google API, as an example http://finance.google.com/finance/info?client=ig&q=AAPL in the above I am getting price of AAPL, so I am considering it like single HTTP request for signle stock i.e AAPL

现在我的问题是: -我可以将所有用逗号分隔的股票代码(假设为400-500)传递到单个URL, 如果为否",那么将要通过API URL的symobl的最大限制是多少? -另一点是,假设我要向API传递400-500个股票代号,是否将其视为单个HTTP请求? 或将是400/500 HTTP请求(根据传递的符号)

Now my question is: - can I pass all the stock symbol (assume 400-500) with comma separte to a single URL, If NO then what is the max limit of symobl that will be going to pass a API URL? - Another point is , Assume if I am passing 400-500 stock symbol to a API, will it be consider a single HTTP request? or It will be 400/500 HTTP request (as per the passed symbols)

推荐答案

我给它做了一个简单的测试,带有多个逗号分隔的股票代码的请求可以由Google财经正确响应:

I gave it a simple test, request with multiple comma separated stock symbols can be responded correctly by Google finance:

curl -s http://finance.google.com/finance/info?client=ig&q=APPL,FB

我尝试使用多达300个股票符号,这对我来说很好用,并且如果您在单个请求中通过了大量的股票符号(我的测试中超过3000个股票符号),

And I tried to use up to 300 stock symbols and it is working fine for me, and if you pass a really great number of stock symbols in single request (over 3000 stock symbols in my test), an HTTP 413 response is returned by Google's server saying the request is too large to be handled.

根据该线程 a>:

我们没有每天的正式限制.有速率限制 分钟和每小时,但取决于整个负载 系统.如果您每两分钟刷新一次,那应该是 美好的. (实际上,大多数用户并没有修改他们的投资组合 每5分钟一次).

We don't have a formal per day limitation. There is rate limiting per minute and per hour but it varies depending on the load of the entire system. If you're refreshing once per minute or two that should be fine. (and in reality most users aren't modifying their portfolios every 5 minutes).

过去总共有200笔交易,我认为 现在大大提高了.

There used to be a 200 transaction total, I believe that has been raised significantly now.

这篇关于财务Google API调用中的多个报价限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆