# InvestorProgramAPIApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**getAllTraders**](#getalltraders) | **GET** /rest/api/v1/investorProgram/traders | Get all approved traders in the investor program|
|[**getTrader**](#gettrader) | **GET** /rest/api/v1/investorProgram/traders/{traderId} | Get a specific approved trader by ID|
|[**getTraderHistoryPositions**](#gettraderhistorypositions) | **GET** /rest/api/v1/investorProgram/traders/{traderId}/history/positions | Get trader historical positions|
|[**getTraderPerformanceMetrics**](#gettraderperformancemetrics) | **GET** /rest/api/v1/investorProgram/traders/{traderId}/performanceMetrics | Get trader performance metrics|

# **getAllTraders**
> Array<FeatureDTO> getAllTraders()

Returns a list of all traders with ACTIVE status

### Example

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

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

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

### Parameters
This endpoint does not have any parameters.


### Return type

**Array<FeatureDTO>**

### 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)

# **getTrader**
> FeatureDTO getTrader()

Returns detailed information about a specific approved trader

### Example

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

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

let traderId: string; // (default to undefined)

const { status, data } = await apiInstance.getTrader(
    traderId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **traderId** | [**string**] |  | defaults to undefined|


### Return type

**FeatureDTO**

### 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)

# **getTraderHistoryPositions**
> Array<PositionDTO> getTraderHistoryPositions()

Returns historical trading positions for an approved trader so investors can see their trading history. The history is not updated in real-time. There may be a delay of up to 3 minutes.

### Example

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

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

let traderId: string; // (default to undefined)
let start: string; //ISO 8601 (default to undefined)
let stop: string; //ISO 8601 (default to undefined)

const { status, data } = await apiInstance.getTraderHistoryPositions(
    traderId,
    start,
    stop
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **traderId** | [**string**] |  | defaults to undefined|
| **start** | [**string**] | ISO 8601 | defaults to undefined|
| **stop** | [**string**] | ISO 8601 | defaults to undefined|


### Return type

**Array<PositionDTO>**

### 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)

# **getTraderPerformanceMetrics**
> PerformanceMetricsDTO getTraderPerformanceMetrics()

Returns performance analytics for an approved trader\'s account

### Example

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

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

let traderId: string; // (default to undefined)

const { status, data } = await apiInstance.getTraderPerformanceMetrics(
    traderId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **traderId** | [**string**] |  | defaults to undefined|


### Return type

**PerformanceMetricsDTO**

### 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)

