aftermath-ts-sdk 5.1.1-dev.c20d495 → 5.1.1-dev.d87511f
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 +13 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4306,24 +4306,25 @@ type PerpetualsTwapPriceConditionDirection = "above" | "below";
|
|
|
4306
4306
|
* mark price at creation. Omit unused keys; omit the object entirely when
|
|
4307
4307
|
* both fields are empty (unconditional TWAP).
|
|
4308
4308
|
*
|
|
4309
|
-
* Mark prices are
|
|
4310
|
-
*
|
|
4311
|
-
*
|
|
4312
|
-
*
|
|
4309
|
+
* Mark prices are human-readable numbers, matching stop-order trigger prices
|
|
4310
|
+
* and public perpetuals market prices.
|
|
4311
|
+
*
|
|
4312
|
+
* Each price must be finite and greater than zero. `NaN` and `Infinity`
|
|
4313
|
+
* serialize to JSON `null`, which the perpetuals HTTP API reads as "no
|
|
4314
|
+
* condition" — an unconditional TWAP rather than an error. Validate before
|
|
4315
|
+
* calling.
|
|
4313
4316
|
*/
|
|
4314
4317
|
interface PerpetualsTwapCreatePriceConditions {
|
|
4315
4318
|
/**
|
|
4316
4319
|
* Mark price that delays first execution until the derived trigger
|
|
4317
|
-
* condition is met
|
|
4318
|
-
* through float.
|
|
4320
|
+
* condition is met. Finite and greater than zero.
|
|
4319
4321
|
*/
|
|
4320
|
-
triggerMarkPrice?:
|
|
4322
|
+
triggerMarkPrice?: number;
|
|
4321
4323
|
/**
|
|
4322
4324
|
* Mark price that requests cancellation of the unexecuted remainder after
|
|
4323
|
-
* activation
|
|
4324
|
-
* float.
|
|
4325
|
+
* activation. Finite and greater than zero.
|
|
4325
4326
|
*/
|
|
4326
|
-
stopMarkPrice?:
|
|
4327
|
+
stopMarkPrice?: number;
|
|
4327
4328
|
}
|
|
4328
4329
|
/**
|
|
4329
4330
|
* A single normalized inclusive mark-price condition on a TWAP order response.
|
|
@@ -4332,10 +4333,9 @@ interface PerpetualsTwapPriceCondition {
|
|
|
4332
4333
|
/** Comparison direction returned by the perpetuals HTTP API. */
|
|
4333
4334
|
direction: PerpetualsTwapPriceConditionDirection;
|
|
4334
4335
|
/**
|
|
4335
|
-
*
|
|
4336
|
-
* `bigint`). Never reconstruct via floating-point conversion.
|
|
4336
|
+
* Human-readable mark price level from the TWAP order response.
|
|
4337
4337
|
*/
|
|
4338
|
-
markPrice:
|
|
4338
|
+
markPrice: number;
|
|
4339
4339
|
}
|
|
4340
4340
|
/**
|
|
4341
4341
|
* Normalized executor-managed price conditions on a TWAP order response.
|