var client = Environments.Paper
.GetAlpacaCryptoDataClient(new SecretKey(API_KEY, API_SECRET));
var symbol = "BTCUSD";
var start = DateTime.Today.AddDays(-1); // Yesterday
var end = DateTime.Today; // Today
var timeframe = BarTimeFrame.Day; // Denotes daily bars
var bars = await client.ListHistoricalBarsAsync(
new HistoricalCryptoBarsRequest(symbol, start, end, timeframe));
This is from the getting started documentation but i keep gettin a 400( Bad Requqest) error when I try to run it. Any help for a newbie appreciated.