Files
investbrain/routes/console.php
T

37 lines
1.1 KiB
PHP
Raw Normal View History

2024-08-01 13:53:10 -05:00
<?php
2025-01-28 17:33:54 -06:00
declare(strict_types=1);
2025-01-28 17:14:49 -06:00
use App\Console\Commands\CaptureDailyChange;
use App\Console\Commands\RefreshDividendData;
use App\Console\Commands\RefreshMarketData;
use App\Console\Commands\RefreshSplitData;
use App\Console\Commands\SyncHoldingData;
2024-09-01 21:33:16 -05:00
use Illuminate\Support\Facades\Schedule;
2024-09-05 21:21:18 -05:00
/**
* This scheduled job refreshes market data from your selected data provider
* Update the cadence with the MARKET_DATA_REFRESH key in your env file
*/
2024-11-12 00:53:22 -06:00
Schedule::command(RefreshMarketData::class)->weekdays()->everyMinute();
2024-09-05 21:21:18 -05:00
/**
* This scheduled job records daily changes to your portfolios every weekday
*/
Schedule::command(CaptureDailyChange::class)->dailyAt(config('investbrain.daily_change_time_of_day'))->weekdays();
2024-09-05 21:21:18 -05:00
/**
* Refreshes dividend data for your holdings (and syncs new dividends to holdings)
*/
2024-11-12 00:53:22 -06:00
Schedule::command(RefreshDividendData::class)->daily()->days([1, 3, 5]);
2024-09-05 21:21:18 -05:00
/**
* Refreshes split data for your holdings (and creates new transactions for new splits)
*/
2024-09-11 22:00:49 -05:00
Schedule::command(RefreshSplitData::class)->weekly();
2024-09-05 21:21:18 -05:00
/**
* Periodically reconciles your holdings with transactions and dividends
*/
Schedule::command(SyncHoldingData::class)->yearly();