Client for interacting with the C++ Analytical Core via gRPC.
More...
|
| | __construct (string $hostname='cpp-engine:50051') |
| | Constructs the AnalysisClient and establishes an insecure channel.
|
| |
| | requestAnalysis (string $userId, string $pair, string $strategy, string $taskId, array $dateRange=[], string $timeframe='1h') |
| | Sends an asynchronous backtesting request to the C++ core.
|
| |
Client for interacting with the C++ Analytical Core via gRPC.
◆ __construct()
| App\AnalysisClient::__construct |
( |
string | $hostname = 'cpp-engine:50051' | ) |
|
Constructs the AnalysisClient and establishes an insecure channel.
- Parameters
-
| string | $hostname | The address of the C++ gRPC server. |
◆ requestAnalysis()
| App\AnalysisClient::requestAnalysis |
( |
string | $userId, |
|
|
string | $pair, |
|
|
string | $strategy, |
|
|
string | $taskId, |
|
|
array | $dateRange = [], |
|
|
string | $timeframe = '1h' ) |
Sends an asynchronous backtesting request to the C++ core.
- Parameters
-
| string | $userId | The ID of the user requesting the analysis. |
| string | $pair | The trading pair (e.g., BTCUSDT). |
| string | $strategy | The strategy configuration payload. |
| string | $taskId | Unique identifier for the analysis task. |
| array | $dateRange | Associative array with 'start' and 'end' UNIX timestamps. |
| string | $timeframe | The trading timeframe (e.g., '1h', '15m'). |
- Returns
- array Associative array containing the success status and message/error.
◆ $client
| AnalysisServiceClient App\AnalysisClient::$client |
|
private |
The documentation for this class was generated from the following file: