@ember-finance/sdk 1.0.11 → 1.0.13

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.
@@ -15,6 +15,8 @@ import { type RequestArgs, BaseAPI } from "../base";
15
15
  import type { AccountTransaction } from "../models";
16
16
  import type { AccountWithdrawalRequest } from "../models";
17
17
  import type { Exposure } from "../models";
18
+ import type { PositionHistory } from "../models";
19
+ import type { PositionHistoryInterval } from "../models";
18
20
  import type { PositionValue } from "../models";
19
21
  import type { YieldAggregateValue } from "../models";
20
22
  /**
@@ -44,6 +46,16 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
44
46
  * @throws {RequiredError}
45
47
  */
46
48
  getAccountHistory: (accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
49
+ /**
50
+ *
51
+ * @summary Get the positions history of the account
52
+ * @param {string} accountAddress The address of the account
53
+ * @param {number} [limit] The limit of the rows
54
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
55
+ * @param {*} [options] Override http request option.
56
+ * @throws {RequiredError}
57
+ */
58
+ getAccountPositionsHistory: (accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
47
59
  /**
48
60
  *
49
61
  * @summary Get the positions value of the account
@@ -75,6 +87,17 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
75
87
  * @throws {RequiredError}
76
88
  */
77
89
  getAccountYieldValue: (accountAddress: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
90
+ /**
91
+ *
92
+ * @summary Get the positions history of the account for a given vault
93
+ * @param {string} vaultId The id of the vault
94
+ * @param {string} accountAddress The address of the account
95
+ * @param {number} [limit] The limit of the rows
96
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ getVaultAccountPositionsHistory: (vaultId: string, accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
78
101
  };
79
102
  /**
80
103
  * AccountsApi - functional programming interface
@@ -103,6 +126,16 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
103
126
  * @throws {RequiredError}
104
127
  */
105
128
  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>>>;
129
+ /**
130
+ *
131
+ * @summary Get the positions history of the account
132
+ * @param {string} accountAddress The address of the account
133
+ * @param {number} [limit] The limit of the rows
134
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ */
138
+ getAccountPositionsHistory(accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PositionHistory>>>;
106
139
  /**
107
140
  *
108
141
  * @summary Get the positions value of the account
@@ -134,6 +167,17 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
134
167
  * @throws {RequiredError}
135
168
  */
136
169
  getAccountYieldValue(accountAddress: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<YieldAggregateValue>>;
170
+ /**
171
+ *
172
+ * @summary Get the positions history of the account for a given vault
173
+ * @param {string} vaultId The id of the vault
174
+ * @param {string} accountAddress The address of the account
175
+ * @param {number} [limit] The limit of the rows
176
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ getVaultAccountPositionsHistory(vaultId: string, accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PositionHistory>>>;
137
181
  };
138
182
  /**
139
183
  * AccountsApi - factory interface
@@ -162,6 +206,16 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
162
206
  * @throws {RequiredError}
163
207
  */
164
208
  getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountTransaction>>;
209
+ /**
210
+ *
211
+ * @summary Get the positions history of the account
212
+ * @param {string} accountAddress The address of the account
213
+ * @param {number} [limit] The limit of the rows
214
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ */
218
+ getAccountPositionsHistory(accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<PositionHistory>>;
165
219
  /**
166
220
  *
167
221
  * @summary Get the positions value of the account
@@ -193,6 +247,17 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
193
247
  * @throws {RequiredError}
194
248
  */
195
249
  getAccountYieldValue(accountAddress: string, options?: RawAxiosRequestConfig): AxiosPromise<YieldAggregateValue>;
250
+ /**
251
+ *
252
+ * @summary Get the positions history of the account for a given vault
253
+ * @param {string} vaultId The id of the vault
254
+ * @param {string} accountAddress The address of the account
255
+ * @param {number} [limit] The limit of the rows
256
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ getVaultAccountPositionsHistory(vaultId: string, accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<PositionHistory>>;
196
261
  };
197
262
  /**
198
263
  * AccountsApi - object-oriented interface
@@ -225,6 +290,17 @@ export declare class AccountsApi extends BaseAPI {
225
290
  * @memberof AccountsApi
226
291
  */
227
292
  getAccountHistory(accountAddress: string, startTimeInMs: number, endTimeInMs?: number, limit?: number, page?: number, vaultId?: string, type?: GetAccountHistoryTypeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountTransaction[], any, {}>>;
293
+ /**
294
+ *
295
+ * @summary Get the positions history of the account
296
+ * @param {string} accountAddress The address of the account
297
+ * @param {number} [limit] The limit of the rows
298
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ * @memberof AccountsApi
302
+ */
303
+ getAccountPositionsHistory(accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PositionHistory[], any, {}>>;
228
304
  /**
229
305
  *
230
306
  * @summary Get the positions value of the account
@@ -259,6 +335,18 @@ export declare class AccountsApi extends BaseAPI {
259
335
  * @memberof AccountsApi
260
336
  */
261
337
  getAccountYieldValue(accountAddress: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<YieldAggregateValue, any, {}>>;
338
+ /**
339
+ *
340
+ * @summary Get the positions history of the account for a given vault
341
+ * @param {string} vaultId The id of the vault
342
+ * @param {string} accountAddress The address of the account
343
+ * @param {number} [limit] The limit of the rows
344
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ * @memberof AccountsApi
348
+ */
349
+ getVaultAccountPositionsHistory(vaultId: string, accountAddress: string, limit?: number, interval?: PositionHistoryInterval, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PositionHistory[], any, {}>>;
262
350
  }
263
351
  /**
264
352
  * @export
@@ -119,6 +119,46 @@ const AccountsApiAxiosParamCreator = function (configuration) {
119
119
  options: localVarRequestOptions
120
120
  };
121
121
  },
122
+ /**
123
+ *
124
+ * @summary Get the positions history of the account
125
+ * @param {string} accountAddress The address of the account
126
+ * @param {number} [limit] The limit of the rows
127
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ getAccountPositionsHistory: async (accountAddress, limit, interval, options = {}) => {
132
+ // verify required parameter 'accountAddress' is not null or undefined
133
+ (0, common_1.assertParamExists)("getAccountPositionsHistory", "accountAddress", accountAddress);
134
+ const localVarPath = `/api/v1/vaults/positions-history/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
135
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
136
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
137
+ let baseOptions;
138
+ if (configuration) {
139
+ baseOptions = configuration.baseOptions;
140
+ }
141
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
142
+ const localVarHeaderParameter = {};
143
+ const localVarQueryParameter = {};
144
+ if (limit !== undefined) {
145
+ localVarQueryParameter["limit"] = limit;
146
+ }
147
+ if (interval !== undefined) {
148
+ localVarQueryParameter["interval"] = interval;
149
+ }
150
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
151
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
152
+ localVarRequestOptions.headers = {
153
+ ...localVarHeaderParameter,
154
+ ...headersFromBaseOptions,
155
+ ...options.headers
156
+ };
157
+ return {
158
+ url: (0, common_1.toPathString)(localVarUrlObj),
159
+ options: localVarRequestOptions
160
+ };
161
+ },
122
162
  /**
123
163
  *
124
164
  * @summary Get the positions value of the account
@@ -244,6 +284,52 @@ const AccountsApiAxiosParamCreator = function (configuration) {
244
284
  url: (0, common_1.toPathString)(localVarUrlObj),
245
285
  options: localVarRequestOptions
246
286
  };
287
+ },
288
+ /**
289
+ *
290
+ * @summary Get the positions history of the account for a given vault
291
+ * @param {string} vaultId The id of the vault
292
+ * @param {string} accountAddress The address of the account
293
+ * @param {number} [limit] The limit of the rows
294
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ getVaultAccountPositionsHistory: async (vaultId, accountAddress, limit, interval, options = {}) => {
299
+ // verify required parameter 'vaultId' is not null or undefined
300
+ (0, common_1.assertParamExists)("getVaultAccountPositionsHistory", "vaultId", vaultId);
301
+ // verify required parameter 'accountAddress' is not null or undefined
302
+ (0, common_1.assertParamExists)("getVaultAccountPositionsHistory", "accountAddress", accountAddress);
303
+ const localVarPath = `/api/v1/vaults/position-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
304
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
305
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
306
+ let baseOptions;
307
+ if (configuration) {
308
+ baseOptions = configuration.baseOptions;
309
+ }
310
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
311
+ const localVarHeaderParameter = {};
312
+ const localVarQueryParameter = {};
313
+ if (accountAddress !== undefined) {
314
+ localVarQueryParameter["accountAddress"] = accountAddress;
315
+ }
316
+ if (limit !== undefined) {
317
+ localVarQueryParameter["limit"] = limit;
318
+ }
319
+ if (interval !== undefined) {
320
+ localVarQueryParameter["interval"] = interval;
321
+ }
322
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
323
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
324
+ localVarRequestOptions.headers = {
325
+ ...localVarHeaderParameter,
326
+ ...headersFromBaseOptions,
327
+ ...options.headers
328
+ };
329
+ return {
330
+ url: (0, common_1.toPathString)(localVarUrlObj),
331
+ options: localVarRequestOptions
332
+ };
247
333
  }
248
334
  };
249
335
  };
@@ -287,6 +373,21 @@ const AccountsApiFp = function (configuration) {
287
373
  const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountHistory"]?.[localVarOperationServerIndex]?.url;
288
374
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
289
375
  },
376
+ /**
377
+ *
378
+ * @summary Get the positions history of the account
379
+ * @param {string} accountAddress The address of the account
380
+ * @param {number} [limit] The limit of the rows
381
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ async getAccountPositionsHistory(accountAddress, limit, interval, options) {
386
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPositionsHistory(accountAddress, limit, interval, options);
387
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
388
+ const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountPositionsHistory"]?.[localVarOperationServerIndex]?.url;
389
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
390
+ },
290
391
  /**
291
392
  *
292
393
  * @summary Get the positions value of the account
@@ -332,6 +433,22 @@ const AccountsApiFp = function (configuration) {
332
433
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
333
434
  const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountYieldValue"]?.[localVarOperationServerIndex]?.url;
334
435
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
436
+ },
437
+ /**
438
+ *
439
+ * @summary Get the positions history of the account for a given vault
440
+ * @param {string} vaultId The id of the vault
441
+ * @param {string} accountAddress The address of the account
442
+ * @param {number} [limit] The limit of the rows
443
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ async getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
448
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options);
449
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
450
+ const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getVaultAccountPositionsHistory"]?.[localVarOperationServerIndex]?.url;
451
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
335
452
  }
336
453
  };
337
454
  };
@@ -373,6 +490,20 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
373
490
  .getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options)
374
491
  .then(request => request(axios, basePath));
375
492
  },
493
+ /**
494
+ *
495
+ * @summary Get the positions history of the account
496
+ * @param {string} accountAddress The address of the account
497
+ * @param {number} [limit] The limit of the rows
498
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
499
+ * @param {*} [options] Override http request option.
500
+ * @throws {RequiredError}
501
+ */
502
+ getAccountPositionsHistory(accountAddress, limit, interval, options) {
503
+ return localVarFp
504
+ .getAccountPositionsHistory(accountAddress, limit, interval, options)
505
+ .then(request => request(axios, basePath));
506
+ },
376
507
  /**
377
508
  *
378
509
  * @summary Get the positions value of the account
@@ -415,6 +546,21 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
415
546
  return localVarFp
416
547
  .getAccountYieldValue(accountAddress, options)
417
548
  .then(request => request(axios, basePath));
549
+ },
550
+ /**
551
+ *
552
+ * @summary Get the positions history of the account for a given vault
553
+ * @param {string} vaultId The id of the vault
554
+ * @param {string} accountAddress The address of the account
555
+ * @param {number} [limit] The limit of the rows
556
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
557
+ * @param {*} [options] Override http request option.
558
+ * @throws {RequiredError}
559
+ */
560
+ getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
561
+ return localVarFp
562
+ .getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options)
563
+ .then(request => request(axios, basePath));
418
564
  }
419
565
  };
420
566
  };
@@ -458,6 +604,21 @@ class AccountsApi extends base_1.BaseAPI {
458
604
  .getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options)
459
605
  .then(request => request(this.axios, this.basePath));
460
606
  }
607
+ /**
608
+ *
609
+ * @summary Get the positions history of the account
610
+ * @param {string} accountAddress The address of the account
611
+ * @param {number} [limit] The limit of the rows
612
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ * @memberof AccountsApi
616
+ */
617
+ getAccountPositionsHistory(accountAddress, limit, interval, options) {
618
+ return (0, exports.AccountsApiFp)(this.configuration)
619
+ .getAccountPositionsHistory(accountAddress, limit, interval, options)
620
+ .then(request => request(this.axios, this.basePath));
621
+ }
461
622
  /**
462
623
  *
463
624
  * @summary Get the positions value of the account
@@ -504,6 +665,22 @@ class AccountsApi extends base_1.BaseAPI {
504
665
  .getAccountYieldValue(accountAddress, options)
505
666
  .then(request => request(this.axios, this.basePath));
506
667
  }
668
+ /**
669
+ *
670
+ * @summary Get the positions history of the account for a given vault
671
+ * @param {string} vaultId The id of the vault
672
+ * @param {string} accountAddress The address of the account
673
+ * @param {number} [limit] The limit of the rows
674
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
675
+ * @param {*} [options] Override http request option.
676
+ * @throws {RequiredError}
677
+ * @memberof AccountsApi
678
+ */
679
+ getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
680
+ return (0, exports.AccountsApiFp)(this.configuration)
681
+ .getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options)
682
+ .then(request => request(this.axios, this.basePath));
683
+ }
507
684
  }
508
685
  exports.AccountsApi = AccountsApi;
509
686
  /**
@@ -18,6 +18,8 @@ export * from "./perps";
18
18
  export * from "./pnl-history";
19
19
  export * from "./pnl-history-interval";
20
20
  export * from "./position";
21
+ export * from "./position-history";
22
+ export * from "./position-history-interval";
21
23
  export * from "./position-value";
22
24
  export * from "./process-requests-summary-event";
23
25
  export * from "./protocol";
@@ -34,6 +34,8 @@ __exportStar(require("./perps"), exports);
34
34
  __exportStar(require("./pnl-history"), exports);
35
35
  __exportStar(require("./pnl-history-interval"), exports);
36
36
  __exportStar(require("./position"), exports);
37
+ __exportStar(require("./position-history"), exports);
38
+ __exportStar(require("./position-history-interval"), exports);
37
39
  __exportStar(require("./position-value"), exports);
38
40
  __exportStar(require("./process-requests-summary-event"), exports);
39
41
  __exportStar(require("./protocol"), exports);
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Ember Protocol Vaults API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare const PositionHistoryInterval: {
18
+ readonly _1d: "1d";
19
+ readonly _1w: "1w";
20
+ readonly _1mon: "1mon";
21
+ };
22
+ export type PositionHistoryInterval = (typeof PositionHistoryInterval)[keyof typeof PositionHistoryInterval];
@@ -0,0 +1,26 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PositionHistoryInterval = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ exports.PositionHistoryInterval = {
23
+ _1d: "1d",
24
+ _1w: "1w",
25
+ _1mon: "1mon"
26
+ };
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Ember Protocol Vaults API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PositionHistory
16
+ */
17
+ export interface PositionHistory {
18
+ /**
19
+ * The timestamp of the event
20
+ * @type {number}
21
+ * @memberof PositionHistory
22
+ */
23
+ timestamp: number;
24
+ /**
25
+ * The position value of the event
26
+ * @type {string}
27
+ * @memberof PositionHistory
28
+ */
29
+ positionValueUsdE9: string;
30
+ /**
31
+ * The shares of the event
32
+ * @type {string}
33
+ * @memberof PositionHistory
34
+ */
35
+ shares: string;
36
+ /**
37
+ * The unrealized yield of the event
38
+ * @type {string}
39
+ * @memberof PositionHistory
40
+ */
41
+ unrealizedYieldUsdE9: string;
42
+ /**
43
+ * The realized yield of the event
44
+ * @type {string}
45
+ * @memberof PositionHistory
46
+ */
47
+ realizedYieldUsdE9: string;
48
+ /**
49
+ * The total yield of the event
50
+ * @type {string}
51
+ * @memberof PositionHistory
52
+ */
53
+ totalYieldUsdE9: string;
54
+ /**
55
+ * The status of the event
56
+ * @type {string}
57
+ * @memberof PositionHistory
58
+ */
59
+ status: PositionHistoryStatusEnum;
60
+ }
61
+ export declare const PositionHistoryStatusEnum: {
62
+ readonly Sync: "SYNC";
63
+ readonly OutOfSync: "OUT_OF_SYNC";
64
+ };
65
+ export type PositionHistoryStatusEnum = (typeof PositionHistoryStatusEnum)[keyof typeof PositionHistoryStatusEnum];
@@ -0,0 +1,20 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PositionHistoryStatusEnum = void 0;
17
+ exports.PositionHistoryStatusEnum = {
18
+ Sync: "SYNC",
19
+ OutOfSync: "OUT_OF_SYNC"
20
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ember-finance/sdk",
3
3
  "description": "Ember Protocol SDK",
4
- "version": "1.0.11",
4
+ "version": "1.0.13",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",