# core_api

CoreApi - JavaScript client for core_api
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: v1
- Package version: v1
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen

## Installation

### For [Node.js](https://nodejs.org/)

#### npm

To publish the library as a [npm](https://www.npmjs.com/),
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).

Then install it via:

```shell
npm install core_api --save
```

#### git
#
If the library is hosted at a git repository, e.g.
https://github.com/GIT_USER_ID/GIT_REPO_ID
then install it via:

```shell
    npm install GIT_USER_ID/GIT_REPO_ID --save
```

### For browser

The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
the above steps with Node.js and installing browserify with `npm install -g browserify`,
perform the following (assuming *main.js* is your entry file):

```shell
browserify main.js > bundle.js
```

Then include *bundle.js* in the HTML pages.

### Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error:
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
the following section to your webpack config:

```javascript
module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}
```

## Getting Started

Please follow the [installation](#installation) instruction and execute the following JS code:

```javascript
var CoreApi = require('core_api');

var api = new CoreApi.ApibrokerApi()

var opts = { 
  'request': new CoreApi.NewManager() // {NewManager} 
};
api.apiBrokerAccountCreatePost(opts).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});


```

## Documentation for API Endpoints

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

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*CoreApi.ApibrokerApi* | [**apiBrokerAccountCreatePost**](docs/ApibrokerApi.md#apiBrokerAccountCreatePost) | **POST** /api/broker/account/create | 
*CoreApi.ApibrokerApi* | [**apiBrokerAuthSignInPost**](docs/ApibrokerApi.md#apiBrokerAuthSignInPost) | **POST** /api/broker/auth/signIn | 
*CoreApi.ApibrokerApi* | [**apiBrokerAuthUpdateTokenGet**](docs/ApibrokerApi.md#apiBrokerAuthUpdateTokenGet) | **GET** /api/broker/auth/updateToken | 
*CoreApi.ApibrokerApi* | [**apiBrokerInitDataGet**](docs/ApibrokerApi.md#apiBrokerInitDataGet) | **GET** /api/broker/initData | 
*CoreApi.ApibrokerApi* | [**apiBrokerPeriodCloseGet**](docs/ApibrokerApi.md#apiBrokerPeriodCloseGet) | **GET** /api/broker/period/close | 
*CoreApi.ApibrokerApi* | [**apiBrokerPeriodSetStartBalanceGet**](docs/ApibrokerApi.md#apiBrokerPeriodSetStartBalanceGet) | **GET** /api/broker/period/setStartBalance | 
*CoreApi.ApibrokerApi* | [**apiBrokerPeriodlosingDataGet**](docs/ApibrokerApi.md#apiBrokerPeriodlosingDataGet) | **GET** /api/broker/period/сlosingData | 
*CoreApi.ApiinvestorApi* | [**apiInvestorAuthConfirmEmailGet**](docs/ApiinvestorApi.md#apiInvestorAuthConfirmEmailGet) | **GET** /api/investor/auth/confirmEmail | 
*CoreApi.ApiinvestorApi* | [**apiInvestorAuthSignInPost**](docs/ApiinvestorApi.md#apiInvestorAuthSignInPost) | **POST** /api/investor/auth/signIn | 
*CoreApi.ApiinvestorApi* | [**apiInvestorAuthSignUpPost**](docs/ApiinvestorApi.md#apiInvestorAuthSignUpPost) | **POST** /api/investor/auth/signUp | 
*CoreApi.ApiinvestorApi* | [**apiInvestorAuthUpdateTokenGet**](docs/ApiinvestorApi.md#apiInvestorAuthUpdateTokenGet) | **GET** /api/investor/auth/updateToken | 
*CoreApi.ApiinvestorApi* | [**apiInvestorInvestmentsInvestPost**](docs/ApiinvestorApi.md#apiInvestorInvestmentsInvestPost) | **POST** /api/investor/investments/invest | 
*CoreApi.ApiinvestorApi* | [**apiInvestorInvestmentsPost**](docs/ApiinvestorApi.md#apiInvestorInvestmentsPost) | **POST** /api/investor/investments | 
*CoreApi.ApiinvestorApi* | [**apiInvestorInvestmentsWithdrawPost**](docs/ApiinvestorApi.md#apiInvestorInvestmentsWithdrawPost) | **POST** /api/investor/investments/withdraw | 
*CoreApi.ApiinvestorApi* | [**apiInvestorProfileFullGet**](docs/ApiinvestorApi.md#apiInvestorProfileFullGet) | **GET** /api/investor/profile/full | 
*CoreApi.ApiinvestorApi* | [**apiInvestorProfileGet**](docs/ApiinvestorApi.md#apiInvestorProfileGet) | **GET** /api/investor/profile | 
*CoreApi.ApiinvestorApi* | [**apiInvestorProfileUpdatePost**](docs/ApiinvestorApi.md#apiInvestorProfileUpdatePost) | **POST** /api/investor/profile/update | 
*CoreApi.ApimanagerApi* | [**apiManagerAccountNewInvestmentRequestPost**](docs/ApimanagerApi.md#apiManagerAccountNewInvestmentRequestPost) | **POST** /api/manager/account/newInvestmentRequest | 
*CoreApi.ApimanagerApi* | [**apiManagerAuthConfirmEmailGet**](docs/ApimanagerApi.md#apiManagerAuthConfirmEmailGet) | **GET** /api/manager/auth/confirmEmail | 
*CoreApi.ApimanagerApi* | [**apiManagerAuthSignInPost**](docs/ApimanagerApi.md#apiManagerAuthSignInPost) | **POST** /api/manager/auth/signIn | 
*CoreApi.ApimanagerApi* | [**apiManagerAuthSignUpPost**](docs/ApimanagerApi.md#apiManagerAuthSignUpPost) | **POST** /api/manager/auth/signUp | 
*CoreApi.ApimanagerApi* | [**apiManagerAuthUpdateTokenGet**](docs/ApimanagerApi.md#apiManagerAuthUpdateTokenGet) | **GET** /api/manager/auth/updateToken | 
*CoreApi.ApimanagerApi* | [**apiManagerBrokersPost**](docs/ApimanagerApi.md#apiManagerBrokersPost) | **POST** /api/manager/brokers | 
*CoreApi.ApimanagerApi* | [**apiManagerInvestmentCloseGet**](docs/ApimanagerApi.md#apiManagerInvestmentCloseGet) | **GET** /api/manager/investment/close | 
*CoreApi.ApimanagerApi* | [**apiManagerInvestmentGet**](docs/ApimanagerApi.md#apiManagerInvestmentGet) | **GET** /api/manager/investment | 
*CoreApi.ApimanagerApi* | [**apiManagerProfileFullGet**](docs/ApimanagerApi.md#apiManagerProfileFullGet) | **GET** /api/manager/profile/full | 
*CoreApi.ApimanagerApi* | [**apiManagerProfileGet**](docs/ApimanagerApi.md#apiManagerProfileGet) | **GET** /api/manager/profile | 
*CoreApi.ApimanagerApi* | [**apiManagerProfileUpdatePost**](docs/ApimanagerApi.md#apiManagerProfileUpdatePost) | **POST** /api/manager/profile/update | 
*CoreApi.ApitradesApi* | [**apiTradesIpfsGetGet**](docs/ApitradesApi.md#apiTradesIpfsGetGet) | **GET** /api/trades/ipfsGet | 


## Documentation for Models

 - [CoreApi.Broker](docs/Broker.md)
 - [CoreApi.BrokerInitData](docs/BrokerInitData.md)
 - [CoreApi.BrokerTradeServer](docs/BrokerTradeServer.md)
 - [CoreApi.BrokersFilter](docs/BrokersFilter.md)
 - [CoreApi.BrokersViewModel](docs/BrokersViewModel.md)
 - [CoreApi.ClosePeriodData](docs/ClosePeriodData.md)
 - [CoreApi.ErrorMessage](docs/ErrorMessage.md)
 - [CoreApi.ErrorViewModel](docs/ErrorViewModel.md)
 - [CoreApi.Invest](docs/Invest.md)
 - [CoreApi.Investment](docs/Investment.md)
 - [CoreApi.InvestmentProgram](docs/InvestmentProgram.md)
 - [CoreApi.InvestmentProgramStatistic](docs/InvestmentProgramStatistic.md)
 - [CoreApi.InvestmentProgramViewModel](docs/InvestmentProgramViewModel.md)
 - [CoreApi.InvestmentProgramsViewModel](docs/InvestmentProgramsViewModel.md)
 - [CoreApi.InvestmentRequest](docs/InvestmentRequest.md)
 - [CoreApi.InvestmentsFilter](docs/InvestmentsFilter.md)
 - [CoreApi.LoginViewModel](docs/LoginViewModel.md)
 - [CoreApi.ManagerAccount](docs/ManagerAccount.md)
 - [CoreApi.ManagerRequest](docs/ManagerRequest.md)
 - [CoreApi.ManagerToken](docs/ManagerToken.md)
 - [CoreApi.MetaTraderOrder](docs/MetaTraderOrder.md)
 - [CoreApi.NewInvestmentRequest](docs/NewInvestmentRequest.md)
 - [CoreApi.NewManager](docs/NewManager.md)
 - [CoreApi.Period](docs/Period.md)
 - [CoreApi.ProfileFullViewModel](docs/ProfileFullViewModel.md)
 - [CoreApi.ProfileShortViewModel](docs/ProfileShortViewModel.md)
 - [CoreApi.RegisterInvestorViewModel](docs/RegisterInvestorViewModel.md)
 - [CoreApi.RegisterManagerViewModel](docs/RegisterManagerViewModel.md)
 - [CoreApi.TradesViewModel](docs/TradesViewModel.md)


## Documentation for Authorization

 All endpoints do not require authorization.

