All URIs are relative to /v1
Method | HTTP request | Description |
---|---|---|
symbolsGet | GET /symbols/ | Get list of market symbols |
\D4T\MT5Sdk\Models\Symbol[] symbolsGet()
Get list of market symbols
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP bearer authorization: bearerAuth
$config = D4T\MT5Sdk\Configuration::getDefaultConfiguration()
->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new D4T\MT5Sdk\MT5Manager\SymbolApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->symbolsGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SymbolApi->symbolsGet: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]