@crypticdot/defituna-api 1.4.0 → 1.4.1
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 +140 -26
- package/dist/index.d.ts +140 -26
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1616,8 +1616,26 @@ declare const OrderHistoryEntry$1: z.ZodObject<{
|
|
|
1616
1616
|
amount: bigint;
|
|
1617
1617
|
usd: number;
|
|
1618
1618
|
}>;
|
|
1619
|
-
baseTokenConsumedAmount: z.ZodNullable<z.
|
|
1620
|
-
|
|
1619
|
+
baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
|
|
1620
|
+
amount: z.ZodBigInt;
|
|
1621
|
+
usd: z.ZodNumber;
|
|
1622
|
+
}, "strip", z.ZodTypeAny, {
|
|
1623
|
+
amount: bigint;
|
|
1624
|
+
usd: number;
|
|
1625
|
+
}, {
|
|
1626
|
+
amount: bigint;
|
|
1627
|
+
usd: number;
|
|
1628
|
+
}>>;
|
|
1629
|
+
quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
|
|
1630
|
+
amount: z.ZodBigInt;
|
|
1631
|
+
usd: z.ZodNumber;
|
|
1632
|
+
}, "strip", z.ZodTypeAny, {
|
|
1633
|
+
amount: bigint;
|
|
1634
|
+
usd: number;
|
|
1635
|
+
}, {
|
|
1636
|
+
amount: bigint;
|
|
1637
|
+
usd: number;
|
|
1638
|
+
}>>;
|
|
1621
1639
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
1622
1640
|
positionAddress: z.ZodNullable<z.ZodString>;
|
|
1623
1641
|
slot: z.ZodBigInt;
|
|
@@ -1647,8 +1665,14 @@ declare const OrderHistoryEntry$1: z.ZodObject<{
|
|
|
1647
1665
|
uiTakeProfitPrice: number | null;
|
|
1648
1666
|
uiStopLossPrice: number | null;
|
|
1649
1667
|
uiExecutionPrice: number | null;
|
|
1650
|
-
baseTokenConsumedAmount:
|
|
1651
|
-
|
|
1668
|
+
baseTokenConsumedAmount: {
|
|
1669
|
+
amount: bigint;
|
|
1670
|
+
usd: number;
|
|
1671
|
+
} | null;
|
|
1672
|
+
quoteTokenFilledAmount: {
|
|
1673
|
+
amount: bigint;
|
|
1674
|
+
usd: number;
|
|
1675
|
+
} | null;
|
|
1652
1676
|
}, {
|
|
1653
1677
|
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
1654
1678
|
authority: string;
|
|
@@ -1674,8 +1698,14 @@ declare const OrderHistoryEntry$1: z.ZodObject<{
|
|
|
1674
1698
|
uiTakeProfitPrice: number | null;
|
|
1675
1699
|
uiStopLossPrice: number | null;
|
|
1676
1700
|
uiExecutionPrice: number | null;
|
|
1677
|
-
baseTokenConsumedAmount:
|
|
1678
|
-
|
|
1701
|
+
baseTokenConsumedAmount: {
|
|
1702
|
+
amount: bigint;
|
|
1703
|
+
usd: number;
|
|
1704
|
+
} | null;
|
|
1705
|
+
quoteTokenFilledAmount: {
|
|
1706
|
+
amount: bigint;
|
|
1707
|
+
usd: number;
|
|
1708
|
+
} | null;
|
|
1679
1709
|
}>;
|
|
1680
1710
|
declare const StakingTreasury$1: z.ZodObject<{
|
|
1681
1711
|
address: z.ZodString;
|
|
@@ -5146,8 +5176,26 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5146
5176
|
amount: bigint;
|
|
5147
5177
|
usd: number;
|
|
5148
5178
|
}>;
|
|
5149
|
-
baseTokenConsumedAmount: z.ZodNullable<z.
|
|
5150
|
-
|
|
5179
|
+
baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
|
|
5180
|
+
amount: z.ZodBigInt;
|
|
5181
|
+
usd: z.ZodNumber;
|
|
5182
|
+
}, "strip", z.ZodTypeAny, {
|
|
5183
|
+
amount: bigint;
|
|
5184
|
+
usd: number;
|
|
5185
|
+
}, {
|
|
5186
|
+
amount: bigint;
|
|
5187
|
+
usd: number;
|
|
5188
|
+
}>>;
|
|
5189
|
+
quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
|
|
5190
|
+
amount: z.ZodBigInt;
|
|
5191
|
+
usd: z.ZodNumber;
|
|
5192
|
+
}, "strip", z.ZodTypeAny, {
|
|
5193
|
+
amount: bigint;
|
|
5194
|
+
usd: number;
|
|
5195
|
+
}, {
|
|
5196
|
+
amount: bigint;
|
|
5197
|
+
usd: number;
|
|
5198
|
+
}>>;
|
|
5151
5199
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
5152
5200
|
positionAddress: z.ZodNullable<z.ZodString>;
|
|
5153
5201
|
slot: z.ZodBigInt;
|
|
@@ -5177,8 +5225,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5177
5225
|
uiTakeProfitPrice: number | null;
|
|
5178
5226
|
uiStopLossPrice: number | null;
|
|
5179
5227
|
uiExecutionPrice: number | null;
|
|
5180
|
-
baseTokenConsumedAmount:
|
|
5181
|
-
|
|
5228
|
+
baseTokenConsumedAmount: {
|
|
5229
|
+
amount: bigint;
|
|
5230
|
+
usd: number;
|
|
5231
|
+
} | null;
|
|
5232
|
+
quoteTokenFilledAmount: {
|
|
5233
|
+
amount: bigint;
|
|
5234
|
+
usd: number;
|
|
5235
|
+
} | null;
|
|
5182
5236
|
}, {
|
|
5183
5237
|
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
5184
5238
|
authority: string;
|
|
@@ -5204,8 +5258,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5204
5258
|
uiTakeProfitPrice: number | null;
|
|
5205
5259
|
uiStopLossPrice: number | null;
|
|
5206
5260
|
uiExecutionPrice: number | null;
|
|
5207
|
-
baseTokenConsumedAmount:
|
|
5208
|
-
|
|
5261
|
+
baseTokenConsumedAmount: {
|
|
5262
|
+
amount: bigint;
|
|
5263
|
+
usd: number;
|
|
5264
|
+
} | null;
|
|
5265
|
+
quoteTokenFilledAmount: {
|
|
5266
|
+
amount: bigint;
|
|
5267
|
+
usd: number;
|
|
5268
|
+
} | null;
|
|
5209
5269
|
}>;
|
|
5210
5270
|
id: z.ZodString;
|
|
5211
5271
|
authority: z.ZodNullable<z.ZodString>;
|
|
@@ -5246,8 +5306,26 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5246
5306
|
amount: bigint;
|
|
5247
5307
|
usd: number;
|
|
5248
5308
|
}>;
|
|
5249
|
-
baseTokenConsumedAmount: z.ZodNullable<z.
|
|
5250
|
-
|
|
5309
|
+
baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
|
|
5310
|
+
amount: z.ZodBigInt;
|
|
5311
|
+
usd: z.ZodNumber;
|
|
5312
|
+
}, "strip", z.ZodTypeAny, {
|
|
5313
|
+
amount: bigint;
|
|
5314
|
+
usd: number;
|
|
5315
|
+
}, {
|
|
5316
|
+
amount: bigint;
|
|
5317
|
+
usd: number;
|
|
5318
|
+
}>>;
|
|
5319
|
+
quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
|
|
5320
|
+
amount: z.ZodBigInt;
|
|
5321
|
+
usd: z.ZodNumber;
|
|
5322
|
+
}, "strip", z.ZodTypeAny, {
|
|
5323
|
+
amount: bigint;
|
|
5324
|
+
usd: number;
|
|
5325
|
+
}, {
|
|
5326
|
+
amount: bigint;
|
|
5327
|
+
usd: number;
|
|
5328
|
+
}>>;
|
|
5251
5329
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
5252
5330
|
positionAddress: z.ZodNullable<z.ZodString>;
|
|
5253
5331
|
slot: z.ZodBigInt;
|
|
@@ -5277,8 +5355,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5277
5355
|
uiTakeProfitPrice: number | null;
|
|
5278
5356
|
uiStopLossPrice: number | null;
|
|
5279
5357
|
uiExecutionPrice: number | null;
|
|
5280
|
-
baseTokenConsumedAmount:
|
|
5281
|
-
|
|
5358
|
+
baseTokenConsumedAmount: {
|
|
5359
|
+
amount: bigint;
|
|
5360
|
+
usd: number;
|
|
5361
|
+
} | null;
|
|
5362
|
+
quoteTokenFilledAmount: {
|
|
5363
|
+
amount: bigint;
|
|
5364
|
+
usd: number;
|
|
5365
|
+
} | null;
|
|
5282
5366
|
}, {
|
|
5283
5367
|
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
5284
5368
|
authority: string;
|
|
@@ -5304,8 +5388,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5304
5388
|
uiTakeProfitPrice: number | null;
|
|
5305
5389
|
uiStopLossPrice: number | null;
|
|
5306
5390
|
uiExecutionPrice: number | null;
|
|
5307
|
-
baseTokenConsumedAmount:
|
|
5308
|
-
|
|
5391
|
+
baseTokenConsumedAmount: {
|
|
5392
|
+
amount: bigint;
|
|
5393
|
+
usd: number;
|
|
5394
|
+
} | null;
|
|
5395
|
+
quoteTokenFilledAmount: {
|
|
5396
|
+
amount: bigint;
|
|
5397
|
+
usd: number;
|
|
5398
|
+
} | null;
|
|
5309
5399
|
}>;
|
|
5310
5400
|
id: z.ZodString;
|
|
5311
5401
|
authority: z.ZodNullable<z.ZodString>;
|
|
@@ -5338,8 +5428,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5338
5428
|
uiTakeProfitPrice: number | null;
|
|
5339
5429
|
uiStopLossPrice: number | null;
|
|
5340
5430
|
uiExecutionPrice: number | null;
|
|
5341
|
-
baseTokenConsumedAmount:
|
|
5342
|
-
|
|
5431
|
+
baseTokenConsumedAmount: {
|
|
5432
|
+
amount: bigint;
|
|
5433
|
+
usd: number;
|
|
5434
|
+
} | null;
|
|
5435
|
+
quoteTokenFilledAmount: {
|
|
5436
|
+
amount: bigint;
|
|
5437
|
+
usd: number;
|
|
5438
|
+
} | null;
|
|
5343
5439
|
};
|
|
5344
5440
|
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
5441
|
meta?: any;
|
|
@@ -5372,8 +5468,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5372
5468
|
uiTakeProfitPrice: number | null;
|
|
5373
5469
|
uiStopLossPrice: number | null;
|
|
5374
5470
|
uiExecutionPrice: number | null;
|
|
5375
|
-
baseTokenConsumedAmount:
|
|
5376
|
-
|
|
5471
|
+
baseTokenConsumedAmount: {
|
|
5472
|
+
amount: bigint;
|
|
5473
|
+
usd: number;
|
|
5474
|
+
} | null;
|
|
5475
|
+
quoteTokenFilledAmount: {
|
|
5476
|
+
amount: bigint;
|
|
5477
|
+
usd: number;
|
|
5478
|
+
} | null;
|
|
5377
5479
|
};
|
|
5378
5480
|
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
5481
|
meta?: any;
|
|
@@ -5406,8 +5508,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5406
5508
|
uiTakeProfitPrice: number | null;
|
|
5407
5509
|
uiStopLossPrice: number | null;
|
|
5408
5510
|
uiExecutionPrice: number | null;
|
|
5409
|
-
baseTokenConsumedAmount:
|
|
5410
|
-
|
|
5511
|
+
baseTokenConsumedAmount: {
|
|
5512
|
+
amount: bigint;
|
|
5513
|
+
usd: number;
|
|
5514
|
+
} | null;
|
|
5515
|
+
quoteTokenFilledAmount: {
|
|
5516
|
+
amount: bigint;
|
|
5517
|
+
usd: number;
|
|
5518
|
+
} | null;
|
|
5411
5519
|
};
|
|
5412
5520
|
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
5521
|
meta?: any;
|
|
@@ -5440,8 +5548,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5440
5548
|
uiTakeProfitPrice: number | null;
|
|
5441
5549
|
uiStopLossPrice: number | null;
|
|
5442
5550
|
uiExecutionPrice: number | null;
|
|
5443
|
-
baseTokenConsumedAmount:
|
|
5444
|
-
|
|
5551
|
+
baseTokenConsumedAmount: {
|
|
5552
|
+
amount: bigint;
|
|
5553
|
+
usd: number;
|
|
5554
|
+
} | null;
|
|
5555
|
+
quoteTokenFilledAmount: {
|
|
5556
|
+
amount: bigint;
|
|
5557
|
+
usd: number;
|
|
5558
|
+
} | null;
|
|
5445
5559
|
};
|
|
5446
5560
|
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
5561
|
meta?: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -1616,8 +1616,26 @@ declare const OrderHistoryEntry$1: z.ZodObject<{
|
|
|
1616
1616
|
amount: bigint;
|
|
1617
1617
|
usd: number;
|
|
1618
1618
|
}>;
|
|
1619
|
-
baseTokenConsumedAmount: z.ZodNullable<z.
|
|
1620
|
-
|
|
1619
|
+
baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
|
|
1620
|
+
amount: z.ZodBigInt;
|
|
1621
|
+
usd: z.ZodNumber;
|
|
1622
|
+
}, "strip", z.ZodTypeAny, {
|
|
1623
|
+
amount: bigint;
|
|
1624
|
+
usd: number;
|
|
1625
|
+
}, {
|
|
1626
|
+
amount: bigint;
|
|
1627
|
+
usd: number;
|
|
1628
|
+
}>>;
|
|
1629
|
+
quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
|
|
1630
|
+
amount: z.ZodBigInt;
|
|
1631
|
+
usd: z.ZodNumber;
|
|
1632
|
+
}, "strip", z.ZodTypeAny, {
|
|
1633
|
+
amount: bigint;
|
|
1634
|
+
usd: number;
|
|
1635
|
+
}, {
|
|
1636
|
+
amount: bigint;
|
|
1637
|
+
usd: number;
|
|
1638
|
+
}>>;
|
|
1621
1639
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
1622
1640
|
positionAddress: z.ZodNullable<z.ZodString>;
|
|
1623
1641
|
slot: z.ZodBigInt;
|
|
@@ -1647,8 +1665,14 @@ declare const OrderHistoryEntry$1: z.ZodObject<{
|
|
|
1647
1665
|
uiTakeProfitPrice: number | null;
|
|
1648
1666
|
uiStopLossPrice: number | null;
|
|
1649
1667
|
uiExecutionPrice: number | null;
|
|
1650
|
-
baseTokenConsumedAmount:
|
|
1651
|
-
|
|
1668
|
+
baseTokenConsumedAmount: {
|
|
1669
|
+
amount: bigint;
|
|
1670
|
+
usd: number;
|
|
1671
|
+
} | null;
|
|
1672
|
+
quoteTokenFilledAmount: {
|
|
1673
|
+
amount: bigint;
|
|
1674
|
+
usd: number;
|
|
1675
|
+
} | null;
|
|
1652
1676
|
}, {
|
|
1653
1677
|
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
1654
1678
|
authority: string;
|
|
@@ -1674,8 +1698,14 @@ declare const OrderHistoryEntry$1: z.ZodObject<{
|
|
|
1674
1698
|
uiTakeProfitPrice: number | null;
|
|
1675
1699
|
uiStopLossPrice: number | null;
|
|
1676
1700
|
uiExecutionPrice: number | null;
|
|
1677
|
-
baseTokenConsumedAmount:
|
|
1678
|
-
|
|
1701
|
+
baseTokenConsumedAmount: {
|
|
1702
|
+
amount: bigint;
|
|
1703
|
+
usd: number;
|
|
1704
|
+
} | null;
|
|
1705
|
+
quoteTokenFilledAmount: {
|
|
1706
|
+
amount: bigint;
|
|
1707
|
+
usd: number;
|
|
1708
|
+
} | null;
|
|
1679
1709
|
}>;
|
|
1680
1710
|
declare const StakingTreasury$1: z.ZodObject<{
|
|
1681
1711
|
address: z.ZodString;
|
|
@@ -5146,8 +5176,26 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5146
5176
|
amount: bigint;
|
|
5147
5177
|
usd: number;
|
|
5148
5178
|
}>;
|
|
5149
|
-
baseTokenConsumedAmount: z.ZodNullable<z.
|
|
5150
|
-
|
|
5179
|
+
baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
|
|
5180
|
+
amount: z.ZodBigInt;
|
|
5181
|
+
usd: z.ZodNumber;
|
|
5182
|
+
}, "strip", z.ZodTypeAny, {
|
|
5183
|
+
amount: bigint;
|
|
5184
|
+
usd: number;
|
|
5185
|
+
}, {
|
|
5186
|
+
amount: bigint;
|
|
5187
|
+
usd: number;
|
|
5188
|
+
}>>;
|
|
5189
|
+
quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
|
|
5190
|
+
amount: z.ZodBigInt;
|
|
5191
|
+
usd: z.ZodNumber;
|
|
5192
|
+
}, "strip", z.ZodTypeAny, {
|
|
5193
|
+
amount: bigint;
|
|
5194
|
+
usd: number;
|
|
5195
|
+
}, {
|
|
5196
|
+
amount: bigint;
|
|
5197
|
+
usd: number;
|
|
5198
|
+
}>>;
|
|
5151
5199
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
5152
5200
|
positionAddress: z.ZodNullable<z.ZodString>;
|
|
5153
5201
|
slot: z.ZodBigInt;
|
|
@@ -5177,8 +5225,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5177
5225
|
uiTakeProfitPrice: number | null;
|
|
5178
5226
|
uiStopLossPrice: number | null;
|
|
5179
5227
|
uiExecutionPrice: number | null;
|
|
5180
|
-
baseTokenConsumedAmount:
|
|
5181
|
-
|
|
5228
|
+
baseTokenConsumedAmount: {
|
|
5229
|
+
amount: bigint;
|
|
5230
|
+
usd: number;
|
|
5231
|
+
} | null;
|
|
5232
|
+
quoteTokenFilledAmount: {
|
|
5233
|
+
amount: bigint;
|
|
5234
|
+
usd: number;
|
|
5235
|
+
} | null;
|
|
5182
5236
|
}, {
|
|
5183
5237
|
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
5184
5238
|
authority: string;
|
|
@@ -5204,8 +5258,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5204
5258
|
uiTakeProfitPrice: number | null;
|
|
5205
5259
|
uiStopLossPrice: number | null;
|
|
5206
5260
|
uiExecutionPrice: number | null;
|
|
5207
|
-
baseTokenConsumedAmount:
|
|
5208
|
-
|
|
5261
|
+
baseTokenConsumedAmount: {
|
|
5262
|
+
amount: bigint;
|
|
5263
|
+
usd: number;
|
|
5264
|
+
} | null;
|
|
5265
|
+
quoteTokenFilledAmount: {
|
|
5266
|
+
amount: bigint;
|
|
5267
|
+
usd: number;
|
|
5268
|
+
} | null;
|
|
5209
5269
|
}>;
|
|
5210
5270
|
id: z.ZodString;
|
|
5211
5271
|
authority: z.ZodNullable<z.ZodString>;
|
|
@@ -5246,8 +5306,26 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5246
5306
|
amount: bigint;
|
|
5247
5307
|
usd: number;
|
|
5248
5308
|
}>;
|
|
5249
|
-
baseTokenConsumedAmount: z.ZodNullable<z.
|
|
5250
|
-
|
|
5309
|
+
baseTokenConsumedAmount: z.ZodNullable<z.ZodObject<{
|
|
5310
|
+
amount: z.ZodBigInt;
|
|
5311
|
+
usd: z.ZodNumber;
|
|
5312
|
+
}, "strip", z.ZodTypeAny, {
|
|
5313
|
+
amount: bigint;
|
|
5314
|
+
usd: number;
|
|
5315
|
+
}, {
|
|
5316
|
+
amount: bigint;
|
|
5317
|
+
usd: number;
|
|
5318
|
+
}>>;
|
|
5319
|
+
quoteTokenFilledAmount: z.ZodNullable<z.ZodObject<{
|
|
5320
|
+
amount: z.ZodBigInt;
|
|
5321
|
+
usd: z.ZodNumber;
|
|
5322
|
+
}, "strip", z.ZodTypeAny, {
|
|
5323
|
+
amount: bigint;
|
|
5324
|
+
usd: number;
|
|
5325
|
+
}, {
|
|
5326
|
+
amount: bigint;
|
|
5327
|
+
usd: number;
|
|
5328
|
+
}>>;
|
|
5251
5329
|
txSignature: z.ZodNullable<z.ZodString>;
|
|
5252
5330
|
positionAddress: z.ZodNullable<z.ZodString>;
|
|
5253
5331
|
slot: z.ZodBigInt;
|
|
@@ -5277,8 +5355,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5277
5355
|
uiTakeProfitPrice: number | null;
|
|
5278
5356
|
uiStopLossPrice: number | null;
|
|
5279
5357
|
uiExecutionPrice: number | null;
|
|
5280
|
-
baseTokenConsumedAmount:
|
|
5281
|
-
|
|
5358
|
+
baseTokenConsumedAmount: {
|
|
5359
|
+
amount: bigint;
|
|
5360
|
+
usd: number;
|
|
5361
|
+
} | null;
|
|
5362
|
+
quoteTokenFilledAmount: {
|
|
5363
|
+
amount: bigint;
|
|
5364
|
+
usd: number;
|
|
5365
|
+
} | null;
|
|
5282
5366
|
}, {
|
|
5283
5367
|
status: "open" | "partially_filled" | "filled" | "cancelled" | "claimed" | "rejected";
|
|
5284
5368
|
authority: string;
|
|
@@ -5304,8 +5388,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5304
5388
|
uiTakeProfitPrice: number | null;
|
|
5305
5389
|
uiStopLossPrice: number | null;
|
|
5306
5390
|
uiExecutionPrice: number | null;
|
|
5307
|
-
baseTokenConsumedAmount:
|
|
5308
|
-
|
|
5391
|
+
baseTokenConsumedAmount: {
|
|
5392
|
+
amount: bigint;
|
|
5393
|
+
usd: number;
|
|
5394
|
+
} | null;
|
|
5395
|
+
quoteTokenFilledAmount: {
|
|
5396
|
+
amount: bigint;
|
|
5397
|
+
usd: number;
|
|
5398
|
+
} | null;
|
|
5309
5399
|
}>;
|
|
5310
5400
|
id: z.ZodString;
|
|
5311
5401
|
authority: z.ZodNullable<z.ZodString>;
|
|
@@ -5338,8 +5428,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5338
5428
|
uiTakeProfitPrice: number | null;
|
|
5339
5429
|
uiStopLossPrice: number | null;
|
|
5340
5430
|
uiExecutionPrice: number | null;
|
|
5341
|
-
baseTokenConsumedAmount:
|
|
5342
|
-
|
|
5431
|
+
baseTokenConsumedAmount: {
|
|
5432
|
+
amount: bigint;
|
|
5433
|
+
usd: number;
|
|
5434
|
+
} | null;
|
|
5435
|
+
quoteTokenFilledAmount: {
|
|
5436
|
+
amount: bigint;
|
|
5437
|
+
usd: number;
|
|
5438
|
+
} | null;
|
|
5343
5439
|
};
|
|
5344
5440
|
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
5441
|
meta?: any;
|
|
@@ -5372,8 +5468,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5372
5468
|
uiTakeProfitPrice: number | null;
|
|
5373
5469
|
uiStopLossPrice: number | null;
|
|
5374
5470
|
uiExecutionPrice: number | null;
|
|
5375
|
-
baseTokenConsumedAmount:
|
|
5376
|
-
|
|
5471
|
+
baseTokenConsumedAmount: {
|
|
5472
|
+
amount: bigint;
|
|
5473
|
+
usd: number;
|
|
5474
|
+
} | null;
|
|
5475
|
+
quoteTokenFilledAmount: {
|
|
5476
|
+
amount: bigint;
|
|
5477
|
+
usd: number;
|
|
5478
|
+
} | null;
|
|
5377
5479
|
};
|
|
5378
5480
|
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
5481
|
meta?: any;
|
|
@@ -5406,8 +5508,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5406
5508
|
uiTakeProfitPrice: number | null;
|
|
5407
5509
|
uiStopLossPrice: number | null;
|
|
5408
5510
|
uiExecutionPrice: number | null;
|
|
5409
|
-
baseTokenConsumedAmount:
|
|
5410
|
-
|
|
5511
|
+
baseTokenConsumedAmount: {
|
|
5512
|
+
amount: bigint;
|
|
5513
|
+
usd: number;
|
|
5514
|
+
} | null;
|
|
5515
|
+
quoteTokenFilledAmount: {
|
|
5516
|
+
amount: bigint;
|
|
5517
|
+
usd: number;
|
|
5518
|
+
} | null;
|
|
5411
5519
|
};
|
|
5412
5520
|
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
5521
|
meta?: any;
|
|
@@ -5440,8 +5548,14 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
5440
5548
|
uiTakeProfitPrice: number | null;
|
|
5441
5549
|
uiStopLossPrice: number | null;
|
|
5442
5550
|
uiExecutionPrice: number | null;
|
|
5443
|
-
baseTokenConsumedAmount:
|
|
5444
|
-
|
|
5551
|
+
baseTokenConsumedAmount: {
|
|
5552
|
+
amount: bigint;
|
|
5553
|
+
usd: number;
|
|
5554
|
+
} | null;
|
|
5555
|
+
quoteTokenFilledAmount: {
|
|
5556
|
+
amount: bigint;
|
|
5557
|
+
usd: number;
|
|
5558
|
+
} | null;
|
|
5445
5559
|
};
|
|
5446
5560
|
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
5561
|
meta?: any;
|
package/dist/index.js
CHANGED
|
@@ -540,8 +540,8 @@ var OrderHistoryEntry = import_zod.z.object({
|
|
|
540
540
|
status: OrderHistoryStatusSchema,
|
|
541
541
|
baseToken: amountWithUsd,
|
|
542
542
|
quoteToken: amountWithUsd,
|
|
543
|
-
baseTokenConsumedAmount: import_zod.z.nullable(
|
|
544
|
-
quoteTokenFilledAmount: import_zod.z.nullable(
|
|
543
|
+
baseTokenConsumedAmount: import_zod.z.nullable(amountWithUsd),
|
|
544
|
+
quoteTokenFilledAmount: import_zod.z.nullable(amountWithUsd),
|
|
545
545
|
txSignature: import_zod.z.nullable(import_zod.z.string()),
|
|
546
546
|
positionAddress: import_zod.z.nullable(import_zod.z.string()),
|
|
547
547
|
slot: import_zod.z.coerce.bigint(),
|
package/dist/index.mjs
CHANGED
|
@@ -505,8 +505,8 @@ var OrderHistoryEntry = z.object({
|
|
|
505
505
|
status: OrderHistoryStatusSchema,
|
|
506
506
|
baseToken: amountWithUsd,
|
|
507
507
|
quoteToken: amountWithUsd,
|
|
508
|
-
baseTokenConsumedAmount: z.nullable(
|
|
509
|
-
quoteTokenFilledAmount: z.nullable(
|
|
508
|
+
baseTokenConsumedAmount: z.nullable(amountWithUsd),
|
|
509
|
+
quoteTokenFilledAmount: z.nullable(amountWithUsd),
|
|
510
510
|
txSignature: z.nullable(z.string()),
|
|
511
511
|
positionAddress: z.nullable(z.string()),
|
|
512
512
|
slot: z.coerce.bigint(),
|