malletx
TypeScript icon, indicating that this package has built-in type declarations

1.0.540 • Public • Published

swagger-codegen generate -i -l javascript -c config.json -t ./template/es6/

npm run build

core_api_v10

CoreApiV10 - JavaScript client for core_api_v10 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.0
  • Package version: v1.0
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen For more information, please visit https://genesis.vision/

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_v10 --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 CoreApiV10 = require('core_api_v10');

var api = new CoreApiV10.AuthApi()

var authorization = "authorization_example"; // {String} JWT access token

var opts = { 
  'model': new CoreApiV10.TwoFactorAuthenticatorConfirm() // {TwoFactorAuthenticatorConfirm} 
};
api.v10Auth2faConfirmPost(authorization, 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
CoreApiV10.AuthApi v10Auth2faConfirmPost POST /v1.0/auth/2fa/confirm 2FA confirm
CoreApiV10.AuthApi v10Auth2faCreatePost POST /v1.0/auth/2fa/create 2FA create
CoreApiV10.AuthApi v10Auth2faDisablePost POST /v1.0/auth/2fa/disable 2FA disable
CoreApiV10.AuthApi v10Auth2faGet GET /v1.0/auth/2fa 2FA status
CoreApiV10.AuthApi v10Auth2faRecoverycodesNewPost POST /v1.0/auth/2fa/recoverycodes/new 2FA generate new recovery codes
CoreApiV10.AuthApi v10Auth2faRecoverycodesPost POST /v1.0/auth/2fa/recoverycodes 2FA recovery codes
CoreApiV10.AuthApi v10AuthPasswordChangePost POST /v1.0/auth/password/change Change password
CoreApiV10.AuthApi v10AuthPasswordForgotInvestorPost POST /v1.0/auth/password/forgot/investor Forgot password for investor
CoreApiV10.AuthApi v10AuthPasswordForgotManagerPost POST /v1.0/auth/password/forgot/manager Forgot password for manager
CoreApiV10.AuthApi v10AuthPasswordResetPost POST /v1.0/auth/password/reset Reset password
CoreApiV10.AuthApi v10AuthPhoneCodePost POST /v1.0/auth/phone/code Get phone number verification code
CoreApiV10.AuthApi v10AuthPhoneVerifyPost POST /v1.0/auth/phone/verify Verify phone number
CoreApiV10.AuthApi v10AuthResendconfirmationlinkPost POST /v1.0/auth/resendconfirmationlink Resend Confirmation Link
CoreApiV10.AuthApi v10AuthSigninInvestorPost POST /v1.0/auth/signin/investor Authorize
CoreApiV10.AuthApi v10AuthSigninManagerPost POST /v1.0/auth/signin/manager Authorize
CoreApiV10.AuthApi v10AuthSignupConfirmPost POST /v1.0/auth/signup/confirm Confirm email after registration
CoreApiV10.AuthApi v10AuthSignupInvestorPost POST /v1.0/auth/signup/investor New investor registration
CoreApiV10.AuthApi v10AuthSignupManagerPost POST /v1.0/auth/signup/manager New manager registration
CoreApiV10.AuthApi v10AuthTokenDevicesLogoutPost POST /v1.0/auth/token/devices/logout Logout from another devices
CoreApiV10.AuthApi v10AuthTokenUpdatePost POST /v1.0/auth/token/update Update auth token
CoreApiV10.BrokersApi v10BrokersGet GET /v1.0/brokers Get all trade servers
CoreApiV10.FileApi v10FileByIdGet GET /v1.0/file/{id} Download file
CoreApiV10.FileApi v10FileDocumentUploadPost POST /v1.0/file/document/upload Upload document
CoreApiV10.FileApi v10FileUploadPost POST /v1.0/file/upload Upload file
CoreApiV10.FundsApi v10FundsAssetsGet GET /v1.0/funds/assets Get all supported assets for funds
CoreApiV10.FundsApi v10FundsByIdAssetsGet GET /v1.0/funds/{id}/assets Fund assets info
CoreApiV10.FundsApi v10FundsByIdChartsBalanceGet GET /v1.0/funds/{id}/charts/balance Fund balance chart
CoreApiV10.FundsApi v10FundsByIdChartsProfitGet GET /v1.0/funds/{id}/charts/profit Fund profit chart
CoreApiV10.FundsApi v10FundsByIdFavoriteAddPost POST /v1.0/funds/{id}/favorite/add Add to favorites
CoreApiV10.FundsApi v10FundsByIdFavoriteRemovePost POST /v1.0/funds/{id}/favorite/remove Remove from favorites
CoreApiV10.FundsApi v10FundsByIdGet GET /v1.0/funds/{id} Funds details
CoreApiV10.FundsApi v10FundsGet GET /v1.0/funds Funds list
CoreApiV10.FundsApi v10FundsSetsGet GET /v1.0/funds/sets Fund sets
CoreApiV10.InvestorApi v10InvestorFundsByIdInvestByAmountPost POST /v1.0/investor/funds/{id}/invest/{amount} Investing into the fund. Invest in GVT if currency is empty
CoreApiV10.InvestorApi v10InvestorFundsByIdInvestInfoByCurrencyGet GET /v1.0/investor/funds/{id}/invest/info/{currency} Data for investing into the fund
CoreApiV10.InvestorApi v10InvestorFundsByIdRequestsBySkipByTakeGet GET /v1.0/investor/funds/{id}/requests/{skip}/{take} Get program/fund requests
CoreApiV10.InvestorApi v10InvestorFundsByIdWithdrawByPercentPost POST /v1.0/investor/funds/{id}/withdraw/{percent} Withdraw from fund. Percent is % of investor total money. Withdraw in GVT if currency is empty
CoreApiV10.InvestorApi v10InvestorFundsByIdWithdrawInfoByCurrencyGet GET /v1.0/investor/funds/{id}/withdraw/info/{currency} Data for withdrawal from fund
CoreApiV10.InvestorApi v10InvestorFundsGet GET /v1.0/investor/funds Dashboard funds list
CoreApiV10.InvestorApi v10InvestorGet GET /v1.0/investor Summary dashboard info
CoreApiV10.InvestorApi v10InvestorPortfolioChartGet GET /v1.0/investor/portfolio/chart Portfolio charts
CoreApiV10.InvestorApi v10InvestorPortfolioEventsGet GET /v1.0/investor/portfolio/events Portfolio events
CoreApiV10.InvestorApi v10InvestorProgramsByIdInvestByAmountPost POST /v1.0/investor/programs/{id}/invest/{amount} Investing into the program. Invest in GVT if currency is empty
CoreApiV10.InvestorApi v10InvestorProgramsByIdInvestInfoByCurrencyGet GET /v1.0/investor/programs/{id}/invest/info/{currency} Data for investing into the program
CoreApiV10.InvestorApi v10InvestorProgramsByIdReinvestOffPost POST /v1.0/investor/programs/{id}/reinvest/off Disable reinvesting
CoreApiV10.InvestorApi v10InvestorProgramsByIdReinvestOnPost POST /v1.0/investor/programs/{id}/reinvest/on Enable reinvesting
CoreApiV10.InvestorApi v10InvestorProgramsByIdRequestsBySkipByTakeGet GET /v1.0/investor/programs/{id}/requests/{skip}/{take} Get program/fund requests
CoreApiV10.InvestorApi v10InvestorProgramsByIdWithdrawByAmountPost POST /v1.0/investor/programs/{id}/withdraw/{amount} Withdraw from investment program in GVT
CoreApiV10.InvestorApi v10InvestorProgramsByIdWithdrawInfoByCurrencyGet GET /v1.0/investor/programs/{id}/withdraw/info/{currency} Data for withdrawal from investment program
CoreApiV10.InvestorApi v10InvestorProgramsByIdWithdrawMultiByAmountPost POST /v1.0/investor/programs/{id}/withdraw/multi/{amount} Withdraw from investment program in program currency
CoreApiV10.InvestorApi v10InvestorProgramsGet GET /v1.0/investor/programs Dashboard program list
CoreApiV10.InvestorApi v10InvestorProgramsRequestsByIdCancelPost POST /v1.0/investor/programs/requests/{id}/cancel Cancel investment program request
CoreApiV10.InvestorApi v10InvestorRequestsBySkipByTakeGet GET /v1.0/investor/requests/{skip}/{take} Get all requests
CoreApiV10.InvestorApi v10InvestorSignalsGet GET /v1.0/investor/signals Dashboard signal providers list
CoreApiV10.ManagerApi v10ManagerAssetsGet GET /v1.0/manager/assets Manager assets list
CoreApiV10.ManagerApi v10ManagerByIdDetailsGet GET /v1.0/manager/{id}/details Manager details
CoreApiV10.ManagerApi v10ManagerByIdGet GET /v1.0/manager/{id} Manager profile
CoreApiV10.ManagerApi v10ManagerEventsGet GET /v1.0/manager/events Manager events
CoreApiV10.ManagerApi v10ManagerFundsByIdAssetsUpdatePost POST /v1.0/manager/funds/{id}/assets/update Update fund assets parts
CoreApiV10.ManagerApi v10ManagerFundsByIdClosePost POST /v1.0/manager/funds/{id}/close Close existing fund
CoreApiV10.ManagerApi v10ManagerFundsByIdInvestByAmountPost POST /v1.0/manager/funds/{id}/invest/{amount} Deposit. Invest in GVT if currency is empty
CoreApiV10.ManagerApi v10ManagerFundsByIdInvestInfoByCurrencyGet GET /v1.0/manager/funds/{id}/invest/info/{currency} Data for investing into the fund
CoreApiV10.ManagerApi v10ManagerFundsByIdRequestsBySkipByTakeGet GET /v1.0/manager/funds/{id}/requests/{skip}/{take} Get investment program/fund requests
CoreApiV10.ManagerApi v10ManagerFundsByIdUpdatePost POST /v1.0/manager/funds/{id}/update Update investment program/fund details
CoreApiV10.ManagerApi v10ManagerFundsByIdWithdrawByPercentPost POST /v1.0/manager/funds/{id}/withdraw/{percent} Withdraw from fund. Percent is % of manager total money. Withdraw in GVT if currency is empty
CoreApiV10.ManagerApi v10ManagerFundsByIdWithdrawInfoByCurrencyGet GET /v1.0/manager/funds/{id}/withdraw/info/{currency} Data for withdrawal from fund
CoreApiV10.ManagerApi v10ManagerFundsCreatePost POST /v1.0/manager/funds/create Create fund
CoreApiV10.ManagerApi v10ManagerFundsGet GET /v1.0/manager/funds Manager funds
CoreApiV10.ManagerApi v10ManagerFundsInvestmentAmountGet GET /v1.0/manager/funds/investment/amount Get GVT investment to create fund
CoreApiV10.ManagerApi v10ManagerFundsRequestsByIdCancelPost POST /v1.0/manager/funds/requests/{id}/cancel Cancel investment program/fund request
CoreApiV10.ManagerApi v10ManagerGet GET /v1.0/manager Manager dashboard
CoreApiV10.ManagerApi v10ManagerPrograms2faConfirmPost POST /v1.0/manager/programs/2fa/confirm Confirm 2FA for program if required (for brokers like Huobi)
CoreApiV10.ManagerApi v10ManagerPrograms2faGetGet GET /v1.0/manager/programs/2fa/get Get 2FA for program if needed
CoreApiV10.ManagerApi v10ManagerProgramsByIdClosePost POST /v1.0/manager/programs/{id}/close Close existing investment program
CoreApiV10.ManagerApi v10ManagerProgramsByIdInvestByAmountPost POST /v1.0/manager/programs/{id}/invest/{amount} Deposit Invest in GVT if currency is empty
CoreApiV10.ManagerApi v10ManagerProgramsByIdInvestInfoByCurrencyGet GET /v1.0/manager/programs/{id}/invest/info/{currency} Data for investing into the program
CoreApiV10.ManagerApi v10ManagerProgramsByIdPasswordChangePost POST /v1.0/manager/programs/{id}/password/change Change program password
CoreApiV10.ManagerApi v10ManagerProgramsByIdPeriodClosePost POST /v1.0/manager/programs/{id}/period/close Close current period
CoreApiV10.ManagerApi v10ManagerProgramsByIdRequestsBySkipByTakeGet GET /v1.0/manager/programs/{id}/requests/{skip}/{take} Get investment program/fund requests
CoreApiV10.ManagerApi v10ManagerProgramsByIdUpdatePost POST /v1.0/manager/programs/{id}/update Update investment program/fund details
CoreApiV10.ManagerApi v10ManagerProgramsByIdWithdrawByAmountPost POST /v1.0/manager/programs/{id}/withdraw/{amount} Withdraw from investment program in GVT
CoreApiV10.ManagerApi v10ManagerProgramsByIdWithdrawInfoByCurrencyGet GET /v1.0/manager/programs/{id}/withdraw/info/{currency} Data for withdrawal from investment program
CoreApiV10.ManagerApi v10ManagerProgramsByIdWithdrawMultiByAmountPost POST /v1.0/manager/programs/{id}/withdraw/multi/{amount} Withdraw from investment program in program currency
CoreApiV10.ManagerApi v10ManagerProgramsCreatePost POST /v1.0/manager/programs/create Create an investment program
CoreApiV10.ManagerApi v10ManagerProgramsGet GET /v1.0/manager/programs Manager programs
CoreApiV10.ManagerApi v10ManagerProgramsInvestmentAmountGet GET /v1.0/manager/programs/investment/amount Get investment amount to create program
CoreApiV10.ManagerApi v10ManagerProgramsRequestsByIdCancelPost POST /v1.0/manager/programs/requests/{id}/cancel Cancel investment program/fund request
CoreApiV10.ManagerApi v10ManagerRequestsBySkipByTakeGet GET /v1.0/manager/requests/{skip}/{take} Get all requests
CoreApiV10.ManagerApi v10ManagerSignalCreatePost POST /v1.0/manager/signal/create Make manager's program signal provider
CoreApiV10.ManagerApi v10ManagerSignalEditPost POST /v1.0/manager/signal/edit Make manager's program signal provider
CoreApiV10.NotificationsApi v10NotificationsByIdReadPost POST /v1.0/notifications/{id}/read Read notification
CoreApiV10.NotificationsApi v10NotificationsGet GET /v1.0/notifications User notifications
CoreApiV10.NotificationsApi v10NotificationsNewGet GET /v1.0/notifications/new Unread notifications count
CoreApiV10.NotificationsApi v10NotificationsSettingsAddPost POST /v1.0/notifications/settings/add Add new setting
CoreApiV10.NotificationsApi v10NotificationsSettingsByIdByEnablePost POST /v1.0/notifications/settings/{id}/{enable} Enable/disable setting
CoreApiV10.NotificationsApi v10NotificationsSettingsFundsByIdGet GET /v1.0/notifications/settings/funds/{id} User settings for fund
CoreApiV10.NotificationsApi v10NotificationsSettingsGet GET /v1.0/notifications/settings User settings
CoreApiV10.NotificationsApi v10NotificationsSettingsManagersByIdGet GET /v1.0/notifications/settings/managers/{id} User settings for manager
CoreApiV10.NotificationsApi v10NotificationsSettingsProgramsByIdGet GET /v1.0/notifications/settings/programs/{id} User settings for program
CoreApiV10.NotificationsApi v10NotificationsSettingsRemoveByIdPost POST /v1.0/notifications/settings/remove/{id} Remove setting
CoreApiV10.PlatformApi v10PlatformInfoGet GET /v1.0/platform/info Platform info
CoreApiV10.PlatformApi v10PlatformLevelsGet GET /v1.0/platform/levels Investment programs levels
CoreApiV10.PlatformApi v10PlatformRiskcontrolGet GET /v1.0/platform/riskcontrol Platform captcha details.
CoreApiV10.PlatformApi v10PlatformStatisticGet GET /v1.0/platform/statistic Platform statistic
CoreApiV10.ProfileApi v10ProfileAvatarRemovePost POST /v1.0/profile/avatar/remove Remove avatar
CoreApiV10.ProfileApi v10ProfileAvatarUpdateByFileIdPost POST /v1.0/profile/avatar/update/{fileId} Update avatar
CoreApiV10.ProfileApi v10ProfileGet GET /v1.0/profile Get full profile
CoreApiV10.ProfileApi v10ProfileHeaderGet GET /v1.0/profile/header Get header profile
CoreApiV10.ProfileApi v10ProfilePersonalUpdatePost POST /v1.0/profile/personal/update Update user personal details
CoreApiV10.ProfileApi v10ProfilePushTokenPost POST /v1.0/profile/push/token
CoreApiV10.ProfileApi v10ProfileUpdatePost POST /v1.0/profile/update Update profile
CoreApiV10.ProfileApi v10ProfileVerificationTokenPost POST /v1.0/profile/verification/token
CoreApiV10.ProgramsApi v10ProgramsByIdChartsBalanceGet GET /v1.0/programs/{id}/charts/balance Program balance chart
CoreApiV10.ProgramsApi v10ProgramsByIdChartsProfitGet GET /v1.0/programs/{id}/charts/profit Program profit chart
CoreApiV10.ProgramsApi v10ProgramsByIdFavoriteAddPost POST /v1.0/programs/{id}/favorite/add Add to favorites
CoreApiV10.ProgramsApi v10ProgramsByIdFavoriteRemovePost POST /v1.0/programs/{id}/favorite/remove Remove from favorites
CoreApiV10.ProgramsApi v10ProgramsByIdGet GET /v1.0/programs/{id} Program details
CoreApiV10.ProgramsApi v10ProgramsByIdPeriodsGet GET /v1.0/programs/{id}/periods Program periods
CoreApiV10.ProgramsApi v10ProgramsByIdTradesGet GET /v1.0/programs/{id}/trades Trade history
CoreApiV10.ProgramsApi v10ProgramsByIdTradesOpenGet GET /v1.0/programs/{id}/trades/open Open positions
CoreApiV10.ProgramsApi v10ProgramsGet GET /v1.0/programs Programs list
CoreApiV10.ProgramsApi v10ProgramsLevelupSummaryGet GET /v1.0/programs/levelup/summary Level up summary
CoreApiV10.ProgramsApi v10ProgramsSetsGet GET /v1.0/programs/sets Programs sets
CoreApiV10.RateApi v10RateByExchangeByFromByToGet GET /v1.0/rate/{exchange}/{from}/{to} Get rate
CoreApiV10.RateApi v10RateByFromByToGet GET /v1.0/rate/{from}/{to} Get rate
CoreApiV10.RateApi v10RateGet GET /v1.0/rate Get rates
CoreApiV10.SearchApi v10SearchGet GET /v1.0/search Program / fund / manager search
CoreApiV10.SignalApi v10SignalAccountsGet GET /v1.0/signal/accounts Get copytrading accounts
CoreApiV10.SignalApi v10SignalAttachByIdInfoGet GET /v1.0/signal/attach/{id}/info Get subscribe to programs signals info
CoreApiV10.SignalApi v10SignalAttachByIdPost POST /v1.0/signal/attach/{id} Subscribe to programs signals
CoreApiV10.SignalApi v10SignalByIdUpdatePost POST /v1.0/signal/{id}/update Update signal subscription settings
CoreApiV10.SignalApi v10SignalDetachByIdPost POST /v1.0/signal/detach/{id} Unsubscribe from program signals
CoreApiV10.SignalApi v10SignalTradesByIdClosePost POST /v1.0/signal/trades/{id}/close Close signal trade
CoreApiV10.SignalApi v10SignalTradesGet GET /v1.0/signal/trades Get investors signals trades history
CoreApiV10.SignalApi v10SignalTradesOpenGet GET /v1.0/signal/trades/open Get investors signals open trades
CoreApiV10.WalletApi v10WalletAddressesByCurrencyGet GET /v1.0/wallet/addresses/{currency} Get user addresses
CoreApiV10.WalletApi v10WalletAddressesGet GET /v1.0/wallet/addresses Get user addresses
CoreApiV10.WalletApi v10WalletByCurrencyGet GET /v1.0/wallet/{currency} Wallet summary
CoreApiV10.WalletApi v10WalletFeeGvtholdingGet GET /v1.0/wallet/fee/gvtholding GenesisMarkets commission data
CoreApiV10.WalletApi v10WalletMultiByCurrencyAvailableGet GET /v1.0/wallet/multi/{currency}/available Multi wallet available
CoreApiV10.WalletApi v10WalletMultiByCurrencyGet GET /v1.0/wallet/multi/{currency} Multi wallet summary
CoreApiV10.WalletApi v10WalletMultiTransactionsExternalGet GET /v1.0/wallet/multi/transactions/external Wallet pending transactions
CoreApiV10.WalletApi v10WalletMultiTransactionsGet GET /v1.0/wallet/multi/transactions Multi wallet transactions
CoreApiV10.WalletApi v10WalletPaygvtfeeOffPost POST /v1.0/wallet/paygvtfee/off Disable paying platform fees with GVT
CoreApiV10.WalletApi v10WalletPaygvtfeeOnPost POST /v1.0/wallet/paygvtfee/on Enable paying platform fees with GVT
CoreApiV10.WalletApi v10WalletTransactionByIdGet GET /v1.0/wallet/transaction/{id} Get transaction details
CoreApiV10.WalletApi v10WalletTransactionsGet GET /v1.0/wallet/transactions Wallet transactions
CoreApiV10.WalletApi v10WalletTransferPost POST /v1.0/wallet/transfer Transfer money
CoreApiV10.WalletApi v10WalletWithdrawInfoGet GET /v1.0/wallet/withdraw/info
CoreApiV10.WalletApi v10WalletWithdrawRequestCancelByTxIdPost POST /v1.0/wallet/withdraw/request/cancel/{txId}
CoreApiV10.WalletApi v10WalletWithdrawRequestConfirmPost POST /v1.0/wallet/withdraw/request/confirm
CoreApiV10.WalletApi v10WalletWithdrawRequestNewPost POST /v1.0/wallet/withdraw/request/new
CoreApiV10.WalletApi v10WalletWithdrawRequestResendByTxIdPost POST /v1.0/wallet/withdraw/request/resend/{txId}

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

Readme

Keywords

none

Package Sidebar

Install

npm i malletx

Weekly Downloads

1

Version

1.0.540

License

Unlicense

Unpacked Size

33.9 MB

Total Files

821

Last publish

Collaborators

  • thanosdidnothingwrong