@mobula_labs/types 0.1.2 → 0.1.4
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/cjs/index.cjs +1508 -1333
- package/dist/cjs/index.cjs.map +15 -13
- package/dist/esm/index.js +1507 -1333
- package/dist/esm/index.js.map +15 -13
- package/dist/index.d.ts +2 -0
- package/dist/v1/market/FundingRateSchema.d.ts +28 -0
- package/dist/v1/market/MarketMultiPricesSchema.d.ts +20 -0
- package/dist/v1/wallet/WalletPortfolioSchema.d.ts +41 -1
- package/dist/v1/webhook/WebhookSchema.d.ts +295 -0
- package/dist/v2/swap/SwapQuotingBatchOutput.d.ts +276 -0
- package/dist/v2/swap/SwapQuotingInstructionsOutput.d.ts +78 -0
- package/dist/v2/swap/SwapQuotingOutput.d.ts +234 -0
- package/dist/v2/token/TokenPositionsSchema.d.ts +40 -0
- package/dist/v2/token/TokenPriceSchema.d.ts +190 -0
- package/dist/v2/token/TokenTradesSchema.d.ts +21 -0
- package/dist/v2/wallet/WalletPerpsPositionsSchema.d.ts +17 -17
- package/dist/v2/wallet/WalletTokenBalancesSchema.d.ts +10 -0
- package/dist/wss/stream/StreamPayloadSchema.d.ts +2 -2
- package/package.json +4 -3
|
@@ -256,6 +256,27 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
256
256
|
aggregator?: string | undefined;
|
|
257
257
|
} | undefined;
|
|
258
258
|
}>>;
|
|
259
|
+
/** Integration fee details (if feePercentage and feeWallet were provided) */
|
|
260
|
+
fee: z.ZodOptional<z.ZodObject<{
|
|
261
|
+
/** Fee amount in human-readable format (e.g., "0.01" for 0.01 SOL) */
|
|
262
|
+
amount: z.ZodString;
|
|
263
|
+
/** Fee percentage applied (0.01 to 99) */
|
|
264
|
+
percentage: z.ZodNumber;
|
|
265
|
+
/** Wallet address receiving the fee */
|
|
266
|
+
wallet: z.ZodString;
|
|
267
|
+
/** Whether fee is deducted from input (SOL→token) or output (token→SOL) */
|
|
268
|
+
deductedFrom: z.ZodEnum<["input", "output"]>;
|
|
269
|
+
}, "strip", z.ZodTypeAny, {
|
|
270
|
+
amount: string;
|
|
271
|
+
percentage: number;
|
|
272
|
+
wallet: string;
|
|
273
|
+
deductedFrom: "input" | "output";
|
|
274
|
+
}, {
|
|
275
|
+
amount: string;
|
|
276
|
+
percentage: number;
|
|
277
|
+
wallet: string;
|
|
278
|
+
deductedFrom: "input" | "output";
|
|
279
|
+
}>>;
|
|
259
280
|
} & {
|
|
260
281
|
solana: z.ZodObject<{
|
|
261
282
|
transaction: z.ZodObject<{
|
|
@@ -293,6 +314,12 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
293
314
|
};
|
|
294
315
|
lastValidBlockHeight: number;
|
|
295
316
|
};
|
|
317
|
+
fee?: {
|
|
318
|
+
amount: string;
|
|
319
|
+
percentage: number;
|
|
320
|
+
wallet: string;
|
|
321
|
+
deductedFrom: "input" | "output";
|
|
322
|
+
} | undefined;
|
|
296
323
|
details?: {
|
|
297
324
|
raw?: Record<string, unknown> | undefined;
|
|
298
325
|
aggregator?: string | undefined;
|
|
@@ -354,6 +381,12 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
354
381
|
};
|
|
355
382
|
lastValidBlockHeight: number;
|
|
356
383
|
};
|
|
384
|
+
fee?: {
|
|
385
|
+
amount: string;
|
|
386
|
+
percentage: number;
|
|
387
|
+
wallet: string;
|
|
388
|
+
deductedFrom: "input" | "output";
|
|
389
|
+
} | undefined;
|
|
357
390
|
details?: {
|
|
358
391
|
raw?: Record<string, unknown> | undefined;
|
|
359
392
|
aggregator?: string | undefined;
|
|
@@ -663,6 +696,27 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
663
696
|
aggregator?: string | undefined;
|
|
664
697
|
} | undefined;
|
|
665
698
|
}>>;
|
|
699
|
+
/** Integration fee details (if feePercentage and feeWallet were provided) */
|
|
700
|
+
fee: z.ZodOptional<z.ZodObject<{
|
|
701
|
+
/** Fee amount in human-readable format (e.g., "0.01" for 0.01 SOL) */
|
|
702
|
+
amount: z.ZodString;
|
|
703
|
+
/** Fee percentage applied (0.01 to 99) */
|
|
704
|
+
percentage: z.ZodNumber;
|
|
705
|
+
/** Wallet address receiving the fee */
|
|
706
|
+
wallet: z.ZodString;
|
|
707
|
+
/** Whether fee is deducted from input (SOL→token) or output (token→SOL) */
|
|
708
|
+
deductedFrom: z.ZodEnum<["input", "output"]>;
|
|
709
|
+
}, "strip", z.ZodTypeAny, {
|
|
710
|
+
amount: string;
|
|
711
|
+
percentage: number;
|
|
712
|
+
wallet: string;
|
|
713
|
+
deductedFrom: "input" | "output";
|
|
714
|
+
}, {
|
|
715
|
+
amount: string;
|
|
716
|
+
percentage: number;
|
|
717
|
+
wallet: string;
|
|
718
|
+
deductedFrom: "input" | "output";
|
|
719
|
+
}>>;
|
|
666
720
|
} & {
|
|
667
721
|
evm: z.ZodObject<{
|
|
668
722
|
transaction: z.ZodObject<{
|
|
@@ -743,6 +797,12 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
743
797
|
nonce?: number | undefined;
|
|
744
798
|
};
|
|
745
799
|
};
|
|
800
|
+
fee?: {
|
|
801
|
+
amount: string;
|
|
802
|
+
percentage: number;
|
|
803
|
+
wallet: string;
|
|
804
|
+
deductedFrom: "input" | "output";
|
|
805
|
+
} | undefined;
|
|
746
806
|
details?: {
|
|
747
807
|
raw?: Record<string, unknown> | undefined;
|
|
748
808
|
aggregator?: string | undefined;
|
|
@@ -811,6 +871,12 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
811
871
|
nonce?: number | undefined;
|
|
812
872
|
};
|
|
813
873
|
};
|
|
874
|
+
fee?: {
|
|
875
|
+
amount: string;
|
|
876
|
+
percentage: number;
|
|
877
|
+
wallet: string;
|
|
878
|
+
deductedFrom: "input" | "output";
|
|
879
|
+
} | undefined;
|
|
814
880
|
details?: {
|
|
815
881
|
raw?: Record<string, unknown> | undefined;
|
|
816
882
|
aggregator?: string | undefined;
|
|
@@ -1120,11 +1186,38 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1120
1186
|
aggregator?: string | undefined;
|
|
1121
1187
|
} | undefined;
|
|
1122
1188
|
}>>;
|
|
1189
|
+
/** Integration fee details (if feePercentage and feeWallet were provided) */
|
|
1190
|
+
fee: z.ZodOptional<z.ZodObject<{
|
|
1191
|
+
/** Fee amount in human-readable format (e.g., "0.01" for 0.01 SOL) */
|
|
1192
|
+
amount: z.ZodString;
|
|
1193
|
+
/** Fee percentage applied (0.01 to 99) */
|
|
1194
|
+
percentage: z.ZodNumber;
|
|
1195
|
+
/** Wallet address receiving the fee */
|
|
1196
|
+
wallet: z.ZodString;
|
|
1197
|
+
/** Whether fee is deducted from input (SOL→token) or output (token→SOL) */
|
|
1198
|
+
deductedFrom: z.ZodEnum<["input", "output"]>;
|
|
1199
|
+
}, "strip", z.ZodTypeAny, {
|
|
1200
|
+
amount: string;
|
|
1201
|
+
percentage: number;
|
|
1202
|
+
wallet: string;
|
|
1203
|
+
deductedFrom: "input" | "output";
|
|
1204
|
+
}, {
|
|
1205
|
+
amount: string;
|
|
1206
|
+
percentage: number;
|
|
1207
|
+
wallet: string;
|
|
1208
|
+
deductedFrom: "input" | "output";
|
|
1209
|
+
}>>;
|
|
1123
1210
|
} & {
|
|
1124
1211
|
solana: z.ZodOptional<z.ZodNever>;
|
|
1125
1212
|
evm: z.ZodOptional<z.ZodNever>;
|
|
1126
1213
|
}, "strip", z.ZodTypeAny, {
|
|
1127
1214
|
requestId: string;
|
|
1215
|
+
fee?: {
|
|
1216
|
+
amount: string;
|
|
1217
|
+
percentage: number;
|
|
1218
|
+
wallet: string;
|
|
1219
|
+
deductedFrom: "input" | "output";
|
|
1220
|
+
} | undefined;
|
|
1128
1221
|
details?: {
|
|
1129
1222
|
raw?: Record<string, unknown> | undefined;
|
|
1130
1223
|
aggregator?: string | undefined;
|
|
@@ -1180,6 +1273,12 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1180
1273
|
evm?: undefined;
|
|
1181
1274
|
}, {
|
|
1182
1275
|
requestId: string;
|
|
1276
|
+
fee?: {
|
|
1277
|
+
amount: string;
|
|
1278
|
+
percentage: number;
|
|
1279
|
+
wallet: string;
|
|
1280
|
+
deductedFrom: "input" | "output";
|
|
1281
|
+
} | undefined;
|
|
1183
1282
|
details?: {
|
|
1184
1283
|
raw?: Record<string, unknown> | undefined;
|
|
1185
1284
|
aggregator?: string | undefined;
|
|
@@ -1492,6 +1591,27 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
1492
1591
|
aggregator?: string | undefined;
|
|
1493
1592
|
} | undefined;
|
|
1494
1593
|
}>>;
|
|
1594
|
+
/** Integration fee details (if feePercentage and feeWallet were provided) */
|
|
1595
|
+
fee: z.ZodOptional<z.ZodObject<{
|
|
1596
|
+
/** Fee amount in human-readable format (e.g., "0.01" for 0.01 SOL) */
|
|
1597
|
+
amount: z.ZodString;
|
|
1598
|
+
/** Fee percentage applied (0.01 to 99) */
|
|
1599
|
+
percentage: z.ZodNumber;
|
|
1600
|
+
/** Wallet address receiving the fee */
|
|
1601
|
+
wallet: z.ZodString;
|
|
1602
|
+
/** Whether fee is deducted from input (SOL→token) or output (token→SOL) */
|
|
1603
|
+
deductedFrom: z.ZodEnum<["input", "output"]>;
|
|
1604
|
+
}, "strip", z.ZodTypeAny, {
|
|
1605
|
+
amount: string;
|
|
1606
|
+
percentage: number;
|
|
1607
|
+
wallet: string;
|
|
1608
|
+
deductedFrom: "input" | "output";
|
|
1609
|
+
}, {
|
|
1610
|
+
amount: string;
|
|
1611
|
+
percentage: number;
|
|
1612
|
+
wallet: string;
|
|
1613
|
+
deductedFrom: "input" | "output";
|
|
1614
|
+
}>>;
|
|
1495
1615
|
} & {
|
|
1496
1616
|
solana: z.ZodObject<{
|
|
1497
1617
|
transaction: z.ZodObject<{
|
|
@@ -1529,6 +1649,12 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
1529
1649
|
};
|
|
1530
1650
|
lastValidBlockHeight: number;
|
|
1531
1651
|
};
|
|
1652
|
+
fee?: {
|
|
1653
|
+
amount: string;
|
|
1654
|
+
percentage: number;
|
|
1655
|
+
wallet: string;
|
|
1656
|
+
deductedFrom: "input" | "output";
|
|
1657
|
+
} | undefined;
|
|
1532
1658
|
details?: {
|
|
1533
1659
|
raw?: Record<string, unknown> | undefined;
|
|
1534
1660
|
aggregator?: string | undefined;
|
|
@@ -1590,6 +1716,12 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
1590
1716
|
};
|
|
1591
1717
|
lastValidBlockHeight: number;
|
|
1592
1718
|
};
|
|
1719
|
+
fee?: {
|
|
1720
|
+
amount: string;
|
|
1721
|
+
percentage: number;
|
|
1722
|
+
wallet: string;
|
|
1723
|
+
deductedFrom: "input" | "output";
|
|
1724
|
+
} | undefined;
|
|
1593
1725
|
details?: {
|
|
1594
1726
|
raw?: Record<string, unknown> | undefined;
|
|
1595
1727
|
aggregator?: string | undefined;
|
|
@@ -1899,6 +2031,27 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
1899
2031
|
aggregator?: string | undefined;
|
|
1900
2032
|
} | undefined;
|
|
1901
2033
|
}>>;
|
|
2034
|
+
/** Integration fee details (if feePercentage and feeWallet were provided) */
|
|
2035
|
+
fee: z.ZodOptional<z.ZodObject<{
|
|
2036
|
+
/** Fee amount in human-readable format (e.g., "0.01" for 0.01 SOL) */
|
|
2037
|
+
amount: z.ZodString;
|
|
2038
|
+
/** Fee percentage applied (0.01 to 99) */
|
|
2039
|
+
percentage: z.ZodNumber;
|
|
2040
|
+
/** Wallet address receiving the fee */
|
|
2041
|
+
wallet: z.ZodString;
|
|
2042
|
+
/** Whether fee is deducted from input (SOL→token) or output (token→SOL) */
|
|
2043
|
+
deductedFrom: z.ZodEnum<["input", "output"]>;
|
|
2044
|
+
}, "strip", z.ZodTypeAny, {
|
|
2045
|
+
amount: string;
|
|
2046
|
+
percentage: number;
|
|
2047
|
+
wallet: string;
|
|
2048
|
+
deductedFrom: "input" | "output";
|
|
2049
|
+
}, {
|
|
2050
|
+
amount: string;
|
|
2051
|
+
percentage: number;
|
|
2052
|
+
wallet: string;
|
|
2053
|
+
deductedFrom: "input" | "output";
|
|
2054
|
+
}>>;
|
|
1902
2055
|
} & {
|
|
1903
2056
|
evm: z.ZodObject<{
|
|
1904
2057
|
transaction: z.ZodObject<{
|
|
@@ -1979,6 +2132,12 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
1979
2132
|
nonce?: number | undefined;
|
|
1980
2133
|
};
|
|
1981
2134
|
};
|
|
2135
|
+
fee?: {
|
|
2136
|
+
amount: string;
|
|
2137
|
+
percentage: number;
|
|
2138
|
+
wallet: string;
|
|
2139
|
+
deductedFrom: "input" | "output";
|
|
2140
|
+
} | undefined;
|
|
1982
2141
|
details?: {
|
|
1983
2142
|
raw?: Record<string, unknown> | undefined;
|
|
1984
2143
|
aggregator?: string | undefined;
|
|
@@ -2047,6 +2206,12 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
2047
2206
|
nonce?: number | undefined;
|
|
2048
2207
|
};
|
|
2049
2208
|
};
|
|
2209
|
+
fee?: {
|
|
2210
|
+
amount: string;
|
|
2211
|
+
percentage: number;
|
|
2212
|
+
wallet: string;
|
|
2213
|
+
deductedFrom: "input" | "output";
|
|
2214
|
+
} | undefined;
|
|
2050
2215
|
details?: {
|
|
2051
2216
|
raw?: Record<string, unknown> | undefined;
|
|
2052
2217
|
aggregator?: string | undefined;
|
|
@@ -2356,11 +2521,38 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
2356
2521
|
aggregator?: string | undefined;
|
|
2357
2522
|
} | undefined;
|
|
2358
2523
|
}>>;
|
|
2524
|
+
/** Integration fee details (if feePercentage and feeWallet were provided) */
|
|
2525
|
+
fee: z.ZodOptional<z.ZodObject<{
|
|
2526
|
+
/** Fee amount in human-readable format (e.g., "0.01" for 0.01 SOL) */
|
|
2527
|
+
amount: z.ZodString;
|
|
2528
|
+
/** Fee percentage applied (0.01 to 99) */
|
|
2529
|
+
percentage: z.ZodNumber;
|
|
2530
|
+
/** Wallet address receiving the fee */
|
|
2531
|
+
wallet: z.ZodString;
|
|
2532
|
+
/** Whether fee is deducted from input (SOL→token) or output (token→SOL) */
|
|
2533
|
+
deductedFrom: z.ZodEnum<["input", "output"]>;
|
|
2534
|
+
}, "strip", z.ZodTypeAny, {
|
|
2535
|
+
amount: string;
|
|
2536
|
+
percentage: number;
|
|
2537
|
+
wallet: string;
|
|
2538
|
+
deductedFrom: "input" | "output";
|
|
2539
|
+
}, {
|
|
2540
|
+
amount: string;
|
|
2541
|
+
percentage: number;
|
|
2542
|
+
wallet: string;
|
|
2543
|
+
deductedFrom: "input" | "output";
|
|
2544
|
+
}>>;
|
|
2359
2545
|
} & {
|
|
2360
2546
|
solana: z.ZodOptional<z.ZodNever>;
|
|
2361
2547
|
evm: z.ZodOptional<z.ZodNever>;
|
|
2362
2548
|
}, "strip", z.ZodTypeAny, {
|
|
2363
2549
|
requestId: string;
|
|
2550
|
+
fee?: {
|
|
2551
|
+
amount: string;
|
|
2552
|
+
percentage: number;
|
|
2553
|
+
wallet: string;
|
|
2554
|
+
deductedFrom: "input" | "output";
|
|
2555
|
+
} | undefined;
|
|
2364
2556
|
details?: {
|
|
2365
2557
|
raw?: Record<string, unknown> | undefined;
|
|
2366
2558
|
aggregator?: string | undefined;
|
|
@@ -2416,6 +2608,12 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
2416
2608
|
evm?: undefined;
|
|
2417
2609
|
}, {
|
|
2418
2610
|
requestId: string;
|
|
2611
|
+
fee?: {
|
|
2612
|
+
amount: string;
|
|
2613
|
+
percentage: number;
|
|
2614
|
+
wallet: string;
|
|
2615
|
+
deductedFrom: "input" | "output";
|
|
2616
|
+
} | undefined;
|
|
2419
2617
|
details?: {
|
|
2420
2618
|
raw?: Record<string, unknown> | undefined;
|
|
2421
2619
|
aggregator?: string | undefined;
|
|
@@ -2481,6 +2679,12 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
2481
2679
|
};
|
|
2482
2680
|
lastValidBlockHeight: number;
|
|
2483
2681
|
};
|
|
2682
|
+
fee?: {
|
|
2683
|
+
amount: string;
|
|
2684
|
+
percentage: number;
|
|
2685
|
+
wallet: string;
|
|
2686
|
+
deductedFrom: "input" | "output";
|
|
2687
|
+
} | undefined;
|
|
2484
2688
|
details?: {
|
|
2485
2689
|
raw?: Record<string, unknown> | undefined;
|
|
2486
2690
|
aggregator?: string | undefined;
|
|
@@ -2549,6 +2753,12 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
2549
2753
|
nonce?: number | undefined;
|
|
2550
2754
|
};
|
|
2551
2755
|
};
|
|
2756
|
+
fee?: {
|
|
2757
|
+
amount: string;
|
|
2758
|
+
percentage: number;
|
|
2759
|
+
wallet: string;
|
|
2760
|
+
deductedFrom: "input" | "output";
|
|
2761
|
+
} | undefined;
|
|
2552
2762
|
details?: {
|
|
2553
2763
|
raw?: Record<string, unknown> | undefined;
|
|
2554
2764
|
aggregator?: string | undefined;
|
|
@@ -2603,6 +2813,12 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
2603
2813
|
solana?: undefined;
|
|
2604
2814
|
} | {
|
|
2605
2815
|
requestId: string;
|
|
2816
|
+
fee?: {
|
|
2817
|
+
amount: string;
|
|
2818
|
+
percentage: number;
|
|
2819
|
+
wallet: string;
|
|
2820
|
+
deductedFrom: "input" | "output";
|
|
2821
|
+
} | undefined;
|
|
2606
2822
|
details?: {
|
|
2607
2823
|
raw?: Record<string, unknown> | undefined;
|
|
2608
2824
|
aggregator?: string | undefined;
|
|
@@ -2668,6 +2884,12 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
2668
2884
|
};
|
|
2669
2885
|
lastValidBlockHeight: number;
|
|
2670
2886
|
};
|
|
2887
|
+
fee?: {
|
|
2888
|
+
amount: string;
|
|
2889
|
+
percentage: number;
|
|
2890
|
+
wallet: string;
|
|
2891
|
+
deductedFrom: "input" | "output";
|
|
2892
|
+
} | undefined;
|
|
2671
2893
|
details?: {
|
|
2672
2894
|
raw?: Record<string, unknown> | undefined;
|
|
2673
2895
|
aggregator?: string | undefined;
|
|
@@ -2736,6 +2958,12 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
2736
2958
|
nonce?: number | undefined;
|
|
2737
2959
|
};
|
|
2738
2960
|
};
|
|
2961
|
+
fee?: {
|
|
2962
|
+
amount: string;
|
|
2963
|
+
percentage: number;
|
|
2964
|
+
wallet: string;
|
|
2965
|
+
deductedFrom: "input" | "output";
|
|
2966
|
+
} | undefined;
|
|
2739
2967
|
details?: {
|
|
2740
2968
|
raw?: Record<string, unknown> | undefined;
|
|
2741
2969
|
aggregator?: string | undefined;
|
|
@@ -2790,6 +3018,12 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
|
|
|
2790
3018
|
solana?: undefined;
|
|
2791
3019
|
} | {
|
|
2792
3020
|
requestId: string;
|
|
3021
|
+
fee?: {
|
|
3022
|
+
amount: string;
|
|
3023
|
+
percentage: number;
|
|
3024
|
+
wallet: string;
|
|
3025
|
+
deductedFrom: "input" | "output";
|
|
3026
|
+
} | undefined;
|
|
2793
3027
|
details?: {
|
|
2794
3028
|
raw?: Record<string, unknown> | undefined;
|
|
2795
3029
|
aggregator?: string | undefined;
|
|
@@ -32,7 +32,12 @@ export declare const TokenPositionOutput: z.ZodObject<{
|
|
|
32
32
|
tokenAddress: z.ZodString;
|
|
33
33
|
tokenAmount: z.ZodString;
|
|
34
34
|
tokenAmountRaw: z.ZodString;
|
|
35
|
+
tokenAmountUSD: z.ZodString;
|
|
36
|
+
percentageOfTotalSupply: z.ZodString;
|
|
35
37
|
pnlUSD: z.ZodString;
|
|
38
|
+
realizedPnlUSD: z.ZodString;
|
|
39
|
+
unrealizedPnlUSD: z.ZodString;
|
|
40
|
+
totalPnlUSD: z.ZodString;
|
|
36
41
|
buys: z.ZodNumber;
|
|
37
42
|
sells: z.ZodNumber;
|
|
38
43
|
volumeBuyToken: z.ZodString;
|
|
@@ -72,6 +77,8 @@ export declare const TokenPositionOutput: z.ZodObject<{
|
|
|
72
77
|
fromWalletTag: string | null;
|
|
73
78
|
}>;
|
|
74
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
realizedPnlUSD: string;
|
|
81
|
+
unrealizedPnlUSD: string;
|
|
75
82
|
chainId: string;
|
|
76
83
|
buys: number;
|
|
77
84
|
sells: number;
|
|
@@ -79,11 +86,14 @@ export declare const TokenPositionOutput: z.ZodObject<{
|
|
|
79
86
|
volumeSellToken: string;
|
|
80
87
|
avgBuyPriceUSD: string;
|
|
81
88
|
avgSellPriceUSD: string;
|
|
89
|
+
totalPnlUSD: string;
|
|
82
90
|
tokenAddress: string;
|
|
83
91
|
walletAddress: string;
|
|
84
92
|
labels: string[] | null;
|
|
85
93
|
tokenAmount: string;
|
|
86
94
|
tokenAmountRaw: string;
|
|
95
|
+
tokenAmountUSD: string;
|
|
96
|
+
percentageOfTotalSupply: string;
|
|
87
97
|
pnlUSD: string;
|
|
88
98
|
volumeBuyUSD: string;
|
|
89
99
|
volumeSellUSD: string;
|
|
@@ -101,6 +111,8 @@ export declare const TokenPositionOutput: z.ZodObject<{
|
|
|
101
111
|
fromWalletTag: string | null;
|
|
102
112
|
};
|
|
103
113
|
}, {
|
|
114
|
+
realizedPnlUSD: string;
|
|
115
|
+
unrealizedPnlUSD: string;
|
|
104
116
|
chainId: string;
|
|
105
117
|
buys: number;
|
|
106
118
|
sells: number;
|
|
@@ -108,10 +120,13 @@ export declare const TokenPositionOutput: z.ZodObject<{
|
|
|
108
120
|
volumeSellToken: string;
|
|
109
121
|
avgBuyPriceUSD: string;
|
|
110
122
|
avgSellPriceUSD: string;
|
|
123
|
+
totalPnlUSD: string;
|
|
111
124
|
tokenAddress: string;
|
|
112
125
|
walletAddress: string;
|
|
113
126
|
tokenAmount: string;
|
|
114
127
|
tokenAmountRaw: string;
|
|
128
|
+
tokenAmountUSD: string;
|
|
129
|
+
percentageOfTotalSupply: string;
|
|
115
130
|
pnlUSD: string;
|
|
116
131
|
volumeBuyUSD: string;
|
|
117
132
|
volumeSellUSD: string;
|
|
@@ -137,7 +152,12 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
137
152
|
tokenAddress: z.ZodString;
|
|
138
153
|
tokenAmount: z.ZodString;
|
|
139
154
|
tokenAmountRaw: z.ZodString;
|
|
155
|
+
tokenAmountUSD: z.ZodString;
|
|
156
|
+
percentageOfTotalSupply: z.ZodString;
|
|
140
157
|
pnlUSD: z.ZodString;
|
|
158
|
+
realizedPnlUSD: z.ZodString;
|
|
159
|
+
unrealizedPnlUSD: z.ZodString;
|
|
160
|
+
totalPnlUSD: z.ZodString;
|
|
141
161
|
buys: z.ZodNumber;
|
|
142
162
|
sells: z.ZodNumber;
|
|
143
163
|
volumeBuyToken: z.ZodString;
|
|
@@ -177,6 +197,8 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
177
197
|
fromWalletTag: string | null;
|
|
178
198
|
}>;
|
|
179
199
|
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
realizedPnlUSD: string;
|
|
201
|
+
unrealizedPnlUSD: string;
|
|
180
202
|
chainId: string;
|
|
181
203
|
buys: number;
|
|
182
204
|
sells: number;
|
|
@@ -184,11 +206,14 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
184
206
|
volumeSellToken: string;
|
|
185
207
|
avgBuyPriceUSD: string;
|
|
186
208
|
avgSellPriceUSD: string;
|
|
209
|
+
totalPnlUSD: string;
|
|
187
210
|
tokenAddress: string;
|
|
188
211
|
walletAddress: string;
|
|
189
212
|
labels: string[] | null;
|
|
190
213
|
tokenAmount: string;
|
|
191
214
|
tokenAmountRaw: string;
|
|
215
|
+
tokenAmountUSD: string;
|
|
216
|
+
percentageOfTotalSupply: string;
|
|
192
217
|
pnlUSD: string;
|
|
193
218
|
volumeBuyUSD: string;
|
|
194
219
|
volumeSellUSD: string;
|
|
@@ -206,6 +231,8 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
206
231
|
fromWalletTag: string | null;
|
|
207
232
|
};
|
|
208
233
|
}, {
|
|
234
|
+
realizedPnlUSD: string;
|
|
235
|
+
unrealizedPnlUSD: string;
|
|
209
236
|
chainId: string;
|
|
210
237
|
buys: number;
|
|
211
238
|
sells: number;
|
|
@@ -213,10 +240,13 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
213
240
|
volumeSellToken: string;
|
|
214
241
|
avgBuyPriceUSD: string;
|
|
215
242
|
avgSellPriceUSD: string;
|
|
243
|
+
totalPnlUSD: string;
|
|
216
244
|
tokenAddress: string;
|
|
217
245
|
walletAddress: string;
|
|
218
246
|
tokenAmount: string;
|
|
219
247
|
tokenAmountRaw: string;
|
|
248
|
+
tokenAmountUSD: string;
|
|
249
|
+
percentageOfTotalSupply: string;
|
|
220
250
|
pnlUSD: string;
|
|
221
251
|
volumeBuyUSD: string;
|
|
222
252
|
volumeSellUSD: string;
|
|
@@ -237,6 +267,8 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
237
267
|
}>, "many">;
|
|
238
268
|
}, "strip", z.ZodTypeAny, {
|
|
239
269
|
data: {
|
|
270
|
+
realizedPnlUSD: string;
|
|
271
|
+
unrealizedPnlUSD: string;
|
|
240
272
|
chainId: string;
|
|
241
273
|
buys: number;
|
|
242
274
|
sells: number;
|
|
@@ -244,11 +276,14 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
244
276
|
volumeSellToken: string;
|
|
245
277
|
avgBuyPriceUSD: string;
|
|
246
278
|
avgSellPriceUSD: string;
|
|
279
|
+
totalPnlUSD: string;
|
|
247
280
|
tokenAddress: string;
|
|
248
281
|
walletAddress: string;
|
|
249
282
|
labels: string[] | null;
|
|
250
283
|
tokenAmount: string;
|
|
251
284
|
tokenAmountRaw: string;
|
|
285
|
+
tokenAmountUSD: string;
|
|
286
|
+
percentageOfTotalSupply: string;
|
|
252
287
|
pnlUSD: string;
|
|
253
288
|
volumeBuyUSD: string;
|
|
254
289
|
volumeSellUSD: string;
|
|
@@ -268,6 +303,8 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
268
303
|
}[];
|
|
269
304
|
}, {
|
|
270
305
|
data: {
|
|
306
|
+
realizedPnlUSD: string;
|
|
307
|
+
unrealizedPnlUSD: string;
|
|
271
308
|
chainId: string;
|
|
272
309
|
buys: number;
|
|
273
310
|
sells: number;
|
|
@@ -275,10 +312,13 @@ export declare const TokenPositionsResponseSchema: z.ZodObject<{
|
|
|
275
312
|
volumeSellToken: string;
|
|
276
313
|
avgBuyPriceUSD: string;
|
|
277
314
|
avgSellPriceUSD: string;
|
|
315
|
+
totalPnlUSD: string;
|
|
278
316
|
tokenAddress: string;
|
|
279
317
|
walletAddress: string;
|
|
280
318
|
tokenAmount: string;
|
|
281
319
|
tokenAmountRaw: string;
|
|
320
|
+
tokenAmountUSD: string;
|
|
321
|
+
percentageOfTotalSupply: string;
|
|
282
322
|
pnlUSD: string;
|
|
283
323
|
volumeBuyUSD: string;
|
|
284
324
|
volumeSellUSD: string;
|