alpacahq / alpaca-trade-api-python

Python client for Alpaca's trade API
https://pypi.org/project/alpaca-trade-api/
Apache License 2.0
1.73k stars 534 forks source link

[Bug]: Unable to retrieve any bars. #696

Open bable631 opened 1 year ago

bable631 commented 1 year ago

Is there an existing issue for this?

Current Behavior

This worked before this past Friday, and I have made no changes to my code. Basically, I am using get_data and it returns None for any use of the function. This has never happened before the past Friday, and it is still happening today. This seems like it is an API issue, but I can't be sure.

Expected Behavior

The function get_bars() should not return None.

SDK Version I encountered this issue in

Whatever the most recent version is, I just installed it two weeks ago and I reinstalled it yesterday.

Steps To Reproduce

1. Try to get stock bars for any stock in Python3.10
2. It returns None

Filled out the Steps to Reproduce section?

Anything else?

I am using an online IDE and host called pythonanywhere by Anaconda. I don't believe that this is important, as I have not changed this, but I figured I might as well state that here.

bable631 commented 1 year ago

Found a way around this. I can't tell if this was an issue on this API's end, but using get_snapshot gets all of the data that I need and actually works for me.

dungnguyen191992 commented 1 year ago

I have the same issue. What is going on?