@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,656 @@
|
|
|
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.GetAccountWithdrawalRequestsStatusEnum = exports.GetAccountHistoryTypeEnum = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = 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
|
+
* AccountsApi - axios parameter creator
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
const AccountsApiAxiosParamCreator = function (configuration) {
|
|
31
|
+
return {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Get history of the account
|
|
35
|
+
* @param {string} accountAddress The address of the account
|
|
36
|
+
* @param {number} startTimeInMs The start time of the events
|
|
37
|
+
* @param {string} [chain] Chain identifier
|
|
38
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
39
|
+
* @param {number} [limit] The limit of the events
|
|
40
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
41
|
+
* @param {string} [vaultId] The id of the vault
|
|
42
|
+
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
getAccountHistory: async (accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options = {}) => {
|
|
47
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
48
|
+
(0, common_1.assertParamExists)("getAccountHistory", "accountAddress", accountAddress);
|
|
49
|
+
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
50
|
+
(0, common_1.assertParamExists)("getAccountHistory", "startTimeInMs", startTimeInMs);
|
|
51
|
+
const localVarPath = `/api/v2/vaults/history/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
52
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
54
|
+
let baseOptions;
|
|
55
|
+
if (configuration) {
|
|
56
|
+
baseOptions = configuration.baseOptions;
|
|
57
|
+
}
|
|
58
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
59
|
+
const localVarHeaderParameter = {};
|
|
60
|
+
const localVarQueryParameter = {};
|
|
61
|
+
if (chain !== undefined) {
|
|
62
|
+
localVarQueryParameter["chain"] = chain;
|
|
63
|
+
}
|
|
64
|
+
if (startTimeInMs !== undefined) {
|
|
65
|
+
localVarQueryParameter["startTimeInMs"] = startTimeInMs;
|
|
66
|
+
}
|
|
67
|
+
if (endTimeInMs !== undefined) {
|
|
68
|
+
localVarQueryParameter["endTimeInMs"] = endTimeInMs;
|
|
69
|
+
}
|
|
70
|
+
if (limit !== undefined) {
|
|
71
|
+
localVarQueryParameter["limit"] = limit;
|
|
72
|
+
}
|
|
73
|
+
if (page !== undefined) {
|
|
74
|
+
localVarQueryParameter["page"] = page;
|
|
75
|
+
}
|
|
76
|
+
if (vaultId !== undefined) {
|
|
77
|
+
localVarQueryParameter["vaultId"] = vaultId;
|
|
78
|
+
}
|
|
79
|
+
if (type !== undefined) {
|
|
80
|
+
localVarQueryParameter["type"] = type;
|
|
81
|
+
}
|
|
82
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
83
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
|
+
localVarRequestOptions.headers = {
|
|
85
|
+
...localVarHeaderParameter,
|
|
86
|
+
...headersFromBaseOptions,
|
|
87
|
+
...options.headers
|
|
88
|
+
};
|
|
89
|
+
return {
|
|
90
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
91
|
+
options: localVarRequestOptions
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @summary Get the positions history of the account
|
|
97
|
+
* @param {string} accountAddress The address of the account
|
|
98
|
+
* @param {number} [limit] The limit of the rows
|
|
99
|
+
* @param {PositionHistoryInterval} [interval] The interval of the rows
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
getAccountPositionsHistory: async (accountAddress, limit, interval, options = {}) => {
|
|
104
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
105
|
+
(0, common_1.assertParamExists)("getAccountPositionsHistory", "accountAddress", accountAddress);
|
|
106
|
+
const localVarPath = `/api/v2/vaults/positions-history/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
107
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
108
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
109
|
+
let baseOptions;
|
|
110
|
+
if (configuration) {
|
|
111
|
+
baseOptions = configuration.baseOptions;
|
|
112
|
+
}
|
|
113
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
114
|
+
const localVarHeaderParameter = {};
|
|
115
|
+
const localVarQueryParameter = {};
|
|
116
|
+
if (limit !== undefined) {
|
|
117
|
+
localVarQueryParameter["limit"] = limit;
|
|
118
|
+
}
|
|
119
|
+
if (interval !== undefined) {
|
|
120
|
+
localVarQueryParameter["interval"] = interval;
|
|
121
|
+
}
|
|
122
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
123
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
124
|
+
localVarRequestOptions.headers = {
|
|
125
|
+
...localVarHeaderParameter,
|
|
126
|
+
...headersFromBaseOptions,
|
|
127
|
+
...options.headers
|
|
128
|
+
};
|
|
129
|
+
return {
|
|
130
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
131
|
+
options: localVarRequestOptions
|
|
132
|
+
};
|
|
133
|
+
},
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @summary Get the positions value of the account
|
|
137
|
+
* @param {string} accountAddress The address of the account
|
|
138
|
+
* @param {string} [vaultId] The id of the vault
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
getAccountPositionsValue: async (accountAddress, vaultId, options = {}) => {
|
|
143
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
144
|
+
(0, common_1.assertParamExists)("getAccountPositionsValue", "accountAddress", accountAddress);
|
|
145
|
+
const localVarPath = `/api/v2/vaults/positions/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
146
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
148
|
+
let baseOptions;
|
|
149
|
+
if (configuration) {
|
|
150
|
+
baseOptions = configuration.baseOptions;
|
|
151
|
+
}
|
|
152
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
153
|
+
const localVarHeaderParameter = {};
|
|
154
|
+
const localVarQueryParameter = {};
|
|
155
|
+
if (vaultId !== undefined) {
|
|
156
|
+
localVarQueryParameter["vaultId"] = vaultId;
|
|
157
|
+
}
|
|
158
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
159
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
160
|
+
localVarRequestOptions.headers = {
|
|
161
|
+
...localVarHeaderParameter,
|
|
162
|
+
...headersFromBaseOptions,
|
|
163
|
+
...options.headers
|
|
164
|
+
};
|
|
165
|
+
return {
|
|
166
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
167
|
+
options: localVarRequestOptions
|
|
168
|
+
};
|
|
169
|
+
},
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @summary Get withdrawal requests of the account
|
|
173
|
+
* @param {string} accountAddress The address of the account
|
|
174
|
+
* @param {number} startTimeInMs The start time of the events
|
|
175
|
+
* @param {string} [chain] Chain identifier
|
|
176
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
177
|
+
* @param {number} [limit] The limit of the events
|
|
178
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
179
|
+
* @param {string} [vaultId] The id of the vault
|
|
180
|
+
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
getAccountWithdrawalRequests: async (accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options = {}) => {
|
|
185
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
186
|
+
(0, common_1.assertParamExists)("getAccountWithdrawalRequests", "accountAddress", accountAddress);
|
|
187
|
+
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
188
|
+
(0, common_1.assertParamExists)("getAccountWithdrawalRequests", "startTimeInMs", startTimeInMs);
|
|
189
|
+
const localVarPath = `/api/v2/vaults/withdrawal-requests/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
190
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
191
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
192
|
+
let baseOptions;
|
|
193
|
+
if (configuration) {
|
|
194
|
+
baseOptions = configuration.baseOptions;
|
|
195
|
+
}
|
|
196
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
197
|
+
const localVarHeaderParameter = {};
|
|
198
|
+
const localVarQueryParameter = {};
|
|
199
|
+
if (chain !== undefined) {
|
|
200
|
+
localVarQueryParameter["chain"] = chain;
|
|
201
|
+
}
|
|
202
|
+
if (startTimeInMs !== undefined) {
|
|
203
|
+
localVarQueryParameter["startTimeInMs"] = startTimeInMs;
|
|
204
|
+
}
|
|
205
|
+
if (endTimeInMs !== undefined) {
|
|
206
|
+
localVarQueryParameter["endTimeInMs"] = endTimeInMs;
|
|
207
|
+
}
|
|
208
|
+
if (limit !== undefined) {
|
|
209
|
+
localVarQueryParameter["limit"] = limit;
|
|
210
|
+
}
|
|
211
|
+
if (page !== undefined) {
|
|
212
|
+
localVarQueryParameter["page"] = page;
|
|
213
|
+
}
|
|
214
|
+
if (vaultId !== undefined) {
|
|
215
|
+
localVarQueryParameter["vaultId"] = vaultId;
|
|
216
|
+
}
|
|
217
|
+
if (status !== undefined) {
|
|
218
|
+
localVarQueryParameter["status"] = status;
|
|
219
|
+
}
|
|
220
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
221
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
222
|
+
localVarRequestOptions.headers = {
|
|
223
|
+
...localVarHeaderParameter,
|
|
224
|
+
...headersFromBaseOptions,
|
|
225
|
+
...options.headers
|
|
226
|
+
};
|
|
227
|
+
return {
|
|
228
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
229
|
+
options: localVarRequestOptions
|
|
230
|
+
};
|
|
231
|
+
},
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @summary Get the yield value of the account
|
|
235
|
+
* @param {string} accountAddress The address of the account
|
|
236
|
+
* @param {string} [chain] Chain identifier
|
|
237
|
+
* @param {*} [options] Override http request option.
|
|
238
|
+
* @throws {RequiredError}
|
|
239
|
+
*/
|
|
240
|
+
getAccountYieldValue: async (accountAddress, chain, options = {}) => {
|
|
241
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
242
|
+
(0, common_1.assertParamExists)("getAccountYieldValue", "accountAddress", accountAddress);
|
|
243
|
+
const localVarPath = `/api/v2/vaults/yield/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
244
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
245
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
246
|
+
let baseOptions;
|
|
247
|
+
if (configuration) {
|
|
248
|
+
baseOptions = configuration.baseOptions;
|
|
249
|
+
}
|
|
250
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
251
|
+
const localVarHeaderParameter = {};
|
|
252
|
+
const localVarQueryParameter = {};
|
|
253
|
+
if (chain !== undefined) {
|
|
254
|
+
localVarQueryParameter["chain"] = chain;
|
|
255
|
+
}
|
|
256
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
257
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
258
|
+
localVarRequestOptions.headers = {
|
|
259
|
+
...localVarHeaderParameter,
|
|
260
|
+
...headersFromBaseOptions,
|
|
261
|
+
...options.headers
|
|
262
|
+
};
|
|
263
|
+
return {
|
|
264
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
265
|
+
options: localVarRequestOptions
|
|
266
|
+
};
|
|
267
|
+
},
|
|
268
|
+
/**
|
|
269
|
+
*
|
|
270
|
+
* @summary Get the positions history of the account for a given vault
|
|
271
|
+
* @param {string} vaultId The id of the vault
|
|
272
|
+
* @param {string} accountAddress The address of the account
|
|
273
|
+
* @param {number} [limit] The limit of the rows
|
|
274
|
+
* @param {PositionHistoryInterval} [interval] The interval of the rows
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
getVaultAccountPositionsHistory: async (vaultId, accountAddress, limit, interval, options = {}) => {
|
|
279
|
+
// verify required parameter 'vaultId' is not null or undefined
|
|
280
|
+
(0, common_1.assertParamExists)("getVaultAccountPositionsHistory", "vaultId", vaultId);
|
|
281
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
282
|
+
(0, common_1.assertParamExists)("getVaultAccountPositionsHistory", "accountAddress", accountAddress);
|
|
283
|
+
const localVarPath = `/api/v2/vaults/position-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
284
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
285
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
286
|
+
let baseOptions;
|
|
287
|
+
if (configuration) {
|
|
288
|
+
baseOptions = configuration.baseOptions;
|
|
289
|
+
}
|
|
290
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
291
|
+
const localVarHeaderParameter = {};
|
|
292
|
+
const localVarQueryParameter = {};
|
|
293
|
+
if (accountAddress !== undefined) {
|
|
294
|
+
localVarQueryParameter["accountAddress"] = accountAddress;
|
|
295
|
+
}
|
|
296
|
+
if (limit !== undefined) {
|
|
297
|
+
localVarQueryParameter["limit"] = limit;
|
|
298
|
+
}
|
|
299
|
+
if (interval !== undefined) {
|
|
300
|
+
localVarQueryParameter["interval"] = interval;
|
|
301
|
+
}
|
|
302
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
303
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
304
|
+
localVarRequestOptions.headers = {
|
|
305
|
+
...localVarHeaderParameter,
|
|
306
|
+
...headersFromBaseOptions,
|
|
307
|
+
...options.headers
|
|
308
|
+
};
|
|
309
|
+
return {
|
|
310
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
311
|
+
options: localVarRequestOptions
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
|
|
317
|
+
/**
|
|
318
|
+
* AccountsApi - functional programming interface
|
|
319
|
+
* @export
|
|
320
|
+
*/
|
|
321
|
+
const AccountsApiFp = function (configuration) {
|
|
322
|
+
const localVarAxiosParamCreator = (0, exports.AccountsApiAxiosParamCreator)(configuration);
|
|
323
|
+
return {
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
|
+
* @summary Get history of the account
|
|
327
|
+
* @param {string} accountAddress The address of the account
|
|
328
|
+
* @param {number} startTimeInMs The start time of the events
|
|
329
|
+
* @param {string} [chain] Chain identifier
|
|
330
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
331
|
+
* @param {number} [limit] The limit of the events
|
|
332
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
333
|
+
* @param {string} [vaultId] The id of the vault
|
|
334
|
+
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @throws {RequiredError}
|
|
337
|
+
*/
|
|
338
|
+
async getAccountHistory(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options) {
|
|
339
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountHistory(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options);
|
|
340
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
341
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountHistory"]?.[localVarOperationServerIndex]?.url;
|
|
342
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
343
|
+
},
|
|
344
|
+
/**
|
|
345
|
+
*
|
|
346
|
+
* @summary Get the positions history of the account
|
|
347
|
+
* @param {string} accountAddress The address of the account
|
|
348
|
+
* @param {number} [limit] The limit of the rows
|
|
349
|
+
* @param {PositionHistoryInterval} [interval] The interval of the rows
|
|
350
|
+
* @param {*} [options] Override http request option.
|
|
351
|
+
* @throws {RequiredError}
|
|
352
|
+
*/
|
|
353
|
+
async getAccountPositionsHistory(accountAddress, limit, interval, options) {
|
|
354
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPositionsHistory(accountAddress, limit, interval, options);
|
|
355
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
356
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountPositionsHistory"]?.[localVarOperationServerIndex]?.url;
|
|
357
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
358
|
+
},
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @summary Get the positions value of the account
|
|
362
|
+
* @param {string} accountAddress The address of the account
|
|
363
|
+
* @param {string} [vaultId] The id of the vault
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
async getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
368
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPositionsValue(accountAddress, vaultId, options);
|
|
369
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
370
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountPositionsValue"]?.[localVarOperationServerIndex]?.url;
|
|
371
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
372
|
+
},
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
* @summary Get withdrawal requests of the account
|
|
376
|
+
* @param {string} accountAddress The address of the account
|
|
377
|
+
* @param {number} startTimeInMs The start time of the events
|
|
378
|
+
* @param {string} [chain] Chain identifier
|
|
379
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
380
|
+
* @param {number} [limit] The limit of the events
|
|
381
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
382
|
+
* @param {string} [vaultId] The id of the vault
|
|
383
|
+
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
*/
|
|
387
|
+
async getAccountWithdrawalRequests(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options) {
|
|
388
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountWithdrawalRequests(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options);
|
|
389
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
390
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountWithdrawalRequests"]?.[localVarOperationServerIndex]?.url;
|
|
391
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
392
|
+
},
|
|
393
|
+
/**
|
|
394
|
+
*
|
|
395
|
+
* @summary Get the yield value of the account
|
|
396
|
+
* @param {string} accountAddress The address of the account
|
|
397
|
+
* @param {string} [chain] Chain identifier
|
|
398
|
+
* @param {*} [options] Override http request option.
|
|
399
|
+
* @throws {RequiredError}
|
|
400
|
+
*/
|
|
401
|
+
async getAccountYieldValue(accountAddress, chain, options) {
|
|
402
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountYieldValue(accountAddress, chain, options);
|
|
403
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
404
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountYieldValue"]?.[localVarOperationServerIndex]?.url;
|
|
405
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
406
|
+
},
|
|
407
|
+
/**
|
|
408
|
+
*
|
|
409
|
+
* @summary Get the positions history of the account for a given vault
|
|
410
|
+
* @param {string} vaultId The id of the vault
|
|
411
|
+
* @param {string} accountAddress The address of the account
|
|
412
|
+
* @param {number} [limit] The limit of the rows
|
|
413
|
+
* @param {PositionHistoryInterval} [interval] The interval of the rows
|
|
414
|
+
* @param {*} [options] Override http request option.
|
|
415
|
+
* @throws {RequiredError}
|
|
416
|
+
*/
|
|
417
|
+
async getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
|
|
418
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options);
|
|
419
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
420
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getVaultAccountPositionsHistory"]?.[localVarOperationServerIndex]?.url;
|
|
421
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
exports.AccountsApiFp = AccountsApiFp;
|
|
426
|
+
/**
|
|
427
|
+
* AccountsApi - factory interface
|
|
428
|
+
* @export
|
|
429
|
+
*/
|
|
430
|
+
const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
431
|
+
const localVarFp = (0, exports.AccountsApiFp)(configuration);
|
|
432
|
+
return {
|
|
433
|
+
/**
|
|
434
|
+
*
|
|
435
|
+
* @summary Get history of the account
|
|
436
|
+
* @param {string} accountAddress The address of the account
|
|
437
|
+
* @param {number} startTimeInMs The start time of the events
|
|
438
|
+
* @param {string} [chain] Chain identifier
|
|
439
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
440
|
+
* @param {number} [limit] The limit of the events
|
|
441
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
442
|
+
* @param {string} [vaultId] The id of the vault
|
|
443
|
+
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
444
|
+
* @param {*} [options] Override http request option.
|
|
445
|
+
* @throws {RequiredError}
|
|
446
|
+
*/
|
|
447
|
+
getAccountHistory(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options) {
|
|
448
|
+
return localVarFp
|
|
449
|
+
.getAccountHistory(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options)
|
|
450
|
+
.then(request => request(axios, basePath));
|
|
451
|
+
},
|
|
452
|
+
/**
|
|
453
|
+
*
|
|
454
|
+
* @summary Get the positions history of the account
|
|
455
|
+
* @param {string} accountAddress The address of the account
|
|
456
|
+
* @param {number} [limit] The limit of the rows
|
|
457
|
+
* @param {PositionHistoryInterval} [interval] The interval of the rows
|
|
458
|
+
* @param {*} [options] Override http request option.
|
|
459
|
+
* @throws {RequiredError}
|
|
460
|
+
*/
|
|
461
|
+
getAccountPositionsHistory(accountAddress, limit, interval, options) {
|
|
462
|
+
return localVarFp
|
|
463
|
+
.getAccountPositionsHistory(accountAddress, limit, interval, options)
|
|
464
|
+
.then(request => request(axios, basePath));
|
|
465
|
+
},
|
|
466
|
+
/**
|
|
467
|
+
*
|
|
468
|
+
* @summary Get the positions value of the account
|
|
469
|
+
* @param {string} accountAddress The address of the account
|
|
470
|
+
* @param {string} [vaultId] The id of the vault
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
475
|
+
return localVarFp
|
|
476
|
+
.getAccountPositionsValue(accountAddress, vaultId, options)
|
|
477
|
+
.then(request => request(axios, basePath));
|
|
478
|
+
},
|
|
479
|
+
/**
|
|
480
|
+
*
|
|
481
|
+
* @summary Get withdrawal requests of the account
|
|
482
|
+
* @param {string} accountAddress The address of the account
|
|
483
|
+
* @param {number} startTimeInMs The start time of the events
|
|
484
|
+
* @param {string} [chain] Chain identifier
|
|
485
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
486
|
+
* @param {number} [limit] The limit of the events
|
|
487
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
488
|
+
* @param {string} [vaultId] The id of the vault
|
|
489
|
+
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
490
|
+
* @param {*} [options] Override http request option.
|
|
491
|
+
* @throws {RequiredError}
|
|
492
|
+
*/
|
|
493
|
+
getAccountWithdrawalRequests(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options) {
|
|
494
|
+
return localVarFp
|
|
495
|
+
.getAccountWithdrawalRequests(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options)
|
|
496
|
+
.then(request => request(axios, basePath));
|
|
497
|
+
},
|
|
498
|
+
/**
|
|
499
|
+
*
|
|
500
|
+
* @summary Get the yield value of the account
|
|
501
|
+
* @param {string} accountAddress The address of the account
|
|
502
|
+
* @param {string} [chain] Chain identifier
|
|
503
|
+
* @param {*} [options] Override http request option.
|
|
504
|
+
* @throws {RequiredError}
|
|
505
|
+
*/
|
|
506
|
+
getAccountYieldValue(accountAddress, chain, options) {
|
|
507
|
+
return localVarFp
|
|
508
|
+
.getAccountYieldValue(accountAddress, chain, options)
|
|
509
|
+
.then(request => request(axios, basePath));
|
|
510
|
+
},
|
|
511
|
+
/**
|
|
512
|
+
*
|
|
513
|
+
* @summary Get the positions history of the account for a given vault
|
|
514
|
+
* @param {string} vaultId The id of the vault
|
|
515
|
+
* @param {string} accountAddress The address of the account
|
|
516
|
+
* @param {number} [limit] The limit of the rows
|
|
517
|
+
* @param {PositionHistoryInterval} [interval] The interval of the rows
|
|
518
|
+
* @param {*} [options] Override http request option.
|
|
519
|
+
* @throws {RequiredError}
|
|
520
|
+
*/
|
|
521
|
+
getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
|
|
522
|
+
return localVarFp
|
|
523
|
+
.getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options)
|
|
524
|
+
.then(request => request(axios, basePath));
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
exports.AccountsApiFactory = AccountsApiFactory;
|
|
529
|
+
/**
|
|
530
|
+
* AccountsApi - object-oriented interface
|
|
531
|
+
* @export
|
|
532
|
+
* @class AccountsApi
|
|
533
|
+
* @extends {BaseAPI}
|
|
534
|
+
*/
|
|
535
|
+
class AccountsApi extends base_1.BaseAPI {
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
* @summary Get history of the account
|
|
539
|
+
* @param {string} accountAddress The address of the account
|
|
540
|
+
* @param {number} startTimeInMs The start time of the events
|
|
541
|
+
* @param {string} [chain] Chain identifier
|
|
542
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
543
|
+
* @param {number} [limit] The limit of the events
|
|
544
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
545
|
+
* @param {string} [vaultId] The id of the vault
|
|
546
|
+
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
547
|
+
* @param {*} [options] Override http request option.
|
|
548
|
+
* @throws {RequiredError}
|
|
549
|
+
* @memberof AccountsApi
|
|
550
|
+
*/
|
|
551
|
+
getAccountHistory(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options) {
|
|
552
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
553
|
+
.getAccountHistory(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options)
|
|
554
|
+
.then(request => request(this.axios, this.basePath));
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
*
|
|
558
|
+
* @summary Get the positions history of the account
|
|
559
|
+
* @param {string} accountAddress The address of the account
|
|
560
|
+
* @param {number} [limit] The limit of the rows
|
|
561
|
+
* @param {PositionHistoryInterval} [interval] The interval of the rows
|
|
562
|
+
* @param {*} [options] Override http request option.
|
|
563
|
+
* @throws {RequiredError}
|
|
564
|
+
* @memberof AccountsApi
|
|
565
|
+
*/
|
|
566
|
+
getAccountPositionsHistory(accountAddress, limit, interval, options) {
|
|
567
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
568
|
+
.getAccountPositionsHistory(accountAddress, limit, interval, options)
|
|
569
|
+
.then(request => request(this.axios, this.basePath));
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
*
|
|
573
|
+
* @summary Get the positions value of the account
|
|
574
|
+
* @param {string} accountAddress The address of the account
|
|
575
|
+
* @param {string} [vaultId] The id of the vault
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
* @memberof AccountsApi
|
|
579
|
+
*/
|
|
580
|
+
getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
581
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
582
|
+
.getAccountPositionsValue(accountAddress, vaultId, options)
|
|
583
|
+
.then(request => request(this.axios, this.basePath));
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
*
|
|
587
|
+
* @summary Get withdrawal requests of the account
|
|
588
|
+
* @param {string} accountAddress The address of the account
|
|
589
|
+
* @param {number} startTimeInMs The start time of the events
|
|
590
|
+
* @param {string} [chain] Chain identifier
|
|
591
|
+
* @param {number} [endTimeInMs] The end time of the events
|
|
592
|
+
* @param {number} [limit] The limit of the events
|
|
593
|
+
* @param {number} [page] Use when provided time range and limit exceed max page size
|
|
594
|
+
* @param {string} [vaultId] The id of the vault
|
|
595
|
+
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
* @memberof AccountsApi
|
|
599
|
+
*/
|
|
600
|
+
getAccountWithdrawalRequests(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options) {
|
|
601
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
602
|
+
.getAccountWithdrawalRequests(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options)
|
|
603
|
+
.then(request => request(this.axios, this.basePath));
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @summary Get the yield value of the account
|
|
608
|
+
* @param {string} accountAddress The address of the account
|
|
609
|
+
* @param {string} [chain] Chain identifier
|
|
610
|
+
* @param {*} [options] Override http request option.
|
|
611
|
+
* @throws {RequiredError}
|
|
612
|
+
* @memberof AccountsApi
|
|
613
|
+
*/
|
|
614
|
+
getAccountYieldValue(accountAddress, chain, options) {
|
|
615
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
616
|
+
.getAccountYieldValue(accountAddress, chain, options)
|
|
617
|
+
.then(request => request(this.axios, this.basePath));
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
*
|
|
621
|
+
* @summary Get the positions history of the account for a given vault
|
|
622
|
+
* @param {string} vaultId The id of the vault
|
|
623
|
+
* @param {string} accountAddress The address of the account
|
|
624
|
+
* @param {number} [limit] The limit of the rows
|
|
625
|
+
* @param {PositionHistoryInterval} [interval] The interval of the rows
|
|
626
|
+
* @param {*} [options] Override http request option.
|
|
627
|
+
* @throws {RequiredError}
|
|
628
|
+
* @memberof AccountsApi
|
|
629
|
+
*/
|
|
630
|
+
getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
|
|
631
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
632
|
+
.getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options)
|
|
633
|
+
.then(request => request(this.axios, this.basePath));
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
exports.AccountsApi = AccountsApi;
|
|
637
|
+
/**
|
|
638
|
+
* @export
|
|
639
|
+
*/
|
|
640
|
+
exports.GetAccountHistoryTypeEnum = {
|
|
641
|
+
Deposit: "Deposit",
|
|
642
|
+
RedeemRequest: "RedeemRequest",
|
|
643
|
+
RedeemRequestProcessed: "RedeemRequestProcessed",
|
|
644
|
+
RedeemRequestSkipped: "RedeemRequestSkipped",
|
|
645
|
+
RedeemRequestCancelled: "RedeemRequestCancelled"
|
|
646
|
+
};
|
|
647
|
+
/**
|
|
648
|
+
* @export
|
|
649
|
+
*/
|
|
650
|
+
exports.GetAccountWithdrawalRequestsStatusEnum = {
|
|
651
|
+
Pending: "Pending",
|
|
652
|
+
PendingCancelling: "PendingCancelling",
|
|
653
|
+
Cancelled: "Cancelled",
|
|
654
|
+
Skipped: "Skipped",
|
|
655
|
+
Processed: "Processed"
|
|
656
|
+
};
|