@ember-finance/sdk 1.0.11 → 1.0.12

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,50 @@ 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
+ const localVarPath = `/api/v1/vaults/position-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
302
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
303
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
304
+ let baseOptions;
305
+ if (configuration) {
306
+ baseOptions = configuration.baseOptions;
307
+ }
308
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
309
+ const localVarHeaderParameter = {};
310
+ const localVarQueryParameter = {};
311
+ if (accountAddress !== undefined) {
312
+ localVarQueryParameter["accountAddress"] = accountAddress;
313
+ }
314
+ if (limit !== undefined) {
315
+ localVarQueryParameter["limit"] = limit;
316
+ }
317
+ if (interval !== undefined) {
318
+ localVarQueryParameter["interval"] = interval;
319
+ }
320
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
321
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
322
+ localVarRequestOptions.headers = {
323
+ ...localVarHeaderParameter,
324
+ ...headersFromBaseOptions,
325
+ ...options.headers
326
+ };
327
+ return {
328
+ url: (0, common_1.toPathString)(localVarUrlObj),
329
+ options: localVarRequestOptions
330
+ };
247
331
  }
248
332
  };
249
333
  };
@@ -287,6 +371,21 @@ const AccountsApiFp = function (configuration) {
287
371
  const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountHistory"]?.[localVarOperationServerIndex]?.url;
288
372
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
289
373
  },
374
+ /**
375
+ *
376
+ * @summary Get the positions history of the account
377
+ * @param {string} accountAddress The address of the account
378
+ * @param {number} [limit] The limit of the rows
379
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ */
383
+ async getAccountPositionsHistory(accountAddress, limit, interval, options) {
384
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPositionsHistory(accountAddress, limit, interval, options);
385
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
386
+ const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountPositionsHistory"]?.[localVarOperationServerIndex]?.url;
387
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
388
+ },
290
389
  /**
291
390
  *
292
391
  * @summary Get the positions value of the account
@@ -332,6 +431,22 @@ const AccountsApiFp = function (configuration) {
332
431
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
333
432
  const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountYieldValue"]?.[localVarOperationServerIndex]?.url;
334
433
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
434
+ },
435
+ /**
436
+ *
437
+ * @summary Get the positions history of the account for a given vault
438
+ * @param {string} vaultId The id of the vault
439
+ * @param {string} [accountAddress] The address of the account
440
+ * @param {number} [limit] The limit of the rows
441
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
442
+ * @param {*} [options] Override http request option.
443
+ * @throws {RequiredError}
444
+ */
445
+ async getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
446
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options);
447
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
448
+ const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getVaultAccountPositionsHistory"]?.[localVarOperationServerIndex]?.url;
449
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
335
450
  }
336
451
  };
337
452
  };
@@ -373,6 +488,20 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
373
488
  .getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options)
374
489
  .then(request => request(axios, basePath));
375
490
  },
491
+ /**
492
+ *
493
+ * @summary Get the positions history of the account
494
+ * @param {string} accountAddress The address of the account
495
+ * @param {number} [limit] The limit of the rows
496
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
497
+ * @param {*} [options] Override http request option.
498
+ * @throws {RequiredError}
499
+ */
500
+ getAccountPositionsHistory(accountAddress, limit, interval, options) {
501
+ return localVarFp
502
+ .getAccountPositionsHistory(accountAddress, limit, interval, options)
503
+ .then(request => request(axios, basePath));
504
+ },
376
505
  /**
377
506
  *
378
507
  * @summary Get the positions value of the account
@@ -415,6 +544,21 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
415
544
  return localVarFp
416
545
  .getAccountYieldValue(accountAddress, options)
417
546
  .then(request => request(axios, basePath));
547
+ },
548
+ /**
549
+ *
550
+ * @summary Get the positions history of the account for a given vault
551
+ * @param {string} vaultId The id of the vault
552
+ * @param {string} [accountAddress] The address of the account
553
+ * @param {number} [limit] The limit of the rows
554
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
555
+ * @param {*} [options] Override http request option.
556
+ * @throws {RequiredError}
557
+ */
558
+ getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
559
+ return localVarFp
560
+ .getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options)
561
+ .then(request => request(axios, basePath));
418
562
  }
419
563
  };
420
564
  };
@@ -458,6 +602,21 @@ class AccountsApi extends base_1.BaseAPI {
458
602
  .getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options)
459
603
  .then(request => request(this.axios, this.basePath));
460
604
  }
605
+ /**
606
+ *
607
+ * @summary Get the positions history of the account
608
+ * @param {string} accountAddress The address of the account
609
+ * @param {number} [limit] The limit of the rows
610
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ * @memberof AccountsApi
614
+ */
615
+ getAccountPositionsHistory(accountAddress, limit, interval, options) {
616
+ return (0, exports.AccountsApiFp)(this.configuration)
617
+ .getAccountPositionsHistory(accountAddress, limit, interval, options)
618
+ .then(request => request(this.axios, this.basePath));
619
+ }
461
620
  /**
462
621
  *
463
622
  * @summary Get the positions value of the account
@@ -504,6 +663,22 @@ class AccountsApi extends base_1.BaseAPI {
504
663
  .getAccountYieldValue(accountAddress, options)
505
664
  .then(request => request(this.axios, this.basePath));
506
665
  }
666
+ /**
667
+ *
668
+ * @summary Get the positions history of the account for a given vault
669
+ * @param {string} vaultId The id of the vault
670
+ * @param {string} [accountAddress] The address of the account
671
+ * @param {number} [limit] The limit of the rows
672
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ * @memberof AccountsApi
676
+ */
677
+ getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
678
+ return (0, exports.AccountsApiFp)(this.configuration)
679
+ .getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options)
680
+ .then(request => request(this.axios, this.basePath));
681
+ }
507
682
  }
508
683
  exports.AccountsApi = AccountsApi;
509
684
  /**
@@ -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.12",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",