Downloads
Stars
Version
composer require eelcol/laravel-tradetracker
Change your .env to include the following variables:
TRADETRACKER_ID=...
TRADETRACKER_SECRET=...
php artisan vendor:publish --tag=laravel-tradetracker
Also run the migrations after publishing:
php artisan migrate
use Eelcol\LaravelTradetracker\Support\Facades\Tradetracker;
// last 7 days
Tradetracker::getTransactions(now()->subDays(7), now());
// today only
Tradetracker::getTransactions(now());
Currently, only the call to load transactions is build-in. To make another GET call:
use Eelcol\LaravelTradetracker\Support\Facades\Tradetracker;
Tradetracker::get('path', ['param1' => 123]);