# BrokerAPIApi

All URIs are relative to *https://api.metacopier.io*

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**getAllBrokers**](#getallbrokers) | **GET** /rest/api/v1/brokers/{brokerType}/all | Get all brokers|

# **getAllBrokers**
> Array<string> getAllBrokers()

Returns a list of all available broker names for the specified broker type (mt4 or mt5).

### Example

```typescript
import {
    BrokerAPIApi,
    Configuration
} from 'js-metacopier-api';

const configuration = new Configuration();
const apiInstance = new BrokerAPIApi(configuration);

let brokerType: string; //The broker type. Allowed values: mt4, mt5 (default to undefined)

const { status, data } = await apiInstance.getAllBrokers(
    brokerType
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **brokerType** | [**string**] | The broker type. Allowed values: mt4, mt5 | defaults to undefined|


### Return type

**Array<string>**

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OK |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

