@ember-finance/sdk 1.0.25 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/vaults/api/v2/api.d.ts +13 -0
- package/dist/src/vaults/api/v2/api.js +31 -0
- package/dist/src/vaults/api/v2/apis/accounts-api.d.ts +351 -0
- package/dist/src/vaults/api/v2/apis/accounts-api.js +656 -0
- package/dist/src/vaults/api/v2/apis/vaults-api.d.ts +570 -0
- package/dist/src/vaults/api/v2/apis/vaults-api.js +1150 -0
- package/dist/src/vaults/api/v2/base.d.ts +66 -0
- package/dist/src/vaults/api/v2/base.js +66 -0
- package/dist/src/vaults/api/v2/common.d.ts +65 -0
- package/dist/src/vaults/api/v2/common.js +152 -0
- package/dist/src/vaults/api/v2/configuration.d.ts +91 -0
- package/dist/src/vaults/api/v2/configuration.js +49 -0
- package/dist/src/vaults/api/v2/index.d.ts +14 -0
- package/dist/src/vaults/api/v2/index.js +32 -0
- package/dist/src/vaults/api/v2/models/account-transaction-transaction-data.d.ts +22 -0
- package/dist/src/vaults/api/v2/models/account-transaction-transaction-data.js +15 -0
- package/dist/src/vaults/api/v2/models/account-transaction.d.ts +45 -0
- package/dist/src/vaults/api/v2/models/account-transaction.js +23 -0
- package/dist/src/vaults/api/v2/models/account-vault-position-history.d.ts +89 -0
- package/dist/src/vaults/api/v2/models/account-vault-position-history.js +20 -0
- package/dist/src/vaults/api/v2/models/account-withdrawal-request.d.ts +107 -0
- package/dist/src/vaults/api/v2/models/account-withdrawal-request.js +24 -0
- package/dist/src/vaults/api/v2/models/aggregated-account-position-history.d.ts +59 -0
- package/dist/src/vaults/api/v2/models/aggregated-account-position-history.js +20 -0
- package/dist/src/vaults/api/v2/models/apy-history-response.d.ts +73 -0
- package/dist/src/vaults/api/v2/models/apy-history-response.js +15 -0
- package/dist/src/vaults/api/v2/models/apy-history.d.ts +42 -0
- package/dist/src/vaults/api/v2/models/apy-history.js +15 -0
- package/dist/src/vaults/api/v2/models/asset.d.ts +66 -0
- package/dist/src/vaults/api/v2/models/asset.js +15 -0
- package/dist/src/vaults/api/v2/models/borrowed.d.ts +43 -0
- package/dist/src/vaults/api/v2/models/borrowed.js +15 -0
- package/dist/src/vaults/api/v2/models/chain-vault-details.d.ts +74 -0
- package/dist/src/vaults/api/v2/models/chain-vault-details.js +15 -0
- package/dist/src/vaults/api/v2/models/chain.d.ts +60 -0
- package/dist/src/vaults/api/v2/models/chain.js +21 -0
- package/dist/src/vaults/api/v2/models/coin-price.d.ts +36 -0
- package/dist/src/vaults/api/v2/models/coin-price.js +15 -0
- package/dist/src/vaults/api/v2/models/deposit-transaction.d.ts +68 -0
- package/dist/src/vaults/api/v2/models/deposit-transaction.js +15 -0
- package/dist/src/vaults/api/v2/models/ember-position.d.ts +31 -0
- package/dist/src/vaults/api/v2/models/ember-position.js +15 -0
- package/dist/src/vaults/api/v2/models/evm-contracts.d.ts +61 -0
- package/dist/src/vaults/api/v2/models/evm-contracts.js +15 -0
- package/dist/src/vaults/api/v2/models/evm-deposit-token.d.ts +66 -0
- package/dist/src/vaults/api/v2/models/evm-deposit-token.js +15 -0
- package/dist/src/vaults/api/v2/models/evm-price-feed.d.ts +54 -0
- package/dist/src/vaults/api/v2/models/evm-price-feed.js +15 -0
- package/dist/src/vaults/api/v2/models/evm-protocol-config.d.ts +48 -0
- package/dist/src/vaults/api/v2/models/evm-protocol-config.js +15 -0
- package/dist/src/vaults/api/v2/models/evm-protocol-info.d.ts +37 -0
- package/dist/src/vaults/api/v2/models/evm-protocol-info.js +15 -0
- package/dist/src/vaults/api/v2/models/evm-receipt-token.d.ts +72 -0
- package/dist/src/vaults/api/v2/models/evm-receipt-token.js +15 -0
- package/dist/src/vaults/api/v2/models/evm-vault.d.ts +114 -0
- package/dist/src/vaults/api/v2/models/evm-vault.js +15 -0
- package/dist/src/vaults/api/v2/models/exposure-coin.d.ts +37 -0
- package/dist/src/vaults/api/v2/models/exposure-coin.js +15 -0
- package/dist/src/vaults/api/v2/models/exposure-protocol.d.ts +66 -0
- package/dist/src/vaults/api/v2/models/exposure-protocol.js +15 -0
- package/dist/src/vaults/api/v2/models/exposure.d.ts +38 -0
- package/dist/src/vaults/api/v2/models/exposure.js +15 -0
- package/dist/src/vaults/api/v2/models/fee.d.ts +37 -0
- package/dist/src/vaults/api/v2/models/fee.js +15 -0
- package/dist/src/vaults/api/v2/models/fees.d.ts +42 -0
- package/dist/src/vaults/api/v2/models/fees.js +15 -0
- package/dist/src/vaults/api/v2/models/history-interval.d.ts +23 -0
- package/dist/src/vaults/api/v2/models/history-interval.js +27 -0
- package/dist/src/vaults/api/v2/models/index.d.ts +94 -0
- package/dist/src/vaults/api/v2/models/index.js +110 -0
- package/dist/src/vaults/api/v2/models/lp.d.ts +81 -0
- package/dist/src/vaults/api/v2/models/lp.js +15 -0
- package/dist/src/vaults/api/v2/models/manager.d.ts +42 -0
- package/dist/src/vaults/api/v2/models/manager.js +15 -0
- package/dist/src/vaults/api/v2/models/min-withdrawal-shares-updated-event.d.ts +42 -0
- package/dist/src/vaults/api/v2/models/min-withdrawal-shares-updated-event.js +15 -0
- package/dist/src/vaults/api/v2/models/perps.d.ts +31 -0
- package/dist/src/vaults/api/v2/models/perps.js +15 -0
- package/dist/src/vaults/api/v2/models/pnl-by-chain.d.ts +48 -0
- package/dist/src/vaults/api/v2/models/pnl-by-chain.js +15 -0
- package/dist/src/vaults/api/v2/models/pnl-history-interval.d.ts +22 -0
- package/dist/src/vaults/api/v2/models/pnl-history-interval.js +26 -0
- package/dist/src/vaults/api/v2/models/pnl-history.d.ts +48 -0
- package/dist/src/vaults/api/v2/models/pnl-history.js +15 -0
- package/dist/src/vaults/api/v2/models/poc-report-asset.d.ts +54 -0
- package/dist/src/vaults/api/v2/models/poc-report-asset.js +15 -0
- package/dist/src/vaults/api/v2/models/poc-report-assets.d.ts +37 -0
- package/dist/src/vaults/api/v2/models/poc-report-assets.js +15 -0
- package/dist/src/vaults/api/v2/models/poc-report-exchange.d.ts +43 -0
- package/dist/src/vaults/api/v2/models/poc-report-exchange.js +15 -0
- package/dist/src/vaults/api/v2/models/poc-report-exchanges.d.ts +37 -0
- package/dist/src/vaults/api/v2/models/poc-report-exchanges.js +15 -0
- package/dist/src/vaults/api/v2/models/poc-report-protocol.d.ts +36 -0
- package/dist/src/vaults/api/v2/models/poc-report-protocol.js +15 -0
- package/dist/src/vaults/api/v2/models/poc-report-token.d.ts +36 -0
- package/dist/src/vaults/api/v2/models/poc-report-token.js +15 -0
- package/dist/src/vaults/api/v2/models/poc-report-wallet.d.ts +80 -0
- package/dist/src/vaults/api/v2/models/poc-report-wallet.js +15 -0
- package/dist/src/vaults/api/v2/models/poc-report-wallets.d.ts +37 -0
- package/dist/src/vaults/api/v2/models/poc-report-wallets.js +15 -0
- package/dist/src/vaults/api/v2/models/position-history-interval.d.ts +22 -0
- package/dist/src/vaults/api/v2/models/position-history-interval.js +26 -0
- package/dist/src/vaults/api/v2/models/position-value.d.ts +89 -0
- package/dist/src/vaults/api/v2/models/position-value.js +20 -0
- package/dist/src/vaults/api/v2/models/position.d.ts +42 -0
- package/dist/src/vaults/api/v2/models/position.js +15 -0
- package/dist/src/vaults/api/v2/models/process-requests-summary-event.d.ts +78 -0
- package/dist/src/vaults/api/v2/models/process-requests-summary-event.js +15 -0
- package/dist/src/vaults/api/v2/models/proof-of-capital-report.d.ts +69 -0
- package/dist/src/vaults/api/v2/models/proof-of-capital-report.js +15 -0
- package/dist/src/vaults/api/v2/models/protocol-fee-collected-event.d.ts +60 -0
- package/dist/src/vaults/api/v2/models/protocol-fee-collected-event.js +15 -0
- package/dist/src/vaults/api/v2/models/protocol-pnl-history.d.ts +36 -0
- package/dist/src/vaults/api/v2/models/protocol-pnl-history.js +15 -0
- package/dist/src/vaults/api/v2/models/protocol-tvl-history.d.ts +30 -0
- package/dist/src/vaults/api/v2/models/protocol-tvl-history.js +15 -0
- package/dist/src/vaults/api/v2/models/protocol.d.ts +42 -0
- package/dist/src/vaults/api/v2/models/protocol.js +15 -0
- package/dist/src/vaults/api/v2/models/raw-event-event-data.d.ts +34 -0
- package/dist/src/vaults/api/v2/models/raw-event-event-data.js +15 -0
- package/dist/src/vaults/api/v2/models/raw-event.d.ts +63 -0
- package/dist/src/vaults/api/v2/models/raw-event.js +35 -0
- package/dist/src/vaults/api/v2/models/redeem-request-cancelled-transaction.d.ts +56 -0
- package/dist/src/vaults/api/v2/models/redeem-request-cancelled-transaction.js +15 -0
- package/dist/src/vaults/api/v2/models/redeem-request-processed-transaction.d.ts +68 -0
- package/dist/src/vaults/api/v2/models/redeem-request-processed-transaction.js +15 -0
- package/dist/src/vaults/api/v2/models/redeem-request-skipped-transaction.d.ts +56 -0
- package/dist/src/vaults/api/v2/models/redeem-request-skipped-transaction.js +15 -0
- package/dist/src/vaults/api/v2/models/redeem-request-transaction.d.ts +56 -0
- package/dist/src/vaults/api/v2/models/redeem-request-transaction.js +15 -0
- package/dist/src/vaults/api/v2/models/reported-apy.d.ts +42 -0
- package/dist/src/vaults/api/v2/models/reported-apy.js +15 -0
- package/dist/src/vaults/api/v2/models/request-processed-event.d.ts +78 -0
- package/dist/src/vaults/api/v2/models/request-processed-event.js +15 -0
- package/dist/src/vaults/api/v2/models/request-redeemed-event.d.ts +72 -0
- package/dist/src/vaults/api/v2/models/request-redeemed-event.js +15 -0
- package/dist/src/vaults/api/v2/models/reward-token.d.ts +48 -0
- package/dist/src/vaults/api/v2/models/reward-token.js +15 -0
- package/dist/src/vaults/api/v2/models/reward.d.ts +37 -0
- package/dist/src/vaults/api/v2/models/reward.js +15 -0
- package/dist/src/vaults/api/v2/models/share-price-history.d.ts +30 -0
- package/dist/src/vaults/api/v2/models/share-price-history.js +15 -0
- package/dist/src/vaults/api/v2/models/strategy-account.d.ts +49 -0
- package/dist/src/vaults/api/v2/models/strategy-account.js +15 -0
- package/dist/src/vaults/api/v2/models/strategy.d.ts +60 -0
- package/dist/src/vaults/api/v2/models/strategy.js +15 -0
- package/dist/src/vaults/api/v2/models/sub-account.d.ts +31 -0
- package/dist/src/vaults/api/v2/models/sub-account.js +15 -0
- package/dist/src/vaults/api/v2/models/sui-protocol-info.d.ts +41 -0
- package/dist/src/vaults/api/v2/models/sui-protocol-info.js +15 -0
- package/dist/src/vaults/api/v2/models/supplied.d.ts +43 -0
- package/dist/src/vaults/api/v2/models/supplied.js +15 -0
- package/dist/src/vaults/api/v2/models/tag.d.ts +60 -0
- package/dist/src/vaults/api/v2/models/tag.js +15 -0
- package/dist/src/vaults/api/v2/models/tvl-by-chain.d.ts +36 -0
- package/dist/src/vaults/api/v2/models/tvl-by-chain.js +15 -0
- package/dist/src/vaults/api/v2/models/tvl-history.d.ts +43 -0
- package/dist/src/vaults/api/v2/models/tvl-history.js +15 -0
- package/dist/src/vaults/api/v2/models/ultra-coin-info.d.ts +54 -0
- package/dist/src/vaults/api/v2/models/ultra-coin-info.js +15 -0
- package/dist/src/vaults/api/v2/models/update-vault-strategies.d.ts +61 -0
- package/dist/src/vaults/api/v2/models/update-vault-strategies.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-admin-changed-event.d.ts +42 -0
- package/dist/src/vaults/api/v2/models/vault-admin-changed-event.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-created-event.d.ts +60 -0
- package/dist/src/vaults/api/v2/models/vault-created-event.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-deposit-event.d.ts +72 -0
- package/dist/src/vaults/api/v2/models/vault-deposit-event.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-deposit-without-minting-shares-event.d.ts +60 -0
- package/dist/src/vaults/api/v2/models/vault-deposit-without-minting-shares-event.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-detail.d.ts +196 -0
- package/dist/src/vaults/api/v2/models/vault-detail.js +22 -0
- package/dist/src/vaults/api/v2/models/vault-fee-percentage-updated-event.d.ts +42 -0
- package/dist/src/vaults/api/v2/models/vault-fee-percentage-updated-event.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-info.d.ts +84 -0
- package/dist/src/vaults/api/v2/models/vault-info.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-max-tvl-updated-event.d.ts +42 -0
- package/dist/src/vaults/api/v2/models/vault-max-tvl-updated-event.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-operator-changed-event.d.ts +42 -0
- package/dist/src/vaults/api/v2/models/vault-operator-changed-event.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-paused-status-updated-event.d.ts +36 -0
- package/dist/src/vaults/api/v2/models/vault-paused-status-updated-event.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-platform-fee-charged-event.d.ts +48 -0
- package/dist/src/vaults/api/v2/models/vault-platform-fee-charged-event.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-protocol.d.ts +42 -0
- package/dist/src/vaults/api/v2/models/vault-protocol.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-rate-updated-event.d.ts +42 -0
- package/dist/src/vaults/api/v2/models/vault-rate-updated-event.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-slice.d.ts +48 -0
- package/dist/src/vaults/api/v2/models/vault-slice.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-sub-account-updated-event.d.ts +54 -0
- package/dist/src/vaults/api/v2/models/vault-sub-account-updated-event.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-tag.d.ts +48 -0
- package/dist/src/vaults/api/v2/models/vault-tag.js +15 -0
- package/dist/src/vaults/api/v2/models/vault-withdrawal-without-redeeming-shares-event.d.ts +60 -0
- package/dist/src/vaults/api/v2/models/vault-withdrawal-without-redeeming-shares-event.js +15 -0
- package/dist/src/vaults/api/v2/models/vaults-deployment-config-config.d.ts +19 -0
- package/dist/src/vaults/api/v2/models/vaults-deployment-config-config.js +15 -0
- package/dist/src/vaults/api/v2/models/vaults-deployment-config.d.ts +42 -0
- package/dist/src/vaults/api/v2/models/vaults-deployment-config.js +20 -0
- package/dist/src/vaults/api/v2/models/vaults-stats.d.ts +42 -0
- package/dist/src/vaults/api/v2/models/vaults-stats.js +15 -0
- package/dist/src/vaults/api/v2/models/yield-aggregate-value.d.ts +48 -0
- package/dist/src/vaults/api/v2/models/yield-aggregate-value.js +15 -0
- package/package.json +3 -2
|
@@ -0,0 +1,1150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ember Protocol Vaults API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.VaultsApi = exports.VaultsApiFactory = exports.VaultsApiFp = exports.VaultsApiAxiosParamCreator = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
// Some imports not used depending on template conditions
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
const common_1 = require("../common");
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const base_1 = require("../base");
|
|
26
|
+
/**
|
|
27
|
+
* VaultsApi - axios parameter creator
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
const VaultsApiAxiosParamCreator = function (configuration) {
|
|
31
|
+
return {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Get all tags
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
getAllTags: async (options = {}) => {
|
|
39
|
+
const localVarPath = `/api/v2/vaults/tags`;
|
|
40
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
42
|
+
let baseOptions;
|
|
43
|
+
if (configuration) {
|
|
44
|
+
baseOptions = configuration.baseOptions;
|
|
45
|
+
}
|
|
46
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
47
|
+
const localVarHeaderParameter = {};
|
|
48
|
+
const localVarQueryParameter = {};
|
|
49
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
50
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51
|
+
localVarRequestOptions.headers = {
|
|
52
|
+
...localVarHeaderParameter,
|
|
53
|
+
...headersFromBaseOptions,
|
|
54
|
+
...options.headers
|
|
55
|
+
};
|
|
56
|
+
return {
|
|
57
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
58
|
+
options: localVarRequestOptions
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @summary Get the price of the coins
|
|
64
|
+
* @param {string} [coinTypes] The coin types of the coins
|
|
65
|
+
* @param {string} [chain]
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
*/
|
|
69
|
+
getCoinsPrice: async (coinTypes, chain, options = {}) => {
|
|
70
|
+
const localVarPath = `/api/v2/vaults/coins/price`;
|
|
71
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
72
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
73
|
+
let baseOptions;
|
|
74
|
+
if (configuration) {
|
|
75
|
+
baseOptions = configuration.baseOptions;
|
|
76
|
+
}
|
|
77
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
78
|
+
const localVarHeaderParameter = {};
|
|
79
|
+
const localVarQueryParameter = {};
|
|
80
|
+
if (coinTypes !== undefined) {
|
|
81
|
+
localVarQueryParameter["coinTypes"] = coinTypes;
|
|
82
|
+
}
|
|
83
|
+
if (chain !== undefined) {
|
|
84
|
+
localVarQueryParameter["chain"] = chain;
|
|
85
|
+
}
|
|
86
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
87
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
88
|
+
localVarRequestOptions.headers = {
|
|
89
|
+
...localVarHeaderParameter,
|
|
90
|
+
...headersFromBaseOptions,
|
|
91
|
+
...options.headers
|
|
92
|
+
};
|
|
93
|
+
return {
|
|
94
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
95
|
+
options: localVarRequestOptions
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @summary Get the fees of the protocol
|
|
101
|
+
* @param {number} startTimestampInMs The start timestamp of the fees
|
|
102
|
+
* @param {number} endTimestampInMs The end timestamp of the fees
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
getFees: async (startTimestampInMs, endTimestampInMs, options = {}) => {
|
|
107
|
+
// verify required parameter 'startTimestampInMs' is not null or undefined
|
|
108
|
+
(0, common_1.assertParamExists)("getFees", "startTimestampInMs", startTimestampInMs);
|
|
109
|
+
// verify required parameter 'endTimestampInMs' is not null or undefined
|
|
110
|
+
(0, common_1.assertParamExists)("getFees", "endTimestampInMs", endTimestampInMs);
|
|
111
|
+
const localVarPath = `/api/v2/vaults/fees`;
|
|
112
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
113
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
|
+
let baseOptions;
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
}
|
|
118
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
119
|
+
const localVarHeaderParameter = {};
|
|
120
|
+
const localVarQueryParameter = {};
|
|
121
|
+
if (startTimestampInMs !== undefined) {
|
|
122
|
+
localVarQueryParameter["startTimestampInMs"] = startTimestampInMs;
|
|
123
|
+
}
|
|
124
|
+
if (endTimestampInMs !== undefined) {
|
|
125
|
+
localVarQueryParameter["endTimestampInMs"] = endTimestampInMs;
|
|
126
|
+
}
|
|
127
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
128
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
+
localVarRequestOptions.headers = {
|
|
130
|
+
...localVarHeaderParameter,
|
|
131
|
+
...headersFromBaseOptions,
|
|
132
|
+
...options.headers
|
|
133
|
+
};
|
|
134
|
+
return {
|
|
135
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
142
|
+
* @param {number} [limit] The limit of the rows
|
|
143
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
getProtocolPnlHistory: async (limit, interval, options = {}) => {
|
|
148
|
+
const localVarPath = `/api/v2/vaults/pnl-history`;
|
|
149
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
150
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
151
|
+
let baseOptions;
|
|
152
|
+
if (configuration) {
|
|
153
|
+
baseOptions = configuration.baseOptions;
|
|
154
|
+
}
|
|
155
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
156
|
+
const localVarHeaderParameter = {};
|
|
157
|
+
const localVarQueryParameter = {};
|
|
158
|
+
if (limit !== undefined) {
|
|
159
|
+
localVarQueryParameter["limit"] = limit;
|
|
160
|
+
}
|
|
161
|
+
if (interval !== undefined) {
|
|
162
|
+
localVarQueryParameter["interval"] = interval;
|
|
163
|
+
}
|
|
164
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
165
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
166
|
+
localVarRequestOptions.headers = {
|
|
167
|
+
...localVarHeaderParameter,
|
|
168
|
+
...headersFromBaseOptions,
|
|
169
|
+
...options.headers
|
|
170
|
+
};
|
|
171
|
+
return {
|
|
172
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
173
|
+
options: localVarRequestOptions
|
|
174
|
+
};
|
|
175
|
+
},
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
179
|
+
* @param {number} [limit] The limit of the rows
|
|
180
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
181
|
+
* @param {string} [chain] The identifier of the chain
|
|
182
|
+
* @param {*} [options] Override http request option.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
*/
|
|
185
|
+
getProtocolTvlHistory: async (limit, interval, chain, options = {}) => {
|
|
186
|
+
const localVarPath = `/api/v2/vaults/tvl-history`;
|
|
187
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
188
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
189
|
+
let baseOptions;
|
|
190
|
+
if (configuration) {
|
|
191
|
+
baseOptions = configuration.baseOptions;
|
|
192
|
+
}
|
|
193
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
194
|
+
const localVarHeaderParameter = {};
|
|
195
|
+
const localVarQueryParameter = {};
|
|
196
|
+
if (limit !== undefined) {
|
|
197
|
+
localVarQueryParameter["limit"] = limit;
|
|
198
|
+
}
|
|
199
|
+
if (interval !== undefined) {
|
|
200
|
+
localVarQueryParameter["interval"] = interval;
|
|
201
|
+
}
|
|
202
|
+
if (chain !== undefined) {
|
|
203
|
+
localVarQueryParameter["chain"] = chain;
|
|
204
|
+
}
|
|
205
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
206
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
207
|
+
localVarRequestOptions.headers = {
|
|
208
|
+
...localVarHeaderParameter,
|
|
209
|
+
...headersFromBaseOptions,
|
|
210
|
+
...options.headers
|
|
211
|
+
};
|
|
212
|
+
return {
|
|
213
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
214
|
+
options: localVarRequestOptions
|
|
215
|
+
};
|
|
216
|
+
},
|
|
217
|
+
/**
|
|
218
|
+
*
|
|
219
|
+
* @summary Get supported chains
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
*/
|
|
223
|
+
getSupportedChains: async (options = {}) => {
|
|
224
|
+
const localVarPath = `/api/v2/vaults/supported-chains`;
|
|
225
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
226
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
227
|
+
let baseOptions;
|
|
228
|
+
if (configuration) {
|
|
229
|
+
baseOptions = configuration.baseOptions;
|
|
230
|
+
}
|
|
231
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
232
|
+
const localVarHeaderParameter = {};
|
|
233
|
+
const localVarQueryParameter = {};
|
|
234
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
235
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
236
|
+
localVarRequestOptions.headers = {
|
|
237
|
+
...localVarHeaderParameter,
|
|
238
|
+
...headersFromBaseOptions,
|
|
239
|
+
...options.headers
|
|
240
|
+
};
|
|
241
|
+
return {
|
|
242
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
243
|
+
options: localVarRequestOptions
|
|
244
|
+
};
|
|
245
|
+
},
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
249
|
+
* @param {string} vaultId The id of the vault
|
|
250
|
+
* @param {number} [limit] The limit of the rows
|
|
251
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
252
|
+
* @param {*} [options] Override http request option.
|
|
253
|
+
* @throws {RequiredError}
|
|
254
|
+
*/
|
|
255
|
+
getVaultApyHistory: async (vaultId, limit, interval, options = {}) => {
|
|
256
|
+
// verify required parameter 'vaultId' is not null or undefined
|
|
257
|
+
(0, common_1.assertParamExists)("getVaultApyHistory", "vaultId", vaultId);
|
|
258
|
+
const localVarPath = `/api/v2/vaults/apy-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
259
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
260
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
261
|
+
let baseOptions;
|
|
262
|
+
if (configuration) {
|
|
263
|
+
baseOptions = configuration.baseOptions;
|
|
264
|
+
}
|
|
265
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
266
|
+
const localVarHeaderParameter = {};
|
|
267
|
+
const localVarQueryParameter = {};
|
|
268
|
+
if (limit !== undefined) {
|
|
269
|
+
localVarQueryParameter["limit"] = limit;
|
|
270
|
+
}
|
|
271
|
+
if (interval !== undefined) {
|
|
272
|
+
localVarQueryParameter["interval"] = interval;
|
|
273
|
+
}
|
|
274
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
275
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
276
|
+
localVarRequestOptions.headers = {
|
|
277
|
+
...localVarHeaderParameter,
|
|
278
|
+
...headersFromBaseOptions,
|
|
279
|
+
...options.headers
|
|
280
|
+
};
|
|
281
|
+
return {
|
|
282
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
283
|
+
options: localVarRequestOptions
|
|
284
|
+
};
|
|
285
|
+
},
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
289
|
+
* @param {string} vaultId The id of the vault
|
|
290
|
+
* @param {number} [limit] The limit of the rows
|
|
291
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
*/
|
|
295
|
+
getVaultPnlHistory: async (vaultId, limit, interval, options = {}) => {
|
|
296
|
+
// verify required parameter 'vaultId' is not null or undefined
|
|
297
|
+
(0, common_1.assertParamExists)("getVaultPnlHistory", "vaultId", vaultId);
|
|
298
|
+
const localVarPath = `/api/v2/vaults/pnl-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
299
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
300
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
301
|
+
let baseOptions;
|
|
302
|
+
if (configuration) {
|
|
303
|
+
baseOptions = configuration.baseOptions;
|
|
304
|
+
}
|
|
305
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
306
|
+
const localVarHeaderParameter = {};
|
|
307
|
+
const localVarQueryParameter = {};
|
|
308
|
+
if (limit !== undefined) {
|
|
309
|
+
localVarQueryParameter["limit"] = limit;
|
|
310
|
+
}
|
|
311
|
+
if (interval !== undefined) {
|
|
312
|
+
localVarQueryParameter["interval"] = interval;
|
|
313
|
+
}
|
|
314
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
315
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
316
|
+
localVarRequestOptions.headers = {
|
|
317
|
+
...localVarHeaderParameter,
|
|
318
|
+
...headersFromBaseOptions,
|
|
319
|
+
...options.headers
|
|
320
|
+
};
|
|
321
|
+
return {
|
|
322
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
323
|
+
options: localVarRequestOptions
|
|
324
|
+
};
|
|
325
|
+
},
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @summary Get the proof of capital of the vault
|
|
329
|
+
* @param {string} vaultId The id of the vault
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
*/
|
|
333
|
+
getVaultProofOfCapital: async (vaultId, options = {}) => {
|
|
334
|
+
// verify required parameter 'vaultId' is not null or undefined
|
|
335
|
+
(0, common_1.assertParamExists)("getVaultProofOfCapital", "vaultId", vaultId);
|
|
336
|
+
const localVarPath = `/api/v2/vaults/poc/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
337
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
338
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
339
|
+
let baseOptions;
|
|
340
|
+
if (configuration) {
|
|
341
|
+
baseOptions = configuration.baseOptions;
|
|
342
|
+
}
|
|
343
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
344
|
+
const localVarHeaderParameter = {};
|
|
345
|
+
const localVarQueryParameter = {};
|
|
346
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
347
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
348
|
+
localVarRequestOptions.headers = {
|
|
349
|
+
...localVarHeaderParameter,
|
|
350
|
+
...headersFromBaseOptions,
|
|
351
|
+
...options.headers
|
|
352
|
+
};
|
|
353
|
+
return {
|
|
354
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
355
|
+
options: localVarRequestOptions
|
|
356
|
+
};
|
|
357
|
+
},
|
|
358
|
+
/**
|
|
359
|
+
*
|
|
360
|
+
* @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
361
|
+
* @param {string} vaultId The id of the vault
|
|
362
|
+
* @param {number} [limit] The limit of the rows
|
|
363
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
getVaultSharePriceHistory: async (vaultId, limit, interval, options = {}) => {
|
|
368
|
+
// verify required parameter 'vaultId' is not null or undefined
|
|
369
|
+
(0, common_1.assertParamExists)("getVaultSharePriceHistory", "vaultId", vaultId);
|
|
370
|
+
const localVarPath = `/api/v2/vaults/share-price-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
371
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
372
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
373
|
+
let baseOptions;
|
|
374
|
+
if (configuration) {
|
|
375
|
+
baseOptions = configuration.baseOptions;
|
|
376
|
+
}
|
|
377
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
378
|
+
const localVarHeaderParameter = {};
|
|
379
|
+
const localVarQueryParameter = {};
|
|
380
|
+
if (limit !== undefined) {
|
|
381
|
+
localVarQueryParameter["limit"] = limit;
|
|
382
|
+
}
|
|
383
|
+
if (interval !== undefined) {
|
|
384
|
+
localVarQueryParameter["interval"] = interval;
|
|
385
|
+
}
|
|
386
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
387
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
388
|
+
localVarRequestOptions.headers = {
|
|
389
|
+
...localVarHeaderParameter,
|
|
390
|
+
...headersFromBaseOptions,
|
|
391
|
+
...options.headers
|
|
392
|
+
};
|
|
393
|
+
return {
|
|
394
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
395
|
+
options: localVarRequestOptions
|
|
396
|
+
};
|
|
397
|
+
},
|
|
398
|
+
/**
|
|
399
|
+
*
|
|
400
|
+
* @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
401
|
+
* @param {string} vaultId The id of the vault
|
|
402
|
+
* @param {number} [limit] The limit of the rows
|
|
403
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
404
|
+
* @param {*} [options] Override http request option.
|
|
405
|
+
* @throws {RequiredError}
|
|
406
|
+
*/
|
|
407
|
+
getVaultTvlHistory: async (vaultId, limit, interval, options = {}) => {
|
|
408
|
+
// verify required parameter 'vaultId' is not null or undefined
|
|
409
|
+
(0, common_1.assertParamExists)("getVaultTvlHistory", "vaultId", vaultId);
|
|
410
|
+
const localVarPath = `/api/v2/vaults/tvl-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
411
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
412
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
413
|
+
let baseOptions;
|
|
414
|
+
if (configuration) {
|
|
415
|
+
baseOptions = configuration.baseOptions;
|
|
416
|
+
}
|
|
417
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
418
|
+
const localVarHeaderParameter = {};
|
|
419
|
+
const localVarQueryParameter = {};
|
|
420
|
+
if (limit !== undefined) {
|
|
421
|
+
localVarQueryParameter["limit"] = limit;
|
|
422
|
+
}
|
|
423
|
+
if (interval !== undefined) {
|
|
424
|
+
localVarQueryParameter["interval"] = interval;
|
|
425
|
+
}
|
|
426
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
427
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
428
|
+
localVarRequestOptions.headers = {
|
|
429
|
+
...localVarHeaderParameter,
|
|
430
|
+
...headersFromBaseOptions,
|
|
431
|
+
...options.headers
|
|
432
|
+
};
|
|
433
|
+
return {
|
|
434
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
435
|
+
options: localVarRequestOptions
|
|
436
|
+
};
|
|
437
|
+
},
|
|
438
|
+
/**
|
|
439
|
+
*
|
|
440
|
+
* @summary Get details for all vaults or a specific vault
|
|
441
|
+
* @param {string} [vaultId] The ID of the vault
|
|
442
|
+
* @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
|
|
443
|
+
* @param {string} [chain] The identifier of the chain
|
|
444
|
+
* @param {boolean} [includeHidden] Whether to include hidden vaults
|
|
445
|
+
* @param {*} [options] Override http request option.
|
|
446
|
+
* @throws {RequiredError}
|
|
447
|
+
*/
|
|
448
|
+
getVaults: async (vaultId, receiptCoinSymbol, chain, includeHidden, options = {}) => {
|
|
449
|
+
const localVarPath = `/api/v2/vaults`;
|
|
450
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
451
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
452
|
+
let baseOptions;
|
|
453
|
+
if (configuration) {
|
|
454
|
+
baseOptions = configuration.baseOptions;
|
|
455
|
+
}
|
|
456
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
457
|
+
const localVarHeaderParameter = {};
|
|
458
|
+
const localVarQueryParameter = {};
|
|
459
|
+
if (vaultId !== undefined) {
|
|
460
|
+
localVarQueryParameter["vaultId"] = vaultId;
|
|
461
|
+
}
|
|
462
|
+
if (receiptCoinSymbol !== undefined) {
|
|
463
|
+
localVarQueryParameter["receiptCoinSymbol"] = receiptCoinSymbol;
|
|
464
|
+
}
|
|
465
|
+
if (chain !== undefined) {
|
|
466
|
+
localVarQueryParameter["chain"] = chain;
|
|
467
|
+
}
|
|
468
|
+
if (includeHidden !== undefined) {
|
|
469
|
+
localVarQueryParameter["includeHidden"] = includeHidden;
|
|
470
|
+
}
|
|
471
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
472
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
473
|
+
localVarRequestOptions.headers = {
|
|
474
|
+
...localVarHeaderParameter,
|
|
475
|
+
...headersFromBaseOptions,
|
|
476
|
+
...options.headers
|
|
477
|
+
};
|
|
478
|
+
return {
|
|
479
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
480
|
+
options: localVarRequestOptions
|
|
481
|
+
};
|
|
482
|
+
},
|
|
483
|
+
/**
|
|
484
|
+
*
|
|
485
|
+
* @summary Get protocol info to initialize sdk
|
|
486
|
+
* @param {*} [options] Override http request option.
|
|
487
|
+
* @throws {RequiredError}
|
|
488
|
+
*/
|
|
489
|
+
getVaultsProtocolInfo: async (options = {}) => {
|
|
490
|
+
const localVarPath = `/api/v2/vaults/info`;
|
|
491
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
492
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
493
|
+
let baseOptions;
|
|
494
|
+
if (configuration) {
|
|
495
|
+
baseOptions = configuration.baseOptions;
|
|
496
|
+
}
|
|
497
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
498
|
+
const localVarHeaderParameter = {};
|
|
499
|
+
const localVarQueryParameter = {};
|
|
500
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
501
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
502
|
+
localVarRequestOptions.headers = {
|
|
503
|
+
...localVarHeaderParameter,
|
|
504
|
+
...headersFromBaseOptions,
|
|
505
|
+
...options.headers
|
|
506
|
+
};
|
|
507
|
+
return {
|
|
508
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
509
|
+
options: localVarRequestOptions
|
|
510
|
+
};
|
|
511
|
+
},
|
|
512
|
+
/**
|
|
513
|
+
*
|
|
514
|
+
* @summary Get stats for all vaults or a specific vault
|
|
515
|
+
* @param {string} [chain] The identifier of the chain
|
|
516
|
+
* @param {*} [options] Override http request option.
|
|
517
|
+
* @throws {RequiredError}
|
|
518
|
+
*/
|
|
519
|
+
getVaultsStats: async (chain, options = {}) => {
|
|
520
|
+
const localVarPath = `/api/v2/vaults/stats`;
|
|
521
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
522
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
523
|
+
let baseOptions;
|
|
524
|
+
if (configuration) {
|
|
525
|
+
baseOptions = configuration.baseOptions;
|
|
526
|
+
}
|
|
527
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
528
|
+
const localVarHeaderParameter = {};
|
|
529
|
+
const localVarQueryParameter = {};
|
|
530
|
+
if (chain !== undefined) {
|
|
531
|
+
localVarQueryParameter["chain"] = chain;
|
|
532
|
+
}
|
|
533
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
534
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
535
|
+
localVarRequestOptions.headers = {
|
|
536
|
+
...localVarHeaderParameter,
|
|
537
|
+
...headersFromBaseOptions,
|
|
538
|
+
...options.headers
|
|
539
|
+
};
|
|
540
|
+
return {
|
|
541
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
542
|
+
options: localVarRequestOptions
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
exports.VaultsApiAxiosParamCreator = VaultsApiAxiosParamCreator;
|
|
548
|
+
/**
|
|
549
|
+
* VaultsApi - functional programming interface
|
|
550
|
+
* @export
|
|
551
|
+
*/
|
|
552
|
+
const VaultsApiFp = function (configuration) {
|
|
553
|
+
const localVarAxiosParamCreator = (0, exports.VaultsApiAxiosParamCreator)(configuration);
|
|
554
|
+
return {
|
|
555
|
+
/**
|
|
556
|
+
*
|
|
557
|
+
* @summary Get all tags
|
|
558
|
+
* @param {*} [options] Override http request option.
|
|
559
|
+
* @throws {RequiredError}
|
|
560
|
+
*/
|
|
561
|
+
async getAllTags(options) {
|
|
562
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
|
|
563
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
564
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getAllTags"]?.[localVarOperationServerIndex]
|
|
565
|
+
?.url;
|
|
566
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
567
|
+
},
|
|
568
|
+
/**
|
|
569
|
+
*
|
|
570
|
+
* @summary Get the price of the coins
|
|
571
|
+
* @param {string} [coinTypes] The coin types of the coins
|
|
572
|
+
* @param {string} [chain]
|
|
573
|
+
* @param {*} [options] Override http request option.
|
|
574
|
+
* @throws {RequiredError}
|
|
575
|
+
*/
|
|
576
|
+
async getCoinsPrice(coinTypes, chain, options) {
|
|
577
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCoinsPrice(coinTypes, chain, options);
|
|
578
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
579
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getCoinsPrice"]?.[localVarOperationServerIndex]?.url;
|
|
580
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
581
|
+
},
|
|
582
|
+
/**
|
|
583
|
+
*
|
|
584
|
+
* @summary Get the fees of the protocol
|
|
585
|
+
* @param {number} startTimestampInMs The start timestamp of the fees
|
|
586
|
+
* @param {number} endTimestampInMs The end timestamp of the fees
|
|
587
|
+
* @param {*} [options] Override http request option.
|
|
588
|
+
* @throws {RequiredError}
|
|
589
|
+
*/
|
|
590
|
+
async getFees(startTimestampInMs, endTimestampInMs, options) {
|
|
591
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFees(startTimestampInMs, endTimestampInMs, options);
|
|
592
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
593
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getFees"]?.[localVarOperationServerIndex]
|
|
594
|
+
?.url;
|
|
595
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
596
|
+
},
|
|
597
|
+
/**
|
|
598
|
+
*
|
|
599
|
+
* @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
600
|
+
* @param {number} [limit] The limit of the rows
|
|
601
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
602
|
+
* @param {*} [options] Override http request option.
|
|
603
|
+
* @throws {RequiredError}
|
|
604
|
+
*/
|
|
605
|
+
async getProtocolPnlHistory(limit, interval, options) {
|
|
606
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProtocolPnlHistory(limit, interval, options);
|
|
607
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
608
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getProtocolPnlHistory"]?.[localVarOperationServerIndex]?.url;
|
|
609
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
610
|
+
},
|
|
611
|
+
/**
|
|
612
|
+
*
|
|
613
|
+
* @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
614
|
+
* @param {number} [limit] The limit of the rows
|
|
615
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
616
|
+
* @param {string} [chain] The identifier of the chain
|
|
617
|
+
* @param {*} [options] Override http request option.
|
|
618
|
+
* @throws {RequiredError}
|
|
619
|
+
*/
|
|
620
|
+
async getProtocolTvlHistory(limit, interval, chain, options) {
|
|
621
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProtocolTvlHistory(limit, interval, chain, options);
|
|
622
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
623
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getProtocolTvlHistory"]?.[localVarOperationServerIndex]?.url;
|
|
624
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
625
|
+
},
|
|
626
|
+
/**
|
|
627
|
+
*
|
|
628
|
+
* @summary Get supported chains
|
|
629
|
+
* @param {*} [options] Override http request option.
|
|
630
|
+
* @throws {RequiredError}
|
|
631
|
+
*/
|
|
632
|
+
async getSupportedChains(options) {
|
|
633
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedChains(options);
|
|
634
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
635
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getSupportedChains"]?.[localVarOperationServerIndex]?.url;
|
|
636
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
637
|
+
},
|
|
638
|
+
/**
|
|
639
|
+
*
|
|
640
|
+
* @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
641
|
+
* @param {string} vaultId The id of the vault
|
|
642
|
+
* @param {number} [limit] The limit of the rows
|
|
643
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
644
|
+
* @param {*} [options] Override http request option.
|
|
645
|
+
* @throws {RequiredError}
|
|
646
|
+
*/
|
|
647
|
+
async getVaultApyHistory(vaultId, limit, interval, options) {
|
|
648
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultApyHistory(vaultId, limit, interval, options);
|
|
649
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
650
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultApyHistory"]?.[localVarOperationServerIndex]?.url;
|
|
651
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
652
|
+
},
|
|
653
|
+
/**
|
|
654
|
+
*
|
|
655
|
+
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
656
|
+
* @param {string} vaultId The id of the vault
|
|
657
|
+
* @param {number} [limit] The limit of the rows
|
|
658
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
659
|
+
* @param {*} [options] Override http request option.
|
|
660
|
+
* @throws {RequiredError}
|
|
661
|
+
*/
|
|
662
|
+
async getVaultPnlHistory(vaultId, limit, interval, options) {
|
|
663
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultPnlHistory(vaultId, limit, interval, options);
|
|
664
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
665
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultPnlHistory"]?.[localVarOperationServerIndex]?.url;
|
|
666
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
667
|
+
},
|
|
668
|
+
/**
|
|
669
|
+
*
|
|
670
|
+
* @summary Get the proof of capital of the vault
|
|
671
|
+
* @param {string} vaultId The id of the vault
|
|
672
|
+
* @param {*} [options] Override http request option.
|
|
673
|
+
* @throws {RequiredError}
|
|
674
|
+
*/
|
|
675
|
+
async getVaultProofOfCapital(vaultId, options) {
|
|
676
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultProofOfCapital(vaultId, options);
|
|
677
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
678
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultProofOfCapital"]?.[localVarOperationServerIndex]?.url;
|
|
679
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
680
|
+
},
|
|
681
|
+
/**
|
|
682
|
+
*
|
|
683
|
+
* @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
684
|
+
* @param {string} vaultId The id of the vault
|
|
685
|
+
* @param {number} [limit] The limit of the rows
|
|
686
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
687
|
+
* @param {*} [options] Override http request option.
|
|
688
|
+
* @throws {RequiredError}
|
|
689
|
+
*/
|
|
690
|
+
async getVaultSharePriceHistory(vaultId, limit, interval, options) {
|
|
691
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultSharePriceHistory(vaultId, limit, interval, options);
|
|
692
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
693
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultSharePriceHistory"]?.[localVarOperationServerIndex]?.url;
|
|
694
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
695
|
+
},
|
|
696
|
+
/**
|
|
697
|
+
*
|
|
698
|
+
* @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
699
|
+
* @param {string} vaultId The id of the vault
|
|
700
|
+
* @param {number} [limit] The limit of the rows
|
|
701
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
702
|
+
* @param {*} [options] Override http request option.
|
|
703
|
+
* @throws {RequiredError}
|
|
704
|
+
*/
|
|
705
|
+
async getVaultTvlHistory(vaultId, limit, interval, options) {
|
|
706
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultTvlHistory(vaultId, limit, interval, options);
|
|
707
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
708
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultTvlHistory"]?.[localVarOperationServerIndex]?.url;
|
|
709
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
710
|
+
},
|
|
711
|
+
/**
|
|
712
|
+
*
|
|
713
|
+
* @summary Get details for all vaults or a specific vault
|
|
714
|
+
* @param {string} [vaultId] The ID of the vault
|
|
715
|
+
* @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
|
|
716
|
+
* @param {string} [chain] The identifier of the chain
|
|
717
|
+
* @param {boolean} [includeHidden] Whether to include hidden vaults
|
|
718
|
+
* @param {*} [options] Override http request option.
|
|
719
|
+
* @throws {RequiredError}
|
|
720
|
+
*/
|
|
721
|
+
async getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options) {
|
|
722
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options);
|
|
723
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
724
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaults"]?.[localVarOperationServerIndex]
|
|
725
|
+
?.url;
|
|
726
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
727
|
+
},
|
|
728
|
+
/**
|
|
729
|
+
*
|
|
730
|
+
* @summary Get protocol info to initialize sdk
|
|
731
|
+
* @param {*} [options] Override http request option.
|
|
732
|
+
* @throws {RequiredError}
|
|
733
|
+
*/
|
|
734
|
+
async getVaultsProtocolInfo(options) {
|
|
735
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsProtocolInfo(options);
|
|
736
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
737
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultsProtocolInfo"]?.[localVarOperationServerIndex]?.url;
|
|
738
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
739
|
+
},
|
|
740
|
+
/**
|
|
741
|
+
*
|
|
742
|
+
* @summary Get stats for all vaults or a specific vault
|
|
743
|
+
* @param {string} [chain] The identifier of the chain
|
|
744
|
+
* @param {*} [options] Override http request option.
|
|
745
|
+
* @throws {RequiredError}
|
|
746
|
+
*/
|
|
747
|
+
async getVaultsStats(chain, options) {
|
|
748
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsStats(chain, options);
|
|
749
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
750
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultsStats"]?.[localVarOperationServerIndex]?.url;
|
|
751
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
752
|
+
}
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
exports.VaultsApiFp = VaultsApiFp;
|
|
756
|
+
/**
|
|
757
|
+
* VaultsApi - factory interface
|
|
758
|
+
* @export
|
|
759
|
+
*/
|
|
760
|
+
const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
761
|
+
const localVarFp = (0, exports.VaultsApiFp)(configuration);
|
|
762
|
+
return {
|
|
763
|
+
/**
|
|
764
|
+
*
|
|
765
|
+
* @summary Get all tags
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
*/
|
|
769
|
+
getAllTags(options) {
|
|
770
|
+
return localVarFp
|
|
771
|
+
.getAllTags(options)
|
|
772
|
+
.then(request => request(axios, basePath));
|
|
773
|
+
},
|
|
774
|
+
/**
|
|
775
|
+
*
|
|
776
|
+
* @summary Get the price of the coins
|
|
777
|
+
* @param {string} [coinTypes] The coin types of the coins
|
|
778
|
+
* @param {string} [chain]
|
|
779
|
+
* @param {*} [options] Override http request option.
|
|
780
|
+
* @throws {RequiredError}
|
|
781
|
+
*/
|
|
782
|
+
getCoinsPrice(coinTypes, chain, options) {
|
|
783
|
+
return localVarFp
|
|
784
|
+
.getCoinsPrice(coinTypes, chain, options)
|
|
785
|
+
.then(request => request(axios, basePath));
|
|
786
|
+
},
|
|
787
|
+
/**
|
|
788
|
+
*
|
|
789
|
+
* @summary Get the fees of the protocol
|
|
790
|
+
* @param {number} startTimestampInMs The start timestamp of the fees
|
|
791
|
+
* @param {number} endTimestampInMs The end timestamp of the fees
|
|
792
|
+
* @param {*} [options] Override http request option.
|
|
793
|
+
* @throws {RequiredError}
|
|
794
|
+
*/
|
|
795
|
+
getFees(startTimestampInMs, endTimestampInMs, options) {
|
|
796
|
+
return localVarFp
|
|
797
|
+
.getFees(startTimestampInMs, endTimestampInMs, options)
|
|
798
|
+
.then(request => request(axios, basePath));
|
|
799
|
+
},
|
|
800
|
+
/**
|
|
801
|
+
*
|
|
802
|
+
* @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
803
|
+
* @param {number} [limit] The limit of the rows
|
|
804
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
805
|
+
* @param {*} [options] Override http request option.
|
|
806
|
+
* @throws {RequiredError}
|
|
807
|
+
*/
|
|
808
|
+
getProtocolPnlHistory(limit, interval, options) {
|
|
809
|
+
return localVarFp
|
|
810
|
+
.getProtocolPnlHistory(limit, interval, options)
|
|
811
|
+
.then(request => request(axios, basePath));
|
|
812
|
+
},
|
|
813
|
+
/**
|
|
814
|
+
*
|
|
815
|
+
* @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
816
|
+
* @param {number} [limit] The limit of the rows
|
|
817
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
818
|
+
* @param {string} [chain] The identifier of the chain
|
|
819
|
+
* @param {*} [options] Override http request option.
|
|
820
|
+
* @throws {RequiredError}
|
|
821
|
+
*/
|
|
822
|
+
getProtocolTvlHistory(limit, interval, chain, options) {
|
|
823
|
+
return localVarFp
|
|
824
|
+
.getProtocolTvlHistory(limit, interval, chain, options)
|
|
825
|
+
.then(request => request(axios, basePath));
|
|
826
|
+
},
|
|
827
|
+
/**
|
|
828
|
+
*
|
|
829
|
+
* @summary Get supported chains
|
|
830
|
+
* @param {*} [options] Override http request option.
|
|
831
|
+
* @throws {RequiredError}
|
|
832
|
+
*/
|
|
833
|
+
getSupportedChains(options) {
|
|
834
|
+
return localVarFp
|
|
835
|
+
.getSupportedChains(options)
|
|
836
|
+
.then(request => request(axios, basePath));
|
|
837
|
+
},
|
|
838
|
+
/**
|
|
839
|
+
*
|
|
840
|
+
* @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
841
|
+
* @param {string} vaultId The id of the vault
|
|
842
|
+
* @param {number} [limit] The limit of the rows
|
|
843
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
844
|
+
* @param {*} [options] Override http request option.
|
|
845
|
+
* @throws {RequiredError}
|
|
846
|
+
*/
|
|
847
|
+
getVaultApyHistory(vaultId, limit, interval, options) {
|
|
848
|
+
return localVarFp
|
|
849
|
+
.getVaultApyHistory(vaultId, limit, interval, options)
|
|
850
|
+
.then(request => request(axios, basePath));
|
|
851
|
+
},
|
|
852
|
+
/**
|
|
853
|
+
*
|
|
854
|
+
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
855
|
+
* @param {string} vaultId The id of the vault
|
|
856
|
+
* @param {number} [limit] The limit of the rows
|
|
857
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
858
|
+
* @param {*} [options] Override http request option.
|
|
859
|
+
* @throws {RequiredError}
|
|
860
|
+
*/
|
|
861
|
+
getVaultPnlHistory(vaultId, limit, interval, options) {
|
|
862
|
+
return localVarFp
|
|
863
|
+
.getVaultPnlHistory(vaultId, limit, interval, options)
|
|
864
|
+
.then(request => request(axios, basePath));
|
|
865
|
+
},
|
|
866
|
+
/**
|
|
867
|
+
*
|
|
868
|
+
* @summary Get the proof of capital of the vault
|
|
869
|
+
* @param {string} vaultId The id of the vault
|
|
870
|
+
* @param {*} [options] Override http request option.
|
|
871
|
+
* @throws {RequiredError}
|
|
872
|
+
*/
|
|
873
|
+
getVaultProofOfCapital(vaultId, options) {
|
|
874
|
+
return localVarFp
|
|
875
|
+
.getVaultProofOfCapital(vaultId, options)
|
|
876
|
+
.then(request => request(axios, basePath));
|
|
877
|
+
},
|
|
878
|
+
/**
|
|
879
|
+
*
|
|
880
|
+
* @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
881
|
+
* @param {string} vaultId The id of the vault
|
|
882
|
+
* @param {number} [limit] The limit of the rows
|
|
883
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
884
|
+
* @param {*} [options] Override http request option.
|
|
885
|
+
* @throws {RequiredError}
|
|
886
|
+
*/
|
|
887
|
+
getVaultSharePriceHistory(vaultId, limit, interval, options) {
|
|
888
|
+
return localVarFp
|
|
889
|
+
.getVaultSharePriceHistory(vaultId, limit, interval, options)
|
|
890
|
+
.then(request => request(axios, basePath));
|
|
891
|
+
},
|
|
892
|
+
/**
|
|
893
|
+
*
|
|
894
|
+
* @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
895
|
+
* @param {string} vaultId The id of the vault
|
|
896
|
+
* @param {number} [limit] The limit of the rows
|
|
897
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
898
|
+
* @param {*} [options] Override http request option.
|
|
899
|
+
* @throws {RequiredError}
|
|
900
|
+
*/
|
|
901
|
+
getVaultTvlHistory(vaultId, limit, interval, options) {
|
|
902
|
+
return localVarFp
|
|
903
|
+
.getVaultTvlHistory(vaultId, limit, interval, options)
|
|
904
|
+
.then(request => request(axios, basePath));
|
|
905
|
+
},
|
|
906
|
+
/**
|
|
907
|
+
*
|
|
908
|
+
* @summary Get details for all vaults or a specific vault
|
|
909
|
+
* @param {string} [vaultId] The ID of the vault
|
|
910
|
+
* @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
|
|
911
|
+
* @param {string} [chain] The identifier of the chain
|
|
912
|
+
* @param {boolean} [includeHidden] Whether to include hidden vaults
|
|
913
|
+
* @param {*} [options] Override http request option.
|
|
914
|
+
* @throws {RequiredError}
|
|
915
|
+
*/
|
|
916
|
+
getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options) {
|
|
917
|
+
return localVarFp
|
|
918
|
+
.getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options)
|
|
919
|
+
.then(request => request(axios, basePath));
|
|
920
|
+
},
|
|
921
|
+
/**
|
|
922
|
+
*
|
|
923
|
+
* @summary Get protocol info to initialize sdk
|
|
924
|
+
* @param {*} [options] Override http request option.
|
|
925
|
+
* @throws {RequiredError}
|
|
926
|
+
*/
|
|
927
|
+
getVaultsProtocolInfo(options) {
|
|
928
|
+
return localVarFp
|
|
929
|
+
.getVaultsProtocolInfo(options)
|
|
930
|
+
.then(request => request(axios, basePath));
|
|
931
|
+
},
|
|
932
|
+
/**
|
|
933
|
+
*
|
|
934
|
+
* @summary Get stats for all vaults or a specific vault
|
|
935
|
+
* @param {string} [chain] The identifier of the chain
|
|
936
|
+
* @param {*} [options] Override http request option.
|
|
937
|
+
* @throws {RequiredError}
|
|
938
|
+
*/
|
|
939
|
+
getVaultsStats(chain, options) {
|
|
940
|
+
return localVarFp
|
|
941
|
+
.getVaultsStats(chain, options)
|
|
942
|
+
.then(request => request(axios, basePath));
|
|
943
|
+
}
|
|
944
|
+
};
|
|
945
|
+
};
|
|
946
|
+
exports.VaultsApiFactory = VaultsApiFactory;
|
|
947
|
+
/**
|
|
948
|
+
* VaultsApi - object-oriented interface
|
|
949
|
+
* @export
|
|
950
|
+
* @class VaultsApi
|
|
951
|
+
* @extends {BaseAPI}
|
|
952
|
+
*/
|
|
953
|
+
class VaultsApi extends base_1.BaseAPI {
|
|
954
|
+
/**
|
|
955
|
+
*
|
|
956
|
+
* @summary Get all tags
|
|
957
|
+
* @param {*} [options] Override http request option.
|
|
958
|
+
* @throws {RequiredError}
|
|
959
|
+
* @memberof VaultsApi
|
|
960
|
+
*/
|
|
961
|
+
getAllTags(options) {
|
|
962
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
963
|
+
.getAllTags(options)
|
|
964
|
+
.then(request => request(this.axios, this.basePath));
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
*
|
|
968
|
+
* @summary Get the price of the coins
|
|
969
|
+
* @param {string} [coinTypes] The coin types of the coins
|
|
970
|
+
* @param {string} [chain]
|
|
971
|
+
* @param {*} [options] Override http request option.
|
|
972
|
+
* @throws {RequiredError}
|
|
973
|
+
* @memberof VaultsApi
|
|
974
|
+
*/
|
|
975
|
+
getCoinsPrice(coinTypes, chain, options) {
|
|
976
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
977
|
+
.getCoinsPrice(coinTypes, chain, options)
|
|
978
|
+
.then(request => request(this.axios, this.basePath));
|
|
979
|
+
}
|
|
980
|
+
/**
|
|
981
|
+
*
|
|
982
|
+
* @summary Get the fees of the protocol
|
|
983
|
+
* @param {number} startTimestampInMs The start timestamp of the fees
|
|
984
|
+
* @param {number} endTimestampInMs The end timestamp of the fees
|
|
985
|
+
* @param {*} [options] Override http request option.
|
|
986
|
+
* @throws {RequiredError}
|
|
987
|
+
* @memberof VaultsApi
|
|
988
|
+
*/
|
|
989
|
+
getFees(startTimestampInMs, endTimestampInMs, options) {
|
|
990
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
991
|
+
.getFees(startTimestampInMs, endTimestampInMs, options)
|
|
992
|
+
.then(request => request(this.axios, this.basePath));
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
*
|
|
996
|
+
* @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
997
|
+
* @param {number} [limit] The limit of the rows
|
|
998
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
999
|
+
* @param {*} [options] Override http request option.
|
|
1000
|
+
* @throws {RequiredError}
|
|
1001
|
+
* @memberof VaultsApi
|
|
1002
|
+
*/
|
|
1003
|
+
getProtocolPnlHistory(limit, interval, options) {
|
|
1004
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1005
|
+
.getProtocolPnlHistory(limit, interval, options)
|
|
1006
|
+
.then(request => request(this.axios, this.basePath));
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
*
|
|
1010
|
+
* @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
1011
|
+
* @param {number} [limit] The limit of the rows
|
|
1012
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
1013
|
+
* @param {string} [chain] The identifier of the chain
|
|
1014
|
+
* @param {*} [options] Override http request option.
|
|
1015
|
+
* @throws {RequiredError}
|
|
1016
|
+
* @memberof VaultsApi
|
|
1017
|
+
*/
|
|
1018
|
+
getProtocolTvlHistory(limit, interval, chain, options) {
|
|
1019
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1020
|
+
.getProtocolTvlHistory(limit, interval, chain, options)
|
|
1021
|
+
.then(request => request(this.axios, this.basePath));
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
*
|
|
1025
|
+
* @summary Get supported chains
|
|
1026
|
+
* @param {*} [options] Override http request option.
|
|
1027
|
+
* @throws {RequiredError}
|
|
1028
|
+
* @memberof VaultsApi
|
|
1029
|
+
*/
|
|
1030
|
+
getSupportedChains(options) {
|
|
1031
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1032
|
+
.getSupportedChains(options)
|
|
1033
|
+
.then(request => request(this.axios, this.basePath));
|
|
1034
|
+
}
|
|
1035
|
+
/**
|
|
1036
|
+
*
|
|
1037
|
+
* @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
1038
|
+
* @param {string} vaultId The id of the vault
|
|
1039
|
+
* @param {number} [limit] The limit of the rows
|
|
1040
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
1041
|
+
* @param {*} [options] Override http request option.
|
|
1042
|
+
* @throws {RequiredError}
|
|
1043
|
+
* @memberof VaultsApi
|
|
1044
|
+
*/
|
|
1045
|
+
getVaultApyHistory(vaultId, limit, interval, options) {
|
|
1046
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1047
|
+
.getVaultApyHistory(vaultId, limit, interval, options)
|
|
1048
|
+
.then(request => request(this.axios, this.basePath));
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
*
|
|
1052
|
+
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
1053
|
+
* @param {string} vaultId The id of the vault
|
|
1054
|
+
* @param {number} [limit] The limit of the rows
|
|
1055
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
1056
|
+
* @param {*} [options] Override http request option.
|
|
1057
|
+
* @throws {RequiredError}
|
|
1058
|
+
* @memberof VaultsApi
|
|
1059
|
+
*/
|
|
1060
|
+
getVaultPnlHistory(vaultId, limit, interval, options) {
|
|
1061
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1062
|
+
.getVaultPnlHistory(vaultId, limit, interval, options)
|
|
1063
|
+
.then(request => request(this.axios, this.basePath));
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
*
|
|
1067
|
+
* @summary Get the proof of capital of the vault
|
|
1068
|
+
* @param {string} vaultId The id of the vault
|
|
1069
|
+
* @param {*} [options] Override http request option.
|
|
1070
|
+
* @throws {RequiredError}
|
|
1071
|
+
* @memberof VaultsApi
|
|
1072
|
+
*/
|
|
1073
|
+
getVaultProofOfCapital(vaultId, options) {
|
|
1074
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1075
|
+
.getVaultProofOfCapital(vaultId, options)
|
|
1076
|
+
.then(request => request(this.axios, this.basePath));
|
|
1077
|
+
}
|
|
1078
|
+
/**
|
|
1079
|
+
*
|
|
1080
|
+
* @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
1081
|
+
* @param {string} vaultId The id of the vault
|
|
1082
|
+
* @param {number} [limit] The limit of the rows
|
|
1083
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
1084
|
+
* @param {*} [options] Override http request option.
|
|
1085
|
+
* @throws {RequiredError}
|
|
1086
|
+
* @memberof VaultsApi
|
|
1087
|
+
*/
|
|
1088
|
+
getVaultSharePriceHistory(vaultId, limit, interval, options) {
|
|
1089
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1090
|
+
.getVaultSharePriceHistory(vaultId, limit, interval, options)
|
|
1091
|
+
.then(request => request(this.axios, this.basePath));
|
|
1092
|
+
}
|
|
1093
|
+
/**
|
|
1094
|
+
*
|
|
1095
|
+
* @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
1096
|
+
* @param {string} vaultId The id of the vault
|
|
1097
|
+
* @param {number} [limit] The limit of the rows
|
|
1098
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
1099
|
+
* @param {*} [options] Override http request option.
|
|
1100
|
+
* @throws {RequiredError}
|
|
1101
|
+
* @memberof VaultsApi
|
|
1102
|
+
*/
|
|
1103
|
+
getVaultTvlHistory(vaultId, limit, interval, options) {
|
|
1104
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1105
|
+
.getVaultTvlHistory(vaultId, limit, interval, options)
|
|
1106
|
+
.then(request => request(this.axios, this.basePath));
|
|
1107
|
+
}
|
|
1108
|
+
/**
|
|
1109
|
+
*
|
|
1110
|
+
* @summary Get details for all vaults or a specific vault
|
|
1111
|
+
* @param {string} [vaultId] The ID of the vault
|
|
1112
|
+
* @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
|
|
1113
|
+
* @param {string} [chain] The identifier of the chain
|
|
1114
|
+
* @param {boolean} [includeHidden] Whether to include hidden vaults
|
|
1115
|
+
* @param {*} [options] Override http request option.
|
|
1116
|
+
* @throws {RequiredError}
|
|
1117
|
+
* @memberof VaultsApi
|
|
1118
|
+
*/
|
|
1119
|
+
getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options) {
|
|
1120
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1121
|
+
.getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options)
|
|
1122
|
+
.then(request => request(this.axios, this.basePath));
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
*
|
|
1126
|
+
* @summary Get protocol info to initialize sdk
|
|
1127
|
+
* @param {*} [options] Override http request option.
|
|
1128
|
+
* @throws {RequiredError}
|
|
1129
|
+
* @memberof VaultsApi
|
|
1130
|
+
*/
|
|
1131
|
+
getVaultsProtocolInfo(options) {
|
|
1132
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1133
|
+
.getVaultsProtocolInfo(options)
|
|
1134
|
+
.then(request => request(this.axios, this.basePath));
|
|
1135
|
+
}
|
|
1136
|
+
/**
|
|
1137
|
+
*
|
|
1138
|
+
* @summary Get stats for all vaults or a specific vault
|
|
1139
|
+
* @param {string} [chain] The identifier of the chain
|
|
1140
|
+
* @param {*} [options] Override http request option.
|
|
1141
|
+
* @throws {RequiredError}
|
|
1142
|
+
* @memberof VaultsApi
|
|
1143
|
+
*/
|
|
1144
|
+
getVaultsStats(chain, options) {
|
|
1145
|
+
return (0, exports.VaultsApiFp)(this.configuration)
|
|
1146
|
+
.getVaultsStats(chain, options)
|
|
1147
|
+
.then(request => request(this.axios, this.basePath));
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
exports.VaultsApi = VaultsApi;
|