@crypticdot/defituna-api 1.8.0 → 1.8.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 +108 -102
- package/dist/index.d.ts +108 -102
- package/dist/index.js +3 -8
- package/dist/index.mjs +3 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -11,6 +11,7 @@ declare const NotificationEntity: {
|
|
|
11
11
|
readonly FUSION_LIMIT_ORDER: "fusion_limit_order";
|
|
12
12
|
readonly TRADE_HISTORY_ENTRY: "trade_history_entry";
|
|
13
13
|
readonly ORDER_HISTORY_ENTRY: "order_history_entry";
|
|
14
|
+
readonly STATE_SNAPSHOT: "state_snapshot";
|
|
14
15
|
};
|
|
15
16
|
declare const NotificationAction: {
|
|
16
17
|
readonly CREATE: "create";
|
|
@@ -96,7 +97,7 @@ declare const WalletSubscriptionTopic: {
|
|
|
96
97
|
readonly TRADE_HISTORY: "trade_history";
|
|
97
98
|
readonly ORDER_HISTORY: "order_history";
|
|
98
99
|
};
|
|
99
|
-
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
100
|
+
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
100
101
|
declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
101
102
|
declare const PoolProviderSchema: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
|
|
102
103
|
declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
|
|
@@ -2322,34 +2323,24 @@ declare const SwapQuoteByOutput$1: z.ZodObject<{
|
|
|
2322
2323
|
estimatedAmountIn: bigint;
|
|
2323
2324
|
maxAmountIn: bigint;
|
|
2324
2325
|
}>;
|
|
2325
|
-
declare const ShortPoolPriceUpdate$1: z.ZodObject<{
|
|
2326
|
-
price: z.ZodNumber;
|
|
2327
|
-
uiPrice: z.ZodNumber;
|
|
2328
|
-
sqrtPrice: z.ZodBigInt;
|
|
2329
|
-
}, "strip", z.ZodTypeAny, {
|
|
2330
|
-
price: number;
|
|
2331
|
-
sqrtPrice: bigint;
|
|
2332
|
-
uiPrice: number;
|
|
2333
|
-
}, {
|
|
2334
|
-
price: number;
|
|
2335
|
-
sqrtPrice: bigint;
|
|
2336
|
-
uiPrice: number;
|
|
2337
|
-
}>;
|
|
2338
2326
|
declare const StateSnapshot$1: z.ZodObject<{
|
|
2339
2327
|
slot: z.ZodBigInt;
|
|
2340
2328
|
blockTime: z.ZodDate;
|
|
2341
2329
|
poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
|
|
2330
|
+
pool: z.ZodString;
|
|
2342
2331
|
price: z.ZodNumber;
|
|
2343
|
-
uiPrice: z.ZodNumber;
|
|
2344
2332
|
sqrtPrice: z.ZodBigInt;
|
|
2333
|
+
time: z.ZodDate;
|
|
2345
2334
|
}, "strip", z.ZodTypeAny, {
|
|
2346
2335
|
price: number;
|
|
2336
|
+
time: Date;
|
|
2347
2337
|
sqrtPrice: bigint;
|
|
2348
|
-
|
|
2338
|
+
pool: string;
|
|
2349
2339
|
}, {
|
|
2350
2340
|
price: number;
|
|
2341
|
+
time: Date;
|
|
2351
2342
|
sqrtPrice: bigint;
|
|
2352
|
-
|
|
2343
|
+
pool: string;
|
|
2353
2344
|
}>>>;
|
|
2354
2345
|
tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2355
2346
|
address: z.ZodString;
|
|
@@ -2944,8 +2935,9 @@ declare const StateSnapshot$1: z.ZodObject<{
|
|
|
2944
2935
|
blockTime: Date;
|
|
2945
2936
|
poolPrices?: Map<string, {
|
|
2946
2937
|
price: number;
|
|
2938
|
+
time: Date;
|
|
2947
2939
|
sqrtPrice: bigint;
|
|
2948
|
-
|
|
2940
|
+
pool: string;
|
|
2949
2941
|
}> | undefined;
|
|
2950
2942
|
tunaSpotPositions?: {
|
|
2951
2943
|
total: {
|
|
@@ -3102,8 +3094,9 @@ declare const StateSnapshot$1: z.ZodObject<{
|
|
|
3102
3094
|
blockTime: Date;
|
|
3103
3095
|
poolPrices?: Map<string, {
|
|
3104
3096
|
price: number;
|
|
3097
|
+
time: Date;
|
|
3105
3098
|
sqrtPrice: bigint;
|
|
3106
|
-
|
|
3099
|
+
pool: string;
|
|
3107
3100
|
}> | undefined;
|
|
3108
3101
|
tunaSpotPositions?: {
|
|
3109
3102
|
total: {
|
|
@@ -3302,7 +3295,7 @@ declare const OrderBookNotificationMeta: z.ZodObject<{
|
|
|
3302
3295
|
}>;
|
|
3303
3296
|
declare const PoolSwapNotification: z.ZodObject<{
|
|
3304
3297
|
meta: z.ZodTypeAny;
|
|
3305
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3298
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3306
3299
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3307
3300
|
data: z.ZodObject<{
|
|
3308
3301
|
id: z.ZodString;
|
|
@@ -3333,7 +3326,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
3333
3326
|
authority: z.ZodNullable<z.ZodString>;
|
|
3334
3327
|
} | {
|
|
3335
3328
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3336
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3329
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3337
3330
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3338
3331
|
data: z.ZodObject<{
|
|
3339
3332
|
id: z.ZodString;
|
|
@@ -3375,7 +3368,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
3375
3368
|
amountUsd: number;
|
|
3376
3369
|
aToB: boolean;
|
|
3377
3370
|
};
|
|
3378
|
-
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";
|
|
3371
|
+
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" | "state_snapshot";
|
|
3379
3372
|
meta?: any;
|
|
3380
3373
|
} | {
|
|
3381
3374
|
authority: string | null;
|
|
@@ -3390,7 +3383,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
3390
3383
|
amountUsd: number;
|
|
3391
3384
|
aToB: boolean;
|
|
3392
3385
|
};
|
|
3393
|
-
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";
|
|
3386
|
+
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" | "state_snapshot";
|
|
3394
3387
|
meta?: any;
|
|
3395
3388
|
}, {
|
|
3396
3389
|
authority: string | null;
|
|
@@ -3405,7 +3398,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
3405
3398
|
amountUsd: number;
|
|
3406
3399
|
aToB: boolean;
|
|
3407
3400
|
};
|
|
3408
|
-
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";
|
|
3401
|
+
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" | "state_snapshot";
|
|
3409
3402
|
meta?: any;
|
|
3410
3403
|
} | {
|
|
3411
3404
|
authority: string | null;
|
|
@@ -3420,12 +3413,12 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
3420
3413
|
amountUsd: number;
|
|
3421
3414
|
aToB: boolean;
|
|
3422
3415
|
};
|
|
3423
|
-
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";
|
|
3416
|
+
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" | "state_snapshot";
|
|
3424
3417
|
meta?: any;
|
|
3425
3418
|
}>;
|
|
3426
3419
|
declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
3427
3420
|
meta: z.ZodTypeAny;
|
|
3428
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3421
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3429
3422
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3430
3423
|
data: z.ZodObject<{
|
|
3431
3424
|
pool: z.ZodString;
|
|
@@ -3447,7 +3440,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
3447
3440
|
authority: z.ZodNullable<z.ZodString>;
|
|
3448
3441
|
} | {
|
|
3449
3442
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3450
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3443
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3451
3444
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3452
3445
|
data: z.ZodObject<{
|
|
3453
3446
|
pool: z.ZodString;
|
|
@@ -3477,7 +3470,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
3477
3470
|
sqrtPrice: bigint;
|
|
3478
3471
|
pool: string;
|
|
3479
3472
|
};
|
|
3480
|
-
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";
|
|
3473
|
+
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" | "state_snapshot";
|
|
3481
3474
|
meta?: any;
|
|
3482
3475
|
} | {
|
|
3483
3476
|
authority: string | null;
|
|
@@ -3489,7 +3482,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
3489
3482
|
sqrtPrice: bigint;
|
|
3490
3483
|
pool: string;
|
|
3491
3484
|
};
|
|
3492
|
-
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";
|
|
3485
|
+
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" | "state_snapshot";
|
|
3493
3486
|
meta?: any;
|
|
3494
3487
|
}, {
|
|
3495
3488
|
authority: string | null;
|
|
@@ -3501,7 +3494,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
3501
3494
|
sqrtPrice: bigint;
|
|
3502
3495
|
pool: string;
|
|
3503
3496
|
};
|
|
3504
|
-
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";
|
|
3497
|
+
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" | "state_snapshot";
|
|
3505
3498
|
meta?: any;
|
|
3506
3499
|
} | {
|
|
3507
3500
|
authority: string | null;
|
|
@@ -3513,7 +3506,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
3513
3506
|
sqrtPrice: bigint;
|
|
3514
3507
|
pool: string;
|
|
3515
3508
|
};
|
|
3516
|
-
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";
|
|
3509
|
+
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" | "state_snapshot";
|
|
3517
3510
|
meta?: any;
|
|
3518
3511
|
}>;
|
|
3519
3512
|
declare const OrderBookNotification: z.ZodObject<{
|
|
@@ -3530,7 +3523,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3530
3523
|
priceStep: number;
|
|
3531
3524
|
inverted: boolean;
|
|
3532
3525
|
}>;
|
|
3533
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3526
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3534
3527
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3535
3528
|
data: z.ZodObject<{
|
|
3536
3529
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -3601,7 +3594,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3601
3594
|
authority: z.ZodNullable<z.ZodString>;
|
|
3602
3595
|
} | {
|
|
3603
3596
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3604
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3597
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3605
3598
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3606
3599
|
data: z.ZodObject<{
|
|
3607
3600
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -3694,7 +3687,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3694
3687
|
priceStep: number;
|
|
3695
3688
|
inverted: boolean;
|
|
3696
3689
|
} | null | undefined;
|
|
3697
|
-
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";
|
|
3690
|
+
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" | "state_snapshot";
|
|
3698
3691
|
} | {
|
|
3699
3692
|
authority: string | null;
|
|
3700
3693
|
id: string;
|
|
@@ -3719,7 +3712,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3719
3712
|
priceStep: number;
|
|
3720
3713
|
inverted: boolean;
|
|
3721
3714
|
} | null | undefined;
|
|
3722
|
-
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";
|
|
3715
|
+
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" | "state_snapshot";
|
|
3723
3716
|
}, {
|
|
3724
3717
|
authority: string | null;
|
|
3725
3718
|
id: string;
|
|
@@ -3744,7 +3737,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3744
3737
|
priceStep: number;
|
|
3745
3738
|
inverted: boolean;
|
|
3746
3739
|
} | null | undefined;
|
|
3747
|
-
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";
|
|
3740
|
+
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" | "state_snapshot";
|
|
3748
3741
|
} | {
|
|
3749
3742
|
authority: string | null;
|
|
3750
3743
|
id: string;
|
|
@@ -3769,11 +3762,11 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3769
3762
|
priceStep: number;
|
|
3770
3763
|
inverted: boolean;
|
|
3771
3764
|
} | null | undefined;
|
|
3772
|
-
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";
|
|
3765
|
+
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" | "state_snapshot";
|
|
3773
3766
|
}>;
|
|
3774
3767
|
declare const TunaPositionNotification: z.ZodObject<{
|
|
3775
3768
|
meta: z.ZodTypeAny;
|
|
3776
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3769
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3777
3770
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3778
3771
|
data: z.ZodObject<{
|
|
3779
3772
|
address: z.ZodString;
|
|
@@ -4143,7 +4136,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
4143
4136
|
authority: z.ZodNullable<z.ZodString>;
|
|
4144
4137
|
} | {
|
|
4145
4138
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
4146
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
4139
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
4147
4140
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4148
4141
|
data: z.ZodObject<{
|
|
4149
4142
|
address: z.ZodString;
|
|
@@ -4603,7 +4596,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
4603
4596
|
updatedAtSlot: bigint;
|
|
4604
4597
|
closedAt: Date | null;
|
|
4605
4598
|
};
|
|
4606
|
-
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";
|
|
4599
|
+
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" | "state_snapshot";
|
|
4607
4600
|
meta?: any;
|
|
4608
4601
|
} | {
|
|
4609
4602
|
authority: string | null;
|
|
@@ -4697,7 +4690,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
4697
4690
|
updatedAtSlot: bigint;
|
|
4698
4691
|
closedAt: Date | null;
|
|
4699
4692
|
};
|
|
4700
|
-
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";
|
|
4693
|
+
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" | "state_snapshot";
|
|
4701
4694
|
meta?: any;
|
|
4702
4695
|
}, {
|
|
4703
4696
|
authority: string | null;
|
|
@@ -4791,7 +4784,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
4791
4784
|
updatedAtSlot: bigint;
|
|
4792
4785
|
closedAt: Date | null;
|
|
4793
4786
|
};
|
|
4794
|
-
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";
|
|
4787
|
+
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" | "state_snapshot";
|
|
4795
4788
|
meta?: any;
|
|
4796
4789
|
} | {
|
|
4797
4790
|
authority: string | null;
|
|
@@ -4885,12 +4878,12 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
4885
4878
|
updatedAtSlot: bigint;
|
|
4886
4879
|
closedAt: Date | null;
|
|
4887
4880
|
};
|
|
4888
|
-
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";
|
|
4881
|
+
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" | "state_snapshot";
|
|
4889
4882
|
meta?: any;
|
|
4890
4883
|
}>;
|
|
4891
4884
|
declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
4892
4885
|
meta: z.ZodTypeAny;
|
|
4893
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
4886
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
4894
4887
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4895
4888
|
data: z.ZodObject<{
|
|
4896
4889
|
address: z.ZodString;
|
|
@@ -5047,7 +5040,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
5047
5040
|
authority: z.ZodNullable<z.ZodString>;
|
|
5048
5041
|
} | {
|
|
5049
5042
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
5050
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5043
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5051
5044
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5052
5045
|
data: z.ZodObject<{
|
|
5053
5046
|
address: z.ZodString;
|
|
@@ -5247,7 +5240,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
5247
5240
|
leverage: number;
|
|
5248
5241
|
openedAtSlot: bigint;
|
|
5249
5242
|
};
|
|
5250
|
-
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";
|
|
5243
|
+
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" | "state_snapshot";
|
|
5251
5244
|
meta?: any;
|
|
5252
5245
|
} | {
|
|
5253
5246
|
authority: string | null;
|
|
@@ -5294,7 +5287,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
5294
5287
|
leverage: number;
|
|
5295
5288
|
openedAtSlot: bigint;
|
|
5296
5289
|
};
|
|
5297
|
-
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";
|
|
5290
|
+
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" | "state_snapshot";
|
|
5298
5291
|
meta?: any;
|
|
5299
5292
|
}, {
|
|
5300
5293
|
authority: string | null;
|
|
@@ -5341,7 +5334,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
5341
5334
|
leverage: number;
|
|
5342
5335
|
openedAtSlot: bigint;
|
|
5343
5336
|
};
|
|
5344
|
-
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";
|
|
5337
|
+
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" | "state_snapshot";
|
|
5345
5338
|
meta?: any;
|
|
5346
5339
|
} | {
|
|
5347
5340
|
authority: string | null;
|
|
@@ -5388,12 +5381,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
5388
5381
|
leverage: number;
|
|
5389
5382
|
openedAtSlot: bigint;
|
|
5390
5383
|
};
|
|
5391
|
-
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";
|
|
5384
|
+
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" | "state_snapshot";
|
|
5392
5385
|
meta?: any;
|
|
5393
5386
|
}>;
|
|
5394
5387
|
declare const LendingPositionNotification: z.ZodObject<{
|
|
5395
5388
|
meta: z.ZodTypeAny;
|
|
5396
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5389
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5397
5390
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5398
5391
|
data: z.ZodObject<{
|
|
5399
5392
|
address: z.ZodString;
|
|
@@ -5454,7 +5447,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
5454
5447
|
authority: z.ZodNullable<z.ZodString>;
|
|
5455
5448
|
} | {
|
|
5456
5449
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
5457
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5450
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5458
5451
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5459
5452
|
data: z.ZodObject<{
|
|
5460
5453
|
address: z.ZodString;
|
|
@@ -5532,7 +5525,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
5532
5525
|
usd: number;
|
|
5533
5526
|
};
|
|
5534
5527
|
};
|
|
5535
|
-
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";
|
|
5528
|
+
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" | "state_snapshot";
|
|
5536
5529
|
meta?: any;
|
|
5537
5530
|
} | {
|
|
5538
5531
|
authority: string | null;
|
|
@@ -5553,7 +5546,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
5553
5546
|
usd: number;
|
|
5554
5547
|
};
|
|
5555
5548
|
};
|
|
5556
|
-
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";
|
|
5549
|
+
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" | "state_snapshot";
|
|
5557
5550
|
meta?: any;
|
|
5558
5551
|
}, {
|
|
5559
5552
|
authority: string | null;
|
|
@@ -5574,7 +5567,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
5574
5567
|
usd: number;
|
|
5575
5568
|
};
|
|
5576
5569
|
};
|
|
5577
|
-
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";
|
|
5570
|
+
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" | "state_snapshot";
|
|
5578
5571
|
meta?: any;
|
|
5579
5572
|
} | {
|
|
5580
5573
|
authority: string | null;
|
|
@@ -5595,12 +5588,12 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
5595
5588
|
usd: number;
|
|
5596
5589
|
};
|
|
5597
5590
|
};
|
|
5598
|
-
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";
|
|
5591
|
+
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" | "state_snapshot";
|
|
5599
5592
|
meta?: any;
|
|
5600
5593
|
}>;
|
|
5601
5594
|
declare const LimitOrderNotification: z.ZodObject<{
|
|
5602
5595
|
meta: z.ZodTypeAny;
|
|
5603
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5596
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5604
5597
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5605
5598
|
data: z.ZodObject<{
|
|
5606
5599
|
address: z.ZodString;
|
|
@@ -5679,7 +5672,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
5679
5672
|
authority: z.ZodNullable<z.ZodString>;
|
|
5680
5673
|
} | {
|
|
5681
5674
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
5682
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5675
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5683
5676
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5684
5677
|
data: z.ZodObject<{
|
|
5685
5678
|
address: z.ZodString;
|
|
@@ -5781,7 +5774,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
5781
5774
|
openTxSignature: string;
|
|
5782
5775
|
closeTxSignature: string | null;
|
|
5783
5776
|
};
|
|
5784
|
-
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";
|
|
5777
|
+
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" | "state_snapshot";
|
|
5785
5778
|
meta?: any;
|
|
5786
5779
|
} | {
|
|
5787
5780
|
authority: string | null;
|
|
@@ -5808,7 +5801,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
5808
5801
|
openTxSignature: string;
|
|
5809
5802
|
closeTxSignature: string | null;
|
|
5810
5803
|
};
|
|
5811
|
-
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";
|
|
5804
|
+
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" | "state_snapshot";
|
|
5812
5805
|
meta?: any;
|
|
5813
5806
|
}, {
|
|
5814
5807
|
authority: string | null;
|
|
@@ -5835,7 +5828,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
5835
5828
|
openTxSignature: string;
|
|
5836
5829
|
closeTxSignature: string | null;
|
|
5837
5830
|
};
|
|
5838
|
-
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";
|
|
5831
|
+
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" | "state_snapshot";
|
|
5839
5832
|
meta?: any;
|
|
5840
5833
|
} | {
|
|
5841
5834
|
authority: string | null;
|
|
@@ -5862,12 +5855,12 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
5862
5855
|
openTxSignature: string;
|
|
5863
5856
|
closeTxSignature: string | null;
|
|
5864
5857
|
};
|
|
5865
|
-
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";
|
|
5858
|
+
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" | "state_snapshot";
|
|
5866
5859
|
meta?: any;
|
|
5867
5860
|
}>;
|
|
5868
5861
|
declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
5869
5862
|
meta: z.ZodTypeAny;
|
|
5870
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5863
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5871
5864
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5872
5865
|
data: z.ZodObject<{
|
|
5873
5866
|
id: z.ZodString;
|
|
@@ -5982,7 +5975,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
5982
5975
|
authority: z.ZodNullable<z.ZodString>;
|
|
5983
5976
|
} | {
|
|
5984
5977
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
5985
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5978
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5986
5979
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5987
5980
|
data: z.ZodObject<{
|
|
5988
5981
|
id: z.ZodString;
|
|
@@ -6128,7 +6121,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
6128
6121
|
slot: bigint;
|
|
6129
6122
|
ts: Date;
|
|
6130
6123
|
};
|
|
6131
|
-
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";
|
|
6124
|
+
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" | "state_snapshot";
|
|
6132
6125
|
meta?: any;
|
|
6133
6126
|
} | {
|
|
6134
6127
|
authority: string | null;
|
|
@@ -6163,7 +6156,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
6163
6156
|
slot: bigint;
|
|
6164
6157
|
ts: Date;
|
|
6165
6158
|
};
|
|
6166
|
-
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";
|
|
6159
|
+
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" | "state_snapshot";
|
|
6167
6160
|
meta?: any;
|
|
6168
6161
|
}, {
|
|
6169
6162
|
authority: string | null;
|
|
@@ -6198,7 +6191,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
6198
6191
|
slot: bigint;
|
|
6199
6192
|
ts: Date;
|
|
6200
6193
|
};
|
|
6201
|
-
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";
|
|
6194
|
+
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" | "state_snapshot";
|
|
6202
6195
|
meta?: any;
|
|
6203
6196
|
} | {
|
|
6204
6197
|
authority: string | null;
|
|
@@ -6233,12 +6226,12 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
6233
6226
|
slot: bigint;
|
|
6234
6227
|
ts: Date;
|
|
6235
6228
|
};
|
|
6236
|
-
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";
|
|
6229
|
+
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" | "state_snapshot";
|
|
6237
6230
|
meta?: any;
|
|
6238
6231
|
}>;
|
|
6239
6232
|
declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
6240
6233
|
meta: z.ZodTypeAny;
|
|
6241
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
6234
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
6242
6235
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
6243
6236
|
data: z.ZodObject<{
|
|
6244
6237
|
id: z.ZodString;
|
|
@@ -6362,7 +6355,7 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
6362
6355
|
authority: z.ZodNullable<z.ZodString>;
|
|
6363
6356
|
} | {
|
|
6364
6357
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
6365
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
6358
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
6366
6359
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
6367
6360
|
data: z.ZodObject<{
|
|
6368
6361
|
id: z.ZodString;
|
|
@@ -6520,7 +6513,7 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
6520
6513
|
usd: number;
|
|
6521
6514
|
} | null;
|
|
6522
6515
|
};
|
|
6523
|
-
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";
|
|
6516
|
+
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" | "state_snapshot";
|
|
6524
6517
|
meta?: any;
|
|
6525
6518
|
} | {
|
|
6526
6519
|
authority: string | null;
|
|
@@ -6558,7 +6551,7 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
6558
6551
|
usd: number;
|
|
6559
6552
|
} | null;
|
|
6560
6553
|
};
|
|
6561
|
-
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";
|
|
6554
|
+
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" | "state_snapshot";
|
|
6562
6555
|
meta?: any;
|
|
6563
6556
|
}, {
|
|
6564
6557
|
authority: string | null;
|
|
@@ -6596,7 +6589,7 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
6596
6589
|
usd: number;
|
|
6597
6590
|
} | null;
|
|
6598
6591
|
};
|
|
6599
|
-
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";
|
|
6592
|
+
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" | "state_snapshot";
|
|
6600
6593
|
meta?: any;
|
|
6601
6594
|
} | {
|
|
6602
6595
|
authority: string | null;
|
|
@@ -6634,12 +6627,12 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
6634
6627
|
usd: number;
|
|
6635
6628
|
} | null;
|
|
6636
6629
|
};
|
|
6637
|
-
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";
|
|
6630
|
+
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" | "state_snapshot";
|
|
6638
6631
|
meta?: any;
|
|
6639
6632
|
}>;
|
|
6640
6633
|
declare const StakingPositionNotification: z.ZodObject<{
|
|
6641
6634
|
meta: z.ZodTypeAny;
|
|
6642
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
6635
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
6643
6636
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
6644
6637
|
data: z.ZodObject<{
|
|
6645
6638
|
address: z.ZodString;
|
|
@@ -6816,7 +6809,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
6816
6809
|
authority: z.ZodNullable<z.ZodString>;
|
|
6817
6810
|
} | {
|
|
6818
6811
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
6819
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
6812
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
6820
6813
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
6821
6814
|
data: z.ZodObject<{
|
|
6822
6815
|
address: z.ZodString;
|
|
@@ -7032,7 +7025,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
7032
7025
|
lastUnstakedAt: Date | null;
|
|
7033
7026
|
withdrawAvailableAt: Date | null;
|
|
7034
7027
|
};
|
|
7035
|
-
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";
|
|
7028
|
+
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" | "state_snapshot";
|
|
7036
7029
|
meta?: any;
|
|
7037
7030
|
} | {
|
|
7038
7031
|
authority: string | null;
|
|
@@ -7075,7 +7068,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
7075
7068
|
lastUnstakedAt: Date | null;
|
|
7076
7069
|
withdrawAvailableAt: Date | null;
|
|
7077
7070
|
};
|
|
7078
|
-
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";
|
|
7071
|
+
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" | "state_snapshot";
|
|
7079
7072
|
meta?: any;
|
|
7080
7073
|
}, {
|
|
7081
7074
|
authority: string | null;
|
|
@@ -7118,7 +7111,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
7118
7111
|
lastUnstakedAt: Date | null;
|
|
7119
7112
|
withdrawAvailableAt: Date | null;
|
|
7120
7113
|
};
|
|
7121
|
-
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";
|
|
7114
|
+
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" | "state_snapshot";
|
|
7122
7115
|
meta?: any;
|
|
7123
7116
|
} | {
|
|
7124
7117
|
authority: string | null;
|
|
@@ -7161,28 +7154,31 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
7161
7154
|
lastUnstakedAt: Date | null;
|
|
7162
7155
|
withdrawAvailableAt: Date | null;
|
|
7163
7156
|
};
|
|
7164
|
-
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";
|
|
7157
|
+
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" | "state_snapshot";
|
|
7165
7158
|
meta?: any;
|
|
7166
7159
|
}>;
|
|
7167
7160
|
declare const StateSnapshotNotification: z.ZodObject<{
|
|
7168
7161
|
meta: z.ZodTypeAny;
|
|
7169
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
7162
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
7170
7163
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
7171
7164
|
data: z.ZodObject<{
|
|
7172
7165
|
slot: z.ZodBigInt;
|
|
7173
7166
|
blockTime: z.ZodDate;
|
|
7174
7167
|
poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
|
|
7168
|
+
pool: z.ZodString;
|
|
7175
7169
|
price: z.ZodNumber;
|
|
7176
|
-
uiPrice: z.ZodNumber;
|
|
7177
7170
|
sqrtPrice: z.ZodBigInt;
|
|
7171
|
+
time: z.ZodDate;
|
|
7178
7172
|
}, "strip", z.ZodTypeAny, {
|
|
7179
7173
|
price: number;
|
|
7174
|
+
time: Date;
|
|
7180
7175
|
sqrtPrice: bigint;
|
|
7181
|
-
|
|
7176
|
+
pool: string;
|
|
7182
7177
|
}, {
|
|
7183
7178
|
price: number;
|
|
7179
|
+
time: Date;
|
|
7184
7180
|
sqrtPrice: bigint;
|
|
7185
|
-
|
|
7181
|
+
pool: string;
|
|
7186
7182
|
}>>>;
|
|
7187
7183
|
tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7188
7184
|
address: z.ZodString;
|
|
@@ -7777,8 +7773,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
7777
7773
|
blockTime: Date;
|
|
7778
7774
|
poolPrices?: Map<string, {
|
|
7779
7775
|
price: number;
|
|
7776
|
+
time: Date;
|
|
7780
7777
|
sqrtPrice: bigint;
|
|
7781
|
-
|
|
7778
|
+
pool: string;
|
|
7782
7779
|
}> | undefined;
|
|
7783
7780
|
tunaSpotPositions?: {
|
|
7784
7781
|
total: {
|
|
@@ -7935,8 +7932,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
7935
7932
|
blockTime: Date;
|
|
7936
7933
|
poolPrices?: Map<string, {
|
|
7937
7934
|
price: number;
|
|
7935
|
+
time: Date;
|
|
7938
7936
|
sqrtPrice: bigint;
|
|
7939
|
-
|
|
7937
|
+
pool: string;
|
|
7940
7938
|
}> | undefined;
|
|
7941
7939
|
tunaSpotPositions?: {
|
|
7942
7940
|
total: {
|
|
@@ -8093,23 +8091,26 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
8093
8091
|
authority: z.ZodNullable<z.ZodString>;
|
|
8094
8092
|
} | {
|
|
8095
8093
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
8096
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
8094
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
8097
8095
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
8098
8096
|
data: z.ZodObject<{
|
|
8099
8097
|
slot: z.ZodBigInt;
|
|
8100
8098
|
blockTime: z.ZodDate;
|
|
8101
8099
|
poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
|
|
8100
|
+
pool: z.ZodString;
|
|
8102
8101
|
price: z.ZodNumber;
|
|
8103
|
-
uiPrice: z.ZodNumber;
|
|
8104
8102
|
sqrtPrice: z.ZodBigInt;
|
|
8103
|
+
time: z.ZodDate;
|
|
8105
8104
|
}, "strip", z.ZodTypeAny, {
|
|
8106
8105
|
price: number;
|
|
8106
|
+
time: Date;
|
|
8107
8107
|
sqrtPrice: bigint;
|
|
8108
|
-
|
|
8108
|
+
pool: string;
|
|
8109
8109
|
}, {
|
|
8110
8110
|
price: number;
|
|
8111
|
+
time: Date;
|
|
8111
8112
|
sqrtPrice: bigint;
|
|
8112
|
-
|
|
8113
|
+
pool: string;
|
|
8113
8114
|
}>>>;
|
|
8114
8115
|
tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8115
8116
|
address: z.ZodString;
|
|
@@ -8704,8 +8705,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
8704
8705
|
blockTime: Date;
|
|
8705
8706
|
poolPrices?: Map<string, {
|
|
8706
8707
|
price: number;
|
|
8708
|
+
time: Date;
|
|
8707
8709
|
sqrtPrice: bigint;
|
|
8708
|
-
|
|
8710
|
+
pool: string;
|
|
8709
8711
|
}> | undefined;
|
|
8710
8712
|
tunaSpotPositions?: {
|
|
8711
8713
|
total: {
|
|
@@ -8862,8 +8864,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
8862
8864
|
blockTime: Date;
|
|
8863
8865
|
poolPrices?: Map<string, {
|
|
8864
8866
|
price: number;
|
|
8867
|
+
time: Date;
|
|
8865
8868
|
sqrtPrice: bigint;
|
|
8866
|
-
|
|
8869
|
+
pool: string;
|
|
8867
8870
|
}> | undefined;
|
|
8868
8871
|
tunaSpotPositions?: {
|
|
8869
8872
|
total: {
|
|
@@ -9027,8 +9030,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9027
9030
|
blockTime: Date;
|
|
9028
9031
|
poolPrices?: Map<string, {
|
|
9029
9032
|
price: number;
|
|
9033
|
+
time: Date;
|
|
9030
9034
|
sqrtPrice: bigint;
|
|
9031
|
-
|
|
9035
|
+
pool: string;
|
|
9032
9036
|
}> | undefined;
|
|
9033
9037
|
tunaSpotPositions?: {
|
|
9034
9038
|
total: {
|
|
@@ -9181,7 +9185,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9181
9185
|
closeTxSignature: string | null;
|
|
9182
9186
|
}[] | undefined;
|
|
9183
9187
|
};
|
|
9184
|
-
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";
|
|
9188
|
+
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" | "state_snapshot";
|
|
9185
9189
|
meta?: any;
|
|
9186
9190
|
} | {
|
|
9187
9191
|
authority: string | null;
|
|
@@ -9192,8 +9196,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9192
9196
|
blockTime: Date;
|
|
9193
9197
|
poolPrices?: Map<string, {
|
|
9194
9198
|
price: number;
|
|
9199
|
+
time: Date;
|
|
9195
9200
|
sqrtPrice: bigint;
|
|
9196
|
-
|
|
9201
|
+
pool: string;
|
|
9197
9202
|
}> | undefined;
|
|
9198
9203
|
tunaSpotPositions?: {
|
|
9199
9204
|
total: {
|
|
@@ -9346,7 +9351,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9346
9351
|
closeTxSignature: string | null;
|
|
9347
9352
|
}[] | undefined;
|
|
9348
9353
|
};
|
|
9349
|
-
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";
|
|
9354
|
+
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" | "state_snapshot";
|
|
9350
9355
|
meta?: any;
|
|
9351
9356
|
}, {
|
|
9352
9357
|
authority: string | null;
|
|
@@ -9357,8 +9362,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9357
9362
|
blockTime: Date;
|
|
9358
9363
|
poolPrices?: Map<string, {
|
|
9359
9364
|
price: number;
|
|
9365
|
+
time: Date;
|
|
9360
9366
|
sqrtPrice: bigint;
|
|
9361
|
-
|
|
9367
|
+
pool: string;
|
|
9362
9368
|
}> | undefined;
|
|
9363
9369
|
tunaSpotPositions?: {
|
|
9364
9370
|
total: {
|
|
@@ -9511,7 +9517,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9511
9517
|
closeTxSignature: string | null;
|
|
9512
9518
|
}[] | undefined;
|
|
9513
9519
|
};
|
|
9514
|
-
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";
|
|
9520
|
+
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" | "state_snapshot";
|
|
9515
9521
|
meta?: any;
|
|
9516
9522
|
} | {
|
|
9517
9523
|
authority: string | null;
|
|
@@ -9522,8 +9528,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9522
9528
|
blockTime: Date;
|
|
9523
9529
|
poolPrices?: Map<string, {
|
|
9524
9530
|
price: number;
|
|
9531
|
+
time: Date;
|
|
9525
9532
|
sqrtPrice: bigint;
|
|
9526
|
-
|
|
9533
|
+
pool: string;
|
|
9527
9534
|
}> | undefined;
|
|
9528
9535
|
tunaSpotPositions?: {
|
|
9529
9536
|
total: {
|
|
@@ -9676,7 +9683,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9676
9683
|
closeTxSignature: string | null;
|
|
9677
9684
|
}[] | undefined;
|
|
9678
9685
|
};
|
|
9679
|
-
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";
|
|
9686
|
+
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" | "state_snapshot";
|
|
9680
9687
|
meta?: any;
|
|
9681
9688
|
}>;
|
|
9682
9689
|
|
|
@@ -9721,7 +9728,7 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
|
|
|
9721
9728
|
declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
|
|
9722
9729
|
declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
|
|
9723
9730
|
declare namespace schemas {
|
|
9724
|
-
export { CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks,
|
|
9731
|
+
export { CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, StateSnapshot$1 as StateSnapshot, schemas_StateSnapshotNotification as StateSnapshotNotification, SwapQuoteByInput$1 as SwapQuoteByInput, SwapQuoteByOutput$1 as SwapQuoteByOutput, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TradableAmount$1 as TradableAmount, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
|
|
9725
9732
|
}
|
|
9726
9733
|
|
|
9727
9734
|
type PoolProviderType = z.infer<typeof PoolProviderSchema>;
|
|
@@ -9771,7 +9778,6 @@ type DecreaseSpotPositionQuote = z.infer<typeof DecreaseSpotPositionQuote$1>;
|
|
|
9771
9778
|
type CloseSpotPositionQuote = z.infer<typeof CloseSpotPositionQuote$1>;
|
|
9772
9779
|
type TradableAmount = z.infer<typeof TradableAmount$1>;
|
|
9773
9780
|
type PoolPriceUpdate = z.infer<typeof PoolPriceUpdate$1>;
|
|
9774
|
-
type ShortPoolPriceUpdate = z.infer<typeof ShortPoolPriceUpdate$1>;
|
|
9775
9781
|
type StateSnapshot = z.infer<typeof StateSnapshot$1>;
|
|
9776
9782
|
type SubscriptionPayload = {
|
|
9777
9783
|
pools?: {
|
|
@@ -9981,4 +9987,4 @@ declare class TunaApiClient {
|
|
|
9981
9987
|
private appendUrlSearchParams;
|
|
9982
9988
|
}
|
|
9983
9989
|
|
|
9984
|
-
export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type
|
|
9990
|
+
export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type StateSnapshot, type SubscriptionPayload, type SwapQuoteByInput, type SwapQuoteByOutput, type Tick, type TokenOraclePrice, type TradableAmount, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
|