alpacahq / alpacahq/alpaca-py

[Question]: How to understand the number of API calls I'm making?

未关闭
#370 2 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
1.5k
派生
398
平均合并
1 天 16 小时
30 天内合并 PR
6

描述

### Question form pre-submit checklist.

- [X] I have searched the existing issues to ensure there isn't already an issue about this question.
- [X] My question has to do with the Python SDK and isn't a general question about the API. (If it is please open your issue [here](https://github.com/alpacahq/Alpaca-API))
- [X] My question isn't about how to do a specific algorithm or asking for trade advice (answers to these are outside the scope of this repo).

### Question

As I'm testing out the functionality of various sdk features, I'm left wondering what kind of behavior will have me hitting rate limits and what will be fine.

Does the SDK have any utils to help me monitor the number of calls I'm making?

And one specific example question on this topic, if I make a StockBarsRequest() for 2 symbols, TimeFrame="Day" and start/end of 1 year.. is this 1 API call?.. or 2 API calls (1 per symbol)?.. or more because of the start/end length?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。