alpacahq / alpacahq/alpaca-py

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

Open
#370 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.5k
Forks
397
Avg merge
1d 16h
Merged PRs (30d)
6

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.