gv-api-web v1.0.37
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 project:
- API version: v1
- Package version: v1
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
Installation
For Node.js
npm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
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:
npm install GIT_USER_ID/GIT_REPO_ID --save
For browser
The library also works in the browser environment via npm and browserify. 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):
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:
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
Getting Started
Please follow the installation instruction and execute the following JS code:
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 | POST /api/broker/account/create | |
CoreApi.ApibrokerApi | apiBrokerAuthSignInPost | POST /api/broker/auth/signIn | |
CoreApi.ApibrokerApi | apiBrokerAuthUpdateTokenGet | GET /api/broker/auth/updateToken | |
CoreApi.ApibrokerApi | apiBrokerInitDataGet | GET /api/broker/initData | |
CoreApi.ApibrokerApi | apiBrokerPeriodCloseGet | GET /api/broker/period/close | |
CoreApi.ApibrokerApi | apiBrokerPeriodSetStartBalanceGet | GET /api/broker/period/setStartBalance | |
CoreApi.ApibrokerApi | apiBrokerPeriodlosingDataGet | GET /api/broker/period/сlosingData | |
CoreApi.ApiinvestorApi | apiInvestorAuthConfirmEmailGet | GET /api/investor/auth/confirmEmail | |
CoreApi.ApiinvestorApi | apiInvestorAuthSignInPost | POST /api/investor/auth/signIn | |
CoreApi.ApiinvestorApi | apiInvestorAuthSignUpPost | POST /api/investor/auth/signUp | |
CoreApi.ApiinvestorApi | apiInvestorAuthUpdateTokenGet | GET /api/investor/auth/updateToken | |
CoreApi.ApiinvestorApi | apiInvestorInvestmentsInvestPost | POST /api/investor/investments/invest | |
CoreApi.ApiinvestorApi | apiInvestorInvestmentsPost | POST /api/investor/investments | |
CoreApi.ApiinvestorApi | apiInvestorInvestmentsWithdrawPost | POST /api/investor/investments/withdraw | |
CoreApi.ApiinvestorApi | apiInvestorProfileFullGet | GET /api/investor/profile/full | |
CoreApi.ApiinvestorApi | apiInvestorProfileGet | GET /api/investor/profile | |
CoreApi.ApiinvestorApi | apiInvestorProfileUpdatePost | POST /api/investor/profile/update | |
CoreApi.ApimanagerApi | apiManagerAccountNewInvestmentRequestPost | POST /api/manager/account/newInvestmentRequest | |
CoreApi.ApimanagerApi | apiManagerAuthConfirmEmailGet | GET /api/manager/auth/confirmEmail | |
CoreApi.ApimanagerApi | apiManagerAuthSignInPost | POST /api/manager/auth/signIn | |
CoreApi.ApimanagerApi | apiManagerAuthSignUpPost | POST /api/manager/auth/signUp | |
CoreApi.ApimanagerApi | apiManagerAuthUpdateTokenGet | GET /api/manager/auth/updateToken | |
CoreApi.ApimanagerApi | apiManagerBrokersPost | POST /api/manager/brokers | |
CoreApi.ApimanagerApi | apiManagerInvestmentCloseGet | GET /api/manager/investment/close | |
CoreApi.ApimanagerApi | apiManagerInvestmentGet | GET /api/manager/investment | |
CoreApi.ApimanagerApi | apiManagerProfileFullGet | GET /api/manager/profile/full | |
CoreApi.ApimanagerApi | apiManagerProfileGet | GET /api/manager/profile | |
CoreApi.ApimanagerApi | apiManagerProfileUpdatePost | POST /api/manager/profile/update | |
CoreApi.ApitradesApi | apiTradesIpfsGetGet | GET /api/trades/ipfsGet |
Documentation for Models
- CoreApi.Broker
- CoreApi.BrokerInitData
- CoreApi.BrokerTradeServer
- CoreApi.BrokersFilter
- CoreApi.BrokersViewModel
- CoreApi.ClosePeriodData
- CoreApi.ErrorMessage
- CoreApi.ErrorViewModel
- CoreApi.Invest
- CoreApi.Investment
- CoreApi.InvestmentProgram
- CoreApi.InvestmentProgramStatistic
- CoreApi.InvestmentProgramViewModel
- CoreApi.InvestmentProgramsViewModel
- CoreApi.InvestmentRequest
- CoreApi.InvestmentsFilter
- CoreApi.LoginViewModel
- CoreApi.ManagerAccount
- CoreApi.ManagerRequest
- CoreApi.ManagerToken
- CoreApi.MetaTraderOrder
- CoreApi.NewInvestmentRequest
- CoreApi.NewManager
- CoreApi.Period
- CoreApi.ProfileFullViewModel
- CoreApi.ProfileShortViewModel
- CoreApi.RegisterInvestorViewModel
- CoreApi.RegisterManagerViewModel
- CoreApi.TradesViewModel
Documentation for Authorization
All endpoints do not require authorization.
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago