```treat_info_as_error``` 在 Alpha Vantage python 模块中做什么
What does ```treat_info_as_error``` do in Alpha Vantage python module
对于 alpha-vantage python 模块,有人知道参数 treat_info_as_error
的作用吗?
这是我在文档方面找到的。不多。
TimeSeries
Definition : TimeSeries(key=None, output_format='json', treat_info_as_error=True, indexing_type='date', >proxy=None)
This class implements all the api calls to times series
当您 运行 对 Alpha Vantage 进行几乎无效的 API 调用时,您将在 JSON 响应中获得一个键,上面写着 "note" 或 "Information" 或类似的东西。此参数是您是否要将代码中的那些视为错误。
此处 is a link to the docs 供参考。
例如,如果您达到 API 调用阈值,或使用 "demo" API 键进行不适合的调用。
试试这个 API 调用:
https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=TSLA&interval=5min&apikey=demo
您会看到它说 "Information" 作为第一个键。
对于 alpha-vantage python 模块,有人知道参数 treat_info_as_error
的作用吗?
这是我在文档方面找到的。不多。
TimeSeries Definition : TimeSeries(key=None, output_format='json', treat_info_as_error=True, indexing_type='date', >proxy=None)
This class implements all the api calls to times series
当您 运行 对 Alpha Vantage 进行几乎无效的 API 调用时,您将在 JSON 响应中获得一个键,上面写着 "note" 或 "Information" 或类似的东西。此参数是您是否要将代码中的那些视为错误。
此处 is a link to the docs 供参考。
例如,如果您达到 API 调用阈值,或使用 "demo" API 键进行不适合的调用。
试试这个 API 调用: https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=TSLA&interval=5min&apikey=demo
您会看到它说 "Information" 作为第一个键。