alpacahq / Alpaca-API

The Alpaca API is a developer interface for trading operations and market data reception through the Alpaca platform.
https://alpaca.markets/
141 stars 13 forks source link

qqq vs QQQ gives different result for barset #132

Open peterfabakker opened 3 years ago

peterfabakker commented 3 years ago

get_barset should not make a difference between capitalisation or not. Below and example via Ipython

In [8]: barset = api.get_barset('qqq', 'day', limit=5)

In [9]: barset
Out[9]: {'qqq': []}

In [10]: barset = api.get_barset('QQQ', 'day', limit=5)

In [11]: barset
Out[11]:
{'QQQ': [Bar({   'c': 275.86,
      'h': 277.71,
      'l': 275.3719,
      'o': 276.72,
      't': 1601352000, …
whitnable commented 3 years ago

Generally, all the ticker values in the Alpaca API are case sensitive. QQQ returns values while qqq does not. Not sure this is a bug but it is something that should be highlighted in the documentation.