for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Carpenstar\ByBitAPI\Derivatives\MarketData\FundingRateHistory;
use Carpenstar\ByBitAPI\Core\Endpoints\PublicEndpoint;
use Carpenstar\ByBitAPI\Core\Interfaces\IGetEndpointInterface;
use Carpenstar\ByBitAPI\Derivatives\MarketData\FundingRateHistory\Request\FundingRateHistoryRequest;
use Carpenstar\ByBitAPI\Derivatives\MarketData\FundingRateHistory\Response\FundingRateHistoryResponse;
class FundingRateHistory extends PublicEndpoint implements IGetEndpointInterface
{
protected function getEndpointUrl(): string
return "/derivatives/v3/public/funding/history-funding-rate";
}
public function getRequestClassname(): string
return FundingRateHistoryRequest::class;
protected function getResponseClassnameByCondition(array &$apiData = null): string
$apiData
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function getResponseClassnameByCondition(/** @scrutinizer ignore-unused */ array &$apiData = null): string
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return FundingRateHistoryResponse::class;
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.