@crypticdot/defituna-api 1.4.0 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1589,8 +1589,6 @@ declare const OrderHistoryEntry$1: z.ZodObject<{
1589
1589
  authority: z.ZodString;
1590
1590
  orderType: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
1591
1591
  isReduceOnly: z.ZodNullable<z.ZodBoolean>;
1592
- uiTakeProfitPrice: z.ZodNullable<z.ZodNumber>;
1593
- uiStopLossPrice: z.ZodNullable<z.ZodNumber>;
1594
1592
  aToB: z.ZodBoolean;
1595
1593
  uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
1596
1594
  uiPrice: z.ZodNullable<z.ZodNumber>;
@@ -1616,8 +1614,26 @@ declare const OrderHistoryEntry$1: z.ZodObject<{
1616
1614
  amount: bigint;
1617
1615
  usd: number;
1618
1616
  }>;
1619
- baseTokenConsumedAmount: z.ZodNullable<z.ZodBigInt>;
1620
- quoteTokenFilledAmount: z.ZodNullable<z.ZodBigInt>;
1617
+ baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
1618
+ amount: z.ZodBigInt;
1619
+ usd: z.ZodNumber;
1620
+ }, "strip", z.ZodTypeAny, {
1621
+ amount: bigint;
1622
+ usd: number;
1623
+ }, {
1624
+ amount: bigint;
1625
+ usd: number;
1626
+ }>>;
1627
+ quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
1628
+ amount: z.ZodBigInt;
1629
+ usd: z.ZodNumber;
1630
+ }, "strip", z.ZodTypeAny, {
1631
+ amount: bigint;
1632
+ usd: number;
1633
+ }, {
1634
+ amount: bigint;
1635
+ usd: number;
1636
+ }>>;
1621
1637
  txSignature: z.ZodNullable<z.ZodString>;
1622
1638
  positionAddress: z.ZodNullable<z.ZodString>;
1623
1639
  slot: z.ZodBigInt;
@@ -1644,11 +1660,15 @@ declare const OrderHistoryEntry$1: z.ZodObject<{
1644
1660
  ts: Date;
1645
1661
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
1646
1662
  isReduceOnly: boolean | null;
1647
- uiTakeProfitPrice: number | null;
1648
- uiStopLossPrice: number | null;
1649
1663
  uiExecutionPrice: number | null;
1650
- baseTokenConsumedAmount: bigint | null;
1651
- quoteTokenFilledAmount: bigint | null;
1664
+ baseTokenConsumedAmount: {
1665
+ amount: bigint;
1666
+ usd: number;
1667
+ } | null;
1668
+ quoteTokenFilledAmount: {
1669
+ amount: bigint;
1670
+ usd: number;
1671
+ } | null;
1652
1672
  }, {
1653
1673
  status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
1654
1674
  authority: string;
@@ -1671,11 +1691,15 @@ declare const OrderHistoryEntry$1: z.ZodObject<{
1671
1691
  ts: Date;
1672
1692
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
1673
1693
  isReduceOnly: boolean | null;
1674
- uiTakeProfitPrice: number | null;
1675
- uiStopLossPrice: number | null;
1676
1694
  uiExecutionPrice: number | null;
1677
- baseTokenConsumedAmount: bigint | null;
1678
- quoteTokenFilledAmount: bigint | null;
1695
+ baseTokenConsumedAmount: {
1696
+ amount: bigint;
1697
+ usd: number;
1698
+ } | null;
1699
+ quoteTokenFilledAmount: {
1700
+ amount: bigint;
1701
+ usd: number;
1702
+ } | null;
1679
1703
  }>;
1680
1704
  declare const StakingTreasury$1: z.ZodObject<{
1681
1705
  address: z.ZodString;
@@ -5119,8 +5143,6 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5119
5143
  authority: z.ZodString;
5120
5144
  orderType: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
5121
5145
  isReduceOnly: z.ZodNullable<z.ZodBoolean>;
5122
- uiTakeProfitPrice: z.ZodNullable<z.ZodNumber>;
5123
- uiStopLossPrice: z.ZodNullable<z.ZodNumber>;
5124
5146
  aToB: z.ZodBoolean;
5125
5147
  uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
5126
5148
  uiPrice: z.ZodNullable<z.ZodNumber>;
@@ -5146,8 +5168,26 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5146
5168
  amount: bigint;
5147
5169
  usd: number;
5148
5170
  }>;
5149
- baseTokenConsumedAmount: z.ZodNullable<z.ZodBigInt>;
5150
- quoteTokenFilledAmount: z.ZodNullable<z.ZodBigInt>;
5171
+ baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
5172
+ amount: z.ZodBigInt;
5173
+ usd: z.ZodNumber;
5174
+ }, "strip", z.ZodTypeAny, {
5175
+ amount: bigint;
5176
+ usd: number;
5177
+ }, {
5178
+ amount: bigint;
5179
+ usd: number;
5180
+ }>>;
5181
+ quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
5182
+ amount: z.ZodBigInt;
5183
+ usd: z.ZodNumber;
5184
+ }, "strip", z.ZodTypeAny, {
5185
+ amount: bigint;
5186
+ usd: number;
5187
+ }, {
5188
+ amount: bigint;
5189
+ usd: number;
5190
+ }>>;
5151
5191
  txSignature: z.ZodNullable<z.ZodString>;
5152
5192
  positionAddress: z.ZodNullable<z.ZodString>;
5153
5193
  slot: z.ZodBigInt;
@@ -5174,11 +5214,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5174
5214
  ts: Date;
5175
5215
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5176
5216
  isReduceOnly: boolean | null;
5177
- uiTakeProfitPrice: number | null;
5178
- uiStopLossPrice: number | null;
5179
5217
  uiExecutionPrice: number | null;
5180
- baseTokenConsumedAmount: bigint | null;
5181
- quoteTokenFilledAmount: bigint | null;
5218
+ baseTokenConsumedAmount: {
5219
+ amount: bigint;
5220
+ usd: number;
5221
+ } | null;
5222
+ quoteTokenFilledAmount: {
5223
+ amount: bigint;
5224
+ usd: number;
5225
+ } | null;
5182
5226
  }, {
5183
5227
  status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5184
5228
  authority: string;
@@ -5201,11 +5245,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5201
5245
  ts: Date;
5202
5246
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5203
5247
  isReduceOnly: boolean | null;
5204
- uiTakeProfitPrice: number | null;
5205
- uiStopLossPrice: number | null;
5206
5248
  uiExecutionPrice: number | null;
5207
- baseTokenConsumedAmount: bigint | null;
5208
- quoteTokenFilledAmount: bigint | null;
5249
+ baseTokenConsumedAmount: {
5250
+ amount: bigint;
5251
+ usd: number;
5252
+ } | null;
5253
+ quoteTokenFilledAmount: {
5254
+ amount: bigint;
5255
+ usd: number;
5256
+ } | null;
5209
5257
  }>;
5210
5258
  id: z.ZodString;
5211
5259
  authority: z.ZodNullable<z.ZodString>;
@@ -5219,8 +5267,6 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5219
5267
  authority: z.ZodString;
5220
5268
  orderType: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
5221
5269
  isReduceOnly: z.ZodNullable<z.ZodBoolean>;
5222
- uiTakeProfitPrice: z.ZodNullable<z.ZodNumber>;
5223
- uiStopLossPrice: z.ZodNullable<z.ZodNumber>;
5224
5270
  aToB: z.ZodBoolean;
5225
5271
  uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
5226
5272
  uiPrice: z.ZodNullable<z.ZodNumber>;
@@ -5246,8 +5292,26 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5246
5292
  amount: bigint;
5247
5293
  usd: number;
5248
5294
  }>;
5249
- baseTokenConsumedAmount: z.ZodNullable<z.ZodBigInt>;
5250
- quoteTokenFilledAmount: z.ZodNullable<z.ZodBigInt>;
5295
+ baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
5296
+ amount: z.ZodBigInt;
5297
+ usd: z.ZodNumber;
5298
+ }, "strip", z.ZodTypeAny, {
5299
+ amount: bigint;
5300
+ usd: number;
5301
+ }, {
5302
+ amount: bigint;
5303
+ usd: number;
5304
+ }>>;
5305
+ quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
5306
+ amount: z.ZodBigInt;
5307
+ usd: z.ZodNumber;
5308
+ }, "strip", z.ZodTypeAny, {
5309
+ amount: bigint;
5310
+ usd: number;
5311
+ }, {
5312
+ amount: bigint;
5313
+ usd: number;
5314
+ }>>;
5251
5315
  txSignature: z.ZodNullable<z.ZodString>;
5252
5316
  positionAddress: z.ZodNullable<z.ZodString>;
5253
5317
  slot: z.ZodBigInt;
@@ -5274,11 +5338,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5274
5338
  ts: Date;
5275
5339
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5276
5340
  isReduceOnly: boolean | null;
5277
- uiTakeProfitPrice: number | null;
5278
- uiStopLossPrice: number | null;
5279
5341
  uiExecutionPrice: number | null;
5280
- baseTokenConsumedAmount: bigint | null;
5281
- quoteTokenFilledAmount: bigint | null;
5342
+ baseTokenConsumedAmount: {
5343
+ amount: bigint;
5344
+ usd: number;
5345
+ } | null;
5346
+ quoteTokenFilledAmount: {
5347
+ amount: bigint;
5348
+ usd: number;
5349
+ } | null;
5282
5350
  }, {
5283
5351
  status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5284
5352
  authority: string;
@@ -5301,11 +5369,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5301
5369
  ts: Date;
5302
5370
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5303
5371
  isReduceOnly: boolean | null;
5304
- uiTakeProfitPrice: number | null;
5305
- uiStopLossPrice: number | null;
5306
5372
  uiExecutionPrice: number | null;
5307
- baseTokenConsumedAmount: bigint | null;
5308
- quoteTokenFilledAmount: bigint | null;
5373
+ baseTokenConsumedAmount: {
5374
+ amount: bigint;
5375
+ usd: number;
5376
+ } | null;
5377
+ quoteTokenFilledAmount: {
5378
+ amount: bigint;
5379
+ usd: number;
5380
+ } | null;
5309
5381
  }>;
5310
5382
  id: z.ZodString;
5311
5383
  authority: z.ZodNullable<z.ZodString>;
@@ -5335,11 +5407,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5335
5407
  ts: Date;
5336
5408
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5337
5409
  isReduceOnly: boolean | null;
5338
- uiTakeProfitPrice: number | null;
5339
- uiStopLossPrice: number | null;
5340
5410
  uiExecutionPrice: number | null;
5341
- baseTokenConsumedAmount: bigint | null;
5342
- quoteTokenFilledAmount: bigint | null;
5411
+ baseTokenConsumedAmount: {
5412
+ amount: bigint;
5413
+ usd: number;
5414
+ } | null;
5415
+ quoteTokenFilledAmount: {
5416
+ amount: bigint;
5417
+ usd: number;
5418
+ } | null;
5343
5419
  };
5344
5420
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5345
5421
  meta?: any;
@@ -5369,11 +5445,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5369
5445
  ts: Date;
5370
5446
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5371
5447
  isReduceOnly: boolean | null;
5372
- uiTakeProfitPrice: number | null;
5373
- uiStopLossPrice: number | null;
5374
5448
  uiExecutionPrice: number | null;
5375
- baseTokenConsumedAmount: bigint | null;
5376
- quoteTokenFilledAmount: bigint | null;
5449
+ baseTokenConsumedAmount: {
5450
+ amount: bigint;
5451
+ usd: number;
5452
+ } | null;
5453
+ quoteTokenFilledAmount: {
5454
+ amount: bigint;
5455
+ usd: number;
5456
+ } | null;
5377
5457
  };
5378
5458
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5379
5459
  meta?: any;
@@ -5403,11 +5483,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5403
5483
  ts: Date;
5404
5484
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5405
5485
  isReduceOnly: boolean | null;
5406
- uiTakeProfitPrice: number | null;
5407
- uiStopLossPrice: number | null;
5408
5486
  uiExecutionPrice: number | null;
5409
- baseTokenConsumedAmount: bigint | null;
5410
- quoteTokenFilledAmount: bigint | null;
5487
+ baseTokenConsumedAmount: {
5488
+ amount: bigint;
5489
+ usd: number;
5490
+ } | null;
5491
+ quoteTokenFilledAmount: {
5492
+ amount: bigint;
5493
+ usd: number;
5494
+ } | null;
5411
5495
  };
5412
5496
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5413
5497
  meta?: any;
@@ -5437,11 +5521,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5437
5521
  ts: Date;
5438
5522
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5439
5523
  isReduceOnly: boolean | null;
5440
- uiTakeProfitPrice: number | null;
5441
- uiStopLossPrice: number | null;
5442
5524
  uiExecutionPrice: number | null;
5443
- baseTokenConsumedAmount: bigint | null;
5444
- quoteTokenFilledAmount: bigint | null;
5525
+ baseTokenConsumedAmount: {
5526
+ amount: bigint;
5527
+ usd: number;
5528
+ } | null;
5529
+ quoteTokenFilledAmount: {
5530
+ amount: bigint;
5531
+ usd: number;
5532
+ } | null;
5445
5533
  };
5446
5534
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5447
5535
  meta?: any;
package/dist/index.d.ts CHANGED
@@ -1589,8 +1589,6 @@ declare const OrderHistoryEntry$1: z.ZodObject<{
1589
1589
  authority: z.ZodString;
1590
1590
  orderType: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
1591
1591
  isReduceOnly: z.ZodNullable<z.ZodBoolean>;
1592
- uiTakeProfitPrice: z.ZodNullable<z.ZodNumber>;
1593
- uiStopLossPrice: z.ZodNullable<z.ZodNumber>;
1594
1592
  aToB: z.ZodBoolean;
1595
1593
  uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
1596
1594
  uiPrice: z.ZodNullable<z.ZodNumber>;
@@ -1616,8 +1614,26 @@ declare const OrderHistoryEntry$1: z.ZodObject<{
1616
1614
  amount: bigint;
1617
1615
  usd: number;
1618
1616
  }>;
1619
- baseTokenConsumedAmount: z.ZodNullable<z.ZodBigInt>;
1620
- quoteTokenFilledAmount: z.ZodNullable<z.ZodBigInt>;
1617
+ baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
1618
+ amount: z.ZodBigInt;
1619
+ usd: z.ZodNumber;
1620
+ }, "strip", z.ZodTypeAny, {
1621
+ amount: bigint;
1622
+ usd: number;
1623
+ }, {
1624
+ amount: bigint;
1625
+ usd: number;
1626
+ }>>;
1627
+ quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
1628
+ amount: z.ZodBigInt;
1629
+ usd: z.ZodNumber;
1630
+ }, "strip", z.ZodTypeAny, {
1631
+ amount: bigint;
1632
+ usd: number;
1633
+ }, {
1634
+ amount: bigint;
1635
+ usd: number;
1636
+ }>>;
1621
1637
  txSignature: z.ZodNullable<z.ZodString>;
1622
1638
  positionAddress: z.ZodNullable<z.ZodString>;
1623
1639
  slot: z.ZodBigInt;
@@ -1644,11 +1660,15 @@ declare const OrderHistoryEntry$1: z.ZodObject<{
1644
1660
  ts: Date;
1645
1661
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
1646
1662
  isReduceOnly: boolean | null;
1647
- uiTakeProfitPrice: number | null;
1648
- uiStopLossPrice: number | null;
1649
1663
  uiExecutionPrice: number | null;
1650
- baseTokenConsumedAmount: bigint | null;
1651
- quoteTokenFilledAmount: bigint | null;
1664
+ baseTokenConsumedAmount: {
1665
+ amount: bigint;
1666
+ usd: number;
1667
+ } | null;
1668
+ quoteTokenFilledAmount: {
1669
+ amount: bigint;
1670
+ usd: number;
1671
+ } | null;
1652
1672
  }, {
1653
1673
  status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
1654
1674
  authority: string;
@@ -1671,11 +1691,15 @@ declare const OrderHistoryEntry$1: z.ZodObject<{
1671
1691
  ts: Date;
1672
1692
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
1673
1693
  isReduceOnly: boolean | null;
1674
- uiTakeProfitPrice: number | null;
1675
- uiStopLossPrice: number | null;
1676
1694
  uiExecutionPrice: number | null;
1677
- baseTokenConsumedAmount: bigint | null;
1678
- quoteTokenFilledAmount: bigint | null;
1695
+ baseTokenConsumedAmount: {
1696
+ amount: bigint;
1697
+ usd: number;
1698
+ } | null;
1699
+ quoteTokenFilledAmount: {
1700
+ amount: bigint;
1701
+ usd: number;
1702
+ } | null;
1679
1703
  }>;
1680
1704
  declare const StakingTreasury$1: z.ZodObject<{
1681
1705
  address: z.ZodString;
@@ -5119,8 +5143,6 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5119
5143
  authority: z.ZodString;
5120
5144
  orderType: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
5121
5145
  isReduceOnly: z.ZodNullable<z.ZodBoolean>;
5122
- uiTakeProfitPrice: z.ZodNullable<z.ZodNumber>;
5123
- uiStopLossPrice: z.ZodNullable<z.ZodNumber>;
5124
5146
  aToB: z.ZodBoolean;
5125
5147
  uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
5126
5148
  uiPrice: z.ZodNullable<z.ZodNumber>;
@@ -5146,8 +5168,26 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5146
5168
  amount: bigint;
5147
5169
  usd: number;
5148
5170
  }>;
5149
- baseTokenConsumedAmount: z.ZodNullable<z.ZodBigInt>;
5150
- quoteTokenFilledAmount: z.ZodNullable<z.ZodBigInt>;
5171
+ baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
5172
+ amount: z.ZodBigInt;
5173
+ usd: z.ZodNumber;
5174
+ }, "strip", z.ZodTypeAny, {
5175
+ amount: bigint;
5176
+ usd: number;
5177
+ }, {
5178
+ amount: bigint;
5179
+ usd: number;
5180
+ }>>;
5181
+ quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
5182
+ amount: z.ZodBigInt;
5183
+ usd: z.ZodNumber;
5184
+ }, "strip", z.ZodTypeAny, {
5185
+ amount: bigint;
5186
+ usd: number;
5187
+ }, {
5188
+ amount: bigint;
5189
+ usd: number;
5190
+ }>>;
5151
5191
  txSignature: z.ZodNullable<z.ZodString>;
5152
5192
  positionAddress: z.ZodNullable<z.ZodString>;
5153
5193
  slot: z.ZodBigInt;
@@ -5174,11 +5214,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5174
5214
  ts: Date;
5175
5215
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5176
5216
  isReduceOnly: boolean | null;
5177
- uiTakeProfitPrice: number | null;
5178
- uiStopLossPrice: number | null;
5179
5217
  uiExecutionPrice: number | null;
5180
- baseTokenConsumedAmount: bigint | null;
5181
- quoteTokenFilledAmount: bigint | null;
5218
+ baseTokenConsumedAmount: {
5219
+ amount: bigint;
5220
+ usd: number;
5221
+ } | null;
5222
+ quoteTokenFilledAmount: {
5223
+ amount: bigint;
5224
+ usd: number;
5225
+ } | null;
5182
5226
  }, {
5183
5227
  status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5184
5228
  authority: string;
@@ -5201,11 +5245,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5201
5245
  ts: Date;
5202
5246
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5203
5247
  isReduceOnly: boolean | null;
5204
- uiTakeProfitPrice: number | null;
5205
- uiStopLossPrice: number | null;
5206
5248
  uiExecutionPrice: number | null;
5207
- baseTokenConsumedAmount: bigint | null;
5208
- quoteTokenFilledAmount: bigint | null;
5249
+ baseTokenConsumedAmount: {
5250
+ amount: bigint;
5251
+ usd: number;
5252
+ } | null;
5253
+ quoteTokenFilledAmount: {
5254
+ amount: bigint;
5255
+ usd: number;
5256
+ } | null;
5209
5257
  }>;
5210
5258
  id: z.ZodString;
5211
5259
  authority: z.ZodNullable<z.ZodString>;
@@ -5219,8 +5267,6 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5219
5267
  authority: z.ZodString;
5220
5268
  orderType: z.ZodEnum<["market", ...("market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market")[]]>;
5221
5269
  isReduceOnly: z.ZodNullable<z.ZodBoolean>;
5222
- uiTakeProfitPrice: z.ZodNullable<z.ZodNumber>;
5223
- uiStopLossPrice: z.ZodNullable<z.ZodNumber>;
5224
5270
  aToB: z.ZodBoolean;
5225
5271
  uiDirection: z.ZodEnum<["buy", ...("buy" | "sell" | "long" | "short")[]]>;
5226
5272
  uiPrice: z.ZodNullable<z.ZodNumber>;
@@ -5246,8 +5292,26 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5246
5292
  amount: bigint;
5247
5293
  usd: number;
5248
5294
  }>;
5249
- baseTokenConsumedAmount: z.ZodNullable<z.ZodBigInt>;
5250
- quoteTokenFilledAmount: z.ZodNullable<z.ZodBigInt>;
5295
+ baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
5296
+ amount: z.ZodBigInt;
5297
+ usd: z.ZodNumber;
5298
+ }, "strip", z.ZodTypeAny, {
5299
+ amount: bigint;
5300
+ usd: number;
5301
+ }, {
5302
+ amount: bigint;
5303
+ usd: number;
5304
+ }>>;
5305
+ quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
5306
+ amount: z.ZodBigInt;
5307
+ usd: z.ZodNumber;
5308
+ }, "strip", z.ZodTypeAny, {
5309
+ amount: bigint;
5310
+ usd: number;
5311
+ }, {
5312
+ amount: bigint;
5313
+ usd: number;
5314
+ }>>;
5251
5315
  txSignature: z.ZodNullable<z.ZodString>;
5252
5316
  positionAddress: z.ZodNullable<z.ZodString>;
5253
5317
  slot: z.ZodBigInt;
@@ -5274,11 +5338,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5274
5338
  ts: Date;
5275
5339
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5276
5340
  isReduceOnly: boolean | null;
5277
- uiTakeProfitPrice: number | null;
5278
- uiStopLossPrice: number | null;
5279
5341
  uiExecutionPrice: number | null;
5280
- baseTokenConsumedAmount: bigint | null;
5281
- quoteTokenFilledAmount: bigint | null;
5342
+ baseTokenConsumedAmount: {
5343
+ amount: bigint;
5344
+ usd: number;
5345
+ } | null;
5346
+ quoteTokenFilledAmount: {
5347
+ amount: bigint;
5348
+ usd: number;
5349
+ } | null;
5282
5350
  }, {
5283
5351
  status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
5284
5352
  authority: string;
@@ -5301,11 +5369,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5301
5369
  ts: Date;
5302
5370
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5303
5371
  isReduceOnly: boolean | null;
5304
- uiTakeProfitPrice: number | null;
5305
- uiStopLossPrice: number | null;
5306
5372
  uiExecutionPrice: number | null;
5307
- baseTokenConsumedAmount: bigint | null;
5308
- quoteTokenFilledAmount: bigint | null;
5373
+ baseTokenConsumedAmount: {
5374
+ amount: bigint;
5375
+ usd: number;
5376
+ } | null;
5377
+ quoteTokenFilledAmount: {
5378
+ amount: bigint;
5379
+ usd: number;
5380
+ } | null;
5309
5381
  }>;
5310
5382
  id: z.ZodString;
5311
5383
  authority: z.ZodNullable<z.ZodString>;
@@ -5335,11 +5407,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5335
5407
  ts: Date;
5336
5408
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5337
5409
  isReduceOnly: boolean | null;
5338
- uiTakeProfitPrice: number | null;
5339
- uiStopLossPrice: number | null;
5340
5410
  uiExecutionPrice: number | null;
5341
- baseTokenConsumedAmount: bigint | null;
5342
- quoteTokenFilledAmount: bigint | null;
5411
+ baseTokenConsumedAmount: {
5412
+ amount: bigint;
5413
+ usd: number;
5414
+ } | null;
5415
+ quoteTokenFilledAmount: {
5416
+ amount: bigint;
5417
+ usd: number;
5418
+ } | null;
5343
5419
  };
5344
5420
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5345
5421
  meta?: any;
@@ -5369,11 +5445,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5369
5445
  ts: Date;
5370
5446
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5371
5447
  isReduceOnly: boolean | null;
5372
- uiTakeProfitPrice: number | null;
5373
- uiStopLossPrice: number | null;
5374
5448
  uiExecutionPrice: number | null;
5375
- baseTokenConsumedAmount: bigint | null;
5376
- quoteTokenFilledAmount: bigint | null;
5449
+ baseTokenConsumedAmount: {
5450
+ amount: bigint;
5451
+ usd: number;
5452
+ } | null;
5453
+ quoteTokenFilledAmount: {
5454
+ amount: bigint;
5455
+ usd: number;
5456
+ } | null;
5377
5457
  };
5378
5458
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5379
5459
  meta?: any;
@@ -5403,11 +5483,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5403
5483
  ts: Date;
5404
5484
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5405
5485
  isReduceOnly: boolean | null;
5406
- uiTakeProfitPrice: number | null;
5407
- uiStopLossPrice: number | null;
5408
5486
  uiExecutionPrice: number | null;
5409
- baseTokenConsumedAmount: bigint | null;
5410
- quoteTokenFilledAmount: bigint | null;
5487
+ baseTokenConsumedAmount: {
5488
+ amount: bigint;
5489
+ usd: number;
5490
+ } | null;
5491
+ quoteTokenFilledAmount: {
5492
+ amount: bigint;
5493
+ usd: number;
5494
+ } | null;
5411
5495
  };
5412
5496
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5413
5497
  meta?: any;
@@ -5437,11 +5521,15 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
5437
5521
  ts: Date;
5438
5522
  orderType: "market" | "limit" | "take_profit_market" | "stop_loss_market" | "liquidation_market";
5439
5523
  isReduceOnly: boolean | null;
5440
- uiTakeProfitPrice: number | null;
5441
- uiStopLossPrice: number | null;
5442
5524
  uiExecutionPrice: number | null;
5443
- baseTokenConsumedAmount: bigint | null;
5444
- quoteTokenFilledAmount: bigint | null;
5525
+ baseTokenConsumedAmount: {
5526
+ amount: bigint;
5527
+ usd: number;
5528
+ } | null;
5529
+ quoteTokenFilledAmount: {
5530
+ amount: bigint;
5531
+ usd: number;
5532
+ } | null;
5445
5533
  };
5446
5534
  entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
5447
5535
  meta?: any;
package/dist/index.js CHANGED
@@ -531,8 +531,6 @@ var OrderHistoryEntry = import_zod.z.object({
531
531
  authority: import_zod.z.string(),
532
532
  orderType: OrderHistoryOrderTypeSchema,
533
533
  isReduceOnly: import_zod.z.nullable(import_zod.z.boolean()),
534
- uiTakeProfitPrice: import_zod.z.nullable(import_zod.z.number()),
535
- uiStopLossPrice: import_zod.z.nullable(import_zod.z.number()),
536
534
  aToB: import_zod.z.boolean(),
537
535
  uiDirection: OrderHistoryUIDirectionSchema,
538
536
  uiPrice: import_zod.z.nullable(import_zod.z.number()),
@@ -540,8 +538,8 @@ var OrderHistoryEntry = import_zod.z.object({
540
538
  status: OrderHistoryStatusSchema,
541
539
  baseToken: amountWithUsd,
542
540
  quoteToken: amountWithUsd,
543
- baseTokenConsumedAmount: import_zod.z.nullable(import_zod.z.coerce.bigint()),
544
- quoteTokenFilledAmount: import_zod.z.nullable(import_zod.z.coerce.bigint()),
541
+ baseTokenConsumedAmount: import_zod.z.nullable(amountWithUsd),
542
+ quoteTokenFilledAmount: import_zod.z.nullable(amountWithUsd),
545
543
  txSignature: import_zod.z.nullable(import_zod.z.string()),
546
544
  positionAddress: import_zod.z.nullable(import_zod.z.string()),
547
545
  slot: import_zod.z.coerce.bigint(),
package/dist/index.mjs CHANGED
@@ -496,8 +496,6 @@ var OrderHistoryEntry = z.object({
496
496
  authority: z.string(),
497
497
  orderType: OrderHistoryOrderTypeSchema,
498
498
  isReduceOnly: z.nullable(z.boolean()),
499
- uiTakeProfitPrice: z.nullable(z.number()),
500
- uiStopLossPrice: z.nullable(z.number()),
501
499
  aToB: z.boolean(),
502
500
  uiDirection: OrderHistoryUIDirectionSchema,
503
501
  uiPrice: z.nullable(z.number()),
@@ -505,8 +503,8 @@ var OrderHistoryEntry = z.object({
505
503
  status: OrderHistoryStatusSchema,
506
504
  baseToken: amountWithUsd,
507
505
  quoteToken: amountWithUsd,
508
- baseTokenConsumedAmount: z.nullable(z.coerce.bigint()),
509
- quoteTokenFilledAmount: z.nullable(z.coerce.bigint()),
506
+ baseTokenConsumedAmount: z.nullable(amountWithUsd),
507
+ quoteTokenFilledAmount: z.nullable(amountWithUsd),
510
508
  txSignature: z.nullable(z.string()),
511
509
  positionAddress: z.nullable(z.string()),
512
510
  slot: z.coerce.bigint(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crypticdot/defituna-api",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",