api = tradeapi.REST(api_key, api_secret, base_url)
stock = api.get_barset('BTCUSD', 'minute', limit = 5)
print(stock.df)
obviously the api_key, api_secret, base_url (paper market), have all been specified.
however all that is returned is .
"Empty DataFrame
Columns: [(BTCUSD, open), (BTCUSD, high), (BTCUSD, low), (BTCUSD, close), (BTCUSD, volume)]
Index: []
"
the index is empty. If I ran this with “AAPL” as the stock it would return the correct datafield, can you not access crypto market data? currently running with the free tier.