TradeBench 1.0.0
Algorithmic Trading Backtesting Platform
Loading...
Searching...
No Matches
Static Public Member Functions
App\Models\AnalysisTask Class Reference

Data Access Object (DAO) for managing analysis_tasks and analysis_results tables. More...

Static Public Member Functions

static create (string $taskId, int $userId, string $pair)
 Creates a new analysis task record in PENDING state.
 
static getHistoryByUser (int $userId, int $limit=10)
 Retrieves recent task history for a specific user, including merged result data.
 

Detailed Description

Data Access Object (DAO) for managing analysis_tasks and analysis_results tables.

Member Function Documentation

◆ create()

static App\Models\AnalysisTask::create ( string $taskId,
int $userId,
string $pair )
static

Creates a new analysis task record in PENDING state.

Parameters
string$taskIdUnique UUID for the task.
int$userIdThe ID of the task owner.
string$pairThe trading pair being analyzed.
Returns
bool True if insertion succeeds, false otherwise.

◆ getHistoryByUser()

static App\Models\AnalysisTask::getHistoryByUser ( int $userId,
int $limit = 10 )
static

Retrieves recent task history for a specific user, including merged result data.

Parameters
int$userIdThe ID of the requesting user.
int$limitMaximum number of records to return.
Returns
array Array of associative arrays representing task records.

The documentation for this class was generated from the following file: