alpacahq / alpacahq/alpaca-py

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

Đang mở
#370 2 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
1.5k
Fork
398
Merge trung bình
1 ngày 16 giờ
Pull request đã merge (30 ngày)
6

Mô tả

### 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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.