PHP code example of marekskopal / etoro
1. Go to this page and download the library: Download marekskopal/etoro library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
marekskopal / etoro example snippets
use MarekSkopal\Etoro\Etoro;
use MarekSkopal\Etoro\Config\Config;
// Create Etoro instance
$etoro = new Etoro(new Config(apiKey: '<yourApiKey>', userKey: '<yourUserKey>'));
// Search instruments by symbol
$response = $etoro->marketData->searchBySymbol('AAPL');