@ember-finance/sdk 1.0.7 → 1.0.9
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/apis/accounts-api.d.ts +73 -3
- package/dist/src/vaults/api/apis/accounts-api.js +145 -0
- package/dist/src/vaults/api/apis/vaults-api.d.ts +100 -25
- package/dist/src/vaults/api/apis/vaults-api.js +161 -8
- package/dist/src/vaults/api/models/apy-history.d.ts +29 -0
- package/dist/src/vaults/api/models/apy-history.js +15 -0
- package/dist/src/vaults/api/models/borrowed.d.ts +27 -0
- package/dist/src/vaults/api/models/borrowed.js +15 -0
- package/dist/src/vaults/api/models/coin-price.d.ts +21 -0
- package/dist/src/vaults/api/models/coin-price.js +15 -0
- package/dist/src/vaults/api/models/exposure-protocol.d.ts +23 -1
- package/dist/src/vaults/api/models/fee.d.ts +23 -0
- package/dist/src/vaults/api/models/fee.js +15 -0
- package/dist/src/vaults/api/models/index.d.ts +17 -0
- package/dist/src/vaults/api/models/index.js +17 -0
- package/dist/src/vaults/api/models/lp.d.ts +50 -0
- package/dist/src/vaults/api/models/lp.js +15 -0
- package/dist/src/vaults/api/models/perps.d.ts +22 -0
- package/dist/src/vaults/api/models/perps.js +15 -0
- package/dist/src/vaults/api/models/pnl-history-interval.d.ts +17 -0
- package/dist/src/vaults/api/models/pnl-history-interval.js +21 -0
- package/dist/src/vaults/api/models/pnl-history.d.ts +4 -0
- package/dist/src/vaults/api/models/position-value.d.ts +37 -0
- package/dist/src/vaults/api/models/position-value.js +15 -0
- package/dist/src/vaults/api/models/position.d.ts +29 -0
- package/dist/src/vaults/api/models/position.js +15 -0
- package/dist/src/vaults/api/models/process-requests-summary-event.d.ts +53 -0
- package/dist/src/vaults/api/models/process-requests-summary-event.js +15 -0
- package/dist/src/vaults/api/models/protocol-fee-collected-event.d.ts +41 -0
- package/dist/src/vaults/api/models/protocol-fee-collected-event.js +15 -0
- package/dist/src/vaults/api/models/protocol.d.ts +0 -9
- package/dist/src/vaults/api/models/protocol.js +0 -8
- package/dist/src/vaults/api/models/raw-event-event-data.d.ts +6 -1
- package/dist/src/vaults/api/models/raw-event.d.ts +5 -0
- package/dist/src/vaults/api/models/raw-event.js +6 -1
- package/dist/src/vaults/api/models/reward.d.ts +23 -0
- package/dist/src/vaults/api/models/reward.js +15 -0
- package/dist/src/vaults/api/models/supplied.d.ts +27 -0
- package/dist/src/vaults/api/models/supplied.js +15 -0
- package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.d.ts +41 -0
- package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.js +15 -0
- package/dist/src/vaults/api/models/vault-platform-fee-charged-event.d.ts +33 -0
- package/dist/src/vaults/api/models/vault-platform-fee-charged-event.js +15 -0
- package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.d.ts +41 -0
- package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.js +15 -0
- package/dist/src/vaults/api/models/yield-aggregate-value.d.ts +29 -0
- package/dist/src/vaults/api/models/yield-aggregate-value.js +15 -0
- package/dist/src/vaults/on-chain-calls/operator.d.ts +11 -0
- package/dist/src/vaults/on-chain-calls/operator.js +16 -0
- package/dist/src/vaults/on-chain-calls/tx-builder.d.ts +17 -0
- package/dist/src/vaults/on-chain-calls/tx-builder.js +64 -0
- package/dist/src/vaults/on-chain-calls/user.d.ts +9 -0
- package/dist/src/vaults/on-chain-calls/user.js +16 -0
- package/package.json +2 -1
|
@@ -16,6 +16,8 @@ import { type RequestArgs, BaseAPI } from "../base";
|
|
|
16
16
|
import type { AccountTransaction } from "../models";
|
|
17
17
|
import type { AccountWithdrawalRequest } from "../models";
|
|
18
18
|
import type { Exposure } from "../models";
|
|
19
|
+
import type { PositionValue } from "../models";
|
|
20
|
+
import type { YieldAggregateValue } from "../models";
|
|
19
21
|
/**
|
|
20
22
|
* AccountsApi - axios parameter creator
|
|
21
23
|
*/
|
|
@@ -42,6 +44,15 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
42
44
|
* @throws {RequiredError}
|
|
43
45
|
*/
|
|
44
46
|
getAccountHistory: (accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @summary Get the positions value of the account
|
|
50
|
+
* @param {string} accountAddress The address of the account
|
|
51
|
+
* @param {string} [vaultId] The id of the vault
|
|
52
|
+
* @param {*} [options] Override http request option.
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
*/
|
|
55
|
+
getAccountPositionsValue: (accountAddress: string, vaultId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
56
|
/**
|
|
46
57
|
*
|
|
47
58
|
* @summary Get withdrawal requests of the account
|
|
@@ -56,6 +67,14 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
56
67
|
* @throws {RequiredError}
|
|
57
68
|
*/
|
|
58
69
|
getAccountWithdrawalRequests: (accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountWithdrawalRequestsStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @summary Get the yield value of the account
|
|
73
|
+
* @param {string} accountAddress The address of the account
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
getAccountYieldValue: (accountAddress: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
59
78
|
};
|
|
60
79
|
/**
|
|
61
80
|
* AccountsApi - functional programming interface
|
|
@@ -83,6 +102,15 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
83
102
|
* @throws {RequiredError}
|
|
84
103
|
*/
|
|
85
104
|
getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountTransaction>>>;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @summary Get the positions value of the account
|
|
108
|
+
* @param {string} accountAddress The address of the account
|
|
109
|
+
* @param {string} [vaultId] The id of the vault
|
|
110
|
+
* @param {*} [options] Override http request option.
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
*/
|
|
113
|
+
getAccountPositionsValue(accountAddress: string, vaultId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PositionValue>>>;
|
|
86
114
|
/**
|
|
87
115
|
*
|
|
88
116
|
* @summary Get withdrawal requests of the account
|
|
@@ -97,6 +125,14 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
97
125
|
* @throws {RequiredError}
|
|
98
126
|
*/
|
|
99
127
|
getAccountWithdrawalRequests(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountWithdrawalRequestsStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountWithdrawalRequest>>>;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @summary Get the yield value of the account
|
|
131
|
+
* @param {string} accountAddress The address of the account
|
|
132
|
+
* @param {*} [options] Override http request option.
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
*/
|
|
135
|
+
getAccountYieldValue(accountAddress: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<YieldAggregateValue>>;
|
|
100
136
|
};
|
|
101
137
|
/**
|
|
102
138
|
* AccountsApi - factory interface
|
|
@@ -124,6 +160,15 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
124
160
|
* @throws {RequiredError}
|
|
125
161
|
*/
|
|
126
162
|
getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountTransaction>>;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @summary Get the positions value of the account
|
|
166
|
+
* @param {string} accountAddress The address of the account
|
|
167
|
+
* @param {string} [vaultId] The id of the vault
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
getAccountPositionsValue(accountAddress: string, vaultId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PositionValue>>;
|
|
127
172
|
/**
|
|
128
173
|
*
|
|
129
174
|
* @summary Get withdrawal requests of the account
|
|
@@ -138,6 +183,14 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
138
183
|
* @throws {RequiredError}
|
|
139
184
|
*/
|
|
140
185
|
getAccountWithdrawalRequests(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountWithdrawalRequestsStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountWithdrawalRequest>>;
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
* @summary Get the yield value of the account
|
|
189
|
+
* @param {string} accountAddress The address of the account
|
|
190
|
+
* @param {*} [options] Override http request option.
|
|
191
|
+
* @throws {RequiredError}
|
|
192
|
+
*/
|
|
193
|
+
getAccountYieldValue(accountAddress: string, options?: RawAxiosRequestConfig): AxiosPromise<YieldAggregateValue>;
|
|
141
194
|
};
|
|
142
195
|
/**
|
|
143
196
|
* AccountsApi - object-oriented interface
|
|
@@ -150,7 +203,7 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
150
203
|
* @param {*} [options] Override http request option.
|
|
151
204
|
* @throws {RequiredError}
|
|
152
205
|
*/
|
|
153
|
-
getAccountExposure(accountAddress: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Exposure, any>>;
|
|
206
|
+
getAccountExposure(accountAddress: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Exposure, any, {}>>;
|
|
154
207
|
/**
|
|
155
208
|
*
|
|
156
209
|
* @summary Get history of the account
|
|
@@ -164,7 +217,16 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
164
217
|
* @param {*} [options] Override http request option.
|
|
165
218
|
* @throws {RequiredError}
|
|
166
219
|
*/
|
|
167
|
-
getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AccountTransaction[], any>>;
|
|
220
|
+
getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AccountTransaction[], any, {}>>;
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
* @summary Get the positions value of the account
|
|
224
|
+
* @param {string} accountAddress The address of the account
|
|
225
|
+
* @param {string} [vaultId] The id of the vault
|
|
226
|
+
* @param {*} [options] Override http request option.
|
|
227
|
+
* @throws {RequiredError}
|
|
228
|
+
*/
|
|
229
|
+
getAccountPositionsValue(accountAddress: string, vaultId?: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<PositionValue[], any, {}>>;
|
|
168
230
|
/**
|
|
169
231
|
*
|
|
170
232
|
* @summary Get withdrawal requests of the account
|
|
@@ -178,7 +240,15 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
178
240
|
* @param {*} [options] Override http request option.
|
|
179
241
|
* @throws {RequiredError}
|
|
180
242
|
*/
|
|
181
|
-
getAccountWithdrawalRequests(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountWithdrawalRequestsStatusEnum, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AccountWithdrawalRequest[], any>>;
|
|
243
|
+
getAccountWithdrawalRequests(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, status?: GetAccountWithdrawalRequestsStatusEnum, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AccountWithdrawalRequest[], any, {}>>;
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @summary Get the yield value of the account
|
|
247
|
+
* @param {string} accountAddress The address of the account
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
getAccountYieldValue(accountAddress: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<YieldAggregateValue, any, {}>>;
|
|
182
252
|
}
|
|
183
253
|
export declare const GetAccountHistoryTypeEnum: {
|
|
184
254
|
readonly Deposit: "Deposit";
|
|
@@ -118,6 +118,42 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
118
118
|
options: localVarRequestOptions
|
|
119
119
|
};
|
|
120
120
|
},
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @summary Get the positions value of the account
|
|
124
|
+
* @param {string} accountAddress The address of the account
|
|
125
|
+
* @param {string} [vaultId] The id of the vault
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
getAccountPositionsValue: async (accountAddress, vaultId, options = {}) => {
|
|
130
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
131
|
+
(0, common_1.assertParamExists)("getAccountPositionsValue", "accountAddress", accountAddress);
|
|
132
|
+
const localVarPath = `/api/v1/vaults/positions/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
133
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
134
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
135
|
+
let baseOptions;
|
|
136
|
+
if (configuration) {
|
|
137
|
+
baseOptions = configuration.baseOptions;
|
|
138
|
+
}
|
|
139
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
140
|
+
const localVarHeaderParameter = {};
|
|
141
|
+
const localVarQueryParameter = {};
|
|
142
|
+
if (vaultId !== undefined) {
|
|
143
|
+
localVarQueryParameter["vaultId"] = vaultId;
|
|
144
|
+
}
|
|
145
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
146
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147
|
+
localVarRequestOptions.headers = {
|
|
148
|
+
...localVarHeaderParameter,
|
|
149
|
+
...headersFromBaseOptions,
|
|
150
|
+
...options.headers
|
|
151
|
+
};
|
|
152
|
+
return {
|
|
153
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
154
|
+
options: localVarRequestOptions
|
|
155
|
+
};
|
|
156
|
+
},
|
|
121
157
|
/**
|
|
122
158
|
*
|
|
123
159
|
* @summary Get withdrawal requests of the account
|
|
@@ -175,6 +211,38 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
175
211
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
176
212
|
options: localVarRequestOptions
|
|
177
213
|
};
|
|
214
|
+
},
|
|
215
|
+
/**
|
|
216
|
+
*
|
|
217
|
+
* @summary Get the yield value of the account
|
|
218
|
+
* @param {string} accountAddress The address of the account
|
|
219
|
+
* @param {*} [options] Override http request option.
|
|
220
|
+
* @throws {RequiredError}
|
|
221
|
+
*/
|
|
222
|
+
getAccountYieldValue: async (accountAddress, options = {}) => {
|
|
223
|
+
// verify required parameter 'accountAddress' is not null or undefined
|
|
224
|
+
(0, common_1.assertParamExists)("getAccountYieldValue", "accountAddress", accountAddress);
|
|
225
|
+
const localVarPath = `/api/v1/vaults/yield/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
226
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
227
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
228
|
+
let baseOptions;
|
|
229
|
+
if (configuration) {
|
|
230
|
+
baseOptions = configuration.baseOptions;
|
|
231
|
+
}
|
|
232
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
233
|
+
const localVarHeaderParameter = {};
|
|
234
|
+
const localVarQueryParameter = {};
|
|
235
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
236
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
237
|
+
localVarRequestOptions.headers = {
|
|
238
|
+
...localVarHeaderParameter,
|
|
239
|
+
...headersFromBaseOptions,
|
|
240
|
+
...options.headers
|
|
241
|
+
};
|
|
242
|
+
return {
|
|
243
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
244
|
+
options: localVarRequestOptions
|
|
245
|
+
};
|
|
178
246
|
}
|
|
179
247
|
};
|
|
180
248
|
};
|
|
@@ -217,6 +285,20 @@ const AccountsApiFp = function (configuration) {
|
|
|
217
285
|
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountHistory"]?.[localVarOperationServerIndex]?.url;
|
|
218
286
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
219
287
|
},
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @summary Get the positions value of the account
|
|
291
|
+
* @param {string} accountAddress The address of the account
|
|
292
|
+
* @param {string} [vaultId] The id of the vault
|
|
293
|
+
* @param {*} [options] Override http request option.
|
|
294
|
+
* @throws {RequiredError}
|
|
295
|
+
*/
|
|
296
|
+
async getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
297
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPositionsValue(accountAddress, vaultId, options);
|
|
298
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
299
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountPositionsValue"]?.[localVarOperationServerIndex]?.url;
|
|
300
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
301
|
+
},
|
|
220
302
|
/**
|
|
221
303
|
*
|
|
222
304
|
* @summary Get withdrawal requests of the account
|
|
@@ -235,6 +317,19 @@ const AccountsApiFp = function (configuration) {
|
|
|
235
317
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
236
318
|
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountWithdrawalRequests"]?.[localVarOperationServerIndex]?.url;
|
|
237
319
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
320
|
+
},
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @summary Get the yield value of the account
|
|
324
|
+
* @param {string} accountAddress The address of the account
|
|
325
|
+
* @param {*} [options] Override http request option.
|
|
326
|
+
* @throws {RequiredError}
|
|
327
|
+
*/
|
|
328
|
+
async getAccountYieldValue(accountAddress, options) {
|
|
329
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountYieldValue(accountAddress, options);
|
|
330
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
331
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountYieldValue"]?.[localVarOperationServerIndex]?.url;
|
|
332
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
238
333
|
}
|
|
239
334
|
};
|
|
240
335
|
};
|
|
@@ -275,6 +370,19 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
275
370
|
.getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options)
|
|
276
371
|
.then(request => request(axios, basePath));
|
|
277
372
|
},
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
* @summary Get the positions value of the account
|
|
376
|
+
* @param {string} accountAddress The address of the account
|
|
377
|
+
* @param {string} [vaultId] The id of the vault
|
|
378
|
+
* @param {*} [options] Override http request option.
|
|
379
|
+
* @throws {RequiredError}
|
|
380
|
+
*/
|
|
381
|
+
getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
382
|
+
return localVarFp
|
|
383
|
+
.getAccountPositionsValue(accountAddress, vaultId, options)
|
|
384
|
+
.then(request => request(axios, basePath));
|
|
385
|
+
},
|
|
278
386
|
/**
|
|
279
387
|
*
|
|
280
388
|
* @summary Get withdrawal requests of the account
|
|
@@ -292,6 +400,18 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
292
400
|
return localVarFp
|
|
293
401
|
.getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options)
|
|
294
402
|
.then(request => request(axios, basePath));
|
|
403
|
+
},
|
|
404
|
+
/**
|
|
405
|
+
*
|
|
406
|
+
* @summary Get the yield value of the account
|
|
407
|
+
* @param {string} accountAddress The address of the account
|
|
408
|
+
* @param {*} [options] Override http request option.
|
|
409
|
+
* @throws {RequiredError}
|
|
410
|
+
*/
|
|
411
|
+
getAccountYieldValue(accountAddress, options) {
|
|
412
|
+
return localVarFp
|
|
413
|
+
.getAccountYieldValue(accountAddress, options)
|
|
414
|
+
.then(request => request(axios, basePath));
|
|
295
415
|
}
|
|
296
416
|
};
|
|
297
417
|
};
|
|
@@ -330,6 +450,19 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
330
450
|
.getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options)
|
|
331
451
|
.then(request => request(this.axios, this.basePath));
|
|
332
452
|
}
|
|
453
|
+
/**
|
|
454
|
+
*
|
|
455
|
+
* @summary Get the positions value of the account
|
|
456
|
+
* @param {string} accountAddress The address of the account
|
|
457
|
+
* @param {string} [vaultId] The id of the vault
|
|
458
|
+
* @param {*} [options] Override http request option.
|
|
459
|
+
* @throws {RequiredError}
|
|
460
|
+
*/
|
|
461
|
+
getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
462
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
463
|
+
.getAccountPositionsValue(accountAddress, vaultId, options)
|
|
464
|
+
.then(request => request(this.axios, this.basePath));
|
|
465
|
+
}
|
|
333
466
|
/**
|
|
334
467
|
*
|
|
335
468
|
* @summary Get withdrawal requests of the account
|
|
@@ -348,6 +481,18 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
348
481
|
.getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options)
|
|
349
482
|
.then(request => request(this.axios, this.basePath));
|
|
350
483
|
}
|
|
484
|
+
/**
|
|
485
|
+
*
|
|
486
|
+
* @summary Get the yield value of the account
|
|
487
|
+
* @param {string} accountAddress The address of the account
|
|
488
|
+
* @param {*} [options] Override http request option.
|
|
489
|
+
* @throws {RequiredError}
|
|
490
|
+
*/
|
|
491
|
+
getAccountYieldValue(accountAddress, options) {
|
|
492
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
493
|
+
.getAccountYieldValue(accountAddress, options)
|
|
494
|
+
.then(request => request(this.axios, this.basePath));
|
|
495
|
+
}
|
|
351
496
|
}
|
|
352
497
|
exports.AccountsApi = AccountsApi;
|
|
353
498
|
exports.GetAccountHistoryTypeEnum = {
|
|
@@ -13,9 +13,12 @@ import type { Configuration } from "../configuration";
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from "axios";
|
|
14
14
|
import globalAxios from "axios";
|
|
15
15
|
import { type RequestArgs, BaseAPI } from "../base";
|
|
16
|
+
import type { ApyHistory } from "../models";
|
|
17
|
+
import type { CoinPrice } from "../models";
|
|
16
18
|
import type { Exposure } from "../models";
|
|
17
19
|
import type { HistoryInterval } from "../models";
|
|
18
20
|
import type { PnlHistory } from "../models";
|
|
21
|
+
import type { PnlHistoryInterval } from "../models";
|
|
19
22
|
import type { ProtocolInfo } from "../models";
|
|
20
23
|
import type { RawEvent } from "../models";
|
|
21
24
|
import type { SharePriceHistory } from "../models";
|
|
@@ -27,15 +30,23 @@ import type { VaultDetail } from "../models";
|
|
|
27
30
|
* VaultsApi - axios parameter creator
|
|
28
31
|
*/
|
|
29
32
|
export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @summary Get the price of the coins
|
|
36
|
+
* @param {string} [coinTypes] The coin types of the coins
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
getCoinsPrice: (coinTypes?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
41
|
/**
|
|
31
42
|
*
|
|
32
43
|
* @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
33
44
|
* @param {number} [limit] The limit of the rows
|
|
34
|
-
* @param {
|
|
45
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
35
46
|
* @param {*} [options] Override http request option.
|
|
36
47
|
* @throws {RequiredError}
|
|
37
48
|
*/
|
|
38
|
-
getProtocolPnlHistory: (limit?: number, interval?:
|
|
49
|
+
getProtocolPnlHistory: (limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
50
|
/**
|
|
40
51
|
*
|
|
41
52
|
* @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -56,6 +67,16 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
56
67
|
* @throws {RequiredError}
|
|
57
68
|
*/
|
|
58
69
|
getRawEvents: (startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
73
|
+
* @param {string} vaultId The id of the vault
|
|
74
|
+
* @param {number} [limit] The limit of the rows
|
|
75
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
getVaultApyHistory: (vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
59
80
|
/**
|
|
60
81
|
*
|
|
61
82
|
* @summary Get the exposure of the vault
|
|
@@ -69,11 +90,11 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
69
90
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
70
91
|
* @param {string} vaultId The id of the vault
|
|
71
92
|
* @param {number} [limit] The limit of the rows
|
|
72
|
-
* @param {
|
|
93
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
73
94
|
* @param {*} [options] Override http request option.
|
|
74
95
|
* @throws {RequiredError}
|
|
75
96
|
*/
|
|
76
|
-
getVaultPnlHistory: (vaultId: string, limit?: number, interval?:
|
|
97
|
+
getVaultPnlHistory: (vaultId: string, limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
77
98
|
/**
|
|
78
99
|
*
|
|
79
100
|
* @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -131,15 +152,23 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
131
152
|
* VaultsApi - functional programming interface
|
|
132
153
|
*/
|
|
133
154
|
export declare const VaultsApiFp: (configuration?: Configuration) => {
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @summary Get the price of the coins
|
|
158
|
+
* @param {string} [coinTypes] The coin types of the coins
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
getCoinsPrice(coinTypes?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CoinPrice>>>;
|
|
134
163
|
/**
|
|
135
164
|
*
|
|
136
165
|
* @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
137
166
|
* @param {number} [limit] The limit of the rows
|
|
138
|
-
* @param {
|
|
167
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
139
168
|
* @param {*} [options] Override http request option.
|
|
140
169
|
* @throws {RequiredError}
|
|
141
170
|
*/
|
|
142
|
-
getProtocolPnlHistory(limit?: number, interval?:
|
|
171
|
+
getProtocolPnlHistory(limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PnlHistory>>>;
|
|
143
172
|
/**
|
|
144
173
|
*
|
|
145
174
|
* @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -160,6 +189,16 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
|
|
|
160
189
|
* @throws {RequiredError}
|
|
161
190
|
*/
|
|
162
191
|
getRawEvents(startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RawEvent>>>;
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
195
|
+
* @param {string} vaultId The id of the vault
|
|
196
|
+
* @param {number} [limit] The limit of the rows
|
|
197
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
getVaultApyHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApyHistory>>>;
|
|
163
202
|
/**
|
|
164
203
|
*
|
|
165
204
|
* @summary Get the exposure of the vault
|
|
@@ -173,11 +212,11 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
|
|
|
173
212
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
174
213
|
* @param {string} vaultId The id of the vault
|
|
175
214
|
* @param {number} [limit] The limit of the rows
|
|
176
|
-
* @param {
|
|
215
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
177
216
|
* @param {*} [options] Override http request option.
|
|
178
217
|
* @throws {RequiredError}
|
|
179
218
|
*/
|
|
180
|
-
getVaultPnlHistory(vaultId: string, limit?: number, interval?:
|
|
219
|
+
getVaultPnlHistory(vaultId: string, limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PnlHistory>>>;
|
|
181
220
|
/**
|
|
182
221
|
*
|
|
183
222
|
* @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -235,15 +274,23 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
|
|
|
235
274
|
* VaultsApi - factory interface
|
|
236
275
|
*/
|
|
237
276
|
export declare const VaultsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @summary Get the price of the coins
|
|
280
|
+
* @param {string} [coinTypes] The coin types of the coins
|
|
281
|
+
* @param {*} [options] Override http request option.
|
|
282
|
+
* @throws {RequiredError}
|
|
283
|
+
*/
|
|
284
|
+
getCoinsPrice(coinTypes?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CoinPrice>>;
|
|
238
285
|
/**
|
|
239
286
|
*
|
|
240
287
|
* @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
241
288
|
* @param {number} [limit] The limit of the rows
|
|
242
|
-
* @param {
|
|
289
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
243
290
|
* @param {*} [options] Override http request option.
|
|
244
291
|
* @throws {RequiredError}
|
|
245
292
|
*/
|
|
246
|
-
getProtocolPnlHistory(limit?: number, interval?:
|
|
293
|
+
getProtocolPnlHistory(limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<PnlHistory>>;
|
|
247
294
|
/**
|
|
248
295
|
*
|
|
249
296
|
* @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -264,6 +311,16 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
|
|
|
264
311
|
* @throws {RequiredError}
|
|
265
312
|
*/
|
|
266
313
|
getRawEvents(startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<RawEvent>>;
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
317
|
+
* @param {string} vaultId The id of the vault
|
|
318
|
+
* @param {number} [limit] The limit of the rows
|
|
319
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
320
|
+
* @param {*} [options] Override http request option.
|
|
321
|
+
* @throws {RequiredError}
|
|
322
|
+
*/
|
|
323
|
+
getVaultApyHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApyHistory>>;
|
|
267
324
|
/**
|
|
268
325
|
*
|
|
269
326
|
* @summary Get the exposure of the vault
|
|
@@ -277,11 +334,11 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
|
|
|
277
334
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
278
335
|
* @param {string} vaultId The id of the vault
|
|
279
336
|
* @param {number} [limit] The limit of the rows
|
|
280
|
-
* @param {
|
|
337
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
281
338
|
* @param {*} [options] Override http request option.
|
|
282
339
|
* @throws {RequiredError}
|
|
283
340
|
*/
|
|
284
|
-
getVaultPnlHistory(vaultId: string, limit?: number, interval?:
|
|
341
|
+
getVaultPnlHistory(vaultId: string, limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<PnlHistory>>;
|
|
285
342
|
/**
|
|
286
343
|
*
|
|
287
344
|
* @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -339,15 +396,23 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
|
|
|
339
396
|
* VaultsApi - object-oriented interface
|
|
340
397
|
*/
|
|
341
398
|
export declare class VaultsApi extends BaseAPI {
|
|
399
|
+
/**
|
|
400
|
+
*
|
|
401
|
+
* @summary Get the price of the coins
|
|
402
|
+
* @param {string} [coinTypes] The coin types of the coins
|
|
403
|
+
* @param {*} [options] Override http request option.
|
|
404
|
+
* @throws {RequiredError}
|
|
405
|
+
*/
|
|
406
|
+
getCoinsPrice(coinTypes?: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CoinPrice[], any, {}>>;
|
|
342
407
|
/**
|
|
343
408
|
*
|
|
344
409
|
* @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
345
410
|
* @param {number} [limit] The limit of the rows
|
|
346
|
-
* @param {
|
|
411
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
347
412
|
* @param {*} [options] Override http request option.
|
|
348
413
|
* @throws {RequiredError}
|
|
349
414
|
*/
|
|
350
|
-
getProtocolPnlHistory(limit?: number, interval?:
|
|
415
|
+
getProtocolPnlHistory(limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<PnlHistory[], any, {}>>;
|
|
351
416
|
/**
|
|
352
417
|
*
|
|
353
418
|
* @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -356,7 +421,7 @@ export declare class VaultsApi extends BaseAPI {
|
|
|
356
421
|
* @param {*} [options] Override http request option.
|
|
357
422
|
* @throws {RequiredError}
|
|
358
423
|
*/
|
|
359
|
-
getProtocolTvlHistory(limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<TvlHistory[], any>>;
|
|
424
|
+
getProtocolTvlHistory(limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<TvlHistory[], any, {}>>;
|
|
360
425
|
/**
|
|
361
426
|
*
|
|
362
427
|
* @summary Get raw events of the protocol
|
|
@@ -367,7 +432,17 @@ export declare class VaultsApi extends BaseAPI {
|
|
|
367
432
|
* @param {*} [options] Override http request option.
|
|
368
433
|
* @throws {RequiredError}
|
|
369
434
|
*/
|
|
370
|
-
getRawEvents(startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<RawEvent[], any>>;
|
|
435
|
+
getRawEvents(startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<RawEvent[], any, {}>>;
|
|
436
|
+
/**
|
|
437
|
+
*
|
|
438
|
+
* @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
439
|
+
* @param {string} vaultId The id of the vault
|
|
440
|
+
* @param {number} [limit] The limit of the rows
|
|
441
|
+
* @param {HistoryInterval} [interval] The interval of the rows
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
getVaultApyHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ApyHistory[], any, {}>>;
|
|
371
446
|
/**
|
|
372
447
|
*
|
|
373
448
|
* @summary Get the exposure of the vault
|
|
@@ -375,17 +450,17 @@ export declare class VaultsApi extends BaseAPI {
|
|
|
375
450
|
* @param {*} [options] Override http request option.
|
|
376
451
|
* @throws {RequiredError}
|
|
377
452
|
*/
|
|
378
|
-
getVaultExposure(vaultId: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Exposure, any>>;
|
|
453
|
+
getVaultExposure(vaultId: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Exposure, any, {}>>;
|
|
379
454
|
/**
|
|
380
455
|
*
|
|
381
456
|
* @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
382
457
|
* @param {string} vaultId The id of the vault
|
|
383
458
|
* @param {number} [limit] The limit of the rows
|
|
384
|
-
* @param {
|
|
459
|
+
* @param {PnlHistoryInterval} [interval] The interval of the rows
|
|
385
460
|
* @param {*} [options] Override http request option.
|
|
386
461
|
* @throws {RequiredError}
|
|
387
462
|
*/
|
|
388
|
-
getVaultPnlHistory(vaultId: string, limit?: number, interval?:
|
|
463
|
+
getVaultPnlHistory(vaultId: string, limit?: number, interval?: PnlHistoryInterval, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<PnlHistory[], any, {}>>;
|
|
389
464
|
/**
|
|
390
465
|
*
|
|
391
466
|
* @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -395,7 +470,7 @@ export declare class VaultsApi extends BaseAPI {
|
|
|
395
470
|
* @param {*} [options] Override http request option.
|
|
396
471
|
* @throws {RequiredError}
|
|
397
472
|
*/
|
|
398
|
-
getVaultSharePriceHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<SharePriceHistory[], any>>;
|
|
473
|
+
getVaultSharePriceHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<SharePriceHistory[], any, {}>>;
|
|
399
474
|
/**
|
|
400
475
|
*
|
|
401
476
|
* @summary Get the strategy of the vault
|
|
@@ -403,7 +478,7 @@ export declare class VaultsApi extends BaseAPI {
|
|
|
403
478
|
* @param {*} [options] Override http request option.
|
|
404
479
|
* @throws {RequiredError}
|
|
405
480
|
*/
|
|
406
|
-
getVaultStrategy(vaultId: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Strategy[], any>>;
|
|
481
|
+
getVaultStrategy(vaultId: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Strategy[], any, {}>>;
|
|
407
482
|
/**
|
|
408
483
|
*
|
|
409
484
|
* @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
|
|
@@ -413,7 +488,7 @@ export declare class VaultsApi extends BaseAPI {
|
|
|
413
488
|
* @param {*} [options] Override http request option.
|
|
414
489
|
* @throws {RequiredError}
|
|
415
490
|
*/
|
|
416
|
-
getVaultTvlHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<TvlHistory[], any>>;
|
|
491
|
+
getVaultTvlHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<TvlHistory[], any, {}>>;
|
|
417
492
|
/**
|
|
418
493
|
*
|
|
419
494
|
* @summary Get details for all vaults or a specific vault
|
|
@@ -422,14 +497,14 @@ export declare class VaultsApi extends BaseAPI {
|
|
|
422
497
|
* @param {*} [options] Override http request option.
|
|
423
498
|
* @throws {RequiredError}
|
|
424
499
|
*/
|
|
425
|
-
getVaults(vaultId?: string, receiptCoinSymbol?: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<VaultDetail[], any>>;
|
|
500
|
+
getVaults(vaultId?: string, receiptCoinSymbol?: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<VaultDetail[], any, {}>>;
|
|
426
501
|
/**
|
|
427
502
|
*
|
|
428
503
|
* @summary Get protocol info to initialize sdk
|
|
429
504
|
* @param {*} [options] Override http request option.
|
|
430
505
|
* @throws {RequiredError}
|
|
431
506
|
*/
|
|
432
|
-
getVaultsProtocolInfo(options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ProtocolInfo, any>>;
|
|
507
|
+
getVaultsProtocolInfo(options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ProtocolInfo, any, {}>>;
|
|
433
508
|
/**
|
|
434
509
|
*
|
|
435
510
|
* @summary Update the strategy of the vault
|
|
@@ -437,5 +512,5 @@ export declare class VaultsApi extends BaseAPI {
|
|
|
437
512
|
* @param {*} [options] Override http request option.
|
|
438
513
|
* @throws {RequiredError}
|
|
439
514
|
*/
|
|
440
|
-
updateVaultStrategy(updateVaultStrategies: UpdateVaultStrategies, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Strategy[], any>>;
|
|
515
|
+
updateVaultStrategy(updateVaultStrategies: UpdateVaultStrategies, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Strategy[], any, {}>>;
|
|
441
516
|
}
|