# CoreApi.BrokerApi

All URIs are relative to *https://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiBrokerAccountCreatePost**](BrokerApi.md#apiBrokerAccountCreatePost) | **POST** /api/broker/account/create | Create manager
[**apiBrokerAuthSignInPost**](BrokerApi.md#apiBrokerAuthSignInPost) | **POST** /api/broker/auth/signIn | Authorize
[**apiBrokerAuthUpdateTokenGet**](BrokerApi.md#apiBrokerAuthUpdateTokenGet) | **GET** /api/broker/auth/updateToken | Update auth token
[**apiBrokerInitDataGet**](BrokerApi.md#apiBrokerInitDataGet) | **GET** /api/broker/initData | Get broker initial data
[**apiBrokerPeriodCloseGet**](BrokerApi.md#apiBrokerPeriodCloseGet) | **GET** /api/broker/period/close | Close investment period
[**apiBrokerPeriodSetStartBalanceGet**](BrokerApi.md#apiBrokerPeriodSetStartBalanceGet) | **GET** /api/broker/period/setStartBalance | Set investment period start balance
[**apiBrokerPeriodlosingDataGet**](BrokerApi.md#apiBrokerPeriodlosingDataGet) | **GET** /api/broker/period/сlosingData | Get data for closing investment period


<a name="apiBrokerAccountCreatePost"></a>
# **apiBrokerAccountCreatePost**
> &#39;String&#39; apiBrokerAccountCreatePost(authorization, opts)

Create manager

### Example
```javascript
import CoreApi from 'core_api';

let apiInstance = new CoreApi.BrokerApi();

let authorization = "authorization_example"; // String | JWT access token

let opts = { 
  'request': new CoreApi.NewManager() // NewManager | 
};
apiInstance.apiBrokerAccountCreatePost(authorization, opts).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **authorization** | **String**| JWT access token | 
 **request** | [**NewManager**](NewManager.md)|  | [optional] 

### Return type

**&#39;String&#39;**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json-patch+json, application/json, text/json, application/_*+json
 - **Accept**: text/plain, application/json, text/json

<a name="apiBrokerAuthSignInPost"></a>
# **apiBrokerAuthSignInPost**
> &#39;String&#39; apiBrokerAuthSignInPost(opts)

Authorize

### Example
```javascript
import CoreApi from 'core_api';

let apiInstance = new CoreApi.BrokerApi();

let opts = { 
  'model': new CoreApi.LoginViewModel() // LoginViewModel | 
};
apiInstance.apiBrokerAuthSignInPost(opts).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **model** | [**LoginViewModel**](LoginViewModel.md)|  | [optional] 

### Return type

**&#39;String&#39;**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json-patch+json, application/json, text/json, application/_*+json
 - **Accept**: text/plain, application/json, text/json

<a name="apiBrokerAuthUpdateTokenGet"></a>
# **apiBrokerAuthUpdateTokenGet**
> &#39;String&#39; apiBrokerAuthUpdateTokenGet(authorization)

Update auth token

### Example
```javascript
import CoreApi from 'core_api';

let apiInstance = new CoreApi.BrokerApi();

let authorization = "authorization_example"; // String | JWT access token

apiInstance.apiBrokerAuthUpdateTokenGet(authorization).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **authorization** | **String**| JWT access token | 

### Return type

**&#39;String&#39;**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

<a name="apiBrokerInitDataGet"></a>
# **apiBrokerInitDataGet**
> BrokerInitData apiBrokerInitDataGet(brokerTradeServerId, authorization)

Get broker initial data

### Example
```javascript
import CoreApi from 'core_api';

let apiInstance = new CoreApi.BrokerApi();

let brokerTradeServerId = "brokerTradeServerId_example"; // String | 

let authorization = "authorization_example"; // String | JWT access token

apiInstance.apiBrokerInitDataGet(brokerTradeServerId, authorization).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **brokerTradeServerId** | [**String**](.md)|  | 
 **authorization** | **String**| JWT access token | 

### Return type

[**BrokerInitData**](BrokerInitData.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

<a name="apiBrokerPeriodCloseGet"></a>
# **apiBrokerPeriodCloseGet**
> apiBrokerPeriodCloseGet(investmentProgramId, authorization)

Close investment period

### Example
```javascript
import CoreApi from 'core_api';

let apiInstance = new CoreApi.BrokerApi();

let investmentProgramId = "investmentProgramId_example"; // String | 

let authorization = "authorization_example"; // String | JWT access token

apiInstance.apiBrokerPeriodCloseGet(investmentProgramId, authorization).then(() => {
  console.log('API called successfully.');
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **investmentProgramId** | [**String**](.md)|  | 
 **authorization** | **String**| JWT access token | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

<a name="apiBrokerPeriodSetStartBalanceGet"></a>
# **apiBrokerPeriodSetStartBalanceGet**
> apiBrokerPeriodSetStartBalanceGet(periodId, balance, authorization)

Set investment period start balance

### Example
```javascript
import CoreApi from 'core_api';

let apiInstance = new CoreApi.BrokerApi();

let periodId = "periodId_example"; // String | 

let balance = 1.2; // Number | 

let authorization = "authorization_example"; // String | JWT access token

apiInstance.apiBrokerPeriodSetStartBalanceGet(periodId, balance, authorization).then(() => {
  console.log('API called successfully.');
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **periodId** | [**String**](.md)|  | 
 **balance** | **Number**|  | 
 **authorization** | **String**| JWT access token | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

<a name="apiBrokerPeriodlosingDataGet"></a>
# **apiBrokerPeriodlosingDataGet**
> ClosePeriodData apiBrokerPeriodlosingDataGet(investmentProgramId, authorization)

Get data for closing investment period

### Example
```javascript
import CoreApi from 'core_api';

let apiInstance = new CoreApi.BrokerApi();

let investmentProgramId = "investmentProgramId_example"; // String | 

let authorization = "authorization_example"; // String | JWT access token

apiInstance.apiBrokerPeriodlosingDataGet(investmentProgramId, authorization).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **investmentProgramId** | [**String**](.md)|  | 
 **authorization** | **String**| JWT access token | 

### Return type

[**ClosePeriodData**](ClosePeriodData.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

