multi betts wip
This commit is contained in:
1 parent
1aa044fff1
commit
b39196c9eb
62 files changed
+1237
-208
No files matched your search
@@ -3,8 +3,8 @@
|
||||
namespace App\Console\Commands\Grapper\TxOdds\Odds;
|
||||
|
||||
use App\Console\Commands\Nuh;
|
||||
use App\Models\OddsPoint;
|
||||
use App\Utilities\Margin;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class _Points
|
||||
{
|
||||
@@ -16,10 +16,16 @@ class _Points
|
||||
$odds['handicap'] = (float) $value->o3;
|
||||
}
|
||||
|
||||
if (fmod((float) $odds['handicap'], 1) != 0.5) {
|
||||
return;
|
||||
}
|
||||
|
||||
$odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1);
|
||||
$odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']);
|
||||
|
||||
OddsPoint::updateOrCreate([
|
||||
FillCollector::set($odds, 'odds_points');
|
||||
|
||||
DB::table('odds_points')->updateOrInsert([
|
||||
'event_id' => Nuh::$id,
|
||||
'bookmaker_id' => Nuh::$bookmaker_id,
|
||||
'handicap' => $odds['handicap'],
|
||||
|
||||
Reference in new issue
Block a user