$client = \MusheAbdulHakim\CoinGecko\CoinGecko::client('your-api-key');
$coins = $client->coins();
$data = $coins->topGainersAndLosers($vs_currency, [
//parameters
]);
$data = $coins->recent();
//or
$data = $coins->recentlyAdded();
$data = $coins->list([
//parameters
]);
$data = $coins->listWithMarket($vs_currency,[
//parameters
]);
//or
$data = $coins->getMarkets($vs_currency,[
//parameters
]);
$data = $coins->getCoin($id,[
//parameters
]);
//or
$data = $coins->data($id,[
//parameters
]);
//or
$data = $coins->get($id,[
//parameters
]);
$data = $coins->getTickers($id,[
//parameters
]);
//or
$data = $coins->tickers($id,[
//parameters
]);
$data = $coins->getHistory($id, $date,[
//parameters
]);
//or
$data = $coins->history($id, $date,[
//parameters
]);
$data = $coins->getMarketChart($id, $vs_currency, $days,[
//parameters
]);
//or
$data = $coins->chartHistory($id, $vs_currency, $days, [
//parameters
]);
//or
$data = $coins->marketChart($id, $vs_currency, $days, [
//parameters
]);
//or
$data = $coins->historicalChart($id, $vs_currency, $days, [
//parameters
]);
$data = $coins->getMarketChartRange($id, $vs_currency, $from, $to,[
//parameters
]);
//or
$data = $coins->chartWithin($id, $vs_currency, $from, $to,[
//parameters
]);
$data = $coins->ohlcChart($id, $vs_currency, $from, $to,[
//parameters
]);
$data = $coins->ohclChartWithin($id, $vs_currency, $from, $to,$interval);
$data = $coins->circulatingSupplyChart($id, $days,$interval);
$data = $coins->totalSupplyChart($id, $days,[
//parameters
]);
$data = $coins->totalSupplyChartWithin($id, $from, $to);