@illalabs/interfaces 0.27.0 → 0.28.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.
@@ -1828,6 +1828,32 @@ export declare const TransactionActionMetadataSchema: z.ZodDiscriminatedUnion<"a
1828
1828
  value: number;
1829
1829
  }>>;
1830
1830
  reduceOnly: z.ZodBoolean;
1831
+ /** IOC slippage tolerance applied to the marketable limit price (e.g. 0.05 = 5%). */
1832
+ slippage: z.ZodOptional<z.ZodNumber>;
1833
+ /** Marketable IOC limit price (mark ± slippage) the order is actually priced at. */
1834
+ limitPx: z.ZodOptional<z.ZodString>;
1835
+ /**
1836
+ * Estimated taker fee in USD (base taker rate × effective notional). Always a
1837
+ * taker order on Hyperliquid (market-style IOC); may be lower at higher VIP tiers.
1838
+ */
1839
+ estFeeUsd: z.ZodOptional<z.ZodString>;
1840
+ /**
1841
+ * Add-to-position only (a position already exists for `coin`): incremental USD
1842
+ * margin this order requires at the position's current leverage. Omitted for a
1843
+ * brand-new position, whose leverage can't be read until the position exists.
1844
+ */
1845
+ marginRequired: z.ZodOptional<z.ZodString>;
1846
+ /**
1847
+ * Add-to-position only: the existing position's CURRENT liquidation price. It
1848
+ * will move once the order fills (surfaced as context, not a post-trade estimate).
1849
+ */
1850
+ liquidationPx: z.ZodOptional<z.ZodString>;
1851
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
1852
+ avgPx: z.ZodOptional<z.ZodString>;
1853
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
1854
+ totalSz: z.ZodOptional<z.ZodString>;
1855
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
1856
+ oid: z.ZodOptional<z.ZodNumber>;
1831
1857
  }, "strip", z.ZodTypeAny, {
1832
1858
  nonce: number;
1833
1859
  action: "perpetualsOrder";
@@ -1844,6 +1870,14 @@ export declare const TransactionActionMetadataSchema: z.ZodDiscriminatedUnion<"a
1844
1870
  type: "cross" | "isolated";
1845
1871
  value: number;
1846
1872
  } | undefined;
1873
+ slippage?: number | undefined;
1874
+ limitPx?: string | undefined;
1875
+ estFeeUsd?: string | undefined;
1876
+ marginRequired?: string | undefined;
1877
+ liquidationPx?: string | undefined;
1878
+ avgPx?: string | undefined;
1879
+ totalSz?: string | undefined;
1880
+ oid?: number | undefined;
1847
1881
  }, {
1848
1882
  nonce: number;
1849
1883
  action: "perpetualsOrder";
@@ -1860,6 +1894,14 @@ export declare const TransactionActionMetadataSchema: z.ZodDiscriminatedUnion<"a
1860
1894
  type: "cross" | "isolated";
1861
1895
  value: number;
1862
1896
  } | undefined;
1897
+ slippage?: number | undefined;
1898
+ limitPx?: string | undefined;
1899
+ estFeeUsd?: string | undefined;
1900
+ marginRequired?: string | undefined;
1901
+ liquidationPx?: string | undefined;
1902
+ avgPx?: string | undefined;
1903
+ totalSz?: string | undefined;
1904
+ oid?: number | undefined;
1863
1905
  }>, z.ZodObject<{
1864
1906
  action: z.ZodLiteral<"perpetualsUpdateLeverage">;
1865
1907
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -1877,6 +1919,17 @@ export declare const TransactionActionMetadataSchema: z.ZodDiscriminatedUnion<"a
1877
1919
  type: "cross" | "isolated";
1878
1920
  value: number;
1879
1921
  }>;
1922
+ /** The asset's maximum allowed leverage (e.g. 25 → "max 25×"). */
1923
+ maxLeverage: z.ZodOptional<z.ZodNumber>;
1924
+ /**
1925
+ * Present only when a position already exists for `coin`: the position's CURRENT
1926
+ * margin in USD — paired with `projectedMarginUsd` for a before→after display.
1927
+ */
1928
+ marginUsed: z.ZodOptional<z.ZodString>;
1929
+ /** Present only when a position exists: the position's CURRENT liquidation price (it will move). */
1930
+ liquidationPx: z.ZodOptional<z.ZodString>;
1931
+ /** Present only when a position exists: projected new margin = position notional ÷ new leverage. */
1932
+ projectedMarginUsd: z.ZodOptional<z.ZodString>;
1880
1933
  }, "strip", z.ZodTypeAny, {
1881
1934
  nonce: number;
1882
1935
  action: "perpetualsUpdateLeverage";
@@ -1888,6 +1941,10 @@ export declare const TransactionActionMetadataSchema: z.ZodDiscriminatedUnion<"a
1888
1941
  value: number;
1889
1942
  };
1890
1943
  unsignedAction?: unknown;
1944
+ liquidationPx?: string | undefined;
1945
+ maxLeverage?: number | undefined;
1946
+ marginUsed?: string | undefined;
1947
+ projectedMarginUsd?: string | undefined;
1891
1948
  }, {
1892
1949
  nonce: number;
1893
1950
  action: "perpetualsUpdateLeverage";
@@ -1899,6 +1956,10 @@ export declare const TransactionActionMetadataSchema: z.ZodDiscriminatedUnion<"a
1899
1956
  value: number;
1900
1957
  };
1901
1958
  unsignedAction?: unknown;
1959
+ liquidationPx?: string | undefined;
1960
+ maxLeverage?: number | undefined;
1961
+ marginUsed?: string | undefined;
1962
+ projectedMarginUsd?: string | undefined;
1902
1963
  }>, z.ZodObject<{
1903
1964
  action: z.ZodLiteral<"perpetualsClosePosition">;
1904
1965
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -1910,6 +1971,19 @@ export declare const TransactionActionMetadataSchema: z.ZodDiscriminatedUnion<"a
1910
1971
  side: z.ZodEnum<["buy", "sell"]>;
1911
1972
  markPx: z.ZodString;
1912
1973
  reduceOnly: z.ZodLiteral<true>;
1974
+ /**
1975
+ * To-be-realized PnL in USD, sourced from the live position's unrealized PnL at
1976
+ * build time (the relay close response carries no closedPnl). Signed (+/-).
1977
+ */
1978
+ estimatedPnlUsd: z.ZodOptional<z.ZodString>;
1979
+ /** The closing position's entry price, for "Closing long X · entry $Y" context. */
1980
+ entryPx: z.ZodOptional<z.ZodString>;
1981
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
1982
+ avgPx: z.ZodOptional<z.ZodString>;
1983
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
1984
+ totalSz: z.ZodOptional<z.ZodString>;
1985
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
1986
+ oid: z.ZodOptional<z.ZodNumber>;
1913
1987
  }, "strip", z.ZodTypeAny, {
1914
1988
  nonce: number;
1915
1989
  action: "perpetualsClosePosition";
@@ -1921,6 +1995,11 @@ export declare const TransactionActionMetadataSchema: z.ZodDiscriminatedUnion<"a
1921
1995
  markPx: string;
1922
1996
  reduceOnly: true;
1923
1997
  unsignedAction?: unknown;
1998
+ avgPx?: string | undefined;
1999
+ totalSz?: string | undefined;
2000
+ oid?: number | undefined;
2001
+ estimatedPnlUsd?: string | undefined;
2002
+ entryPx?: string | undefined;
1924
2003
  }, {
1925
2004
  nonce: number;
1926
2005
  action: "perpetualsClosePosition";
@@ -1932,6 +2011,11 @@ export declare const TransactionActionMetadataSchema: z.ZodDiscriminatedUnion<"a
1932
2011
  markPx: string;
1933
2012
  reduceOnly: true;
1934
2013
  unsignedAction?: unknown;
2014
+ avgPx?: string | undefined;
2015
+ totalSz?: string | undefined;
2016
+ oid?: number | undefined;
2017
+ estimatedPnlUsd?: string | undefined;
2018
+ entryPx?: string | undefined;
1935
2019
  }>, z.ZodObject<{
1936
2020
  action: z.ZodLiteral<"hyperliquidDeposit">;
1937
2021
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -3284,6 +3368,32 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3284
3368
  value: number;
3285
3369
  }>>;
3286
3370
  reduceOnly: z.ZodBoolean;
3371
+ /** IOC slippage tolerance applied to the marketable limit price (e.g. 0.05 = 5%). */
3372
+ slippage: z.ZodOptional<z.ZodNumber>;
3373
+ /** Marketable IOC limit price (mark ± slippage) the order is actually priced at. */
3374
+ limitPx: z.ZodOptional<z.ZodString>;
3375
+ /**
3376
+ * Estimated taker fee in USD (base taker rate × effective notional). Always a
3377
+ * taker order on Hyperliquid (market-style IOC); may be lower at higher VIP tiers.
3378
+ */
3379
+ estFeeUsd: z.ZodOptional<z.ZodString>;
3380
+ /**
3381
+ * Add-to-position only (a position already exists for `coin`): incremental USD
3382
+ * margin this order requires at the position's current leverage. Omitted for a
3383
+ * brand-new position, whose leverage can't be read until the position exists.
3384
+ */
3385
+ marginRequired: z.ZodOptional<z.ZodString>;
3386
+ /**
3387
+ * Add-to-position only: the existing position's CURRENT liquidation price. It
3388
+ * will move once the order fills (surfaced as context, not a post-trade estimate).
3389
+ */
3390
+ liquidationPx: z.ZodOptional<z.ZodString>;
3391
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
3392
+ avgPx: z.ZodOptional<z.ZodString>;
3393
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
3394
+ totalSz: z.ZodOptional<z.ZodString>;
3395
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
3396
+ oid: z.ZodOptional<z.ZodNumber>;
3287
3397
  }, "strip", z.ZodTypeAny, {
3288
3398
  nonce: number;
3289
3399
  action: "perpetualsOrder";
@@ -3300,6 +3410,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3300
3410
  type: "cross" | "isolated";
3301
3411
  value: number;
3302
3412
  } | undefined;
3413
+ slippage?: number | undefined;
3414
+ limitPx?: string | undefined;
3415
+ estFeeUsd?: string | undefined;
3416
+ marginRequired?: string | undefined;
3417
+ liquidationPx?: string | undefined;
3418
+ avgPx?: string | undefined;
3419
+ totalSz?: string | undefined;
3420
+ oid?: number | undefined;
3303
3421
  }, {
3304
3422
  nonce: number;
3305
3423
  action: "perpetualsOrder";
@@ -3316,6 +3434,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3316
3434
  type: "cross" | "isolated";
3317
3435
  value: number;
3318
3436
  } | undefined;
3437
+ slippage?: number | undefined;
3438
+ limitPx?: string | undefined;
3439
+ estFeeUsd?: string | undefined;
3440
+ marginRequired?: string | undefined;
3441
+ liquidationPx?: string | undefined;
3442
+ avgPx?: string | undefined;
3443
+ totalSz?: string | undefined;
3444
+ oid?: number | undefined;
3319
3445
  }>, z.ZodObject<{
3320
3446
  action: z.ZodLiteral<"perpetualsUpdateLeverage">;
3321
3447
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -3333,6 +3459,17 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3333
3459
  type: "cross" | "isolated";
3334
3460
  value: number;
3335
3461
  }>;
3462
+ /** The asset's maximum allowed leverage (e.g. 25 → "max 25×"). */
3463
+ maxLeverage: z.ZodOptional<z.ZodNumber>;
3464
+ /**
3465
+ * Present only when a position already exists for `coin`: the position's CURRENT
3466
+ * margin in USD — paired with `projectedMarginUsd` for a before→after display.
3467
+ */
3468
+ marginUsed: z.ZodOptional<z.ZodString>;
3469
+ /** Present only when a position exists: the position's CURRENT liquidation price (it will move). */
3470
+ liquidationPx: z.ZodOptional<z.ZodString>;
3471
+ /** Present only when a position exists: projected new margin = position notional ÷ new leverage. */
3472
+ projectedMarginUsd: z.ZodOptional<z.ZodString>;
3336
3473
  }, "strip", z.ZodTypeAny, {
3337
3474
  nonce: number;
3338
3475
  action: "perpetualsUpdateLeverage";
@@ -3344,6 +3481,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3344
3481
  value: number;
3345
3482
  };
3346
3483
  unsignedAction?: unknown;
3484
+ liquidationPx?: string | undefined;
3485
+ maxLeverage?: number | undefined;
3486
+ marginUsed?: string | undefined;
3487
+ projectedMarginUsd?: string | undefined;
3347
3488
  }, {
3348
3489
  nonce: number;
3349
3490
  action: "perpetualsUpdateLeverage";
@@ -3355,6 +3496,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3355
3496
  value: number;
3356
3497
  };
3357
3498
  unsignedAction?: unknown;
3499
+ liquidationPx?: string | undefined;
3500
+ maxLeverage?: number | undefined;
3501
+ marginUsed?: string | undefined;
3502
+ projectedMarginUsd?: string | undefined;
3358
3503
  }>, z.ZodObject<{
3359
3504
  action: z.ZodLiteral<"perpetualsClosePosition">;
3360
3505
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -3366,6 +3511,19 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3366
3511
  side: z.ZodEnum<["buy", "sell"]>;
3367
3512
  markPx: z.ZodString;
3368
3513
  reduceOnly: z.ZodLiteral<true>;
3514
+ /**
3515
+ * To-be-realized PnL in USD, sourced from the live position's unrealized PnL at
3516
+ * build time (the relay close response carries no closedPnl). Signed (+/-).
3517
+ */
3518
+ estimatedPnlUsd: z.ZodOptional<z.ZodString>;
3519
+ /** The closing position's entry price, for "Closing long X · entry $Y" context. */
3520
+ entryPx: z.ZodOptional<z.ZodString>;
3521
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
3522
+ avgPx: z.ZodOptional<z.ZodString>;
3523
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
3524
+ totalSz: z.ZodOptional<z.ZodString>;
3525
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
3526
+ oid: z.ZodOptional<z.ZodNumber>;
3369
3527
  }, "strip", z.ZodTypeAny, {
3370
3528
  nonce: number;
3371
3529
  action: "perpetualsClosePosition";
@@ -3377,6 +3535,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3377
3535
  markPx: string;
3378
3536
  reduceOnly: true;
3379
3537
  unsignedAction?: unknown;
3538
+ avgPx?: string | undefined;
3539
+ totalSz?: string | undefined;
3540
+ oid?: number | undefined;
3541
+ estimatedPnlUsd?: string | undefined;
3542
+ entryPx?: string | undefined;
3380
3543
  }, {
3381
3544
  nonce: number;
3382
3545
  action: "perpetualsClosePosition";
@@ -3388,6 +3551,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3388
3551
  markPx: string;
3389
3552
  reduceOnly: true;
3390
3553
  unsignedAction?: unknown;
3554
+ avgPx?: string | undefined;
3555
+ totalSz?: string | undefined;
3556
+ oid?: number | undefined;
3557
+ estimatedPnlUsd?: string | undefined;
3558
+ entryPx?: string | undefined;
3391
3559
  }>, z.ZodObject<{
3392
3560
  action: z.ZodLiteral<"hyperliquidDeposit">;
3393
3561
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -3591,6 +3759,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3591
3759
  type: "cross" | "isolated";
3592
3760
  value: number;
3593
3761
  } | undefined;
3762
+ slippage?: number | undefined;
3763
+ limitPx?: string | undefined;
3764
+ estFeeUsd?: string | undefined;
3765
+ marginRequired?: string | undefined;
3766
+ liquidationPx?: string | undefined;
3767
+ avgPx?: string | undefined;
3768
+ totalSz?: string | undefined;
3769
+ oid?: number | undefined;
3594
3770
  } | {
3595
3771
  nonce: number;
3596
3772
  action: "perpetualsUpdateLeverage";
@@ -3602,6 +3778,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3602
3778
  value: number;
3603
3779
  };
3604
3780
  unsignedAction?: unknown;
3781
+ liquidationPx?: string | undefined;
3782
+ maxLeverage?: number | undefined;
3783
+ marginUsed?: string | undefined;
3784
+ projectedMarginUsd?: string | undefined;
3605
3785
  } | {
3606
3786
  nonce: number;
3607
3787
  action: "perpetualsClosePosition";
@@ -3613,6 +3793,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3613
3793
  markPx: string;
3614
3794
  reduceOnly: true;
3615
3795
  unsignedAction?: unknown;
3796
+ avgPx?: string | undefined;
3797
+ totalSz?: string | undefined;
3798
+ oid?: number | undefined;
3799
+ estimatedPnlUsd?: string | undefined;
3800
+ entryPx?: string | undefined;
3616
3801
  } | {
3617
3802
  toAddress: string;
3618
3803
  chainId: number;
@@ -3770,6 +3955,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3770
3955
  type: "cross" | "isolated";
3771
3956
  value: number;
3772
3957
  } | undefined;
3958
+ slippage?: number | undefined;
3959
+ limitPx?: string | undefined;
3960
+ estFeeUsd?: string | undefined;
3961
+ marginRequired?: string | undefined;
3962
+ liquidationPx?: string | undefined;
3963
+ avgPx?: string | undefined;
3964
+ totalSz?: string | undefined;
3965
+ oid?: number | undefined;
3773
3966
  } | {
3774
3967
  nonce: number;
3775
3968
  action: "perpetualsUpdateLeverage";
@@ -3781,6 +3974,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3781
3974
  value: number;
3782
3975
  };
3783
3976
  unsignedAction?: unknown;
3977
+ liquidationPx?: string | undefined;
3978
+ maxLeverage?: number | undefined;
3979
+ marginUsed?: string | undefined;
3980
+ projectedMarginUsd?: string | undefined;
3784
3981
  } | {
3785
3982
  nonce: number;
3786
3983
  action: "perpetualsClosePosition";
@@ -3792,6 +3989,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
3792
3989
  markPx: string;
3793
3990
  reduceOnly: true;
3794
3991
  unsignedAction?: unknown;
3992
+ avgPx?: string | undefined;
3993
+ totalSz?: string | undefined;
3994
+ oid?: number | undefined;
3995
+ estimatedPnlUsd?: string | undefined;
3996
+ entryPx?: string | undefined;
3795
3997
  } | {
3796
3998
  toAddress: string;
3797
3999
  chainId: number;
@@ -4277,6 +4479,32 @@ export declare const PendingToolCallSchema: z.ZodObject<{
4277
4479
  value: number;
4278
4480
  }>>;
4279
4481
  reduceOnly: z.ZodBoolean;
4482
+ /** IOC slippage tolerance applied to the marketable limit price (e.g. 0.05 = 5%). */
4483
+ slippage: z.ZodOptional<z.ZodNumber>;
4484
+ /** Marketable IOC limit price (mark ± slippage) the order is actually priced at. */
4485
+ limitPx: z.ZodOptional<z.ZodString>;
4486
+ /**
4487
+ * Estimated taker fee in USD (base taker rate × effective notional). Always a
4488
+ * taker order on Hyperliquid (market-style IOC); may be lower at higher VIP tiers.
4489
+ */
4490
+ estFeeUsd: z.ZodOptional<z.ZodString>;
4491
+ /**
4492
+ * Add-to-position only (a position already exists for `coin`): incremental USD
4493
+ * margin this order requires at the position's current leverage. Omitted for a
4494
+ * brand-new position, whose leverage can't be read until the position exists.
4495
+ */
4496
+ marginRequired: z.ZodOptional<z.ZodString>;
4497
+ /**
4498
+ * Add-to-position only: the existing position's CURRENT liquidation price. It
4499
+ * will move once the order fills (surfaced as context, not a post-trade estimate).
4500
+ */
4501
+ liquidationPx: z.ZodOptional<z.ZodString>;
4502
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
4503
+ avgPx: z.ZodOptional<z.ZodString>;
4504
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
4505
+ totalSz: z.ZodOptional<z.ZodString>;
4506
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
4507
+ oid: z.ZodOptional<z.ZodNumber>;
4280
4508
  }, "strip", z.ZodTypeAny, {
4281
4509
  nonce: number;
4282
4510
  action: "perpetualsOrder";
@@ -4293,6 +4521,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
4293
4521
  type: "cross" | "isolated";
4294
4522
  value: number;
4295
4523
  } | undefined;
4524
+ slippage?: number | undefined;
4525
+ limitPx?: string | undefined;
4526
+ estFeeUsd?: string | undefined;
4527
+ marginRequired?: string | undefined;
4528
+ liquidationPx?: string | undefined;
4529
+ avgPx?: string | undefined;
4530
+ totalSz?: string | undefined;
4531
+ oid?: number | undefined;
4296
4532
  }, {
4297
4533
  nonce: number;
4298
4534
  action: "perpetualsOrder";
@@ -4309,6 +4545,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
4309
4545
  type: "cross" | "isolated";
4310
4546
  value: number;
4311
4547
  } | undefined;
4548
+ slippage?: number | undefined;
4549
+ limitPx?: string | undefined;
4550
+ estFeeUsd?: string | undefined;
4551
+ marginRequired?: string | undefined;
4552
+ liquidationPx?: string | undefined;
4553
+ avgPx?: string | undefined;
4554
+ totalSz?: string | undefined;
4555
+ oid?: number | undefined;
4312
4556
  }>, z.ZodObject<{
4313
4557
  action: z.ZodLiteral<"perpetualsUpdateLeverage">;
4314
4558
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -4326,6 +4570,17 @@ export declare const PendingToolCallSchema: z.ZodObject<{
4326
4570
  type: "cross" | "isolated";
4327
4571
  value: number;
4328
4572
  }>;
4573
+ /** The asset's maximum allowed leverage (e.g. 25 → "max 25×"). */
4574
+ maxLeverage: z.ZodOptional<z.ZodNumber>;
4575
+ /**
4576
+ * Present only when a position already exists for `coin`: the position's CURRENT
4577
+ * margin in USD — paired with `projectedMarginUsd` for a before→after display.
4578
+ */
4579
+ marginUsed: z.ZodOptional<z.ZodString>;
4580
+ /** Present only when a position exists: the position's CURRENT liquidation price (it will move). */
4581
+ liquidationPx: z.ZodOptional<z.ZodString>;
4582
+ /** Present only when a position exists: projected new margin = position notional ÷ new leverage. */
4583
+ projectedMarginUsd: z.ZodOptional<z.ZodString>;
4329
4584
  }, "strip", z.ZodTypeAny, {
4330
4585
  nonce: number;
4331
4586
  action: "perpetualsUpdateLeverage";
@@ -4337,6 +4592,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
4337
4592
  value: number;
4338
4593
  };
4339
4594
  unsignedAction?: unknown;
4595
+ liquidationPx?: string | undefined;
4596
+ maxLeverage?: number | undefined;
4597
+ marginUsed?: string | undefined;
4598
+ projectedMarginUsd?: string | undefined;
4340
4599
  }, {
4341
4600
  nonce: number;
4342
4601
  action: "perpetualsUpdateLeverage";
@@ -4348,6 +4607,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
4348
4607
  value: number;
4349
4608
  };
4350
4609
  unsignedAction?: unknown;
4610
+ liquidationPx?: string | undefined;
4611
+ maxLeverage?: number | undefined;
4612
+ marginUsed?: string | undefined;
4613
+ projectedMarginUsd?: string | undefined;
4351
4614
  }>, z.ZodObject<{
4352
4615
  action: z.ZodLiteral<"perpetualsClosePosition">;
4353
4616
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -4359,6 +4622,19 @@ export declare const PendingToolCallSchema: z.ZodObject<{
4359
4622
  side: z.ZodEnum<["buy", "sell"]>;
4360
4623
  markPx: z.ZodString;
4361
4624
  reduceOnly: z.ZodLiteral<true>;
4625
+ /**
4626
+ * To-be-realized PnL in USD, sourced from the live position's unrealized PnL at
4627
+ * build time (the relay close response carries no closedPnl). Signed (+/-).
4628
+ */
4629
+ estimatedPnlUsd: z.ZodOptional<z.ZodString>;
4630
+ /** The closing position's entry price, for "Closing long X · entry $Y" context. */
4631
+ entryPx: z.ZodOptional<z.ZodString>;
4632
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
4633
+ avgPx: z.ZodOptional<z.ZodString>;
4634
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
4635
+ totalSz: z.ZodOptional<z.ZodString>;
4636
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
4637
+ oid: z.ZodOptional<z.ZodNumber>;
4362
4638
  }, "strip", z.ZodTypeAny, {
4363
4639
  nonce: number;
4364
4640
  action: "perpetualsClosePosition";
@@ -4370,6 +4646,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
4370
4646
  markPx: string;
4371
4647
  reduceOnly: true;
4372
4648
  unsignedAction?: unknown;
4649
+ avgPx?: string | undefined;
4650
+ totalSz?: string | undefined;
4651
+ oid?: number | undefined;
4652
+ estimatedPnlUsd?: string | undefined;
4653
+ entryPx?: string | undefined;
4373
4654
  }, {
4374
4655
  nonce: number;
4375
4656
  action: "perpetualsClosePosition";
@@ -4381,6 +4662,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
4381
4662
  markPx: string;
4382
4663
  reduceOnly: true;
4383
4664
  unsignedAction?: unknown;
4665
+ avgPx?: string | undefined;
4666
+ totalSz?: string | undefined;
4667
+ oid?: number | undefined;
4668
+ estimatedPnlUsd?: string | undefined;
4669
+ entryPx?: string | undefined;
4384
4670
  }>, z.ZodObject<{
4385
4671
  action: z.ZodLiteral<"hyperliquidDeposit">;
4386
4672
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -4584,6 +4870,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
4584
4870
  type: "cross" | "isolated";
4585
4871
  value: number;
4586
4872
  } | undefined;
4873
+ slippage?: number | undefined;
4874
+ limitPx?: string | undefined;
4875
+ estFeeUsd?: string | undefined;
4876
+ marginRequired?: string | undefined;
4877
+ liquidationPx?: string | undefined;
4878
+ avgPx?: string | undefined;
4879
+ totalSz?: string | undefined;
4880
+ oid?: number | undefined;
4587
4881
  } | {
4588
4882
  nonce: number;
4589
4883
  action: "perpetualsUpdateLeverage";
@@ -4595,6 +4889,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
4595
4889
  value: number;
4596
4890
  };
4597
4891
  unsignedAction?: unknown;
4892
+ liquidationPx?: string | undefined;
4893
+ maxLeverage?: number | undefined;
4894
+ marginUsed?: string | undefined;
4895
+ projectedMarginUsd?: string | undefined;
4598
4896
  } | {
4599
4897
  nonce: number;
4600
4898
  action: "perpetualsClosePosition";
@@ -4606,6 +4904,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
4606
4904
  markPx: string;
4607
4905
  reduceOnly: true;
4608
4906
  unsignedAction?: unknown;
4907
+ avgPx?: string | undefined;
4908
+ totalSz?: string | undefined;
4909
+ oid?: number | undefined;
4910
+ estimatedPnlUsd?: string | undefined;
4911
+ entryPx?: string | undefined;
4609
4912
  } | {
4610
4913
  toAddress: string;
4611
4914
  chainId: number;
@@ -4763,6 +5066,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
4763
5066
  type: "cross" | "isolated";
4764
5067
  value: number;
4765
5068
  } | undefined;
5069
+ slippage?: number | undefined;
5070
+ limitPx?: string | undefined;
5071
+ estFeeUsd?: string | undefined;
5072
+ marginRequired?: string | undefined;
5073
+ liquidationPx?: string | undefined;
5074
+ avgPx?: string | undefined;
5075
+ totalSz?: string | undefined;
5076
+ oid?: number | undefined;
4766
5077
  } | {
4767
5078
  nonce: number;
4768
5079
  action: "perpetualsUpdateLeverage";
@@ -4774,6 +5085,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
4774
5085
  value: number;
4775
5086
  };
4776
5087
  unsignedAction?: unknown;
5088
+ liquidationPx?: string | undefined;
5089
+ maxLeverage?: number | undefined;
5090
+ marginUsed?: string | undefined;
5091
+ projectedMarginUsd?: string | undefined;
4777
5092
  } | {
4778
5093
  nonce: number;
4779
5094
  action: "perpetualsClosePosition";
@@ -4785,6 +5100,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
4785
5100
  markPx: string;
4786
5101
  reduceOnly: true;
4787
5102
  unsignedAction?: unknown;
5103
+ avgPx?: string | undefined;
5104
+ totalSz?: string | undefined;
5105
+ oid?: number | undefined;
5106
+ estimatedPnlUsd?: string | undefined;
5107
+ entryPx?: string | undefined;
4788
5108
  } | {
4789
5109
  toAddress: string;
4790
5110
  chainId: number;
@@ -6615,6 +6935,32 @@ export declare const PendingToolCallSchema: z.ZodObject<{
6615
6935
  value: number;
6616
6936
  }>>;
6617
6937
  reduceOnly: z.ZodBoolean;
6938
+ /** IOC slippage tolerance applied to the marketable limit price (e.g. 0.05 = 5%). */
6939
+ slippage: z.ZodOptional<z.ZodNumber>;
6940
+ /** Marketable IOC limit price (mark ± slippage) the order is actually priced at. */
6941
+ limitPx: z.ZodOptional<z.ZodString>;
6942
+ /**
6943
+ * Estimated taker fee in USD (base taker rate × effective notional). Always a
6944
+ * taker order on Hyperliquid (market-style IOC); may be lower at higher VIP tiers.
6945
+ */
6946
+ estFeeUsd: z.ZodOptional<z.ZodString>;
6947
+ /**
6948
+ * Add-to-position only (a position already exists for `coin`): incremental USD
6949
+ * margin this order requires at the position's current leverage. Omitted for a
6950
+ * brand-new position, whose leverage can't be read until the position exists.
6951
+ */
6952
+ marginRequired: z.ZodOptional<z.ZodString>;
6953
+ /**
6954
+ * Add-to-position only: the existing position's CURRENT liquidation price. It
6955
+ * will move once the order fills (surfaced as context, not a post-trade estimate).
6956
+ */
6957
+ liquidationPx: z.ZodOptional<z.ZodString>;
6958
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
6959
+ avgPx: z.ZodOptional<z.ZodString>;
6960
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
6961
+ totalSz: z.ZodOptional<z.ZodString>;
6962
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
6963
+ oid: z.ZodOptional<z.ZodNumber>;
6618
6964
  }, "strip", z.ZodTypeAny, {
6619
6965
  nonce: number;
6620
6966
  action: "perpetualsOrder";
@@ -6631,6 +6977,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
6631
6977
  type: "cross" | "isolated";
6632
6978
  value: number;
6633
6979
  } | undefined;
6980
+ slippage?: number | undefined;
6981
+ limitPx?: string | undefined;
6982
+ estFeeUsd?: string | undefined;
6983
+ marginRequired?: string | undefined;
6984
+ liquidationPx?: string | undefined;
6985
+ avgPx?: string | undefined;
6986
+ totalSz?: string | undefined;
6987
+ oid?: number | undefined;
6634
6988
  }, {
6635
6989
  nonce: number;
6636
6990
  action: "perpetualsOrder";
@@ -6647,6 +7001,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
6647
7001
  type: "cross" | "isolated";
6648
7002
  value: number;
6649
7003
  } | undefined;
7004
+ slippage?: number | undefined;
7005
+ limitPx?: string | undefined;
7006
+ estFeeUsd?: string | undefined;
7007
+ marginRequired?: string | undefined;
7008
+ liquidationPx?: string | undefined;
7009
+ avgPx?: string | undefined;
7010
+ totalSz?: string | undefined;
7011
+ oid?: number | undefined;
6650
7012
  }>, z.ZodObject<{
6651
7013
  action: z.ZodLiteral<"perpetualsUpdateLeverage">;
6652
7014
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -6664,6 +7026,17 @@ export declare const PendingToolCallSchema: z.ZodObject<{
6664
7026
  type: "cross" | "isolated";
6665
7027
  value: number;
6666
7028
  }>;
7029
+ /** The asset's maximum allowed leverage (e.g. 25 → "max 25×"). */
7030
+ maxLeverage: z.ZodOptional<z.ZodNumber>;
7031
+ /**
7032
+ * Present only when a position already exists for `coin`: the position's CURRENT
7033
+ * margin in USD — paired with `projectedMarginUsd` for a before→after display.
7034
+ */
7035
+ marginUsed: z.ZodOptional<z.ZodString>;
7036
+ /** Present only when a position exists: the position's CURRENT liquidation price (it will move). */
7037
+ liquidationPx: z.ZodOptional<z.ZodString>;
7038
+ /** Present only when a position exists: projected new margin = position notional ÷ new leverage. */
7039
+ projectedMarginUsd: z.ZodOptional<z.ZodString>;
6667
7040
  }, "strip", z.ZodTypeAny, {
6668
7041
  nonce: number;
6669
7042
  action: "perpetualsUpdateLeverage";
@@ -6675,6 +7048,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
6675
7048
  value: number;
6676
7049
  };
6677
7050
  unsignedAction?: unknown;
7051
+ liquidationPx?: string | undefined;
7052
+ maxLeverage?: number | undefined;
7053
+ marginUsed?: string | undefined;
7054
+ projectedMarginUsd?: string | undefined;
6678
7055
  }, {
6679
7056
  nonce: number;
6680
7057
  action: "perpetualsUpdateLeverage";
@@ -6686,6 +7063,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
6686
7063
  value: number;
6687
7064
  };
6688
7065
  unsignedAction?: unknown;
7066
+ liquidationPx?: string | undefined;
7067
+ maxLeverage?: number | undefined;
7068
+ marginUsed?: string | undefined;
7069
+ projectedMarginUsd?: string | undefined;
6689
7070
  }>, z.ZodObject<{
6690
7071
  action: z.ZodLiteral<"perpetualsClosePosition">;
6691
7072
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -6697,6 +7078,19 @@ export declare const PendingToolCallSchema: z.ZodObject<{
6697
7078
  side: z.ZodEnum<["buy", "sell"]>;
6698
7079
  markPx: z.ZodString;
6699
7080
  reduceOnly: z.ZodLiteral<true>;
7081
+ /**
7082
+ * To-be-realized PnL in USD, sourced from the live position's unrealized PnL at
7083
+ * build time (the relay close response carries no closedPnl). Signed (+/-).
7084
+ */
7085
+ estimatedPnlUsd: z.ZodOptional<z.ZodString>;
7086
+ /** The closing position's entry price, for "Closing long X · entry $Y" context. */
7087
+ entryPx: z.ZodOptional<z.ZodString>;
7088
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
7089
+ avgPx: z.ZodOptional<z.ZodString>;
7090
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
7091
+ totalSz: z.ZodOptional<z.ZodString>;
7092
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
7093
+ oid: z.ZodOptional<z.ZodNumber>;
6700
7094
  }, "strip", z.ZodTypeAny, {
6701
7095
  nonce: number;
6702
7096
  action: "perpetualsClosePosition";
@@ -6708,6 +7102,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
6708
7102
  markPx: string;
6709
7103
  reduceOnly: true;
6710
7104
  unsignedAction?: unknown;
7105
+ avgPx?: string | undefined;
7106
+ totalSz?: string | undefined;
7107
+ oid?: number | undefined;
7108
+ estimatedPnlUsd?: string | undefined;
7109
+ entryPx?: string | undefined;
6711
7110
  }, {
6712
7111
  nonce: number;
6713
7112
  action: "perpetualsClosePosition";
@@ -6719,6 +7118,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
6719
7118
  markPx: string;
6720
7119
  reduceOnly: true;
6721
7120
  unsignedAction?: unknown;
7121
+ avgPx?: string | undefined;
7122
+ totalSz?: string | undefined;
7123
+ oid?: number | undefined;
7124
+ estimatedPnlUsd?: string | undefined;
7125
+ entryPx?: string | undefined;
6722
7126
  }>, z.ZodObject<{
6723
7127
  action: z.ZodLiteral<"hyperliquidDeposit">;
6724
7128
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -7113,6 +7517,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
7113
7517
  type: "cross" | "isolated";
7114
7518
  value: number;
7115
7519
  } | undefined;
7520
+ slippage?: number | undefined;
7521
+ limitPx?: string | undefined;
7522
+ estFeeUsd?: string | undefined;
7523
+ marginRequired?: string | undefined;
7524
+ liquidationPx?: string | undefined;
7525
+ avgPx?: string | undefined;
7526
+ totalSz?: string | undefined;
7527
+ oid?: number | undefined;
7116
7528
  } | {
7117
7529
  nonce: number;
7118
7530
  action: "perpetualsUpdateLeverage";
@@ -7124,6 +7536,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
7124
7536
  value: number;
7125
7537
  };
7126
7538
  unsignedAction?: unknown;
7539
+ liquidationPx?: string | undefined;
7540
+ maxLeverage?: number | undefined;
7541
+ marginUsed?: string | undefined;
7542
+ projectedMarginUsd?: string | undefined;
7127
7543
  } | {
7128
7544
  nonce: number;
7129
7545
  action: "perpetualsClosePosition";
@@ -7135,6 +7551,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
7135
7551
  markPx: string;
7136
7552
  reduceOnly: true;
7137
7553
  unsignedAction?: unknown;
7554
+ avgPx?: string | undefined;
7555
+ totalSz?: string | undefined;
7556
+ oid?: number | undefined;
7557
+ estimatedPnlUsd?: string | undefined;
7558
+ entryPx?: string | undefined;
7138
7559
  } | {
7139
7560
  toAddress: string;
7140
7561
  chainId: number;
@@ -7483,6 +7904,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
7483
7904
  type: "cross" | "isolated";
7484
7905
  value: number;
7485
7906
  } | undefined;
7907
+ slippage?: number | undefined;
7908
+ limitPx?: string | undefined;
7909
+ estFeeUsd?: string | undefined;
7910
+ marginRequired?: string | undefined;
7911
+ liquidationPx?: string | undefined;
7912
+ avgPx?: string | undefined;
7913
+ totalSz?: string | undefined;
7914
+ oid?: number | undefined;
7486
7915
  } | {
7487
7916
  nonce: number;
7488
7917
  action: "perpetualsUpdateLeverage";
@@ -7494,6 +7923,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
7494
7923
  value: number;
7495
7924
  };
7496
7925
  unsignedAction?: unknown;
7926
+ liquidationPx?: string | undefined;
7927
+ maxLeverage?: number | undefined;
7928
+ marginUsed?: string | undefined;
7929
+ projectedMarginUsd?: string | undefined;
7497
7930
  } | {
7498
7931
  nonce: number;
7499
7932
  action: "perpetualsClosePosition";
@@ -7505,6 +7938,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
7505
7938
  markPx: string;
7506
7939
  reduceOnly: true;
7507
7940
  unsignedAction?: unknown;
7941
+ avgPx?: string | undefined;
7942
+ totalSz?: string | undefined;
7943
+ oid?: number | undefined;
7944
+ estimatedPnlUsd?: string | undefined;
7945
+ entryPx?: string | undefined;
7508
7946
  } | {
7509
7947
  toAddress: string;
7510
7948
  chainId: number;
@@ -7992,6 +8430,32 @@ export declare const PendingToolCallSchema: z.ZodObject<{
7992
8430
  value: number;
7993
8431
  }>>;
7994
8432
  reduceOnly: z.ZodBoolean;
8433
+ /** IOC slippage tolerance applied to the marketable limit price (e.g. 0.05 = 5%). */
8434
+ slippage: z.ZodOptional<z.ZodNumber>;
8435
+ /** Marketable IOC limit price (mark ± slippage) the order is actually priced at. */
8436
+ limitPx: z.ZodOptional<z.ZodString>;
8437
+ /**
8438
+ * Estimated taker fee in USD (base taker rate × effective notional). Always a
8439
+ * taker order on Hyperliquid (market-style IOC); may be lower at higher VIP tiers.
8440
+ */
8441
+ estFeeUsd: z.ZodOptional<z.ZodString>;
8442
+ /**
8443
+ * Add-to-position only (a position already exists for `coin`): incremental USD
8444
+ * margin this order requires at the position's current leverage. Omitted for a
8445
+ * brand-new position, whose leverage can't be read until the position exists.
8446
+ */
8447
+ marginRequired: z.ZodOptional<z.ZodString>;
8448
+ /**
8449
+ * Add-to-position only: the existing position's CURRENT liquidation price. It
8450
+ * will move once the order fills (surfaced as context, not a post-trade estimate).
8451
+ */
8452
+ liquidationPx: z.ZodOptional<z.ZodString>;
8453
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
8454
+ avgPx: z.ZodOptional<z.ZodString>;
8455
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
8456
+ totalSz: z.ZodOptional<z.ZodString>;
8457
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
8458
+ oid: z.ZodOptional<z.ZodNumber>;
7995
8459
  }, "strip", z.ZodTypeAny, {
7996
8460
  nonce: number;
7997
8461
  action: "perpetualsOrder";
@@ -8008,6 +8472,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
8008
8472
  type: "cross" | "isolated";
8009
8473
  value: number;
8010
8474
  } | undefined;
8475
+ slippage?: number | undefined;
8476
+ limitPx?: string | undefined;
8477
+ estFeeUsd?: string | undefined;
8478
+ marginRequired?: string | undefined;
8479
+ liquidationPx?: string | undefined;
8480
+ avgPx?: string | undefined;
8481
+ totalSz?: string | undefined;
8482
+ oid?: number | undefined;
8011
8483
  }, {
8012
8484
  nonce: number;
8013
8485
  action: "perpetualsOrder";
@@ -8024,6 +8496,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
8024
8496
  type: "cross" | "isolated";
8025
8497
  value: number;
8026
8498
  } | undefined;
8499
+ slippage?: number | undefined;
8500
+ limitPx?: string | undefined;
8501
+ estFeeUsd?: string | undefined;
8502
+ marginRequired?: string | undefined;
8503
+ liquidationPx?: string | undefined;
8504
+ avgPx?: string | undefined;
8505
+ totalSz?: string | undefined;
8506
+ oid?: number | undefined;
8027
8507
  }>, z.ZodObject<{
8028
8508
  action: z.ZodLiteral<"perpetualsUpdateLeverage">;
8029
8509
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -8041,6 +8521,17 @@ export declare const PendingToolCallSchema: z.ZodObject<{
8041
8521
  type: "cross" | "isolated";
8042
8522
  value: number;
8043
8523
  }>;
8524
+ /** The asset's maximum allowed leverage (e.g. 25 → "max 25×"). */
8525
+ maxLeverage: z.ZodOptional<z.ZodNumber>;
8526
+ /**
8527
+ * Present only when a position already exists for `coin`: the position's CURRENT
8528
+ * margin in USD — paired with `projectedMarginUsd` for a before→after display.
8529
+ */
8530
+ marginUsed: z.ZodOptional<z.ZodString>;
8531
+ /** Present only when a position exists: the position's CURRENT liquidation price (it will move). */
8532
+ liquidationPx: z.ZodOptional<z.ZodString>;
8533
+ /** Present only when a position exists: projected new margin = position notional ÷ new leverage. */
8534
+ projectedMarginUsd: z.ZodOptional<z.ZodString>;
8044
8535
  }, "strip", z.ZodTypeAny, {
8045
8536
  nonce: number;
8046
8537
  action: "perpetualsUpdateLeverage";
@@ -8052,6 +8543,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
8052
8543
  value: number;
8053
8544
  };
8054
8545
  unsignedAction?: unknown;
8546
+ liquidationPx?: string | undefined;
8547
+ maxLeverage?: number | undefined;
8548
+ marginUsed?: string | undefined;
8549
+ projectedMarginUsd?: string | undefined;
8055
8550
  }, {
8056
8551
  nonce: number;
8057
8552
  action: "perpetualsUpdateLeverage";
@@ -8063,6 +8558,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
8063
8558
  value: number;
8064
8559
  };
8065
8560
  unsignedAction?: unknown;
8561
+ liquidationPx?: string | undefined;
8562
+ maxLeverage?: number | undefined;
8563
+ marginUsed?: string | undefined;
8564
+ projectedMarginUsd?: string | undefined;
8066
8565
  }>, z.ZodObject<{
8067
8566
  action: z.ZodLiteral<"perpetualsClosePosition">;
8068
8567
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -8074,6 +8573,19 @@ export declare const PendingToolCallSchema: z.ZodObject<{
8074
8573
  side: z.ZodEnum<["buy", "sell"]>;
8075
8574
  markPx: z.ZodString;
8076
8575
  reduceOnly: z.ZodLiteral<true>;
8576
+ /**
8577
+ * To-be-realized PnL in USD, sourced from the live position's unrealized PnL at
8578
+ * build time (the relay close response carries no closedPnl). Signed (+/-).
8579
+ */
8580
+ estimatedPnlUsd: z.ZodOptional<z.ZodString>;
8581
+ /** The closing position's entry price, for "Closing long X · entry $Y" context. */
8582
+ entryPx: z.ZodOptional<z.ZodString>;
8583
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
8584
+ avgPx: z.ZodOptional<z.ZodString>;
8585
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
8586
+ totalSz: z.ZodOptional<z.ZodString>;
8587
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
8588
+ oid: z.ZodOptional<z.ZodNumber>;
8077
8589
  }, "strip", z.ZodTypeAny, {
8078
8590
  nonce: number;
8079
8591
  action: "perpetualsClosePosition";
@@ -8085,6 +8597,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
8085
8597
  markPx: string;
8086
8598
  reduceOnly: true;
8087
8599
  unsignedAction?: unknown;
8600
+ avgPx?: string | undefined;
8601
+ totalSz?: string | undefined;
8602
+ oid?: number | undefined;
8603
+ estimatedPnlUsd?: string | undefined;
8604
+ entryPx?: string | undefined;
8088
8605
  }, {
8089
8606
  nonce: number;
8090
8607
  action: "perpetualsClosePosition";
@@ -8096,6 +8613,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
8096
8613
  markPx: string;
8097
8614
  reduceOnly: true;
8098
8615
  unsignedAction?: unknown;
8616
+ avgPx?: string | undefined;
8617
+ totalSz?: string | undefined;
8618
+ oid?: number | undefined;
8619
+ estimatedPnlUsd?: string | undefined;
8620
+ entryPx?: string | undefined;
8099
8621
  }>, z.ZodObject<{
8100
8622
  action: z.ZodLiteral<"hyperliquidDeposit">;
8101
8623
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -8299,6 +8821,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
8299
8821
  type: "cross" | "isolated";
8300
8822
  value: number;
8301
8823
  } | undefined;
8824
+ slippage?: number | undefined;
8825
+ limitPx?: string | undefined;
8826
+ estFeeUsd?: string | undefined;
8827
+ marginRequired?: string | undefined;
8828
+ liquidationPx?: string | undefined;
8829
+ avgPx?: string | undefined;
8830
+ totalSz?: string | undefined;
8831
+ oid?: number | undefined;
8302
8832
  } | {
8303
8833
  nonce: number;
8304
8834
  action: "perpetualsUpdateLeverage";
@@ -8310,6 +8840,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
8310
8840
  value: number;
8311
8841
  };
8312
8842
  unsignedAction?: unknown;
8843
+ liquidationPx?: string | undefined;
8844
+ maxLeverage?: number | undefined;
8845
+ marginUsed?: string | undefined;
8846
+ projectedMarginUsd?: string | undefined;
8313
8847
  } | {
8314
8848
  nonce: number;
8315
8849
  action: "perpetualsClosePosition";
@@ -8321,6 +8855,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
8321
8855
  markPx: string;
8322
8856
  reduceOnly: true;
8323
8857
  unsignedAction?: unknown;
8858
+ avgPx?: string | undefined;
8859
+ totalSz?: string | undefined;
8860
+ oid?: number | undefined;
8861
+ estimatedPnlUsd?: string | undefined;
8862
+ entryPx?: string | undefined;
8324
8863
  } | {
8325
8864
  toAddress: string;
8326
8865
  chainId: number;
@@ -8478,6 +9017,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
8478
9017
  type: "cross" | "isolated";
8479
9018
  value: number;
8480
9019
  } | undefined;
9020
+ slippage?: number | undefined;
9021
+ limitPx?: string | undefined;
9022
+ estFeeUsd?: string | undefined;
9023
+ marginRequired?: string | undefined;
9024
+ liquidationPx?: string | undefined;
9025
+ avgPx?: string | undefined;
9026
+ totalSz?: string | undefined;
9027
+ oid?: number | undefined;
8481
9028
  } | {
8482
9029
  nonce: number;
8483
9030
  action: "perpetualsUpdateLeverage";
@@ -8489,6 +9036,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
8489
9036
  value: number;
8490
9037
  };
8491
9038
  unsignedAction?: unknown;
9039
+ liquidationPx?: string | undefined;
9040
+ maxLeverage?: number | undefined;
9041
+ marginUsed?: string | undefined;
9042
+ projectedMarginUsd?: string | undefined;
8492
9043
  } | {
8493
9044
  nonce: number;
8494
9045
  action: "perpetualsClosePosition";
@@ -8500,6 +9051,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
8500
9051
  markPx: string;
8501
9052
  reduceOnly: true;
8502
9053
  unsignedAction?: unknown;
9054
+ avgPx?: string | undefined;
9055
+ totalSz?: string | undefined;
9056
+ oid?: number | undefined;
9057
+ estimatedPnlUsd?: string | undefined;
9058
+ entryPx?: string | undefined;
8503
9059
  } | {
8504
9060
  toAddress: string;
8505
9061
  chainId: number;
@@ -8985,6 +9541,32 @@ export declare const PendingToolCallSchema: z.ZodObject<{
8985
9541
  value: number;
8986
9542
  }>>;
8987
9543
  reduceOnly: z.ZodBoolean;
9544
+ /** IOC slippage tolerance applied to the marketable limit price (e.g. 0.05 = 5%). */
9545
+ slippage: z.ZodOptional<z.ZodNumber>;
9546
+ /** Marketable IOC limit price (mark ± slippage) the order is actually priced at. */
9547
+ limitPx: z.ZodOptional<z.ZodString>;
9548
+ /**
9549
+ * Estimated taker fee in USD (base taker rate × effective notional). Always a
9550
+ * taker order on Hyperliquid (market-style IOC); may be lower at higher VIP tiers.
9551
+ */
9552
+ estFeeUsd: z.ZodOptional<z.ZodString>;
9553
+ /**
9554
+ * Add-to-position only (a position already exists for `coin`): incremental USD
9555
+ * margin this order requires at the position's current leverage. Omitted for a
9556
+ * brand-new position, whose leverage can't be read until the position exists.
9557
+ */
9558
+ marginRequired: z.ZodOptional<z.ZodString>;
9559
+ /**
9560
+ * Add-to-position only: the existing position's CURRENT liquidation price. It
9561
+ * will move once the order fills (surfaced as context, not a post-trade estimate).
9562
+ */
9563
+ liquidationPx: z.ZodOptional<z.ZodString>;
9564
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
9565
+ avgPx: z.ZodOptional<z.ZodString>;
9566
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
9567
+ totalSz: z.ZodOptional<z.ZodString>;
9568
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
9569
+ oid: z.ZodOptional<z.ZodNumber>;
8988
9570
  }, "strip", z.ZodTypeAny, {
8989
9571
  nonce: number;
8990
9572
  action: "perpetualsOrder";
@@ -9001,6 +9583,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9001
9583
  type: "cross" | "isolated";
9002
9584
  value: number;
9003
9585
  } | undefined;
9586
+ slippage?: number | undefined;
9587
+ limitPx?: string | undefined;
9588
+ estFeeUsd?: string | undefined;
9589
+ marginRequired?: string | undefined;
9590
+ liquidationPx?: string | undefined;
9591
+ avgPx?: string | undefined;
9592
+ totalSz?: string | undefined;
9593
+ oid?: number | undefined;
9004
9594
  }, {
9005
9595
  nonce: number;
9006
9596
  action: "perpetualsOrder";
@@ -9017,6 +9607,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9017
9607
  type: "cross" | "isolated";
9018
9608
  value: number;
9019
9609
  } | undefined;
9610
+ slippage?: number | undefined;
9611
+ limitPx?: string | undefined;
9612
+ estFeeUsd?: string | undefined;
9613
+ marginRequired?: string | undefined;
9614
+ liquidationPx?: string | undefined;
9615
+ avgPx?: string | undefined;
9616
+ totalSz?: string | undefined;
9617
+ oid?: number | undefined;
9020
9618
  }>, z.ZodObject<{
9021
9619
  action: z.ZodLiteral<"perpetualsUpdateLeverage">;
9022
9620
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -9034,6 +9632,17 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9034
9632
  type: "cross" | "isolated";
9035
9633
  value: number;
9036
9634
  }>;
9635
+ /** The asset's maximum allowed leverage (e.g. 25 → "max 25×"). */
9636
+ maxLeverage: z.ZodOptional<z.ZodNumber>;
9637
+ /**
9638
+ * Present only when a position already exists for `coin`: the position's CURRENT
9639
+ * margin in USD — paired with `projectedMarginUsd` for a before→after display.
9640
+ */
9641
+ marginUsed: z.ZodOptional<z.ZodString>;
9642
+ /** Present only when a position exists: the position's CURRENT liquidation price (it will move). */
9643
+ liquidationPx: z.ZodOptional<z.ZodString>;
9644
+ /** Present only when a position exists: projected new margin = position notional ÷ new leverage. */
9645
+ projectedMarginUsd: z.ZodOptional<z.ZodString>;
9037
9646
  }, "strip", z.ZodTypeAny, {
9038
9647
  nonce: number;
9039
9648
  action: "perpetualsUpdateLeverage";
@@ -9045,6 +9654,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9045
9654
  value: number;
9046
9655
  };
9047
9656
  unsignedAction?: unknown;
9657
+ liquidationPx?: string | undefined;
9658
+ maxLeverage?: number | undefined;
9659
+ marginUsed?: string | undefined;
9660
+ projectedMarginUsd?: string | undefined;
9048
9661
  }, {
9049
9662
  nonce: number;
9050
9663
  action: "perpetualsUpdateLeverage";
@@ -9056,6 +9669,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9056
9669
  value: number;
9057
9670
  };
9058
9671
  unsignedAction?: unknown;
9672
+ liquidationPx?: string | undefined;
9673
+ maxLeverage?: number | undefined;
9674
+ marginUsed?: string | undefined;
9675
+ projectedMarginUsd?: string | undefined;
9059
9676
  }>, z.ZodObject<{
9060
9677
  action: z.ZodLiteral<"perpetualsClosePosition">;
9061
9678
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -9067,6 +9684,19 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9067
9684
  side: z.ZodEnum<["buy", "sell"]>;
9068
9685
  markPx: z.ZodString;
9069
9686
  reduceOnly: z.ZodLiteral<true>;
9687
+ /**
9688
+ * To-be-realized PnL in USD, sourced from the live position's unrealized PnL at
9689
+ * build time (the relay close response carries no closedPnl). Signed (+/-).
9690
+ */
9691
+ estimatedPnlUsd: z.ZodOptional<z.ZodString>;
9692
+ /** The closing position's entry price, for "Closing long X · entry $Y" context. */
9693
+ entryPx: z.ZodOptional<z.ZodString>;
9694
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
9695
+ avgPx: z.ZodOptional<z.ZodString>;
9696
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
9697
+ totalSz: z.ZodOptional<z.ZodString>;
9698
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
9699
+ oid: z.ZodOptional<z.ZodNumber>;
9070
9700
  }, "strip", z.ZodTypeAny, {
9071
9701
  nonce: number;
9072
9702
  action: "perpetualsClosePosition";
@@ -9078,6 +9708,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9078
9708
  markPx: string;
9079
9709
  reduceOnly: true;
9080
9710
  unsignedAction?: unknown;
9711
+ avgPx?: string | undefined;
9712
+ totalSz?: string | undefined;
9713
+ oid?: number | undefined;
9714
+ estimatedPnlUsd?: string | undefined;
9715
+ entryPx?: string | undefined;
9081
9716
  }, {
9082
9717
  nonce: number;
9083
9718
  action: "perpetualsClosePosition";
@@ -9089,6 +9724,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9089
9724
  markPx: string;
9090
9725
  reduceOnly: true;
9091
9726
  unsignedAction?: unknown;
9727
+ avgPx?: string | undefined;
9728
+ totalSz?: string | undefined;
9729
+ oid?: number | undefined;
9730
+ estimatedPnlUsd?: string | undefined;
9731
+ entryPx?: string | undefined;
9092
9732
  }>, z.ZodObject<{
9093
9733
  action: z.ZodLiteral<"hyperliquidDeposit">;
9094
9734
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -9292,6 +9932,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9292
9932
  type: "cross" | "isolated";
9293
9933
  value: number;
9294
9934
  } | undefined;
9935
+ slippage?: number | undefined;
9936
+ limitPx?: string | undefined;
9937
+ estFeeUsd?: string | undefined;
9938
+ marginRequired?: string | undefined;
9939
+ liquidationPx?: string | undefined;
9940
+ avgPx?: string | undefined;
9941
+ totalSz?: string | undefined;
9942
+ oid?: number | undefined;
9295
9943
  } | {
9296
9944
  nonce: number;
9297
9945
  action: "perpetualsUpdateLeverage";
@@ -9303,6 +9951,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9303
9951
  value: number;
9304
9952
  };
9305
9953
  unsignedAction?: unknown;
9954
+ liquidationPx?: string | undefined;
9955
+ maxLeverage?: number | undefined;
9956
+ marginUsed?: string | undefined;
9957
+ projectedMarginUsd?: string | undefined;
9306
9958
  } | {
9307
9959
  nonce: number;
9308
9960
  action: "perpetualsClosePosition";
@@ -9314,6 +9966,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9314
9966
  markPx: string;
9315
9967
  reduceOnly: true;
9316
9968
  unsignedAction?: unknown;
9969
+ avgPx?: string | undefined;
9970
+ totalSz?: string | undefined;
9971
+ oid?: number | undefined;
9972
+ estimatedPnlUsd?: string | undefined;
9973
+ entryPx?: string | undefined;
9317
9974
  } | {
9318
9975
  toAddress: string;
9319
9976
  chainId: number;
@@ -9471,6 +10128,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9471
10128
  type: "cross" | "isolated";
9472
10129
  value: number;
9473
10130
  } | undefined;
10131
+ slippage?: number | undefined;
10132
+ limitPx?: string | undefined;
10133
+ estFeeUsd?: string | undefined;
10134
+ marginRequired?: string | undefined;
10135
+ liquidationPx?: string | undefined;
10136
+ avgPx?: string | undefined;
10137
+ totalSz?: string | undefined;
10138
+ oid?: number | undefined;
9474
10139
  } | {
9475
10140
  nonce: number;
9476
10141
  action: "perpetualsUpdateLeverage";
@@ -9482,6 +10147,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9482
10147
  value: number;
9483
10148
  };
9484
10149
  unsignedAction?: unknown;
10150
+ liquidationPx?: string | undefined;
10151
+ maxLeverage?: number | undefined;
10152
+ marginUsed?: string | undefined;
10153
+ projectedMarginUsd?: string | undefined;
9485
10154
  } | {
9486
10155
  nonce: number;
9487
10156
  action: "perpetualsClosePosition";
@@ -9493,6 +10162,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
9493
10162
  markPx: string;
9494
10163
  reduceOnly: true;
9495
10164
  unsignedAction?: unknown;
10165
+ avgPx?: string | undefined;
10166
+ totalSz?: string | undefined;
10167
+ oid?: number | undefined;
10168
+ estimatedPnlUsd?: string | undefined;
10169
+ entryPx?: string | undefined;
9496
10170
  } | {
9497
10171
  toAddress: string;
9498
10172
  chainId: number;
@@ -11323,6 +11997,32 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11323
11997
  value: number;
11324
11998
  }>>;
11325
11999
  reduceOnly: z.ZodBoolean;
12000
+ /** IOC slippage tolerance applied to the marketable limit price (e.g. 0.05 = 5%). */
12001
+ slippage: z.ZodOptional<z.ZodNumber>;
12002
+ /** Marketable IOC limit price (mark ± slippage) the order is actually priced at. */
12003
+ limitPx: z.ZodOptional<z.ZodString>;
12004
+ /**
12005
+ * Estimated taker fee in USD (base taker rate × effective notional). Always a
12006
+ * taker order on Hyperliquid (market-style IOC); may be lower at higher VIP tiers.
12007
+ */
12008
+ estFeeUsd: z.ZodOptional<z.ZodString>;
12009
+ /**
12010
+ * Add-to-position only (a position already exists for `coin`): incremental USD
12011
+ * margin this order requires at the position's current leverage. Omitted for a
12012
+ * brand-new position, whose leverage can't be read until the position exists.
12013
+ */
12014
+ marginRequired: z.ZodOptional<z.ZodString>;
12015
+ /**
12016
+ * Add-to-position only: the existing position's CURRENT liquidation price. It
12017
+ * will move once the order fills (surfaced as context, not a post-trade estimate).
12018
+ */
12019
+ liquidationPx: z.ZodOptional<z.ZodString>;
12020
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
12021
+ avgPx: z.ZodOptional<z.ZodString>;
12022
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
12023
+ totalSz: z.ZodOptional<z.ZodString>;
12024
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
12025
+ oid: z.ZodOptional<z.ZodNumber>;
11326
12026
  }, "strip", z.ZodTypeAny, {
11327
12027
  nonce: number;
11328
12028
  action: "perpetualsOrder";
@@ -11339,6 +12039,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11339
12039
  type: "cross" | "isolated";
11340
12040
  value: number;
11341
12041
  } | undefined;
12042
+ slippage?: number | undefined;
12043
+ limitPx?: string | undefined;
12044
+ estFeeUsd?: string | undefined;
12045
+ marginRequired?: string | undefined;
12046
+ liquidationPx?: string | undefined;
12047
+ avgPx?: string | undefined;
12048
+ totalSz?: string | undefined;
12049
+ oid?: number | undefined;
11342
12050
  }, {
11343
12051
  nonce: number;
11344
12052
  action: "perpetualsOrder";
@@ -11355,6 +12063,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11355
12063
  type: "cross" | "isolated";
11356
12064
  value: number;
11357
12065
  } | undefined;
12066
+ slippage?: number | undefined;
12067
+ limitPx?: string | undefined;
12068
+ estFeeUsd?: string | undefined;
12069
+ marginRequired?: string | undefined;
12070
+ liquidationPx?: string | undefined;
12071
+ avgPx?: string | undefined;
12072
+ totalSz?: string | undefined;
12073
+ oid?: number | undefined;
11358
12074
  }>, z.ZodObject<{
11359
12075
  action: z.ZodLiteral<"perpetualsUpdateLeverage">;
11360
12076
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -11372,6 +12088,17 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11372
12088
  type: "cross" | "isolated";
11373
12089
  value: number;
11374
12090
  }>;
12091
+ /** The asset's maximum allowed leverage (e.g. 25 → "max 25×"). */
12092
+ maxLeverage: z.ZodOptional<z.ZodNumber>;
12093
+ /**
12094
+ * Present only when a position already exists for `coin`: the position's CURRENT
12095
+ * margin in USD — paired with `projectedMarginUsd` for a before→after display.
12096
+ */
12097
+ marginUsed: z.ZodOptional<z.ZodString>;
12098
+ /** Present only when a position exists: the position's CURRENT liquidation price (it will move). */
12099
+ liquidationPx: z.ZodOptional<z.ZodString>;
12100
+ /** Present only when a position exists: projected new margin = position notional ÷ new leverage. */
12101
+ projectedMarginUsd: z.ZodOptional<z.ZodString>;
11375
12102
  }, "strip", z.ZodTypeAny, {
11376
12103
  nonce: number;
11377
12104
  action: "perpetualsUpdateLeverage";
@@ -11383,6 +12110,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11383
12110
  value: number;
11384
12111
  };
11385
12112
  unsignedAction?: unknown;
12113
+ liquidationPx?: string | undefined;
12114
+ maxLeverage?: number | undefined;
12115
+ marginUsed?: string | undefined;
12116
+ projectedMarginUsd?: string | undefined;
11386
12117
  }, {
11387
12118
  nonce: number;
11388
12119
  action: "perpetualsUpdateLeverage";
@@ -11394,6 +12125,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11394
12125
  value: number;
11395
12126
  };
11396
12127
  unsignedAction?: unknown;
12128
+ liquidationPx?: string | undefined;
12129
+ maxLeverage?: number | undefined;
12130
+ marginUsed?: string | undefined;
12131
+ projectedMarginUsd?: string | undefined;
11397
12132
  }>, z.ZodObject<{
11398
12133
  action: z.ZodLiteral<"perpetualsClosePosition">;
11399
12134
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -11405,6 +12140,19 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11405
12140
  side: z.ZodEnum<["buy", "sell"]>;
11406
12141
  markPx: z.ZodString;
11407
12142
  reduceOnly: z.ZodLiteral<true>;
12143
+ /**
12144
+ * To-be-realized PnL in USD, sourced from the live position's unrealized PnL at
12145
+ * build time (the relay close response carries no closedPnl). Signed (+/-).
12146
+ */
12147
+ estimatedPnlUsd: z.ZodOptional<z.ZodString>;
12148
+ /** The closing position's entry price, for "Closing long X · entry $Y" context. */
12149
+ entryPx: z.ZodOptional<z.ZodString>;
12150
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
12151
+ avgPx: z.ZodOptional<z.ZodString>;
12152
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
12153
+ totalSz: z.ZodOptional<z.ZodString>;
12154
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
12155
+ oid: z.ZodOptional<z.ZodNumber>;
11408
12156
  }, "strip", z.ZodTypeAny, {
11409
12157
  nonce: number;
11410
12158
  action: "perpetualsClosePosition";
@@ -11416,6 +12164,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11416
12164
  markPx: string;
11417
12165
  reduceOnly: true;
11418
12166
  unsignedAction?: unknown;
12167
+ avgPx?: string | undefined;
12168
+ totalSz?: string | undefined;
12169
+ oid?: number | undefined;
12170
+ estimatedPnlUsd?: string | undefined;
12171
+ entryPx?: string | undefined;
11419
12172
  }, {
11420
12173
  nonce: number;
11421
12174
  action: "perpetualsClosePosition";
@@ -11427,6 +12180,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11427
12180
  markPx: string;
11428
12181
  reduceOnly: true;
11429
12182
  unsignedAction?: unknown;
12183
+ avgPx?: string | undefined;
12184
+ totalSz?: string | undefined;
12185
+ oid?: number | undefined;
12186
+ estimatedPnlUsd?: string | undefined;
12187
+ entryPx?: string | undefined;
11430
12188
  }>, z.ZodObject<{
11431
12189
  action: z.ZodLiteral<"hyperliquidDeposit">;
11432
12190
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -11821,6 +12579,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11821
12579
  type: "cross" | "isolated";
11822
12580
  value: number;
11823
12581
  } | undefined;
12582
+ slippage?: number | undefined;
12583
+ limitPx?: string | undefined;
12584
+ estFeeUsd?: string | undefined;
12585
+ marginRequired?: string | undefined;
12586
+ liquidationPx?: string | undefined;
12587
+ avgPx?: string | undefined;
12588
+ totalSz?: string | undefined;
12589
+ oid?: number | undefined;
11824
12590
  } | {
11825
12591
  nonce: number;
11826
12592
  action: "perpetualsUpdateLeverage";
@@ -11832,6 +12598,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11832
12598
  value: number;
11833
12599
  };
11834
12600
  unsignedAction?: unknown;
12601
+ liquidationPx?: string | undefined;
12602
+ maxLeverage?: number | undefined;
12603
+ marginUsed?: string | undefined;
12604
+ projectedMarginUsd?: string | undefined;
11835
12605
  } | {
11836
12606
  nonce: number;
11837
12607
  action: "perpetualsClosePosition";
@@ -11843,6 +12613,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
11843
12613
  markPx: string;
11844
12614
  reduceOnly: true;
11845
12615
  unsignedAction?: unknown;
12616
+ avgPx?: string | undefined;
12617
+ totalSz?: string | undefined;
12618
+ oid?: number | undefined;
12619
+ estimatedPnlUsd?: string | undefined;
12620
+ entryPx?: string | undefined;
11846
12621
  } | {
11847
12622
  toAddress: string;
11848
12623
  chainId: number;
@@ -12191,6 +12966,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12191
12966
  type: "cross" | "isolated";
12192
12967
  value: number;
12193
12968
  } | undefined;
12969
+ slippage?: number | undefined;
12970
+ limitPx?: string | undefined;
12971
+ estFeeUsd?: string | undefined;
12972
+ marginRequired?: string | undefined;
12973
+ liquidationPx?: string | undefined;
12974
+ avgPx?: string | undefined;
12975
+ totalSz?: string | undefined;
12976
+ oid?: number | undefined;
12194
12977
  } | {
12195
12978
  nonce: number;
12196
12979
  action: "perpetualsUpdateLeverage";
@@ -12202,6 +12985,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12202
12985
  value: number;
12203
12986
  };
12204
12987
  unsignedAction?: unknown;
12988
+ liquidationPx?: string | undefined;
12989
+ maxLeverage?: number | undefined;
12990
+ marginUsed?: string | undefined;
12991
+ projectedMarginUsd?: string | undefined;
12205
12992
  } | {
12206
12993
  nonce: number;
12207
12994
  action: "perpetualsClosePosition";
@@ -12213,6 +13000,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12213
13000
  markPx: string;
12214
13001
  reduceOnly: true;
12215
13002
  unsignedAction?: unknown;
13003
+ avgPx?: string | undefined;
13004
+ totalSz?: string | undefined;
13005
+ oid?: number | undefined;
13006
+ estimatedPnlUsd?: string | undefined;
13007
+ entryPx?: string | undefined;
12216
13008
  } | {
12217
13009
  toAddress: string;
12218
13010
  chainId: number;
@@ -12661,6 +13453,32 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12661
13453
  value: number;
12662
13454
  }>>;
12663
13455
  reduceOnly: z.ZodBoolean;
13456
+ /** IOC slippage tolerance applied to the marketable limit price (e.g. 0.05 = 5%). */
13457
+ slippage: z.ZodOptional<z.ZodNumber>;
13458
+ /** Marketable IOC limit price (mark ± slippage) the order is actually priced at. */
13459
+ limitPx: z.ZodOptional<z.ZodString>;
13460
+ /**
13461
+ * Estimated taker fee in USD (base taker rate × effective notional). Always a
13462
+ * taker order on Hyperliquid (market-style IOC); may be lower at higher VIP tiers.
13463
+ */
13464
+ estFeeUsd: z.ZodOptional<z.ZodString>;
13465
+ /**
13466
+ * Add-to-position only (a position already exists for `coin`): incremental USD
13467
+ * margin this order requires at the position's current leverage. Omitted for a
13468
+ * brand-new position, whose leverage can't be read until the position exists.
13469
+ */
13470
+ marginRequired: z.ZodOptional<z.ZodString>;
13471
+ /**
13472
+ * Add-to-position only: the existing position's CURRENT liquidation price. It
13473
+ * will move once the order fills (surfaced as context, not a post-trade estimate).
13474
+ */
13475
+ liquidationPx: z.ZodOptional<z.ZodString>;
13476
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
13477
+ avgPx: z.ZodOptional<z.ZodString>;
13478
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
13479
+ totalSz: z.ZodOptional<z.ZodString>;
13480
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
13481
+ oid: z.ZodOptional<z.ZodNumber>;
12664
13482
  }, "strip", z.ZodTypeAny, {
12665
13483
  nonce: number;
12666
13484
  action: "perpetualsOrder";
@@ -12677,6 +13495,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12677
13495
  type: "cross" | "isolated";
12678
13496
  value: number;
12679
13497
  } | undefined;
13498
+ slippage?: number | undefined;
13499
+ limitPx?: string | undefined;
13500
+ estFeeUsd?: string | undefined;
13501
+ marginRequired?: string | undefined;
13502
+ liquidationPx?: string | undefined;
13503
+ avgPx?: string | undefined;
13504
+ totalSz?: string | undefined;
13505
+ oid?: number | undefined;
12680
13506
  }, {
12681
13507
  nonce: number;
12682
13508
  action: "perpetualsOrder";
@@ -12693,6 +13519,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12693
13519
  type: "cross" | "isolated";
12694
13520
  value: number;
12695
13521
  } | undefined;
13522
+ slippage?: number | undefined;
13523
+ limitPx?: string | undefined;
13524
+ estFeeUsd?: string | undefined;
13525
+ marginRequired?: string | undefined;
13526
+ liquidationPx?: string | undefined;
13527
+ avgPx?: string | undefined;
13528
+ totalSz?: string | undefined;
13529
+ oid?: number | undefined;
12696
13530
  }>, z.ZodObject<{
12697
13531
  action: z.ZodLiteral<"perpetualsUpdateLeverage">;
12698
13532
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -12710,6 +13544,17 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12710
13544
  type: "cross" | "isolated";
12711
13545
  value: number;
12712
13546
  }>;
13547
+ /** The asset's maximum allowed leverage (e.g. 25 → "max 25×"). */
13548
+ maxLeverage: z.ZodOptional<z.ZodNumber>;
13549
+ /**
13550
+ * Present only when a position already exists for `coin`: the position's CURRENT
13551
+ * margin in USD — paired with `projectedMarginUsd` for a before→after display.
13552
+ */
13553
+ marginUsed: z.ZodOptional<z.ZodString>;
13554
+ /** Present only when a position exists: the position's CURRENT liquidation price (it will move). */
13555
+ liquidationPx: z.ZodOptional<z.ZodString>;
13556
+ /** Present only when a position exists: projected new margin = position notional ÷ new leverage. */
13557
+ projectedMarginUsd: z.ZodOptional<z.ZodString>;
12713
13558
  }, "strip", z.ZodTypeAny, {
12714
13559
  nonce: number;
12715
13560
  action: "perpetualsUpdateLeverage";
@@ -12721,6 +13566,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12721
13566
  value: number;
12722
13567
  };
12723
13568
  unsignedAction?: unknown;
13569
+ liquidationPx?: string | undefined;
13570
+ maxLeverage?: number | undefined;
13571
+ marginUsed?: string | undefined;
13572
+ projectedMarginUsd?: string | undefined;
12724
13573
  }, {
12725
13574
  nonce: number;
12726
13575
  action: "perpetualsUpdateLeverage";
@@ -12732,6 +13581,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12732
13581
  value: number;
12733
13582
  };
12734
13583
  unsignedAction?: unknown;
13584
+ liquidationPx?: string | undefined;
13585
+ maxLeverage?: number | undefined;
13586
+ marginUsed?: string | undefined;
13587
+ projectedMarginUsd?: string | undefined;
12735
13588
  }>, z.ZodObject<{
12736
13589
  action: z.ZodLiteral<"perpetualsClosePosition">;
12737
13590
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -12743,6 +13596,19 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12743
13596
  side: z.ZodEnum<["buy", "sell"]>;
12744
13597
  markPx: z.ZodString;
12745
13598
  reduceOnly: z.ZodLiteral<true>;
13599
+ /**
13600
+ * To-be-realized PnL in USD, sourced from the live position's unrealized PnL at
13601
+ * build time (the relay close response carries no closedPnl). Signed (+/-).
13602
+ */
13603
+ estimatedPnlUsd: z.ZodOptional<z.ZodString>;
13604
+ /** The closing position's entry price, for "Closing long X · entry $Y" context. */
13605
+ entryPx: z.ZodOptional<z.ZodString>;
13606
+ /** Fill detail, merged in post-confirm by the relay continuation: average fill price. */
13607
+ avgPx: z.ZodOptional<z.ZodString>;
13608
+ /** Fill detail, merged in post-confirm by the relay continuation: filled base size. */
13609
+ totalSz: z.ZodOptional<z.ZodString>;
13610
+ /** Fill detail, merged in post-confirm by the relay continuation: exchange order id. */
13611
+ oid: z.ZodOptional<z.ZodNumber>;
12746
13612
  }, "strip", z.ZodTypeAny, {
12747
13613
  nonce: number;
12748
13614
  action: "perpetualsClosePosition";
@@ -12754,6 +13620,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12754
13620
  markPx: string;
12755
13621
  reduceOnly: true;
12756
13622
  unsignedAction?: unknown;
13623
+ avgPx?: string | undefined;
13624
+ totalSz?: string | undefined;
13625
+ oid?: number | undefined;
13626
+ estimatedPnlUsd?: string | undefined;
13627
+ entryPx?: string | undefined;
12757
13628
  }, {
12758
13629
  nonce: number;
12759
13630
  action: "perpetualsClosePosition";
@@ -12765,6 +13636,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12765
13636
  markPx: string;
12766
13637
  reduceOnly: true;
12767
13638
  unsignedAction?: unknown;
13639
+ avgPx?: string | undefined;
13640
+ totalSz?: string | undefined;
13641
+ oid?: number | undefined;
13642
+ estimatedPnlUsd?: string | undefined;
13643
+ entryPx?: string | undefined;
12768
13644
  }>, z.ZodObject<{
12769
13645
  action: z.ZodLiteral<"hyperliquidDeposit">;
12770
13646
  network: z.ZodEnum<["mainnet", "testnet"]>;
@@ -12970,6 +13846,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12970
13846
  type: "cross" | "isolated";
12971
13847
  value: number;
12972
13848
  } | undefined;
13849
+ slippage?: number | undefined;
13850
+ limitPx?: string | undefined;
13851
+ estFeeUsd?: string | undefined;
13852
+ marginRequired?: string | undefined;
13853
+ liquidationPx?: string | undefined;
13854
+ avgPx?: string | undefined;
13855
+ totalSz?: string | undefined;
13856
+ oid?: number | undefined;
12973
13857
  } | {
12974
13858
  nonce: number;
12975
13859
  action: "perpetualsUpdateLeverage";
@@ -12981,6 +13865,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12981
13865
  value: number;
12982
13866
  };
12983
13867
  unsignedAction?: unknown;
13868
+ liquidationPx?: string | undefined;
13869
+ maxLeverage?: number | undefined;
13870
+ marginUsed?: string | undefined;
13871
+ projectedMarginUsd?: string | undefined;
12984
13872
  } | {
12985
13873
  nonce: number;
12986
13874
  action: "perpetualsClosePosition";
@@ -12992,6 +13880,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
12992
13880
  markPx: string;
12993
13881
  reduceOnly: true;
12994
13882
  unsignedAction?: unknown;
13883
+ avgPx?: string | undefined;
13884
+ totalSz?: string | undefined;
13885
+ oid?: number | undefined;
13886
+ estimatedPnlUsd?: string | undefined;
13887
+ entryPx?: string | undefined;
12995
13888
  } | {
12996
13889
  toAddress: string;
12997
13890
  chainId: number;
@@ -13149,6 +14042,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13149
14042
  type: "cross" | "isolated";
13150
14043
  value: number;
13151
14044
  } | undefined;
14045
+ slippage?: number | undefined;
14046
+ limitPx?: string | undefined;
14047
+ estFeeUsd?: string | undefined;
14048
+ marginRequired?: string | undefined;
14049
+ liquidationPx?: string | undefined;
14050
+ avgPx?: string | undefined;
14051
+ totalSz?: string | undefined;
14052
+ oid?: number | undefined;
13152
14053
  } | {
13153
14054
  nonce: number;
13154
14055
  action: "perpetualsUpdateLeverage";
@@ -13160,6 +14061,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13160
14061
  value: number;
13161
14062
  };
13162
14063
  unsignedAction?: unknown;
14064
+ liquidationPx?: string | undefined;
14065
+ maxLeverage?: number | undefined;
14066
+ marginUsed?: string | undefined;
14067
+ projectedMarginUsd?: string | undefined;
13163
14068
  } | {
13164
14069
  nonce: number;
13165
14070
  action: "perpetualsClosePosition";
@@ -13171,6 +14076,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13171
14076
  markPx: string;
13172
14077
  reduceOnly: true;
13173
14078
  unsignedAction?: unknown;
14079
+ avgPx?: string | undefined;
14080
+ totalSz?: string | undefined;
14081
+ oid?: number | undefined;
14082
+ estimatedPnlUsd?: string | undefined;
14083
+ entryPx?: string | undefined;
13174
14084
  } | {
13175
14085
  toAddress: string;
13176
14086
  chainId: number;
@@ -13519,6 +14429,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13519
14429
  type: "cross" | "isolated";
13520
14430
  value: number;
13521
14431
  } | undefined;
14432
+ slippage?: number | undefined;
14433
+ limitPx?: string | undefined;
14434
+ estFeeUsd?: string | undefined;
14435
+ marginRequired?: string | undefined;
14436
+ liquidationPx?: string | undefined;
14437
+ avgPx?: string | undefined;
14438
+ totalSz?: string | undefined;
14439
+ oid?: number | undefined;
13522
14440
  } | {
13523
14441
  nonce: number;
13524
14442
  action: "perpetualsUpdateLeverage";
@@ -13530,6 +14448,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13530
14448
  value: number;
13531
14449
  };
13532
14450
  unsignedAction?: unknown;
14451
+ liquidationPx?: string | undefined;
14452
+ maxLeverage?: number | undefined;
14453
+ marginUsed?: string | undefined;
14454
+ projectedMarginUsd?: string | undefined;
13533
14455
  } | {
13534
14456
  nonce: number;
13535
14457
  action: "perpetualsClosePosition";
@@ -13541,6 +14463,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13541
14463
  markPx: string;
13542
14464
  reduceOnly: true;
13543
14465
  unsignedAction?: unknown;
14466
+ avgPx?: string | undefined;
14467
+ totalSz?: string | undefined;
14468
+ oid?: number | undefined;
14469
+ estimatedPnlUsd?: string | undefined;
14470
+ entryPx?: string | undefined;
13544
14471
  } | {
13545
14472
  toAddress: string;
13546
14473
  chainId: number;
@@ -13689,6 +14616,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13689
14616
  type: "cross" | "isolated";
13690
14617
  value: number;
13691
14618
  } | undefined;
14619
+ slippage?: number | undefined;
14620
+ limitPx?: string | undefined;
14621
+ estFeeUsd?: string | undefined;
14622
+ marginRequired?: string | undefined;
14623
+ liquidationPx?: string | undefined;
14624
+ avgPx?: string | undefined;
14625
+ totalSz?: string | undefined;
14626
+ oid?: number | undefined;
13692
14627
  } | {
13693
14628
  nonce: number;
13694
14629
  action: "perpetualsUpdateLeverage";
@@ -13700,6 +14635,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13700
14635
  value: number;
13701
14636
  };
13702
14637
  unsignedAction?: unknown;
14638
+ liquidationPx?: string | undefined;
14639
+ maxLeverage?: number | undefined;
14640
+ marginUsed?: string | undefined;
14641
+ projectedMarginUsd?: string | undefined;
13703
14642
  } | {
13704
14643
  nonce: number;
13705
14644
  action: "perpetualsClosePosition";
@@ -13711,6 +14650,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13711
14650
  markPx: string;
13712
14651
  reduceOnly: true;
13713
14652
  unsignedAction?: unknown;
14653
+ avgPx?: string | undefined;
14654
+ totalSz?: string | undefined;
14655
+ oid?: number | undefined;
14656
+ estimatedPnlUsd?: string | undefined;
14657
+ entryPx?: string | undefined;
13714
14658
  } | {
13715
14659
  toAddress: string;
13716
14660
  chainId: number;
@@ -13870,6 +14814,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13870
14814
  type: "cross" | "isolated";
13871
14815
  value: number;
13872
14816
  } | undefined;
14817
+ slippage?: number | undefined;
14818
+ limitPx?: string | undefined;
14819
+ estFeeUsd?: string | undefined;
14820
+ marginRequired?: string | undefined;
14821
+ liquidationPx?: string | undefined;
14822
+ avgPx?: string | undefined;
14823
+ totalSz?: string | undefined;
14824
+ oid?: number | undefined;
13873
14825
  } | {
13874
14826
  nonce: number;
13875
14827
  action: "perpetualsUpdateLeverage";
@@ -13881,6 +14833,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13881
14833
  value: number;
13882
14834
  };
13883
14835
  unsignedAction?: unknown;
14836
+ liquidationPx?: string | undefined;
14837
+ maxLeverage?: number | undefined;
14838
+ marginUsed?: string | undefined;
14839
+ projectedMarginUsd?: string | undefined;
13884
14840
  } | {
13885
14841
  nonce: number;
13886
14842
  action: "perpetualsClosePosition";
@@ -13892,6 +14848,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
13892
14848
  markPx: string;
13893
14849
  reduceOnly: true;
13894
14850
  unsignedAction?: unknown;
14851
+ avgPx?: string | undefined;
14852
+ totalSz?: string | undefined;
14853
+ oid?: number | undefined;
14854
+ estimatedPnlUsd?: string | undefined;
14855
+ entryPx?: string | undefined;
13895
14856
  } | {
13896
14857
  toAddress: string;
13897
14858
  chainId: number;
@@ -14049,6 +15010,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
14049
15010
  type: "cross" | "isolated";
14050
15011
  value: number;
14051
15012
  } | undefined;
15013
+ slippage?: number | undefined;
15014
+ limitPx?: string | undefined;
15015
+ estFeeUsd?: string | undefined;
15016
+ marginRequired?: string | undefined;
15017
+ liquidationPx?: string | undefined;
15018
+ avgPx?: string | undefined;
15019
+ totalSz?: string | undefined;
15020
+ oid?: number | undefined;
14052
15021
  } | {
14053
15022
  nonce: number;
14054
15023
  action: "perpetualsUpdateLeverage";
@@ -14060,6 +15029,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
14060
15029
  value: number;
14061
15030
  };
14062
15031
  unsignedAction?: unknown;
15032
+ liquidationPx?: string | undefined;
15033
+ maxLeverage?: number | undefined;
15034
+ marginUsed?: string | undefined;
15035
+ projectedMarginUsd?: string | undefined;
14063
15036
  } | {
14064
15037
  nonce: number;
14065
15038
  action: "perpetualsClosePosition";
@@ -14071,6 +15044,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
14071
15044
  markPx: string;
14072
15045
  reduceOnly: true;
14073
15046
  unsignedAction?: unknown;
15047
+ avgPx?: string | undefined;
15048
+ totalSz?: string | undefined;
15049
+ oid?: number | undefined;
15050
+ estimatedPnlUsd?: string | undefined;
15051
+ entryPx?: string | undefined;
14074
15052
  } | {
14075
15053
  toAddress: string;
14076
15054
  chainId: number;
@@ -14419,6 +15397,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
14419
15397
  type: "cross" | "isolated";
14420
15398
  value: number;
14421
15399
  } | undefined;
15400
+ slippage?: number | undefined;
15401
+ limitPx?: string | undefined;
15402
+ estFeeUsd?: string | undefined;
15403
+ marginRequired?: string | undefined;
15404
+ liquidationPx?: string | undefined;
15405
+ avgPx?: string | undefined;
15406
+ totalSz?: string | undefined;
15407
+ oid?: number | undefined;
14422
15408
  } | {
14423
15409
  nonce: number;
14424
15410
  action: "perpetualsUpdateLeverage";
@@ -14430,6 +15416,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
14430
15416
  value: number;
14431
15417
  };
14432
15418
  unsignedAction?: unknown;
15419
+ liquidationPx?: string | undefined;
15420
+ maxLeverage?: number | undefined;
15421
+ marginUsed?: string | undefined;
15422
+ projectedMarginUsd?: string | undefined;
14433
15423
  } | {
14434
15424
  nonce: number;
14435
15425
  action: "perpetualsClosePosition";
@@ -14441,6 +15431,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
14441
15431
  markPx: string;
14442
15432
  reduceOnly: true;
14443
15433
  unsignedAction?: unknown;
15434
+ avgPx?: string | undefined;
15435
+ totalSz?: string | undefined;
15436
+ oid?: number | undefined;
15437
+ estimatedPnlUsd?: string | undefined;
15438
+ entryPx?: string | undefined;
14444
15439
  } | {
14445
15440
  toAddress: string;
14446
15441
  chainId: number;
@@ -14589,6 +15584,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
14589
15584
  type: "cross" | "isolated";
14590
15585
  value: number;
14591
15586
  } | undefined;
15587
+ slippage?: number | undefined;
15588
+ limitPx?: string | undefined;
15589
+ estFeeUsd?: string | undefined;
15590
+ marginRequired?: string | undefined;
15591
+ liquidationPx?: string | undefined;
15592
+ avgPx?: string | undefined;
15593
+ totalSz?: string | undefined;
15594
+ oid?: number | undefined;
14592
15595
  } | {
14593
15596
  nonce: number;
14594
15597
  action: "perpetualsUpdateLeverage";
@@ -14600,6 +15603,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
14600
15603
  value: number;
14601
15604
  };
14602
15605
  unsignedAction?: unknown;
15606
+ liquidationPx?: string | undefined;
15607
+ maxLeverage?: number | undefined;
15608
+ marginUsed?: string | undefined;
15609
+ projectedMarginUsd?: string | undefined;
14603
15610
  } | {
14604
15611
  nonce: number;
14605
15612
  action: "perpetualsClosePosition";
@@ -14611,6 +15618,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
14611
15618
  markPx: string;
14612
15619
  reduceOnly: true;
14613
15620
  unsignedAction?: unknown;
15621
+ avgPx?: string | undefined;
15622
+ totalSz?: string | undefined;
15623
+ oid?: number | undefined;
15624
+ estimatedPnlUsd?: string | undefined;
15625
+ entryPx?: string | undefined;
14614
15626
  } | {
14615
15627
  toAddress: string;
14616
15628
  chainId: number;
@@ -15193,6 +16205,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
15193
16205
  type: "cross" | "isolated";
15194
16206
  value: number;
15195
16207
  } | undefined;
16208
+ slippage?: number | undefined;
16209
+ limitPx?: string | undefined;
16210
+ estFeeUsd?: string | undefined;
16211
+ marginRequired?: string | undefined;
16212
+ liquidationPx?: string | undefined;
16213
+ avgPx?: string | undefined;
16214
+ totalSz?: string | undefined;
16215
+ oid?: number | undefined;
15196
16216
  } | {
15197
16217
  nonce: number;
15198
16218
  action: "perpetualsUpdateLeverage";
@@ -15204,6 +16224,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
15204
16224
  value: number;
15205
16225
  };
15206
16226
  unsignedAction?: unknown;
16227
+ liquidationPx?: string | undefined;
16228
+ maxLeverage?: number | undefined;
16229
+ marginUsed?: string | undefined;
16230
+ projectedMarginUsd?: string | undefined;
15207
16231
  } | {
15208
16232
  nonce: number;
15209
16233
  action: "perpetualsClosePosition";
@@ -15215,6 +16239,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
15215
16239
  markPx: string;
15216
16240
  reduceOnly: true;
15217
16241
  unsignedAction?: unknown;
16242
+ avgPx?: string | undefined;
16243
+ totalSz?: string | undefined;
16244
+ oid?: number | undefined;
16245
+ estimatedPnlUsd?: string | undefined;
16246
+ entryPx?: string | undefined;
15218
16247
  } | {
15219
16248
  toAddress: string;
15220
16249
  chainId: number;
@@ -15372,6 +16401,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
15372
16401
  type: "cross" | "isolated";
15373
16402
  value: number;
15374
16403
  } | undefined;
16404
+ slippage?: number | undefined;
16405
+ limitPx?: string | undefined;
16406
+ estFeeUsd?: string | undefined;
16407
+ marginRequired?: string | undefined;
16408
+ liquidationPx?: string | undefined;
16409
+ avgPx?: string | undefined;
16410
+ totalSz?: string | undefined;
16411
+ oid?: number | undefined;
15375
16412
  } | {
15376
16413
  nonce: number;
15377
16414
  action: "perpetualsUpdateLeverage";
@@ -15383,6 +16420,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
15383
16420
  value: number;
15384
16421
  };
15385
16422
  unsignedAction?: unknown;
16423
+ liquidationPx?: string | undefined;
16424
+ maxLeverage?: number | undefined;
16425
+ marginUsed?: string | undefined;
16426
+ projectedMarginUsd?: string | undefined;
15386
16427
  } | {
15387
16428
  nonce: number;
15388
16429
  action: "perpetualsClosePosition";
@@ -15394,6 +16435,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
15394
16435
  markPx: string;
15395
16436
  reduceOnly: true;
15396
16437
  unsignedAction?: unknown;
16438
+ avgPx?: string | undefined;
16439
+ totalSz?: string | undefined;
16440
+ oid?: number | undefined;
16441
+ estimatedPnlUsd?: string | undefined;
16442
+ entryPx?: string | undefined;
15397
16443
  } | {
15398
16444
  toAddress: string;
15399
16445
  chainId: number;
@@ -15742,6 +16788,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
15742
16788
  type: "cross" | "isolated";
15743
16789
  value: number;
15744
16790
  } | undefined;
16791
+ slippage?: number | undefined;
16792
+ limitPx?: string | undefined;
16793
+ estFeeUsd?: string | undefined;
16794
+ marginRequired?: string | undefined;
16795
+ liquidationPx?: string | undefined;
16796
+ avgPx?: string | undefined;
16797
+ totalSz?: string | undefined;
16798
+ oid?: number | undefined;
15745
16799
  } | {
15746
16800
  nonce: number;
15747
16801
  action: "perpetualsUpdateLeverage";
@@ -15753,6 +16807,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
15753
16807
  value: number;
15754
16808
  };
15755
16809
  unsignedAction?: unknown;
16810
+ liquidationPx?: string | undefined;
16811
+ maxLeverage?: number | undefined;
16812
+ marginUsed?: string | undefined;
16813
+ projectedMarginUsd?: string | undefined;
15756
16814
  } | {
15757
16815
  nonce: number;
15758
16816
  action: "perpetualsClosePosition";
@@ -15764,6 +16822,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
15764
16822
  markPx: string;
15765
16823
  reduceOnly: true;
15766
16824
  unsignedAction?: unknown;
16825
+ avgPx?: string | undefined;
16826
+ totalSz?: string | undefined;
16827
+ oid?: number | undefined;
16828
+ estimatedPnlUsd?: string | undefined;
16829
+ entryPx?: string | undefined;
15767
16830
  } | {
15768
16831
  toAddress: string;
15769
16832
  chainId: number;
@@ -15923,6 +16986,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
15923
16986
  type: "cross" | "isolated";
15924
16987
  value: number;
15925
16988
  } | undefined;
16989
+ slippage?: number | undefined;
16990
+ limitPx?: string | undefined;
16991
+ estFeeUsd?: string | undefined;
16992
+ marginRequired?: string | undefined;
16993
+ liquidationPx?: string | undefined;
16994
+ avgPx?: string | undefined;
16995
+ totalSz?: string | undefined;
16996
+ oid?: number | undefined;
15926
16997
  } | {
15927
16998
  nonce: number;
15928
16999
  action: "perpetualsUpdateLeverage";
@@ -15934,6 +17005,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
15934
17005
  value: number;
15935
17006
  };
15936
17007
  unsignedAction?: unknown;
17008
+ liquidationPx?: string | undefined;
17009
+ maxLeverage?: number | undefined;
17010
+ marginUsed?: string | undefined;
17011
+ projectedMarginUsd?: string | undefined;
15937
17012
  } | {
15938
17013
  nonce: number;
15939
17014
  action: "perpetualsClosePosition";
@@ -15945,6 +17020,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
15945
17020
  markPx: string;
15946
17021
  reduceOnly: true;
15947
17022
  unsignedAction?: unknown;
17023
+ avgPx?: string | undefined;
17024
+ totalSz?: string | undefined;
17025
+ oid?: number | undefined;
17026
+ estimatedPnlUsd?: string | undefined;
17027
+ entryPx?: string | undefined;
15948
17028
  } | {
15949
17029
  toAddress: string;
15950
17030
  chainId: number;
@@ -16102,6 +17182,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
16102
17182
  type: "cross" | "isolated";
16103
17183
  value: number;
16104
17184
  } | undefined;
17185
+ slippage?: number | undefined;
17186
+ limitPx?: string | undefined;
17187
+ estFeeUsd?: string | undefined;
17188
+ marginRequired?: string | undefined;
17189
+ liquidationPx?: string | undefined;
17190
+ avgPx?: string | undefined;
17191
+ totalSz?: string | undefined;
17192
+ oid?: number | undefined;
16105
17193
  } | {
16106
17194
  nonce: number;
16107
17195
  action: "perpetualsUpdateLeverage";
@@ -16113,6 +17201,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
16113
17201
  value: number;
16114
17202
  };
16115
17203
  unsignedAction?: unknown;
17204
+ liquidationPx?: string | undefined;
17205
+ maxLeverage?: number | undefined;
17206
+ marginUsed?: string | undefined;
17207
+ projectedMarginUsd?: string | undefined;
16116
17208
  } | {
16117
17209
  nonce: number;
16118
17210
  action: "perpetualsClosePosition";
@@ -16124,6 +17216,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
16124
17216
  markPx: string;
16125
17217
  reduceOnly: true;
16126
17218
  unsignedAction?: unknown;
17219
+ avgPx?: string | undefined;
17220
+ totalSz?: string | undefined;
17221
+ oid?: number | undefined;
17222
+ estimatedPnlUsd?: string | undefined;
17223
+ entryPx?: string | undefined;
16127
17224
  } | {
16128
17225
  toAddress: string;
16129
17226
  chainId: number;
@@ -16472,6 +17569,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
16472
17569
  type: "cross" | "isolated";
16473
17570
  value: number;
16474
17571
  } | undefined;
17572
+ slippage?: number | undefined;
17573
+ limitPx?: string | undefined;
17574
+ estFeeUsd?: string | undefined;
17575
+ marginRequired?: string | undefined;
17576
+ liquidationPx?: string | undefined;
17577
+ avgPx?: string | undefined;
17578
+ totalSz?: string | undefined;
17579
+ oid?: number | undefined;
16475
17580
  } | {
16476
17581
  nonce: number;
16477
17582
  action: "perpetualsUpdateLeverage";
@@ -16483,6 +17588,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
16483
17588
  value: number;
16484
17589
  };
16485
17590
  unsignedAction?: unknown;
17591
+ liquidationPx?: string | undefined;
17592
+ maxLeverage?: number | undefined;
17593
+ marginUsed?: string | undefined;
17594
+ projectedMarginUsd?: string | undefined;
16486
17595
  } | {
16487
17596
  nonce: number;
16488
17597
  action: "perpetualsClosePosition";
@@ -16494,6 +17603,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
16494
17603
  markPx: string;
16495
17604
  reduceOnly: true;
16496
17605
  unsignedAction?: unknown;
17606
+ avgPx?: string | undefined;
17607
+ totalSz?: string | undefined;
17608
+ oid?: number | undefined;
17609
+ estimatedPnlUsd?: string | undefined;
17610
+ entryPx?: string | undefined;
16497
17611
  } | {
16498
17612
  toAddress: string;
16499
17613
  chainId: number;
@@ -16642,6 +17756,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
16642
17756
  type: "cross" | "isolated";
16643
17757
  value: number;
16644
17758
  } | undefined;
17759
+ slippage?: number | undefined;
17760
+ limitPx?: string | undefined;
17761
+ estFeeUsd?: string | undefined;
17762
+ marginRequired?: string | undefined;
17763
+ liquidationPx?: string | undefined;
17764
+ avgPx?: string | undefined;
17765
+ totalSz?: string | undefined;
17766
+ oid?: number | undefined;
16645
17767
  } | {
16646
17768
  nonce: number;
16647
17769
  action: "perpetualsUpdateLeverage";
@@ -16653,6 +17775,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
16653
17775
  value: number;
16654
17776
  };
16655
17777
  unsignedAction?: unknown;
17778
+ liquidationPx?: string | undefined;
17779
+ maxLeverage?: number | undefined;
17780
+ marginUsed?: string | undefined;
17781
+ projectedMarginUsd?: string | undefined;
16656
17782
  } | {
16657
17783
  nonce: number;
16658
17784
  action: "perpetualsClosePosition";
@@ -16664,6 +17790,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
16664
17790
  markPx: string;
16665
17791
  reduceOnly: true;
16666
17792
  unsignedAction?: unknown;
17793
+ avgPx?: string | undefined;
17794
+ totalSz?: string | undefined;
17795
+ oid?: number | undefined;
17796
+ estimatedPnlUsd?: string | undefined;
17797
+ entryPx?: string | undefined;
16667
17798
  } | {
16668
17799
  toAddress: string;
16669
17800
  chainId: number;
@@ -16896,6 +18027,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
16896
18027
  type: "cross" | "isolated";
16897
18028
  value: number;
16898
18029
  } | undefined;
18030
+ slippage?: number | undefined;
18031
+ limitPx?: string | undefined;
18032
+ estFeeUsd?: string | undefined;
18033
+ marginRequired?: string | undefined;
18034
+ liquidationPx?: string | undefined;
18035
+ avgPx?: string | undefined;
18036
+ totalSz?: string | undefined;
18037
+ oid?: number | undefined;
16899
18038
  } | {
16900
18039
  nonce: number;
16901
18040
  action: "perpetualsUpdateLeverage";
@@ -16907,6 +18046,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
16907
18046
  value: number;
16908
18047
  };
16909
18048
  unsignedAction?: unknown;
18049
+ liquidationPx?: string | undefined;
18050
+ maxLeverage?: number | undefined;
18051
+ marginUsed?: string | undefined;
18052
+ projectedMarginUsd?: string | undefined;
16910
18053
  } | {
16911
18054
  nonce: number;
16912
18055
  action: "perpetualsClosePosition";
@@ -16918,6 +18061,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
16918
18061
  markPx: string;
16919
18062
  reduceOnly: true;
16920
18063
  unsignedAction?: unknown;
18064
+ avgPx?: string | undefined;
18065
+ totalSz?: string | undefined;
18066
+ oid?: number | undefined;
18067
+ estimatedPnlUsd?: string | undefined;
18068
+ entryPx?: string | undefined;
16921
18069
  } | {
16922
18070
  toAddress: string;
16923
18071
  chainId: number;
@@ -17075,6 +18223,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
17075
18223
  type: "cross" | "isolated";
17076
18224
  value: number;
17077
18225
  } | undefined;
18226
+ slippage?: number | undefined;
18227
+ limitPx?: string | undefined;
18228
+ estFeeUsd?: string | undefined;
18229
+ marginRequired?: string | undefined;
18230
+ liquidationPx?: string | undefined;
18231
+ avgPx?: string | undefined;
18232
+ totalSz?: string | undefined;
18233
+ oid?: number | undefined;
17078
18234
  } | {
17079
18235
  nonce: number;
17080
18236
  action: "perpetualsUpdateLeverage";
@@ -17086,6 +18242,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
17086
18242
  value: number;
17087
18243
  };
17088
18244
  unsignedAction?: unknown;
18245
+ liquidationPx?: string | undefined;
18246
+ maxLeverage?: number | undefined;
18247
+ marginUsed?: string | undefined;
18248
+ projectedMarginUsd?: string | undefined;
17089
18249
  } | {
17090
18250
  nonce: number;
17091
18251
  action: "perpetualsClosePosition";
@@ -17097,6 +18257,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
17097
18257
  markPx: string;
17098
18258
  reduceOnly: true;
17099
18259
  unsignedAction?: unknown;
18260
+ avgPx?: string | undefined;
18261
+ totalSz?: string | undefined;
18262
+ oid?: number | undefined;
18263
+ estimatedPnlUsd?: string | undefined;
18264
+ entryPx?: string | undefined;
17100
18265
  } | {
17101
18266
  toAddress: string;
17102
18267
  chainId: number;
@@ -17445,6 +18610,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
17445
18610
  type: "cross" | "isolated";
17446
18611
  value: number;
17447
18612
  } | undefined;
18613
+ slippage?: number | undefined;
18614
+ limitPx?: string | undefined;
18615
+ estFeeUsd?: string | undefined;
18616
+ marginRequired?: string | undefined;
18617
+ liquidationPx?: string | undefined;
18618
+ avgPx?: string | undefined;
18619
+ totalSz?: string | undefined;
18620
+ oid?: number | undefined;
17448
18621
  } | {
17449
18622
  nonce: number;
17450
18623
  action: "perpetualsUpdateLeverage";
@@ -17456,6 +18629,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
17456
18629
  value: number;
17457
18630
  };
17458
18631
  unsignedAction?: unknown;
18632
+ liquidationPx?: string | undefined;
18633
+ maxLeverage?: number | undefined;
18634
+ marginUsed?: string | undefined;
18635
+ projectedMarginUsd?: string | undefined;
17459
18636
  } | {
17460
18637
  nonce: number;
17461
18638
  action: "perpetualsClosePosition";
@@ -17467,6 +18644,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
17467
18644
  markPx: string;
17468
18645
  reduceOnly: true;
17469
18646
  unsignedAction?: unknown;
18647
+ avgPx?: string | undefined;
18648
+ totalSz?: string | undefined;
18649
+ oid?: number | undefined;
18650
+ estimatedPnlUsd?: string | undefined;
18651
+ entryPx?: string | undefined;
17470
18652
  } | {
17471
18653
  toAddress: string;
17472
18654
  chainId: number;
@@ -17626,6 +18808,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
17626
18808
  type: "cross" | "isolated";
17627
18809
  value: number;
17628
18810
  } | undefined;
18811
+ slippage?: number | undefined;
18812
+ limitPx?: string | undefined;
18813
+ estFeeUsd?: string | undefined;
18814
+ marginRequired?: string | undefined;
18815
+ liquidationPx?: string | undefined;
18816
+ avgPx?: string | undefined;
18817
+ totalSz?: string | undefined;
18818
+ oid?: number | undefined;
17629
18819
  } | {
17630
18820
  nonce: number;
17631
18821
  action: "perpetualsUpdateLeverage";
@@ -17637,6 +18827,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
17637
18827
  value: number;
17638
18828
  };
17639
18829
  unsignedAction?: unknown;
18830
+ liquidationPx?: string | undefined;
18831
+ maxLeverage?: number | undefined;
18832
+ marginUsed?: string | undefined;
18833
+ projectedMarginUsd?: string | undefined;
17640
18834
  } | {
17641
18835
  nonce: number;
17642
18836
  action: "perpetualsClosePosition";
@@ -17648,6 +18842,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
17648
18842
  markPx: string;
17649
18843
  reduceOnly: true;
17650
18844
  unsignedAction?: unknown;
18845
+ avgPx?: string | undefined;
18846
+ totalSz?: string | undefined;
18847
+ oid?: number | undefined;
18848
+ estimatedPnlUsd?: string | undefined;
18849
+ entryPx?: string | undefined;
17651
18850
  } | {
17652
18851
  toAddress: string;
17653
18852
  chainId: number;
@@ -17805,6 +19004,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
17805
19004
  type: "cross" | "isolated";
17806
19005
  value: number;
17807
19006
  } | undefined;
19007
+ slippage?: number | undefined;
19008
+ limitPx?: string | undefined;
19009
+ estFeeUsd?: string | undefined;
19010
+ marginRequired?: string | undefined;
19011
+ liquidationPx?: string | undefined;
19012
+ avgPx?: string | undefined;
19013
+ totalSz?: string | undefined;
19014
+ oid?: number | undefined;
17808
19015
  } | {
17809
19016
  nonce: number;
17810
19017
  action: "perpetualsUpdateLeverage";
@@ -17816,6 +19023,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
17816
19023
  value: number;
17817
19024
  };
17818
19025
  unsignedAction?: unknown;
19026
+ liquidationPx?: string | undefined;
19027
+ maxLeverage?: number | undefined;
19028
+ marginUsed?: string | undefined;
19029
+ projectedMarginUsd?: string | undefined;
17819
19030
  } | {
17820
19031
  nonce: number;
17821
19032
  action: "perpetualsClosePosition";
@@ -17827,6 +19038,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
17827
19038
  markPx: string;
17828
19039
  reduceOnly: true;
17829
19040
  unsignedAction?: unknown;
19041
+ avgPx?: string | undefined;
19042
+ totalSz?: string | undefined;
19043
+ oid?: number | undefined;
19044
+ estimatedPnlUsd?: string | undefined;
19045
+ entryPx?: string | undefined;
17830
19046
  } | {
17831
19047
  toAddress: string;
17832
19048
  chainId: number;
@@ -18175,6 +19391,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
18175
19391
  type: "cross" | "isolated";
18176
19392
  value: number;
18177
19393
  } | undefined;
19394
+ slippage?: number | undefined;
19395
+ limitPx?: string | undefined;
19396
+ estFeeUsd?: string | undefined;
19397
+ marginRequired?: string | undefined;
19398
+ liquidationPx?: string | undefined;
19399
+ avgPx?: string | undefined;
19400
+ totalSz?: string | undefined;
19401
+ oid?: number | undefined;
18178
19402
  } | {
18179
19403
  nonce: number;
18180
19404
  action: "perpetualsUpdateLeverage";
@@ -18186,6 +19410,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
18186
19410
  value: number;
18187
19411
  };
18188
19412
  unsignedAction?: unknown;
19413
+ liquidationPx?: string | undefined;
19414
+ maxLeverage?: number | undefined;
19415
+ marginUsed?: string | undefined;
19416
+ projectedMarginUsd?: string | undefined;
18189
19417
  } | {
18190
19418
  nonce: number;
18191
19419
  action: "perpetualsClosePosition";
@@ -18197,6 +19425,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
18197
19425
  markPx: string;
18198
19426
  reduceOnly: true;
18199
19427
  unsignedAction?: unknown;
19428
+ avgPx?: string | undefined;
19429
+ totalSz?: string | undefined;
19430
+ oid?: number | undefined;
19431
+ estimatedPnlUsd?: string | undefined;
19432
+ entryPx?: string | undefined;
18200
19433
  } | {
18201
19434
  toAddress: string;
18202
19435
  chainId: number;
@@ -18345,6 +19578,14 @@ export declare const PendingToolCallSchema: z.ZodObject<{
18345
19578
  type: "cross" | "isolated";
18346
19579
  value: number;
18347
19580
  } | undefined;
19581
+ slippage?: number | undefined;
19582
+ limitPx?: string | undefined;
19583
+ estFeeUsd?: string | undefined;
19584
+ marginRequired?: string | undefined;
19585
+ liquidationPx?: string | undefined;
19586
+ avgPx?: string | undefined;
19587
+ totalSz?: string | undefined;
19588
+ oid?: number | undefined;
18348
19589
  } | {
18349
19590
  nonce: number;
18350
19591
  action: "perpetualsUpdateLeverage";
@@ -18356,6 +19597,10 @@ export declare const PendingToolCallSchema: z.ZodObject<{
18356
19597
  value: number;
18357
19598
  };
18358
19599
  unsignedAction?: unknown;
19600
+ liquidationPx?: string | undefined;
19601
+ maxLeverage?: number | undefined;
19602
+ marginUsed?: string | undefined;
19603
+ projectedMarginUsd?: string | undefined;
18359
19604
  } | {
18360
19605
  nonce: number;
18361
19606
  action: "perpetualsClosePosition";
@@ -18367,6 +19612,11 @@ export declare const PendingToolCallSchema: z.ZodObject<{
18367
19612
  markPx: string;
18368
19613
  reduceOnly: true;
18369
19614
  unsignedAction?: unknown;
19615
+ avgPx?: string | undefined;
19616
+ totalSz?: string | undefined;
19617
+ oid?: number | undefined;
19618
+ estimatedPnlUsd?: string | undefined;
19619
+ entryPx?: string | undefined;
18370
19620
  } | {
18371
19621
  toAddress: string;
18372
19622
  chainId: number;