Alpaca-API icon indicating copy to clipboard operation
Alpaca-API copied to clipboard

qqq vs QQQ gives different result for barset

Open peterfabakker opened this issue 4 years ago • 1 comments

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, …

peterfabakker avatar Oct 06 '20 01:10 peterfabakker

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.

whitnable avatar Dec 21 '20 14:12 whitnable