1.0.540 • Published 5 years ago

malletx v1.0.540

Weekly downloads
-
License
Unlicense
Repository
-
Last release
5 years ago

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

ClassMethodHTTP requestDescription
CoreApiV10.AuthApiv10Auth2faConfirmPostPOST /v1.0/auth/2fa/confirm2FA confirm
CoreApiV10.AuthApiv10Auth2faCreatePostPOST /v1.0/auth/2fa/create2FA create
CoreApiV10.AuthApiv10Auth2faDisablePostPOST /v1.0/auth/2fa/disable2FA disable
CoreApiV10.AuthApiv10Auth2faGetGET /v1.0/auth/2fa2FA status
CoreApiV10.AuthApiv10Auth2faRecoverycodesNewPostPOST /v1.0/auth/2fa/recoverycodes/new2FA generate new recovery codes
CoreApiV10.AuthApiv10Auth2faRecoverycodesPostPOST /v1.0/auth/2fa/recoverycodes2FA recovery codes
CoreApiV10.AuthApiv10AuthPasswordChangePostPOST /v1.0/auth/password/changeChange password
CoreApiV10.AuthApiv10AuthPasswordForgotInvestorPostPOST /v1.0/auth/password/forgot/investorForgot password for investor
CoreApiV10.AuthApiv10AuthPasswordForgotManagerPostPOST /v1.0/auth/password/forgot/managerForgot password for manager
CoreApiV10.AuthApiv10AuthPasswordResetPostPOST /v1.0/auth/password/resetReset password
CoreApiV10.AuthApiv10AuthPhoneCodePostPOST /v1.0/auth/phone/codeGet phone number verification code
CoreApiV10.AuthApiv10AuthPhoneVerifyPostPOST /v1.0/auth/phone/verifyVerify phone number
CoreApiV10.AuthApiv10AuthResendconfirmationlinkPostPOST /v1.0/auth/resendconfirmationlinkResend Confirmation Link
CoreApiV10.AuthApiv10AuthSigninInvestorPostPOST /v1.0/auth/signin/investorAuthorize
CoreApiV10.AuthApiv10AuthSigninManagerPostPOST /v1.0/auth/signin/managerAuthorize
CoreApiV10.AuthApiv10AuthSignupConfirmPostPOST /v1.0/auth/signup/confirmConfirm email after registration
CoreApiV10.AuthApiv10AuthSignupInvestorPostPOST /v1.0/auth/signup/investorNew investor registration
CoreApiV10.AuthApiv10AuthSignupManagerPostPOST /v1.0/auth/signup/managerNew manager registration
CoreApiV10.AuthApiv10AuthTokenDevicesLogoutPostPOST /v1.0/auth/token/devices/logoutLogout from another devices
CoreApiV10.AuthApiv10AuthTokenUpdatePostPOST /v1.0/auth/token/updateUpdate auth token
CoreApiV10.BrokersApiv10BrokersGetGET /v1.0/brokersGet all trade servers
CoreApiV10.FileApiv10FileByIdGetGET /v1.0/file/{id}Download file
CoreApiV10.FileApiv10FileDocumentUploadPostPOST /v1.0/file/document/uploadUpload document
CoreApiV10.FileApiv10FileUploadPostPOST /v1.0/file/uploadUpload file
CoreApiV10.FundsApiv10FundsAssetsGetGET /v1.0/funds/assetsGet all supported assets for funds
CoreApiV10.FundsApiv10FundsByIdAssetsGetGET /v1.0/funds/{id}/assetsFund assets info
CoreApiV10.FundsApiv10FundsByIdChartsBalanceGetGET /v1.0/funds/{id}/charts/balanceFund balance chart
CoreApiV10.FundsApiv10FundsByIdChartsProfitGetGET /v1.0/funds/{id}/charts/profitFund profit chart
CoreApiV10.FundsApiv10FundsByIdFavoriteAddPostPOST /v1.0/funds/{id}/favorite/addAdd to favorites
CoreApiV10.FundsApiv10FundsByIdFavoriteRemovePostPOST /v1.0/funds/{id}/favorite/removeRemove from favorites
CoreApiV10.FundsApiv10FundsByIdGetGET /v1.0/funds/{id}Funds details
CoreApiV10.FundsApiv10FundsGetGET /v1.0/fundsFunds list
CoreApiV10.FundsApiv10FundsSetsGetGET /v1.0/funds/setsFund sets
CoreApiV10.InvestorApiv10InvestorFundsByIdInvestByAmountPostPOST /v1.0/investor/funds/{id}/invest/{amount}Investing into the fund. Invest in GVT if currency is empty
CoreApiV10.InvestorApiv10InvestorFundsByIdInvestInfoByCurrencyGetGET /v1.0/investor/funds/{id}/invest/info/{currency}Data for investing into the fund
CoreApiV10.InvestorApiv10InvestorFundsByIdRequestsBySkipByTakeGetGET /v1.0/investor/funds/{id}/requests/{skip}/{take}Get program/fund requests
CoreApiV10.InvestorApiv10InvestorFundsByIdWithdrawByPercentPostPOST /v1.0/investor/funds/{id}/withdraw/{percent}Withdraw from fund. Percent is % of investor total money. Withdraw in GVT if currency is empty
CoreApiV10.InvestorApiv10InvestorFundsByIdWithdrawInfoByCurrencyGetGET /v1.0/investor/funds/{id}/withdraw/info/{currency}Data for withdrawal from fund
CoreApiV10.InvestorApiv10InvestorFundsGetGET /v1.0/investor/fundsDashboard funds list
CoreApiV10.InvestorApiv10InvestorGetGET /v1.0/investorSummary dashboard info
CoreApiV10.InvestorApiv10InvestorPortfolioChartGetGET /v1.0/investor/portfolio/chartPortfolio charts
CoreApiV10.InvestorApiv10InvestorPortfolioEventsGetGET /v1.0/investor/portfolio/eventsPortfolio events
CoreApiV10.InvestorApiv10InvestorProgramsByIdInvestByAmountPostPOST /v1.0/investor/programs/{id}/invest/{amount}Investing into the program. Invest in GVT if currency is empty
CoreApiV10.InvestorApiv10InvestorProgramsByIdInvestInfoByCurrencyGetGET /v1.0/investor/programs/{id}/invest/info/{currency}Data for investing into the program
CoreApiV10.InvestorApiv10InvestorProgramsByIdReinvestOffPostPOST /v1.0/investor/programs/{id}/reinvest/offDisable reinvesting
CoreApiV10.InvestorApiv10InvestorProgramsByIdReinvestOnPostPOST /v1.0/investor/programs/{id}/reinvest/onEnable reinvesting
CoreApiV10.InvestorApiv10InvestorProgramsByIdRequestsBySkipByTakeGetGET /v1.0/investor/programs/{id}/requests/{skip}/{take}Get program/fund requests
CoreApiV10.InvestorApiv10InvestorProgramsByIdWithdrawByAmountPostPOST /v1.0/investor/programs/{id}/withdraw/{amount}Withdraw from investment program in GVT
CoreApiV10.InvestorApiv10InvestorProgramsByIdWithdrawInfoByCurrencyGetGET /v1.0/investor/programs/{id}/withdraw/info/{currency}Data for withdrawal from investment program
CoreApiV10.InvestorApiv10InvestorProgramsByIdWithdrawMultiByAmountPostPOST /v1.0/investor/programs/{id}/withdraw/multi/{amount}Withdraw from investment program in program currency
CoreApiV10.InvestorApiv10InvestorProgramsGetGET /v1.0/investor/programsDashboard program list
CoreApiV10.InvestorApiv10InvestorProgramsRequestsByIdCancelPostPOST /v1.0/investor/programs/requests/{id}/cancelCancel investment program request
CoreApiV10.InvestorApiv10InvestorRequestsBySkipByTakeGetGET /v1.0/investor/requests/{skip}/{take}Get all requests
CoreApiV10.InvestorApiv10InvestorSignalsGetGET /v1.0/investor/signalsDashboard signal providers list
CoreApiV10.ManagerApiv10ManagerAssetsGetGET /v1.0/manager/assetsManager assets list
CoreApiV10.ManagerApiv10ManagerByIdDetailsGetGET /v1.0/manager/{id}/detailsManager details
CoreApiV10.ManagerApiv10ManagerByIdGetGET /v1.0/manager/{id}Manager profile
CoreApiV10.ManagerApiv10ManagerEventsGetGET /v1.0/manager/eventsManager events
CoreApiV10.ManagerApiv10ManagerFundsByIdAssetsUpdatePostPOST /v1.0/manager/funds/{id}/assets/updateUpdate fund assets parts
CoreApiV10.ManagerApiv10ManagerFundsByIdClosePostPOST /v1.0/manager/funds/{id}/closeClose existing fund
CoreApiV10.ManagerApiv10ManagerFundsByIdInvestByAmountPostPOST /v1.0/manager/funds/{id}/invest/{amount}Deposit. Invest in GVT if currency is empty
CoreApiV10.ManagerApiv10ManagerFundsByIdInvestInfoByCurrencyGetGET /v1.0/manager/funds/{id}/invest/info/{currency}Data for investing into the fund
CoreApiV10.ManagerApiv10ManagerFundsByIdRequestsBySkipByTakeGetGET /v1.0/manager/funds/{id}/requests/{skip}/{take}Get investment program/fund requests
CoreApiV10.ManagerApiv10ManagerFundsByIdUpdatePostPOST /v1.0/manager/funds/{id}/updateUpdate investment program/fund details
CoreApiV10.ManagerApiv10ManagerFundsByIdWithdrawByPercentPostPOST /v1.0/manager/funds/{id}/withdraw/{percent}Withdraw from fund. Percent is % of manager total money. Withdraw in GVT if currency is empty
CoreApiV10.ManagerApiv10ManagerFundsByIdWithdrawInfoByCurrencyGetGET /v1.0/manager/funds/{id}/withdraw/info/{currency}Data for withdrawal from fund
CoreApiV10.ManagerApiv10ManagerFundsCreatePostPOST /v1.0/manager/funds/createCreate fund
CoreApiV10.ManagerApiv10ManagerFundsGetGET /v1.0/manager/fundsManager funds
CoreApiV10.ManagerApiv10ManagerFundsInvestmentAmountGetGET /v1.0/manager/funds/investment/amountGet GVT investment to create fund
CoreApiV10.ManagerApiv10ManagerFundsRequestsByIdCancelPostPOST /v1.0/manager/funds/requests/{id}/cancelCancel investment program/fund request
CoreApiV10.ManagerApiv10ManagerGetGET /v1.0/managerManager dashboard
CoreApiV10.ManagerApiv10ManagerPrograms2faConfirmPostPOST /v1.0/manager/programs/2fa/confirmConfirm 2FA for program if required (for brokers like Huobi)
CoreApiV10.ManagerApiv10ManagerPrograms2faGetGetGET /v1.0/manager/programs/2fa/getGet 2FA for program if needed
CoreApiV10.ManagerApiv10ManagerProgramsByIdClosePostPOST /v1.0/manager/programs/{id}/closeClose existing investment program
CoreApiV10.ManagerApiv10ManagerProgramsByIdInvestByAmountPostPOST /v1.0/manager/programs/{id}/invest/{amount}Deposit Invest in GVT if currency is empty
CoreApiV10.ManagerApiv10ManagerProgramsByIdInvestInfoByCurrencyGetGET /v1.0/manager/programs/{id}/invest/info/{currency}Data for investing into the program
CoreApiV10.ManagerApiv10ManagerProgramsByIdPasswordChangePostPOST /v1.0/manager/programs/{id}/password/changeChange program password
CoreApiV10.ManagerApiv10ManagerProgramsByIdPeriodClosePostPOST /v1.0/manager/programs/{id}/period/closeClose current period
CoreApiV10.ManagerApiv10ManagerProgramsByIdRequestsBySkipByTakeGetGET /v1.0/manager/programs/{id}/requests/{skip}/{take}Get investment program/fund requests
CoreApiV10.ManagerApiv10ManagerProgramsByIdUpdatePostPOST /v1.0/manager/programs/{id}/updateUpdate investment program/fund details
CoreApiV10.ManagerApiv10ManagerProgramsByIdWithdrawByAmountPostPOST /v1.0/manager/programs/{id}/withdraw/{amount}Withdraw from investment program in GVT
CoreApiV10.ManagerApiv10ManagerProgramsByIdWithdrawInfoByCurrencyGetGET /v1.0/manager/programs/{id}/withdraw/info/{currency}Data for withdrawal from investment program
CoreApiV10.ManagerApiv10ManagerProgramsByIdWithdrawMultiByAmountPostPOST /v1.0/manager/programs/{id}/withdraw/multi/{amount}Withdraw from investment program in program currency
CoreApiV10.ManagerApiv10ManagerProgramsCreatePostPOST /v1.0/manager/programs/createCreate an investment program
CoreApiV10.ManagerApiv10ManagerProgramsGetGET /v1.0/manager/programsManager programs
CoreApiV10.ManagerApiv10ManagerProgramsInvestmentAmountGetGET /v1.0/manager/programs/investment/amountGet investment amount to create program
CoreApiV10.ManagerApiv10ManagerProgramsRequestsByIdCancelPostPOST /v1.0/manager/programs/requests/{id}/cancelCancel investment program/fund request
CoreApiV10.ManagerApiv10ManagerRequestsBySkipByTakeGetGET /v1.0/manager/requests/{skip}/{take}Get all requests
CoreApiV10.ManagerApiv10ManagerSignalCreatePostPOST /v1.0/manager/signal/createMake manager's program signal provider
CoreApiV10.ManagerApiv10ManagerSignalEditPostPOST /v1.0/manager/signal/editMake manager's program signal provider
CoreApiV10.NotificationsApiv10NotificationsByIdReadPostPOST /v1.0/notifications/{id}/readRead notification
CoreApiV10.NotificationsApiv10NotificationsGetGET /v1.0/notificationsUser notifications
CoreApiV10.NotificationsApiv10NotificationsNewGetGET /v1.0/notifications/newUnread notifications count
CoreApiV10.NotificationsApiv10NotificationsSettingsAddPostPOST /v1.0/notifications/settings/addAdd new setting
CoreApiV10.NotificationsApiv10NotificationsSettingsByIdByEnablePostPOST /v1.0/notifications/settings/{id}/{enable}Enable/disable setting
CoreApiV10.NotificationsApiv10NotificationsSettingsFundsByIdGetGET /v1.0/notifications/settings/funds/{id}User settings for fund
CoreApiV10.NotificationsApiv10NotificationsSettingsGetGET /v1.0/notifications/settingsUser settings
CoreApiV10.NotificationsApiv10NotificationsSettingsManagersByIdGetGET /v1.0/notifications/settings/managers/{id}User settings for manager
CoreApiV10.NotificationsApiv10NotificationsSettingsProgramsByIdGetGET /v1.0/notifications/settings/programs/{id}User settings for program
CoreApiV10.NotificationsApiv10NotificationsSettingsRemoveByIdPostPOST /v1.0/notifications/settings/remove/{id}Remove setting
CoreApiV10.PlatformApiv10PlatformInfoGetGET /v1.0/platform/infoPlatform info
CoreApiV10.PlatformApiv10PlatformLevelsGetGET /v1.0/platform/levelsInvestment programs levels
CoreApiV10.PlatformApiv10PlatformRiskcontrolGetGET /v1.0/platform/riskcontrolPlatform captcha details.
CoreApiV10.PlatformApiv10PlatformStatisticGetGET /v1.0/platform/statisticPlatform statistic
CoreApiV10.ProfileApiv10ProfileAvatarRemovePostPOST /v1.0/profile/avatar/removeRemove avatar
CoreApiV10.ProfileApiv10ProfileAvatarUpdateByFileIdPostPOST /v1.0/profile/avatar/update/{fileId}Update avatar
CoreApiV10.ProfileApiv10ProfileGetGET /v1.0/profileGet full profile
CoreApiV10.ProfileApiv10ProfileHeaderGetGET /v1.0/profile/headerGet header profile
CoreApiV10.ProfileApiv10ProfilePersonalUpdatePostPOST /v1.0/profile/personal/updateUpdate user personal details
CoreApiV10.ProfileApiv10ProfilePushTokenPostPOST /v1.0/profile/push/token
CoreApiV10.ProfileApiv10ProfileUpdatePostPOST /v1.0/profile/updateUpdate profile
CoreApiV10.ProfileApiv10ProfileVerificationTokenPostPOST /v1.0/profile/verification/token
CoreApiV10.ProgramsApiv10ProgramsByIdChartsBalanceGetGET /v1.0/programs/{id}/charts/balanceProgram balance chart
CoreApiV10.ProgramsApiv10ProgramsByIdChartsProfitGetGET /v1.0/programs/{id}/charts/profitProgram profit chart
CoreApiV10.ProgramsApiv10ProgramsByIdFavoriteAddPostPOST /v1.0/programs/{id}/favorite/addAdd to favorites
CoreApiV10.ProgramsApiv10ProgramsByIdFavoriteRemovePostPOST /v1.0/programs/{id}/favorite/removeRemove from favorites
CoreApiV10.ProgramsApiv10ProgramsByIdGetGET /v1.0/programs/{id}Program details
CoreApiV10.ProgramsApiv10ProgramsByIdPeriodsGetGET /v1.0/programs/{id}/periodsProgram periods
CoreApiV10.ProgramsApiv10ProgramsByIdTradesGetGET /v1.0/programs/{id}/tradesTrade history
CoreApiV10.ProgramsApiv10ProgramsByIdTradesOpenGetGET /v1.0/programs/{id}/trades/openOpen positions
CoreApiV10.ProgramsApiv10ProgramsGetGET /v1.0/programsPrograms list
CoreApiV10.ProgramsApiv10ProgramsLevelupSummaryGetGET /v1.0/programs/levelup/summaryLevel up summary
CoreApiV10.ProgramsApiv10ProgramsSetsGetGET /v1.0/programs/setsPrograms sets
CoreApiV10.RateApiv10RateByExchangeByFromByToGetGET /v1.0/rate/{exchange}/{from}/{to}Get rate
CoreApiV10.RateApiv10RateByFromByToGetGET /v1.0/rate/{from}/{to}Get rate
CoreApiV10.RateApiv10RateGetGET /v1.0/rateGet rates
CoreApiV10.SearchApiv10SearchGetGET /v1.0/searchProgram / fund / manager search
CoreApiV10.SignalApiv10SignalAccountsGetGET /v1.0/signal/accountsGet copytrading accounts
CoreApiV10.SignalApiv10SignalAttachByIdInfoGetGET /v1.0/signal/attach/{id}/infoGet subscribe to programs signals info
CoreApiV10.SignalApiv10SignalAttachByIdPostPOST /v1.0/signal/attach/{id}Subscribe to programs signals
CoreApiV10.SignalApiv10SignalByIdUpdatePostPOST /v1.0/signal/{id}/updateUpdate signal subscription settings
CoreApiV10.SignalApiv10SignalDetachByIdPostPOST /v1.0/signal/detach/{id}Unsubscribe from program signals
CoreApiV10.SignalApiv10SignalTradesByIdClosePostPOST /v1.0/signal/trades/{id}/closeClose signal trade
CoreApiV10.SignalApiv10SignalTradesGetGET /v1.0/signal/tradesGet investors signals trades history
CoreApiV10.SignalApiv10SignalTradesOpenGetGET /v1.0/signal/trades/openGet investors signals open trades
CoreApiV10.WalletApiv10WalletAddressesByCurrencyGetGET /v1.0/wallet/addresses/{currency}Get user addresses
CoreApiV10.WalletApiv10WalletAddressesGetGET /v1.0/wallet/addressesGet user addresses
CoreApiV10.WalletApiv10WalletByCurrencyGetGET /v1.0/wallet/{currency}Wallet summary
CoreApiV10.WalletApiv10WalletFeeGvtholdingGetGET /v1.0/wallet/fee/gvtholdingGenesisMarkets commission data
CoreApiV10.WalletApiv10WalletMultiByCurrencyAvailableGetGET /v1.0/wallet/multi/{currency}/availableMulti wallet available
CoreApiV10.WalletApiv10WalletMultiByCurrencyGetGET /v1.0/wallet/multi/{currency}Multi wallet summary
CoreApiV10.WalletApiv10WalletMultiTransactionsExternalGetGET /v1.0/wallet/multi/transactions/externalWallet pending transactions
CoreApiV10.WalletApiv10WalletMultiTransactionsGetGET /v1.0/wallet/multi/transactionsMulti wallet transactions
CoreApiV10.WalletApiv10WalletPaygvtfeeOffPostPOST /v1.0/wallet/paygvtfee/offDisable paying platform fees with GVT
CoreApiV10.WalletApiv10WalletPaygvtfeeOnPostPOST /v1.0/wallet/paygvtfee/onEnable paying platform fees with GVT
CoreApiV10.WalletApiv10WalletTransactionByIdGetGET /v1.0/wallet/transaction/{id}Get transaction details
CoreApiV10.WalletApiv10WalletTransactionsGetGET /v1.0/wallet/transactionsWallet transactions
CoreApiV10.WalletApiv10WalletTransferPostPOST /v1.0/wallet/transferTransfer money
CoreApiV10.WalletApiv10WalletWithdrawInfoGetGET /v1.0/wallet/withdraw/info
CoreApiV10.WalletApiv10WalletWithdrawRequestCancelByTxIdPostPOST /v1.0/wallet/withdraw/request/cancel/{txId}
CoreApiV10.WalletApiv10WalletWithdrawRequestConfirmPostPOST /v1.0/wallet/withdraw/request/confirm
CoreApiV10.WalletApiv10WalletWithdrawRequestNewPostPOST /v1.0/wallet/withdraw/request/new
CoreApiV10.WalletApiv10WalletWithdrawRequestResendByTxIdPostPOST /v1.0/wallet/withdraw/request/resend/{txId}

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.