alpacahq / alpacahq/alpaca-py

Server-Side Separation Between Regular Hours and Extended Hours

Aberta
#580 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
1.5k
Forks
397
Merge médio
1d 16h
PRs com merge (30d)
6

Descrição

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe.

It is hard as a client to filter-out extended hours data.
all examples are in ET
For example, I would like to get regular hours hourly bars between 14:00 March 3rd and 14:00 March 4th.

A conventional API would return 1H bars between 14:00-15:00, 15:00-16:00 (March 3rd), 09:30-10:00 (March 4th), and so on..
Alpaca's API will return all hourly bars (including extended hours), meaning that the March 4th bars will contain 09:00-10:00, 10:00-11:00 and so on.. Mixing both pre-market and regular-market data in the bar starting 09:00.

As a user, I would need to make an extra request with barsize = 30 and unit = minute for the 09:00-09:30 bar and then subtract it from the mentioned above bar.

### Describe the solution you'd like.

I would like the Alpaca API to provide a flag (like IBKR's outside_rth) to filter pre-market and after-market data in the returned result

### Describe an alternate solution.

_No response_

### Anything else? (Additional Context)

_No response_

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.