aftermath-ts-sdk 4.1.0-dev.bc92529 → 4.1.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.d.ts +3 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2512,15 +2512,6 @@ interface PerpetualsMarketData {
|
|
|
2512
2512
|
collateralPrice: number;
|
|
2513
2513
|
/** Oracle/index price of the base asset for this market. */
|
|
2514
2514
|
indexPrice: number;
|
|
2515
|
-
/**
|
|
2516
|
-
* Price positions are marked against for PnL and liquidation, as opposed to
|
|
2517
|
-
* the raw index.
|
|
2518
|
-
*
|
|
2519
|
-
* Only the websocket market stream carries this. REST responses are built
|
|
2520
|
-
* from an indexer payload that has no mark price, so the field is absent
|
|
2521
|
-
* there rather than reported as null.
|
|
2522
|
-
*/
|
|
2523
|
-
markPrice?: number;
|
|
2524
2515
|
/** Estimated funding rate for the next funding interval. */
|
|
2525
2516
|
estimatedFundingRate: Percentage;
|
|
2526
2517
|
/** Timestamp (ms) for the next funding event, as a bigint. */
|
|
@@ -6577,14 +6568,11 @@ interface PerpetualsWsUpdatesOraclePayload {
|
|
|
6577
6568
|
*/
|
|
6578
6569
|
markPrice: number;
|
|
6579
6570
|
/**
|
|
6580
|
-
* Raw orderbook mid price,
|
|
6581
|
-
*
|
|
6571
|
+
* Raw orderbook mid price, or `null` when either side of the book is empty.
|
|
6572
|
+
* Nullable where `markPrice` is not: mark falls back to the index price
|
|
6582
6573
|
* upstream, whereas a raw mid has none.
|
|
6583
|
-
*
|
|
6584
|
-
* The API sends JSON `null` here, but the websocket parser maps `null` to
|
|
6585
|
-
* `undefined`, so a `=== null` check would never match.
|
|
6586
6574
|
*/
|
|
6587
|
-
bookPrice
|
|
6575
|
+
bookPrice: number | null;
|
|
6588
6576
|
}
|
|
6589
6577
|
/**
|
|
6590
6578
|
* Websocket payload for market orders stream.
|