adds finnhub market data provider

This commit is contained in:
hackerESQ
2024-09-12 21:05:01 -05:00
parent 166fdee521
commit 2075d8273c
11 changed files with 213 additions and 26 deletions
+4 -4
View File
@@ -13,7 +13,7 @@ class FakeMarketData implements MarketDataInterface
return true;
}
public function quote($symbol): Collection
public function quote(String $symbol): Collection
{
return collect([
@@ -31,7 +31,7 @@ class FakeMarketData implements MarketDataInterface
]);
}
public function dividends($symbol, $startDate, $endDate): Collection
public function dividends(String $symbol, $startDate, $endDate): Collection
{
return collect([
@@ -53,7 +53,7 @@ class FakeMarketData implements MarketDataInterface
]);
}
public function splits($symbol, $startDate, $endDate): Collection
public function splits(String $symbol, $startDate, $endDate): Collection
{
return collect([
@@ -65,7 +65,7 @@ class FakeMarketData implements MarketDataInterface
]);
}
public function history($symbol, $startDate, $endDate): Collection
public function history(String $symbol, $startDate, $endDate): Collection
{
$numDays = Carbon::parse($startDate)->diffInDays($endDate, true);