TradeBench 1.0.0
Algorithmic Trading Backtesting Platform
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
App\Controllers\AnalysisController Class Reference

Controller managing algorithmic backtesting processes, history, and real-time streams. More...

Public Member Functions

 __construct ()
 
 start ()
 Initiates a new backtesting or optimization task. Enforces user limits, performs smart data caching, and delegates work to the C++ core.
 
 history ()
 Retrieves the recent backtesting history for the authenticated user.
 
 deleteHistory (string $taskId)
 Deletes a specific backtesting task and its associated results.
 
 stream ()
 Establishes a Server-Sent Events (SSE) stream to provide real-time updates via Redis PubSub. Keeps the connection open and pushes data as soon as the C++ core publishes it.
 

Private Attributes

PDO $db
 
BinanceService $binanceService
 

Detailed Description

Controller managing algorithmic backtesting processes, history, and real-time streams.

Constructor & Destructor Documentation

◆ __construct()

App\Controllers\AnalysisController::__construct ( )

Member Function Documentation

◆ deleteHistory()

App\Controllers\AnalysisController::deleteHistory ( string $taskId)

Deletes a specific backtesting task and its associated results.

Parameters
string$taskIdThe unique identifier of the task to delete.
Returns
void

◆ history()

App\Controllers\AnalysisController::history ( )

Retrieves the recent backtesting history for the authenticated user.

Returns
void

◆ start()

App\Controllers\AnalysisController::start ( )

Initiates a new backtesting or optimization task. Enforces user limits, performs smart data caching, and delegates work to the C++ core.

Returns
void

◆ stream()

App\Controllers\AnalysisController::stream ( )

Establishes a Server-Sent Events (SSE) stream to provide real-time updates via Redis PubSub. Keeps the connection open and pushes data as soon as the C++ core publishes it.

Returns
void

Field Documentation

◆ $binanceService

BinanceService App\Controllers\AnalysisController::$binanceService
private

◆ $db

PDO App\Controllers\AnalysisController::$db
private

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