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 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 `bigint`. The SDK request path serializes them like other
4310
- * perpetuals bigint body fields (`JSON.stringify` + bigint replacer →
4311
- * decimal strings with an `n` suffix), and the response path reconstitutes
4312
- * them via `Helpers.parseJsonWithBigint`.
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 (scaled integer units, as `bigint`). Never round-trip
4318
- * through float.
4320
+ * condition is met. Finite and greater than zero.
4319
4321
  */
4320
- triggerMarkPrice?: bigint;
4322
+ triggerMarkPrice?: number;
4321
4323
  /**
4322
4324
  * Mark price that requests cancellation of the unexecuted remainder after
4323
- * activation (scaled integer units, as `bigint`). Never round-trip through
4324
- * float.
4325
+ * activation. Finite and greater than zero.
4325
4326
  */
4326
- stopMarkPrice?: bigint;
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
- * Mark price level from the TWAP order response (scaled integer units, as
4336
- * `bigint`). Never reconstruct via floating-point conversion.
4336
+ * Human-readable mark price level from the TWAP order response.
4337
4337
  */
4338
- markPrice: bigint;
4338
+ markPrice: number;
4339
4339
  }
4340
4340
  /**
4341
4341
  * Normalized executor-managed price conditions on a TWAP order response.