ault-sdk-ts 0.3.0 → 0.4.1
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/core/clob-gas.d.ts +5 -19
- package/dist/core/manifest-resolver.d.ts +2 -3
- package/dist/core/network.d.ts +0 -9
- package/dist/index.cjs +16 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -38
- package/dist/index.js.map +1 -1
- package/dist/ws/types.d.ts +15 -9
- package/package.json +1 -1
package/dist/ws/types.d.ts
CHANGED
|
@@ -107,15 +107,21 @@ export interface WsCandle {
|
|
|
107
107
|
export type WsCandles = WsCandle[];
|
|
108
108
|
/**
|
|
109
109
|
* `activeAssetCtx` — per-block market context. The Hyperliquid base fields
|
|
110
|
-
* (`
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* `
|
|
110
|
+
* (`markPx`, `midPx`, `circulatingSupply`) are JSON numbers; the Ault
|
|
111
|
+
* extension fields are decimal strings to preserve precision past 2^53.
|
|
112
|
+
* `midPx` and the extension fields are present only when the underlying value
|
|
113
|
+
* resolved (the relay omits them otherwise). `circulatingSupply` is always
|
|
114
|
+
* `0` (not tracked).
|
|
115
|
+
*
|
|
116
|
+
* The 24h aggregates (`dayNtlVlm`, `prevDayPx`, `high`, `low`, `average`,
|
|
117
|
+
* `vwap`, `change`, `percentage`, `baseVolume`, `quoteVolume`) are all
|
|
118
|
+
* optional: a frame may omit any of them. Treat an absent aggregate as
|
|
119
|
+
* "unchanged this tick" and keep the value from the REST ticker
|
|
120
|
+
* (`GET /tickers`, `GET /ticker/{symbol}`) — never read it as zero.
|
|
115
121
|
*/
|
|
116
122
|
export interface WsActiveAssetCtxData {
|
|
117
|
-
dayNtlVlm
|
|
118
|
-
prevDayPx
|
|
123
|
+
dayNtlVlm?: number;
|
|
124
|
+
prevDayPx?: number;
|
|
119
125
|
markPx: number;
|
|
120
126
|
midPx?: number;
|
|
121
127
|
circulatingSupply: number;
|
|
@@ -130,8 +136,8 @@ export interface WsActiveAssetCtxData {
|
|
|
130
136
|
vwap?: string;
|
|
131
137
|
change?: string;
|
|
132
138
|
percentage?: string;
|
|
133
|
-
baseVolume
|
|
134
|
-
quoteVolume
|
|
139
|
+
baseVolume?: string;
|
|
140
|
+
quoteVolume?: string;
|
|
135
141
|
}
|
|
136
142
|
export interface WsActiveAssetCtx {
|
|
137
143
|
coin: string;
|