Files
boursecu_server/app/Console/Commands/PriceTickCommand.php
T

21 lines
447 B
PHP
Raw Normal View History

2026-06-13 17:35:40 +03:30
<?php
namespace App\Console\Commands;
use App\Services\LivePriceTickService;
use Illuminate\Console\Command;
class PriceTickCommand extends Command
{
protected $signature = 'prices:tick';
protected $description = 'Fetch live prices, sync products, cache last/list, log snapshot (every 10s)';
public function handle(LivePriceTickService $tickService): int
{
$tickService->tick();
return self::SUCCESS;
}
}