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

Data Access Object for handling market candlestick data. More...

Static Public Member Functions

static hasSufficientData (string $pair, string $timeframe, int $startTime, int $endTime)
 Checks if the database already contains sufficient historical data.
 

Detailed Description

Data Access Object for handling market candlestick data.

Member Function Documentation

◆ hasSufficientData()

static App\Models\CurrencyData::hasSufficientData ( string $pair,
string $timeframe,
int $startTime,
int $endTime )
static

Checks if the database already contains sufficient historical data.

Parameters
string$pairThe trading pair.
string$timeframeThe timeframe.
int$startTimeStart timestamp in milliseconds.
int$endTimeEnd timestamp in milliseconds.
Returns
bool True if we have the data, false if we need to fetch from Binance.

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