ault-sdk-ts 0.10.0 → 0.11.0
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/rest/portfolio.d.ts +20 -5
- package/package.json +1 -1
package/dist/rest/portfolio.d.ts
CHANGED
|
@@ -79,19 +79,34 @@ export interface PortfolioPnL {
|
|
|
79
79
|
}
|
|
80
80
|
export type PortfolioTimeRange = "day" | "week" | "month" | "allTime";
|
|
81
81
|
export interface PortfolioTimePoint {
|
|
82
|
+
/**
|
|
83
|
+
* The worker's sampling slot in Unix milliseconds, not the exact instant the
|
|
84
|
+
* source state was read.
|
|
85
|
+
*/
|
|
82
86
|
ts: number;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
/** availableValue + escrowValue. */
|
|
88
|
+
totalValue: string;
|
|
89
|
+
/** Spendable balances. */
|
|
90
|
+
availableValue: string;
|
|
91
|
+
/** Collateral the wallet's open orders still hold. */
|
|
92
|
+
escrowValue: string;
|
|
93
|
+
/**
|
|
94
|
+
* Indexer height the worker recorded for this sample; 0 when unavailable.
|
|
95
|
+
* Absent from a backend older than the spec (mainnet at the time of writing).
|
|
96
|
+
*/
|
|
97
|
+
indexedHeight?: number;
|
|
88
98
|
}
|
|
89
99
|
export interface PortfolioTimeSeries {
|
|
90
100
|
address: string;
|
|
91
101
|
range: PortfolioTimeRange;
|
|
102
|
+
/** Oldest first. Empty for a wallet the portfolio worker has not sampled yet. */
|
|
92
103
|
points: PortfolioTimePoint[];
|
|
104
|
+
/** Some point covered a holding no market could price; every total is then a floor. */
|
|
93
105
|
partial: boolean;
|
|
106
|
+
/** `ts` of the newest returned sample; 0 for an empty series. */
|
|
94
107
|
asOf: number;
|
|
108
|
+
/** `indexedHeight` of the newest returned sample; 0 for an empty series. Absent on older backends. */
|
|
109
|
+
indexedHeight?: number;
|
|
95
110
|
}
|
|
96
111
|
/**
|
|
97
112
|
* One vault position of an account: the vault detail's follower fields plus
|