This commit is contained in:
hackerESQ
2024-09-01 16:06:29 -05:00
parent ce4a736101
commit 26185bbd3c
7 changed files with 53 additions and 37 deletions
@@ -3,13 +3,14 @@
namespace App\Interfaces\MarketData;
use Illuminate\Support\Collection;
use Scheb\YahooFinanceApi\ApiClient;
use Scheb\YahooFinanceApi\ApiClientFactory as YahooFinance;
class YahooMarketData implements MarketDataInterface
{
public function __construct(
public $client
) {
public ApiClient $client;
public function __construct() {
// create yahoo finance client factory
$this->client = YahooFinance::createApiClient();