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
+12
View File
@@ -28,6 +28,18 @@ class MarketData extends Model
'dividend_yield'
];
protected $casts = [
'last_dividend_date' => 'datetime',
'market_value' => 'float',
'fifty_two_week_high' => 'float',
'fifty_two_week_low' => 'float',
'forward_pe' => 'float',
'trailing_pe' => 'float',
'market_cap' => 'float',
'book_value' => 'float',
'dividend_yield' => 'float'
];
public function holdings()
{
return $this->hasMany(Holding::class, 'symbol', 'symbol');