Files
investbrain/routes/console.php
T

44 lines
1.4 KiB
PHP
Raw Permalink 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;
2025-04-09 19:25:15 -05:00
use App\Console\Commands\RefreshCurrencyData;
2025-01-28 17:14:49 -06:00
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
2025-04-09 19:25:15 -05:00
* Note: Update the cadence with the MARKET_DATA_REFRESH key in your env file (default: 30 minutes)
2024-09-05 21:21:18 -05:00
*/
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
2025-04-09 19:25:15 -05:00
* Note: Update the time of day with the DAILY_CHANGE_TIME key in your env file (default: 23:00)
2024-09-05 21:21:18 -05:00
*/
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();
2025-04-09 19:25:15 -05:00
/**
* Refreshes currency exchange data daily
*/
Schedule::command(RefreshCurrencyData::class)->daily();