fix: add exception for 404

This commit is contained in:
hackerESQ
2025-02-01 20:08:29 -06:00
parent 576b22e4c9
commit 9ddea4c6e1
@@ -45,6 +45,10 @@ class AlpacaMarketData implements MarketDataInterface
$quote = $response->json('trade');
if (is_null(Arr::get($quote, 'p'))) {
throw new \Exception('Could not find ticker on Alpaca');
}
$fundamental = cache()->remember(
'ap-symbol-'.$symbol,
1440,