# SignalAPIApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**closeAllPositionsInAllFollowerAccounts**](#closeallpositionsinallfolloweraccounts) | **POST** /rest/api/v1/signals/{signalProviderId}/closeAllPositions | Close all open positions in all accounts (followers)|
|[**closeSignalFollowerAllPositions**](#closesignalfollowerallpositions) | **POST** /rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/actions/closeAllPositions | Close all signal follower account positions|
|[**closeSignalFollowerPosition**](#closesignalfollowerposition) | **DELETE** /rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/positions/{positionId} | Close an signal follower account position|
|[**getFollowerFeature**](#getfollowerfeature) | **GET** /rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/followerFeature | Get follower feature|
|[**getSignalFollowerAccountAuditLogs**](#getsignalfolloweraccountauditlogs) | **GET** /rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/auditLogs | Get signal follower account audit logs|
|[**getSignalFollowerAccountHistoryPositions**](#getsignalfolloweraccounthistorypositions) | **GET** /rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/history/positions | Get signal follower account history positions|
|[**getSignalFollowerAccountLogs**](#getsignalfolloweraccountlogs) | **GET** /rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/logs | Get signal follower account logs|
|[**getSignalFollowerAccountPerformanceMetrics**](#getsignalfolloweraccountperformancemetrics) | **GET** /rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/performanceMetrics | Get signal follower account performance metrics|
|[**getSignalFollowerAccountPositions**](#getsignalfolloweraccountpositions) | **GET** /rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/positions | Get signal follower account positions|
|[**getSignalFollowerAccounts**](#getsignalfolloweraccounts) | **GET** /rest/api/v1/signals/{signalProviderId}/accounts | Get all signal follower accounts|
|[**getSignalProviderEarnings**](#getsignalproviderearnings) | **GET** /rest/api/v1/signals/{signalProviderId}/earnings | Get signal provider earnings breakdown|
|[**getSignalProviderHistoryPositions**](#getsignalproviderhistorypositions) | **GET** /rest/api/v1/signals/{signalProviderId}/history/positions | Get signal provider historical positions|
|[**getSignalSymbols**](#getsignalsymbols) | **GET** /rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/symbols | Get signal follower account symbols|
|[**removeFollower**](#removefollower) | **DELETE** /rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/followerFeature | Remove a follower from the signal provider|
|[**updateFollowerFeature**](#updatefollowerfeature) | **PUT** /rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/followerFeature | Update follower feature|

# **closeAllPositionsInAllFollowerAccounts**
> closeAllPositionsInAllFollowerAccounts()


### Example

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

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

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

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

### Parameters

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


### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | No Content |  -  |

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

# **closeSignalFollowerAllPositions**
> closeSignalFollowerAllPositions()


### Example

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

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

let signalProviderId: string; // (default to undefined)
let accountId: string; // (default to undefined)

const { status, data } = await apiInstance.closeSignalFollowerAllPositions(
    signalProviderId,
    accountId
);
```

### Parameters

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


### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | No Content |  -  |

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

# **closeSignalFollowerPosition**
> closeSignalFollowerPosition()


### Example

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

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

let signalProviderId: string; // (default to undefined)
let accountId: string; // (default to undefined)
let positionId: string; // (default to undefined)

const { status, data } = await apiInstance.closeSignalFollowerPosition(
    signalProviderId,
    accountId,
    positionId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **signalProviderId** | [**string**] |  | defaults to undefined|
| **accountId** | [**string**] |  | defaults to undefined|
| **positionId** | [**string**] |  | defaults to undefined|


### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | No Content |  -  |

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

# **getFollowerFeature**
> FeatureDTO getFollowerFeature()


### Example

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

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

let signalProviderId: string; // (default to undefined)
let accountId: string; // (default to undefined)

const { status, data } = await apiInstance.getFollowerFeature(
    signalProviderId,
    accountId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **signalProviderId** | [**string**] |  | defaults to undefined|
| **accountId** | [**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)

# **getSignalFollowerAccountAuditLogs**
> Array<AuditLogDTO> getSignalFollowerAccountAuditLogs()

Retrieves audit logs for all API modifications made to a specific signal follower account.

### Example

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

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

let signalProviderId: string; // (default to undefined)
let accountId: string; // (default to undefined)
let limit: number; //Maximum number of logs to return (optional) (default to undefined)
let offset: number; //Number of logs to skip for pagination (optional) (default to undefined)
let startDate: string; //Start date filter (ISO-8601 format) (optional) (default to undefined)
let endDate: string; //End date filter (ISO-8601 format) (optional) (default to undefined)

const { status, data } = await apiInstance.getSignalFollowerAccountAuditLogs(
    signalProviderId,
    accountId,
    limit,
    offset,
    startDate,
    endDate
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **signalProviderId** | [**string**] |  | defaults to undefined|
| **accountId** | [**string**] |  | defaults to undefined|
| **limit** | [**number**] | Maximum number of logs to return | (optional) defaults to undefined|
| **offset** | [**number**] | Number of logs to skip for pagination | (optional) defaults to undefined|
| **startDate** | [**string**] | Start date filter (ISO-8601 format) | (optional) defaults to undefined|
| **endDate** | [**string**] | End date filter (ISO-8601 format) | (optional) defaults to undefined|


### Return type

**Array<AuditLogDTO>**

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

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

The history is not updated in real-time. There may be a delay of up to 3 minutes

### Example

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

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

let signalProviderId: string; // (default to undefined)
let accountId: 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.getSignalFollowerAccountHistoryPositions(
    signalProviderId,
    accountId,
    start,
    stop
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **signalProviderId** | [**string**] |  | defaults to undefined|
| **accountId** | [**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)

# **getSignalFollowerAccountLogs**
> Array<LogDTO> getSignalFollowerAccountLogs()


### Example

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

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

let signalProviderId: string; // (default to undefined)
let accountId: string; // (default to undefined)
let limit: number; //Get the last logs: e.g. 100 means the last 100 logs (optional) (default to undefined)
let offset: number; //You can set an offset. Offset 100 means 101-200 (optional) (default to undefined)
let start: string; //ISO 8601 (optional) (default to undefined)
let stop: string; //ISO 8601 (optional) (default to undefined)
let logTypeId: number; //Filter logs by log level type ID. If you choose 3 = Info, then all logs with a lower level are returned. The levels are: 1 = Error, 2 = Warning, 3 = Info. (optional) (default to undefined)

const { status, data } = await apiInstance.getSignalFollowerAccountLogs(
    signalProviderId,
    accountId,
    limit,
    offset,
    start,
    stop,
    logTypeId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **signalProviderId** | [**string**] |  | defaults to undefined|
| **accountId** | [**string**] |  | defaults to undefined|
| **limit** | [**number**] | Get the last logs: e.g. 100 means the last 100 logs | (optional) defaults to undefined|
| **offset** | [**number**] | You can set an offset. Offset 100 means 101-200 | (optional) defaults to undefined|
| **start** | [**string**] | ISO 8601 | (optional) defaults to undefined|
| **stop** | [**string**] | ISO 8601 | (optional) defaults to undefined|
| **logTypeId** | [**number**] | Filter logs by log level type ID. If you choose 3 &#x3D; Info, then all logs with a lower level are returned. The levels are: 1 &#x3D; Error, 2 &#x3D; Warning, 3 &#x3D; Info. | (optional) defaults to undefined|


### Return type

**Array<LogDTO>**

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

# **getSignalFollowerAccountPerformanceMetrics**
> PerformanceMetricsDTO getSignalFollowerAccountPerformanceMetrics()


### Example

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

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

let signalProviderId: string; // (default to undefined)
let accountId: string; // (default to undefined)

const { status, data } = await apiInstance.getSignalFollowerAccountPerformanceMetrics(
    signalProviderId,
    accountId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **signalProviderId** | [**string**] |  | defaults to undefined|
| **accountId** | [**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)

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


### Example

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

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

let signalProviderId: string; // (default to undefined)
let accountId: string; // (default to undefined)

const { status, data } = await apiInstance.getSignalFollowerAccountPositions(
    signalProviderId,
    accountId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **signalProviderId** | [**string**] |  | defaults to undefined|
| **accountId** | [**string**] |  | 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)

# **getSignalFollowerAccounts**
> Array<AccountDTO> getSignalFollowerAccounts()


### Example

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

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

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

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

### Parameters

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


### Return type

**Array<AccountDTO>**

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

# **getSignalProviderEarnings**
> SignalProviderEarningsDTO getSignalProviderEarnings()

Returns earnings breakdown for a signal provider including gross/net amounts, per-follower charge details, and monthly breakdown. Includes PAID, OPEN, and VOID invoices. If month and year are not provided, returns all-time earnings.

### Example

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

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

let signalProviderId: string; // (default to undefined)
let month: number; //Month (1-12). If omitted, returns all months. (optional) (default to undefined)
let year: number; //Year (e.g. 2026). If omitted, returns all years. (optional) (default to undefined)

const { status, data } = await apiInstance.getSignalProviderEarnings(
    signalProviderId,
    month,
    year
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **signalProviderId** | [**string**] |  | defaults to undefined|
| **month** | [**number**] | Month (1-12). If omitted, returns all months. | (optional) defaults to undefined|
| **year** | [**number**] | Year (e.g. 2026). If omitted, returns all years. | (optional) defaults to undefined|


### Return type

**SignalProviderEarningsDTO**

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

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


### Example

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

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

let signalProviderId: 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.getSignalProviderHistoryPositions(
    signalProviderId,
    start,
    stop
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **signalProviderId** | [**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)

# **getSignalSymbols**
> Array<SymbolDTO> getSignalSymbols()


### Example

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

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

let signalProviderId: string; // (default to undefined)
let accountId: string; // (default to undefined)

const { status, data } = await apiInstance.getSignalSymbols(
    signalProviderId,
    accountId
);
```

### Parameters

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


### Return type

**Array<SymbolDTO>**

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

# **removeFollower**
> removeFollower()

Deletes the signal follower feature. This is only possible if there are no open positions on the signal provider\'s source account.

### Example

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

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

let signalProviderId: string; // (default to undefined)
let accountId: string; // (default to undefined)

const { status, data } = await apiInstance.removeFollower(
    signalProviderId,
    accountId
);
```

### Parameters

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


### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | No Content |  -  |

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

# **updateFollowerFeature**
> FeatureDTO updateFollowerFeature(featureDTO)


### Example

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

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

let signalProviderId: string; // (default to undefined)
let accountId: string; // (default to undefined)
let featureDTO: FeatureDTO; //

const { status, data } = await apiInstance.updateFollowerFeature(
    signalProviderId,
    accountId,
    featureDTO
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **featureDTO** | **FeatureDTO**|  | |
| **signalProviderId** | [**string**] |  | defaults to undefined|
| **accountId** | [**string**] |  | defaults to undefined|


### Return type

**FeatureDTO**

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

