Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.46 KB

SymbolApi.md

File metadata and controls

56 lines (39 loc) · 1.46 KB

D4T\MT5Sdk\SymbolApi

All URIs are relative to /v1

Method HTTP request Description
symbolsGet GET /symbols/ Get list of market symbols

symbolsGet

\D4T\MT5Sdk\Models\Symbol[] symbolsGet()

Get list of market symbols

Example

<?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;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

\D4T\MT5Sdk\Models\Symbol[]

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]