Why am I getting this error
Alpaca.Markets.RestClientErrorException
HResult=0x80131500
Message=no snapshot found for APPL
Whats funny is when I type “AAPL” directly, I am getting a return without error var asset = await dataClient.GetSnapshotAsync(“AAPL”);
string symbol = “APPL”;
var asset = await dataClient.GetSnapshotAsync(symbol);
var price = asset.MinuteBar.Close;
// We could buy a position and add a stop-loss and a take-profit of 5 %
await tradingClient.PostOrderAsync(
MarketOrder.Buy(symbol.Trim().ToUpper(), 1)
.WithDuration(TimeInForce.Gtc)
.Bracket(
stopLossStopPrice: price * 0.95M,
takeProfitLimitPrice: price * 0.94M,
stopLossLimitPrice: price * 1.05M));