@syldel/hl-shared-types 0.0.10 → 0.0.11

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.
@@ -97,6 +97,12 @@ export interface HLPerpMarket {
97
97
  maxLeverage: number;
98
98
  /** Margin table identifier. */
99
99
  marginTableId?: number;
100
+ /** Whether the market only supports isolated margin mode. */
101
+ onlyIsolated?: boolean;
102
+ /** Whether the market has been delisted by the exchange. */
103
+ isDelisted?: boolean;
104
+ /** Optional restriction applied to the market margin mode. */
105
+ marginMode?: 'strictIsolated' | 'noCross';
100
106
  /** Current mark price. */
101
107
  markPrice?: DecimalString;
102
108
  /** Current mid price. */
@@ -106,3 +112,22 @@ export interface HLPerpMarket {
106
112
  /** Current open interest. */
107
113
  openInterest?: DecimalString;
108
114
  }
115
+ /**
116
+ * Normalized perpetual market enriched with additional runtime and microstructure data.
117
+ */
118
+ export interface HLPerpMarketExtended extends HLPerpMarket {
119
+ /** Oracle price reference. */
120
+ oraclePrice?: DecimalString;
121
+ /** Premium vs oracle. */
122
+ premium?: DecimalString;
123
+ /** Daily notional volume. */
124
+ dayNotionalVolume?: DecimalString;
125
+ /** Estimated bid impact price. */
126
+ impactBidPrice?: DecimalString;
127
+ /** Estimated ask impact price. */
128
+ impactAskPrice?: DecimalString;
129
+ /** Previous day reference price. */
130
+ prevDayPrice?: DecimalString;
131
+ /** Estimated spread from impact prices. */
132
+ estimatedSpreadBps?: number;
133
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syldel/hl-shared-types",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Shared TypeScript interfaces and types for Hyperliquid integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",