@pear-protocol/types 1.31.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/baskets/recommended/entities.d.ts +36 -0
- package/dist/baskets/recommended/entities.js +22 -0
- package/dist/baskets/recommended/index.d.ts +2 -0
- package/dist/baskets/recommended/index.js +2 -0
- package/dist/baskets/recommended/responses.d.ts +28 -0
- package/dist/baskets/recommended/responses.js +8 -0
- package/dist/{saved-baskets → baskets/saved}/entities.d.ts +3 -0
- package/dist/{saved-baskets → baskets/saved}/entities.js +6 -3
- package/dist/{saved-baskets → baskets/saved}/payloads.d.ts +4 -0
- package/dist/{saved-baskets → baskets/saved}/payloads.js +1 -1
- package/dist/{saved-baskets → baskets/saved}/responses.d.ts +6 -0
- package/dist/bundle.d.ts +2 -1
- package/dist/bundle.js +2 -1
- package/dist/common/refinement.d.ts +9 -0
- package/dist/common/refinement.js +9 -1
- package/dist/common/trade-legs.d.ts +2 -0
- package/dist/common/trade-legs.js +7 -3
- package/dist/execution/entities.d.ts +13 -0
- package/dist/execution/entities.js +2 -0
- package/dist/execution/responses.d.ts +8 -0
- package/dist/ladder/entities.d.ts +549 -0
- package/dist/ladder/payloads.d.ts +4 -0
- package/dist/ladder/responses.d.ts +2039 -392
- package/dist/notification/entities.d.ts +176 -3
- package/dist/notification/entities.js +31 -0
- package/dist/notification/responses.d.ts +86 -0
- package/dist/schedule/entities.d.ts +3 -0
- package/dist/schedule/entities.js +2 -0
- package/dist/schedule/payloads.d.ts +2 -0
- package/dist/schedule/payloads.js +6 -29
- package/dist/schedule/responses.d.ts +2 -0
- package/dist/schedule/twap-config.d.ts +41 -0
- package/dist/schedule/twap-config.js +29 -0
- package/dist/trade/payloads.d.ts +8 -0
- package/dist/trade/responses.d.ts +20 -0
- package/dist/trigger/entities/index.d.ts +1707 -54
- package/dist/trigger/entities/index.js +55 -2
- package/dist/trigger/payloads/index.d.ts +898 -91
- package/dist/trigger/payloads/index.js +68 -5
- package/dist/trigger/responses.d.ts +1151 -53
- package/package.json +1 -1
- /package/dist/{saved-baskets → baskets/saved}/index.d.ts +0 -0
- /package/dist/{saved-baskets → baskets/saved}/index.js +0 -0
- /package/dist/{saved-baskets → baskets/saved}/responses.js +0 -0
|
@@ -176,6 +176,7 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
176
176
|
type: z.ZodLiteral<"MARKET">;
|
|
177
177
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
178
178
|
symbol: z.ZodString;
|
|
179
|
+
id: z.ZodOptional<z.ZodString>;
|
|
179
180
|
side: z.ZodEnum<{
|
|
180
181
|
BUY: "BUY";
|
|
181
182
|
SELL: "SELL";
|
|
@@ -187,6 +188,7 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
187
188
|
amount: z.ZodString;
|
|
188
189
|
}, z.core.$strip>], z.ZodObject<{
|
|
189
190
|
symbol: z.ZodString;
|
|
191
|
+
id: z.ZodOptional<z.ZodString>;
|
|
190
192
|
side: z.ZodEnum<{
|
|
191
193
|
BUY: "BUY";
|
|
192
194
|
SELL: "SELL";
|
|
@@ -424,6 +426,7 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
424
426
|
initialExposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
425
427
|
}, z.core.$strip>;
|
|
426
428
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
429
|
+
id: z.ZodOptional<z.ZodString>;
|
|
427
430
|
symbol: z.ZodString;
|
|
428
431
|
side: z.ZodEnum<{
|
|
429
432
|
BUY: "BUY";
|
|
@@ -436,6 +439,7 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
436
439
|
amount: z.ZodString;
|
|
437
440
|
reduceOnly: z.ZodBoolean;
|
|
438
441
|
}, z.core.$strip>], z.ZodObject<{
|
|
442
|
+
id: z.ZodOptional<z.ZodString>;
|
|
439
443
|
symbol: z.ZodString;
|
|
440
444
|
side: z.ZodEnum<{
|
|
441
445
|
BUY: "BUY";
|
|
@@ -746,6 +750,551 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
746
750
|
currentStopValue: z.ZodOptional<z.ZodNumber>;
|
|
747
751
|
stopBreachedAt: z.ZodOptional<z.ZodNumber>;
|
|
748
752
|
}, z.core.$strip>>;
|
|
753
|
+
}, z.core.$strip>], "intent">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
754
|
+
id: z.ZodUUID;
|
|
755
|
+
tradeAccountId: z.ZodUUID;
|
|
756
|
+
connector: z.ZodEnum<{
|
|
757
|
+
hyperliquid: "hyperliquid";
|
|
758
|
+
binance: "binance";
|
|
759
|
+
bybit: "bybit";
|
|
760
|
+
okx: "okx";
|
|
761
|
+
lighter: "lighter";
|
|
762
|
+
}>;
|
|
763
|
+
status: z.ZodEnum<{
|
|
764
|
+
CANCELLED: "CANCELLED";
|
|
765
|
+
ACTIVE: "ACTIVE";
|
|
766
|
+
TRIGGERED: "TRIGGERED";
|
|
767
|
+
}>;
|
|
768
|
+
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
769
|
+
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
770
|
+
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
771
|
+
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
772
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
773
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
774
|
+
USER: "USER";
|
|
775
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
776
|
+
SYSTEM: "SYSTEM";
|
|
777
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
778
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
779
|
+
}>>;
|
|
780
|
+
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
781
|
+
id: z.ZodUUID;
|
|
782
|
+
cloid: z.ZodOptional<z.ZodString>;
|
|
783
|
+
exchangeFillId: z.ZodOptional<z.ZodString>;
|
|
784
|
+
status: z.ZodEnum<{
|
|
785
|
+
PROVISIONAL: "PROVISIONAL";
|
|
786
|
+
CONFIRMED: "CONFIRMED";
|
|
787
|
+
RECONCILED: "RECONCILED";
|
|
788
|
+
}>;
|
|
789
|
+
tradeAccountId: z.ZodUUID;
|
|
790
|
+
symbol: z.ZodString;
|
|
791
|
+
positionId: z.ZodUUID;
|
|
792
|
+
connector: z.ZodEnum<{
|
|
793
|
+
hyperliquid: "hyperliquid";
|
|
794
|
+
binance: "binance";
|
|
795
|
+
bybit: "bybit";
|
|
796
|
+
okx: "okx";
|
|
797
|
+
lighter: "lighter";
|
|
798
|
+
}>;
|
|
799
|
+
side: z.ZodEnum<{
|
|
800
|
+
BUY: "BUY";
|
|
801
|
+
SELL: "SELL";
|
|
802
|
+
}>;
|
|
803
|
+
reduceOnly: z.ZodBoolean;
|
|
804
|
+
isExternal: z.ZodBoolean;
|
|
805
|
+
synthetic: z.ZodBoolean;
|
|
806
|
+
quantity: z.ZodString;
|
|
807
|
+
price: z.ZodString;
|
|
808
|
+
usd: z.ZodString;
|
|
809
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
810
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
811
|
+
timestamp: z.ZodString;
|
|
812
|
+
original: z.ZodOptional<z.ZodObject<{
|
|
813
|
+
exchangeFillId: z.ZodString;
|
|
814
|
+
quantity: z.ZodString;
|
|
815
|
+
}, z.core.$strip>>;
|
|
816
|
+
}, z.core.$strip>>>;
|
|
817
|
+
bracketType: z.ZodEnum<{
|
|
818
|
+
STOP_LOSS: "STOP_LOSS";
|
|
819
|
+
TAKE_PROFIT: "TAKE_PROFIT";
|
|
820
|
+
NONE: "NONE";
|
|
821
|
+
}>;
|
|
822
|
+
semanticBracketType: z.ZodOptional<z.ZodEnum<{
|
|
823
|
+
STOP_LOSS: "STOP_LOSS";
|
|
824
|
+
TAKE_PROFIT: "TAKE_PROFIT";
|
|
825
|
+
NONE: "NONE";
|
|
826
|
+
}>>;
|
|
827
|
+
createdAt: z.ZodString;
|
|
828
|
+
updatedAt: z.ZodString;
|
|
829
|
+
intent: z.ZodLiteral<"ADJUST">;
|
|
830
|
+
type: z.ZodLiteral<"TWAP">;
|
|
831
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
832
|
+
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
833
|
+
type: z.ZodLiteral<"ratio">;
|
|
834
|
+
data: z.ZodObject<{
|
|
835
|
+
priceSource: z.ZodEnum<{
|
|
836
|
+
mid: "mid";
|
|
837
|
+
mark: "mark";
|
|
838
|
+
}>;
|
|
839
|
+
symbol_a: z.ZodString;
|
|
840
|
+
symbol_b: z.ZodString;
|
|
841
|
+
track: z.ZodEnum<{
|
|
842
|
+
PEAK: "PEAK";
|
|
843
|
+
TROUGH: "TROUGH";
|
|
844
|
+
}>;
|
|
845
|
+
threshold: z.ZodNumber;
|
|
846
|
+
}, z.core.$strip>;
|
|
847
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
848
|
+
type: z.ZodLiteral<"price">;
|
|
849
|
+
data: z.ZodObject<{
|
|
850
|
+
priceSource: z.ZodEnum<{
|
|
851
|
+
mid: "mid";
|
|
852
|
+
mark: "mark";
|
|
853
|
+
}>;
|
|
854
|
+
symbol: z.ZodString;
|
|
855
|
+
track: z.ZodEnum<{
|
|
856
|
+
PEAK: "PEAK";
|
|
857
|
+
TROUGH: "TROUGH";
|
|
858
|
+
}>;
|
|
859
|
+
threshold: z.ZodNumber;
|
|
860
|
+
}, z.core.$strip>;
|
|
861
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
862
|
+
type: z.ZodLiteral<"weighted_ratio">;
|
|
863
|
+
data: z.ZodObject<{
|
|
864
|
+
priceSource: z.ZodEnum<{
|
|
865
|
+
mid: "mid";
|
|
866
|
+
mark: "mark";
|
|
867
|
+
}>;
|
|
868
|
+
basket: z.ZodArray<z.ZodObject<{
|
|
869
|
+
symbol: z.ZodString;
|
|
870
|
+
side: z.ZodEnum<{
|
|
871
|
+
BUY: "BUY";
|
|
872
|
+
SELL: "SELL";
|
|
873
|
+
}>;
|
|
874
|
+
weight: z.ZodNumber;
|
|
875
|
+
}, z.core.$strip>>;
|
|
876
|
+
track: z.ZodEnum<{
|
|
877
|
+
PEAK: "PEAK";
|
|
878
|
+
TROUGH: "TROUGH";
|
|
879
|
+
}>;
|
|
880
|
+
threshold: z.ZodNumber;
|
|
881
|
+
}, z.core.$strip>;
|
|
882
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
883
|
+
type: z.ZodLiteral<"notional">;
|
|
884
|
+
data: z.ZodObject<{
|
|
885
|
+
priceSource: z.ZodEnum<{
|
|
886
|
+
mid: "mid";
|
|
887
|
+
mark: "mark";
|
|
888
|
+
}>;
|
|
889
|
+
track: z.ZodEnum<{
|
|
890
|
+
PEAK: "PEAK";
|
|
891
|
+
TROUGH: "TROUGH";
|
|
892
|
+
}>;
|
|
893
|
+
threshold: z.ZodNumber;
|
|
894
|
+
}, z.core.$strip>;
|
|
895
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
896
|
+
type: z.ZodLiteral<"upnl">;
|
|
897
|
+
data: z.ZodObject<{
|
|
898
|
+
priceSource: z.ZodEnum<{
|
|
899
|
+
mid: "mid";
|
|
900
|
+
mark: "mark";
|
|
901
|
+
}>;
|
|
902
|
+
track: z.ZodEnum<{
|
|
903
|
+
PEAK: "PEAK";
|
|
904
|
+
TROUGH: "TROUGH";
|
|
905
|
+
}>;
|
|
906
|
+
threshold: z.ZodNumber;
|
|
907
|
+
}, z.core.$strip>;
|
|
908
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
909
|
+
type: z.ZodLiteral<"upnl_bps">;
|
|
910
|
+
data: z.ZodObject<{
|
|
911
|
+
priceSource: z.ZodEnum<{
|
|
912
|
+
mid: "mid";
|
|
913
|
+
mark: "mark";
|
|
914
|
+
}>;
|
|
915
|
+
track: z.ZodEnum<{
|
|
916
|
+
PEAK: "PEAK";
|
|
917
|
+
TROUGH: "TROUGH";
|
|
918
|
+
}>;
|
|
919
|
+
threshold: z.ZodNumber;
|
|
920
|
+
}, z.core.$strip>;
|
|
921
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
922
|
+
type: z.ZodLiteral<"funding_rate">;
|
|
923
|
+
data: z.ZodObject<{
|
|
924
|
+
connector: z.ZodEnum<{
|
|
925
|
+
hyperliquid: "hyperliquid";
|
|
926
|
+
binance: "binance";
|
|
927
|
+
bybit: "bybit";
|
|
928
|
+
okx: "okx";
|
|
929
|
+
lighter: "lighter";
|
|
930
|
+
}>;
|
|
931
|
+
symbol: z.ZodString;
|
|
932
|
+
track: z.ZodEnum<{
|
|
933
|
+
PEAK: "PEAK";
|
|
934
|
+
TROUGH: "TROUGH";
|
|
935
|
+
}>;
|
|
936
|
+
threshold: z.ZodNumber;
|
|
937
|
+
}, z.core.$strip>;
|
|
938
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
939
|
+
type: z.ZodLiteral<"prediction_market">;
|
|
940
|
+
data: z.ZodObject<{
|
|
941
|
+
source: z.ZodEnum<{
|
|
942
|
+
kalshi: "kalshi";
|
|
943
|
+
polymarket: "polymarket";
|
|
944
|
+
}>;
|
|
945
|
+
marketKey: z.ZodString;
|
|
946
|
+
track: z.ZodEnum<{
|
|
947
|
+
PEAK: "PEAK";
|
|
948
|
+
TROUGH: "TROUGH";
|
|
949
|
+
}>;
|
|
950
|
+
threshold: z.ZodNumber;
|
|
951
|
+
}, z.core.$strip>;
|
|
952
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
953
|
+
type: z.ZodLiteral<"btc_dominance">;
|
|
954
|
+
data: z.ZodObject<{
|
|
955
|
+
source: z.ZodLiteral<"coingecko">;
|
|
956
|
+
track: z.ZodEnum<{
|
|
957
|
+
PEAK: "PEAK";
|
|
958
|
+
TROUGH: "TROUGH";
|
|
959
|
+
}>;
|
|
960
|
+
threshold: z.ZodNumber;
|
|
961
|
+
}, z.core.$strip>;
|
|
962
|
+
}, z.core.$strip>], "type">;
|
|
963
|
+
context: z.ZodObject<{
|
|
964
|
+
type: z.ZodLiteral<"TWAP">;
|
|
965
|
+
durationSec: z.ZodInt;
|
|
966
|
+
sliceIntervalSec: z.ZodInt;
|
|
967
|
+
randomization: z.ZodObject<{
|
|
968
|
+
timingJitterBps: z.ZodInt;
|
|
969
|
+
sizeJitterBps: z.ZodInt;
|
|
970
|
+
}, z.core.$strip>;
|
|
971
|
+
position: z.ZodObject<{
|
|
972
|
+
id: z.ZodUUID;
|
|
973
|
+
initialExposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
974
|
+
}, z.core.$strip>;
|
|
975
|
+
legs: z.ZodTuple<[z.ZodObject<{
|
|
976
|
+
id: z.ZodOptional<z.ZodString>;
|
|
977
|
+
symbol: z.ZodString;
|
|
978
|
+
side: z.ZodEnum<{
|
|
979
|
+
BUY: "BUY";
|
|
980
|
+
SELL: "SELL";
|
|
981
|
+
}>;
|
|
982
|
+
weight: z.ZodNumber;
|
|
983
|
+
}, z.core.$strict>], z.ZodObject<{
|
|
984
|
+
id: z.ZodOptional<z.ZodString>;
|
|
985
|
+
symbol: z.ZodString;
|
|
986
|
+
side: z.ZodEnum<{
|
|
987
|
+
BUY: "BUY";
|
|
988
|
+
SELL: "SELL";
|
|
989
|
+
}>;
|
|
990
|
+
weight: z.ZodNumber;
|
|
991
|
+
}, z.core.$strict>>;
|
|
992
|
+
targetNotional: z.ZodString;
|
|
993
|
+
}, z.core.$strip>;
|
|
994
|
+
trailing: z.ZodOptional<z.ZodObject<{
|
|
995
|
+
mode: z.ZodEnum<{
|
|
996
|
+
RELATIVE_BPS: "RELATIVE_BPS";
|
|
997
|
+
ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
|
|
998
|
+
}>;
|
|
999
|
+
deltaValue: z.ZodNumber;
|
|
1000
|
+
activationValue: z.ZodOptional<z.ZodNumber>;
|
|
1001
|
+
bestMetricSeen: z.ZodOptional<z.ZodNumber>;
|
|
1002
|
+
currentStopValue: z.ZodOptional<z.ZodNumber>;
|
|
1003
|
+
stopBreachedAt: z.ZodOptional<z.ZodNumber>;
|
|
1004
|
+
}, z.core.$strip>>;
|
|
1005
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1006
|
+
id: z.ZodUUID;
|
|
1007
|
+
tradeAccountId: z.ZodUUID;
|
|
1008
|
+
connector: z.ZodEnum<{
|
|
1009
|
+
hyperliquid: "hyperliquid";
|
|
1010
|
+
binance: "binance";
|
|
1011
|
+
bybit: "bybit";
|
|
1012
|
+
okx: "okx";
|
|
1013
|
+
lighter: "lighter";
|
|
1014
|
+
}>;
|
|
1015
|
+
status: z.ZodEnum<{
|
|
1016
|
+
CANCELLED: "CANCELLED";
|
|
1017
|
+
ACTIVE: "ACTIVE";
|
|
1018
|
+
TRIGGERED: "TRIGGERED";
|
|
1019
|
+
}>;
|
|
1020
|
+
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
1021
|
+
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
1022
|
+
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
1023
|
+
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
1024
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1025
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1026
|
+
USER: "USER";
|
|
1027
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1028
|
+
SYSTEM: "SYSTEM";
|
|
1029
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
1030
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1031
|
+
}>>;
|
|
1032
|
+
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1033
|
+
id: z.ZodUUID;
|
|
1034
|
+
cloid: z.ZodOptional<z.ZodString>;
|
|
1035
|
+
exchangeFillId: z.ZodOptional<z.ZodString>;
|
|
1036
|
+
status: z.ZodEnum<{
|
|
1037
|
+
PROVISIONAL: "PROVISIONAL";
|
|
1038
|
+
CONFIRMED: "CONFIRMED";
|
|
1039
|
+
RECONCILED: "RECONCILED";
|
|
1040
|
+
}>;
|
|
1041
|
+
tradeAccountId: z.ZodUUID;
|
|
1042
|
+
symbol: z.ZodString;
|
|
1043
|
+
positionId: z.ZodUUID;
|
|
1044
|
+
connector: z.ZodEnum<{
|
|
1045
|
+
hyperliquid: "hyperliquid";
|
|
1046
|
+
binance: "binance";
|
|
1047
|
+
bybit: "bybit";
|
|
1048
|
+
okx: "okx";
|
|
1049
|
+
lighter: "lighter";
|
|
1050
|
+
}>;
|
|
1051
|
+
side: z.ZodEnum<{
|
|
1052
|
+
BUY: "BUY";
|
|
1053
|
+
SELL: "SELL";
|
|
1054
|
+
}>;
|
|
1055
|
+
reduceOnly: z.ZodBoolean;
|
|
1056
|
+
isExternal: z.ZodBoolean;
|
|
1057
|
+
synthetic: z.ZodBoolean;
|
|
1058
|
+
quantity: z.ZodString;
|
|
1059
|
+
price: z.ZodString;
|
|
1060
|
+
usd: z.ZodString;
|
|
1061
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
1062
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
1063
|
+
timestamp: z.ZodString;
|
|
1064
|
+
original: z.ZodOptional<z.ZodObject<{
|
|
1065
|
+
exchangeFillId: z.ZodString;
|
|
1066
|
+
quantity: z.ZodString;
|
|
1067
|
+
}, z.core.$strip>>;
|
|
1068
|
+
}, z.core.$strip>>>;
|
|
1069
|
+
bracketType: z.ZodEnum<{
|
|
1070
|
+
STOP_LOSS: "STOP_LOSS";
|
|
1071
|
+
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1072
|
+
NONE: "NONE";
|
|
1073
|
+
}>;
|
|
1074
|
+
semanticBracketType: z.ZodOptional<z.ZodEnum<{
|
|
1075
|
+
STOP_LOSS: "STOP_LOSS";
|
|
1076
|
+
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1077
|
+
NONE: "NONE";
|
|
1078
|
+
}>>;
|
|
1079
|
+
createdAt: z.ZodString;
|
|
1080
|
+
updatedAt: z.ZodString;
|
|
1081
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
1082
|
+
type: z.ZodLiteral<"TWAP">;
|
|
1083
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
1084
|
+
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1085
|
+
type: z.ZodLiteral<"ratio">;
|
|
1086
|
+
data: z.ZodObject<{
|
|
1087
|
+
priceSource: z.ZodEnum<{
|
|
1088
|
+
mid: "mid";
|
|
1089
|
+
mark: "mark";
|
|
1090
|
+
}>;
|
|
1091
|
+
symbol_a: z.ZodString;
|
|
1092
|
+
symbol_b: z.ZodString;
|
|
1093
|
+
track: z.ZodEnum<{
|
|
1094
|
+
PEAK: "PEAK";
|
|
1095
|
+
TROUGH: "TROUGH";
|
|
1096
|
+
}>;
|
|
1097
|
+
threshold: z.ZodNumber;
|
|
1098
|
+
}, z.core.$strip>;
|
|
1099
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1100
|
+
type: z.ZodLiteral<"price">;
|
|
1101
|
+
data: z.ZodObject<{
|
|
1102
|
+
priceSource: z.ZodEnum<{
|
|
1103
|
+
mid: "mid";
|
|
1104
|
+
mark: "mark";
|
|
1105
|
+
}>;
|
|
1106
|
+
symbol: z.ZodString;
|
|
1107
|
+
track: z.ZodEnum<{
|
|
1108
|
+
PEAK: "PEAK";
|
|
1109
|
+
TROUGH: "TROUGH";
|
|
1110
|
+
}>;
|
|
1111
|
+
threshold: z.ZodNumber;
|
|
1112
|
+
}, z.core.$strip>;
|
|
1113
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1114
|
+
type: z.ZodLiteral<"weighted_ratio">;
|
|
1115
|
+
data: z.ZodObject<{
|
|
1116
|
+
priceSource: z.ZodEnum<{
|
|
1117
|
+
mid: "mid";
|
|
1118
|
+
mark: "mark";
|
|
1119
|
+
}>;
|
|
1120
|
+
basket: z.ZodArray<z.ZodObject<{
|
|
1121
|
+
symbol: z.ZodString;
|
|
1122
|
+
side: z.ZodEnum<{
|
|
1123
|
+
BUY: "BUY";
|
|
1124
|
+
SELL: "SELL";
|
|
1125
|
+
}>;
|
|
1126
|
+
weight: z.ZodNumber;
|
|
1127
|
+
}, z.core.$strip>>;
|
|
1128
|
+
track: z.ZodEnum<{
|
|
1129
|
+
PEAK: "PEAK";
|
|
1130
|
+
TROUGH: "TROUGH";
|
|
1131
|
+
}>;
|
|
1132
|
+
threshold: z.ZodNumber;
|
|
1133
|
+
}, z.core.$strip>;
|
|
1134
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1135
|
+
type: z.ZodLiteral<"notional">;
|
|
1136
|
+
data: z.ZodObject<{
|
|
1137
|
+
priceSource: z.ZodEnum<{
|
|
1138
|
+
mid: "mid";
|
|
1139
|
+
mark: "mark";
|
|
1140
|
+
}>;
|
|
1141
|
+
track: z.ZodEnum<{
|
|
1142
|
+
PEAK: "PEAK";
|
|
1143
|
+
TROUGH: "TROUGH";
|
|
1144
|
+
}>;
|
|
1145
|
+
threshold: z.ZodNumber;
|
|
1146
|
+
}, z.core.$strip>;
|
|
1147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1148
|
+
type: z.ZodLiteral<"upnl">;
|
|
1149
|
+
data: z.ZodObject<{
|
|
1150
|
+
priceSource: z.ZodEnum<{
|
|
1151
|
+
mid: "mid";
|
|
1152
|
+
mark: "mark";
|
|
1153
|
+
}>;
|
|
1154
|
+
track: z.ZodEnum<{
|
|
1155
|
+
PEAK: "PEAK";
|
|
1156
|
+
TROUGH: "TROUGH";
|
|
1157
|
+
}>;
|
|
1158
|
+
threshold: z.ZodNumber;
|
|
1159
|
+
}, z.core.$strip>;
|
|
1160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1161
|
+
type: z.ZodLiteral<"upnl_bps">;
|
|
1162
|
+
data: z.ZodObject<{
|
|
1163
|
+
priceSource: z.ZodEnum<{
|
|
1164
|
+
mid: "mid";
|
|
1165
|
+
mark: "mark";
|
|
1166
|
+
}>;
|
|
1167
|
+
track: z.ZodEnum<{
|
|
1168
|
+
PEAK: "PEAK";
|
|
1169
|
+
TROUGH: "TROUGH";
|
|
1170
|
+
}>;
|
|
1171
|
+
threshold: z.ZodNumber;
|
|
1172
|
+
}, z.core.$strip>;
|
|
1173
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1174
|
+
type: z.ZodLiteral<"ratio_trailing">;
|
|
1175
|
+
data: z.ZodObject<{
|
|
1176
|
+
priceSource: z.ZodEnum<{
|
|
1177
|
+
mid: "mid";
|
|
1178
|
+
mark: "mark";
|
|
1179
|
+
}>;
|
|
1180
|
+
symbol_a: z.ZodString;
|
|
1181
|
+
symbol_b: z.ZodString;
|
|
1182
|
+
}, z.core.$strip>;
|
|
1183
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1184
|
+
type: z.ZodLiteral<"price_trailing">;
|
|
1185
|
+
data: z.ZodObject<{
|
|
1186
|
+
priceSource: z.ZodEnum<{
|
|
1187
|
+
mid: "mid";
|
|
1188
|
+
mark: "mark";
|
|
1189
|
+
}>;
|
|
1190
|
+
symbol: z.ZodString;
|
|
1191
|
+
}, z.core.$strip>;
|
|
1192
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1193
|
+
type: z.ZodLiteral<"weighted_ratio_trailing">;
|
|
1194
|
+
data: z.ZodObject<{
|
|
1195
|
+
priceSource: z.ZodEnum<{
|
|
1196
|
+
mid: "mid";
|
|
1197
|
+
mark: "mark";
|
|
1198
|
+
}>;
|
|
1199
|
+
basket: z.ZodArray<z.ZodObject<{
|
|
1200
|
+
symbol: z.ZodString;
|
|
1201
|
+
side: z.ZodEnum<{
|
|
1202
|
+
BUY: "BUY";
|
|
1203
|
+
SELL: "SELL";
|
|
1204
|
+
}>;
|
|
1205
|
+
weight: z.ZodNumber;
|
|
1206
|
+
}, z.core.$strip>>;
|
|
1207
|
+
}, z.core.$strip>;
|
|
1208
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1209
|
+
type: z.ZodLiteral<"notional_trailing">;
|
|
1210
|
+
data: z.ZodObject<{
|
|
1211
|
+
priceSource: z.ZodEnum<{
|
|
1212
|
+
mid: "mid";
|
|
1213
|
+
mark: "mark";
|
|
1214
|
+
}>;
|
|
1215
|
+
}, z.core.$strip>;
|
|
1216
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1217
|
+
type: z.ZodLiteral<"upnl_trailing">;
|
|
1218
|
+
data: z.ZodObject<{
|
|
1219
|
+
priceSource: z.ZodEnum<{
|
|
1220
|
+
mid: "mid";
|
|
1221
|
+
mark: "mark";
|
|
1222
|
+
}>;
|
|
1223
|
+
}, z.core.$strip>;
|
|
1224
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1225
|
+
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
1226
|
+
data: z.ZodObject<{
|
|
1227
|
+
priceSource: z.ZodEnum<{
|
|
1228
|
+
mid: "mid";
|
|
1229
|
+
mark: "mark";
|
|
1230
|
+
}>;
|
|
1231
|
+
}, z.core.$strip>;
|
|
1232
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1233
|
+
type: z.ZodLiteral<"funding_rate">;
|
|
1234
|
+
data: z.ZodObject<{
|
|
1235
|
+
connector: z.ZodEnum<{
|
|
1236
|
+
hyperliquid: "hyperliquid";
|
|
1237
|
+
binance: "binance";
|
|
1238
|
+
bybit: "bybit";
|
|
1239
|
+
okx: "okx";
|
|
1240
|
+
lighter: "lighter";
|
|
1241
|
+
}>;
|
|
1242
|
+
symbol: z.ZodString;
|
|
1243
|
+
track: z.ZodEnum<{
|
|
1244
|
+
PEAK: "PEAK";
|
|
1245
|
+
TROUGH: "TROUGH";
|
|
1246
|
+
}>;
|
|
1247
|
+
threshold: z.ZodNumber;
|
|
1248
|
+
}, z.core.$strip>;
|
|
1249
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1250
|
+
type: z.ZodLiteral<"prediction_market">;
|
|
1251
|
+
data: z.ZodObject<{
|
|
1252
|
+
source: z.ZodEnum<{
|
|
1253
|
+
kalshi: "kalshi";
|
|
1254
|
+
polymarket: "polymarket";
|
|
1255
|
+
}>;
|
|
1256
|
+
marketKey: z.ZodString;
|
|
1257
|
+
track: z.ZodEnum<{
|
|
1258
|
+
PEAK: "PEAK";
|
|
1259
|
+
TROUGH: "TROUGH";
|
|
1260
|
+
}>;
|
|
1261
|
+
threshold: z.ZodNumber;
|
|
1262
|
+
}, z.core.$strip>;
|
|
1263
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1264
|
+
type: z.ZodLiteral<"btc_dominance">;
|
|
1265
|
+
data: z.ZodObject<{
|
|
1266
|
+
source: z.ZodLiteral<"coingecko">;
|
|
1267
|
+
track: z.ZodEnum<{
|
|
1268
|
+
PEAK: "PEAK";
|
|
1269
|
+
TROUGH: "TROUGH";
|
|
1270
|
+
}>;
|
|
1271
|
+
threshold: z.ZodNumber;
|
|
1272
|
+
}, z.core.$strip>;
|
|
1273
|
+
}, z.core.$strip>], "type">;
|
|
1274
|
+
context: z.ZodObject<{
|
|
1275
|
+
type: z.ZodLiteral<"TWAP">;
|
|
1276
|
+
durationSec: z.ZodInt;
|
|
1277
|
+
sliceIntervalSec: z.ZodInt;
|
|
1278
|
+
randomization: z.ZodObject<{
|
|
1279
|
+
timingJitterBps: z.ZodInt;
|
|
1280
|
+
sizeJitterBps: z.ZodInt;
|
|
1281
|
+
}, z.core.$strip>;
|
|
1282
|
+
position: z.ZodObject<{
|
|
1283
|
+
id: z.ZodUUID;
|
|
1284
|
+
initialExposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
1285
|
+
}, z.core.$strip>;
|
|
1286
|
+
}, z.core.$strip>;
|
|
1287
|
+
trailing: z.ZodOptional<z.ZodObject<{
|
|
1288
|
+
mode: z.ZodEnum<{
|
|
1289
|
+
RELATIVE_BPS: "RELATIVE_BPS";
|
|
1290
|
+
ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
|
|
1291
|
+
}>;
|
|
1292
|
+
deltaValue: z.ZodNumber;
|
|
1293
|
+
activationValue: z.ZodOptional<z.ZodNumber>;
|
|
1294
|
+
bestMetricSeen: z.ZodOptional<z.ZodNumber>;
|
|
1295
|
+
currentStopValue: z.ZodOptional<z.ZodNumber>;
|
|
1296
|
+
stopBreachedAt: z.ZodOptional<z.ZodNumber>;
|
|
1297
|
+
}, z.core.$strip>>;
|
|
749
1298
|
}, z.core.$strip>], "intent">], "type">>;
|
|
750
1299
|
}, z.core.$strip>;
|
|
751
1300
|
export type TriggerListResponse = z.output<typeof TriggerListResponse>;
|
|
@@ -826,7 +1375,469 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
826
1375
|
}>>;
|
|
827
1376
|
createdAt: z.ZodString;
|
|
828
1377
|
updatedAt: z.ZodString;
|
|
829
|
-
intent: z.ZodLiteral<"OPEN">;
|
|
1378
|
+
intent: z.ZodLiteral<"OPEN">;
|
|
1379
|
+
type: z.ZodLiteral<"MARKET">;
|
|
1380
|
+
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1381
|
+
type: z.ZodLiteral<"ratio">;
|
|
1382
|
+
data: z.ZodObject<{
|
|
1383
|
+
priceSource: z.ZodEnum<{
|
|
1384
|
+
mid: "mid";
|
|
1385
|
+
mark: "mark";
|
|
1386
|
+
}>;
|
|
1387
|
+
symbol_a: z.ZodString;
|
|
1388
|
+
symbol_b: z.ZodString;
|
|
1389
|
+
track: z.ZodEnum<{
|
|
1390
|
+
PEAK: "PEAK";
|
|
1391
|
+
TROUGH: "TROUGH";
|
|
1392
|
+
}>;
|
|
1393
|
+
threshold: z.ZodNumber;
|
|
1394
|
+
}, z.core.$strip>;
|
|
1395
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1396
|
+
type: z.ZodLiteral<"price">;
|
|
1397
|
+
data: z.ZodObject<{
|
|
1398
|
+
priceSource: z.ZodEnum<{
|
|
1399
|
+
mid: "mid";
|
|
1400
|
+
mark: "mark";
|
|
1401
|
+
}>;
|
|
1402
|
+
symbol: z.ZodString;
|
|
1403
|
+
track: z.ZodEnum<{
|
|
1404
|
+
PEAK: "PEAK";
|
|
1405
|
+
TROUGH: "TROUGH";
|
|
1406
|
+
}>;
|
|
1407
|
+
threshold: z.ZodNumber;
|
|
1408
|
+
}, z.core.$strip>;
|
|
1409
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1410
|
+
type: z.ZodLiteral<"weighted_ratio">;
|
|
1411
|
+
data: z.ZodObject<{
|
|
1412
|
+
priceSource: z.ZodEnum<{
|
|
1413
|
+
mid: "mid";
|
|
1414
|
+
mark: "mark";
|
|
1415
|
+
}>;
|
|
1416
|
+
basket: z.ZodArray<z.ZodObject<{
|
|
1417
|
+
symbol: z.ZodString;
|
|
1418
|
+
side: z.ZodEnum<{
|
|
1419
|
+
BUY: "BUY";
|
|
1420
|
+
SELL: "SELL";
|
|
1421
|
+
}>;
|
|
1422
|
+
weight: z.ZodNumber;
|
|
1423
|
+
}, z.core.$strip>>;
|
|
1424
|
+
track: z.ZodEnum<{
|
|
1425
|
+
PEAK: "PEAK";
|
|
1426
|
+
TROUGH: "TROUGH";
|
|
1427
|
+
}>;
|
|
1428
|
+
threshold: z.ZodNumber;
|
|
1429
|
+
}, z.core.$strip>;
|
|
1430
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1431
|
+
type: z.ZodLiteral<"funding_rate">;
|
|
1432
|
+
data: z.ZodObject<{
|
|
1433
|
+
connector: z.ZodEnum<{
|
|
1434
|
+
hyperliquid: "hyperliquid";
|
|
1435
|
+
binance: "binance";
|
|
1436
|
+
bybit: "bybit";
|
|
1437
|
+
okx: "okx";
|
|
1438
|
+
lighter: "lighter";
|
|
1439
|
+
}>;
|
|
1440
|
+
symbol: z.ZodString;
|
|
1441
|
+
track: z.ZodEnum<{
|
|
1442
|
+
PEAK: "PEAK";
|
|
1443
|
+
TROUGH: "TROUGH";
|
|
1444
|
+
}>;
|
|
1445
|
+
threshold: z.ZodNumber;
|
|
1446
|
+
}, z.core.$strip>;
|
|
1447
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1448
|
+
type: z.ZodLiteral<"prediction_market">;
|
|
1449
|
+
data: z.ZodObject<{
|
|
1450
|
+
source: z.ZodEnum<{
|
|
1451
|
+
kalshi: "kalshi";
|
|
1452
|
+
polymarket: "polymarket";
|
|
1453
|
+
}>;
|
|
1454
|
+
marketKey: z.ZodString;
|
|
1455
|
+
track: z.ZodEnum<{
|
|
1456
|
+
PEAK: "PEAK";
|
|
1457
|
+
TROUGH: "TROUGH";
|
|
1458
|
+
}>;
|
|
1459
|
+
threshold: z.ZodNumber;
|
|
1460
|
+
}, z.core.$strip>;
|
|
1461
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1462
|
+
type: z.ZodLiteral<"btc_dominance">;
|
|
1463
|
+
data: z.ZodObject<{
|
|
1464
|
+
source: z.ZodLiteral<"coingecko">;
|
|
1465
|
+
track: z.ZodEnum<{
|
|
1466
|
+
PEAK: "PEAK";
|
|
1467
|
+
TROUGH: "TROUGH";
|
|
1468
|
+
}>;
|
|
1469
|
+
threshold: z.ZodNumber;
|
|
1470
|
+
}, z.core.$strip>;
|
|
1471
|
+
}, z.core.$strip>], "type">;
|
|
1472
|
+
context: z.ZodObject<{
|
|
1473
|
+
type: z.ZodLiteral<"MARKET">;
|
|
1474
|
+
legs: z.ZodTuple<[z.ZodObject<{
|
|
1475
|
+
symbol: z.ZodString;
|
|
1476
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1477
|
+
side: z.ZodEnum<{
|
|
1478
|
+
BUY: "BUY";
|
|
1479
|
+
SELL: "SELL";
|
|
1480
|
+
}>;
|
|
1481
|
+
mode: z.ZodEnum<{
|
|
1482
|
+
QUANTITY: "QUANTITY";
|
|
1483
|
+
USD: "USD";
|
|
1484
|
+
}>;
|
|
1485
|
+
amount: z.ZodString;
|
|
1486
|
+
}, z.core.$strip>], z.ZodObject<{
|
|
1487
|
+
symbol: z.ZodString;
|
|
1488
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1489
|
+
side: z.ZodEnum<{
|
|
1490
|
+
BUY: "BUY";
|
|
1491
|
+
SELL: "SELL";
|
|
1492
|
+
}>;
|
|
1493
|
+
mode: z.ZodEnum<{
|
|
1494
|
+
QUANTITY: "QUANTITY";
|
|
1495
|
+
USD: "USD";
|
|
1496
|
+
}>;
|
|
1497
|
+
amount: z.ZodString;
|
|
1498
|
+
}, z.core.$strip>>;
|
|
1499
|
+
attachedTriggers: z.ZodArray<z.ZodObject<{
|
|
1500
|
+
kind: z.ZodEnum<{
|
|
1501
|
+
STATIC: "STATIC";
|
|
1502
|
+
TRAILING: "TRAILING";
|
|
1503
|
+
}>;
|
|
1504
|
+
bracketType: z.ZodEnum<{
|
|
1505
|
+
STOP_LOSS: "STOP_LOSS";
|
|
1506
|
+
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1507
|
+
}>;
|
|
1508
|
+
}, z.core.$strip>>;
|
|
1509
|
+
}, z.core.$strip>;
|
|
1510
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1511
|
+
id: z.ZodUUID;
|
|
1512
|
+
tradeAccountId: z.ZodUUID;
|
|
1513
|
+
connector: z.ZodEnum<{
|
|
1514
|
+
hyperliquid: "hyperliquid";
|
|
1515
|
+
binance: "binance";
|
|
1516
|
+
bybit: "bybit";
|
|
1517
|
+
okx: "okx";
|
|
1518
|
+
lighter: "lighter";
|
|
1519
|
+
}>;
|
|
1520
|
+
status: z.ZodEnum<{
|
|
1521
|
+
CANCELLED: "CANCELLED";
|
|
1522
|
+
ACTIVE: "ACTIVE";
|
|
1523
|
+
TRIGGERED: "TRIGGERED";
|
|
1524
|
+
}>;
|
|
1525
|
+
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
1526
|
+
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
1527
|
+
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
1528
|
+
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
1529
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1530
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1531
|
+
USER: "USER";
|
|
1532
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1533
|
+
SYSTEM: "SYSTEM";
|
|
1534
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
1535
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1536
|
+
}>>;
|
|
1537
|
+
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1538
|
+
id: z.ZodUUID;
|
|
1539
|
+
cloid: z.ZodOptional<z.ZodString>;
|
|
1540
|
+
exchangeFillId: z.ZodOptional<z.ZodString>;
|
|
1541
|
+
status: z.ZodEnum<{
|
|
1542
|
+
PROVISIONAL: "PROVISIONAL";
|
|
1543
|
+
CONFIRMED: "CONFIRMED";
|
|
1544
|
+
RECONCILED: "RECONCILED";
|
|
1545
|
+
}>;
|
|
1546
|
+
tradeAccountId: z.ZodUUID;
|
|
1547
|
+
symbol: z.ZodString;
|
|
1548
|
+
positionId: z.ZodUUID;
|
|
1549
|
+
connector: z.ZodEnum<{
|
|
1550
|
+
hyperliquid: "hyperliquid";
|
|
1551
|
+
binance: "binance";
|
|
1552
|
+
bybit: "bybit";
|
|
1553
|
+
okx: "okx";
|
|
1554
|
+
lighter: "lighter";
|
|
1555
|
+
}>;
|
|
1556
|
+
side: z.ZodEnum<{
|
|
1557
|
+
BUY: "BUY";
|
|
1558
|
+
SELL: "SELL";
|
|
1559
|
+
}>;
|
|
1560
|
+
reduceOnly: z.ZodBoolean;
|
|
1561
|
+
isExternal: z.ZodBoolean;
|
|
1562
|
+
synthetic: z.ZodBoolean;
|
|
1563
|
+
quantity: z.ZodString;
|
|
1564
|
+
price: z.ZodString;
|
|
1565
|
+
usd: z.ZodString;
|
|
1566
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
1567
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
1568
|
+
timestamp: z.ZodString;
|
|
1569
|
+
original: z.ZodOptional<z.ZodObject<{
|
|
1570
|
+
exchangeFillId: z.ZodString;
|
|
1571
|
+
quantity: z.ZodString;
|
|
1572
|
+
}, z.core.$strip>>;
|
|
1573
|
+
}, z.core.$strip>>>;
|
|
1574
|
+
bracketType: z.ZodEnum<{
|
|
1575
|
+
STOP_LOSS: "STOP_LOSS";
|
|
1576
|
+
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1577
|
+
NONE: "NONE";
|
|
1578
|
+
}>;
|
|
1579
|
+
semanticBracketType: z.ZodOptional<z.ZodEnum<{
|
|
1580
|
+
STOP_LOSS: "STOP_LOSS";
|
|
1581
|
+
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1582
|
+
NONE: "NONE";
|
|
1583
|
+
}>>;
|
|
1584
|
+
createdAt: z.ZodString;
|
|
1585
|
+
updatedAt: z.ZodString;
|
|
1586
|
+
intent: z.ZodLiteral<"ADJUST">;
|
|
1587
|
+
type: z.ZodLiteral<"MARKET">;
|
|
1588
|
+
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1589
|
+
type: z.ZodLiteral<"ratio">;
|
|
1590
|
+
data: z.ZodObject<{
|
|
1591
|
+
priceSource: z.ZodEnum<{
|
|
1592
|
+
mid: "mid";
|
|
1593
|
+
mark: "mark";
|
|
1594
|
+
}>;
|
|
1595
|
+
symbol_a: z.ZodString;
|
|
1596
|
+
symbol_b: z.ZodString;
|
|
1597
|
+
track: z.ZodEnum<{
|
|
1598
|
+
PEAK: "PEAK";
|
|
1599
|
+
TROUGH: "TROUGH";
|
|
1600
|
+
}>;
|
|
1601
|
+
threshold: z.ZodNumber;
|
|
1602
|
+
}, z.core.$strip>;
|
|
1603
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1604
|
+
type: z.ZodLiteral<"price">;
|
|
1605
|
+
data: z.ZodObject<{
|
|
1606
|
+
priceSource: z.ZodEnum<{
|
|
1607
|
+
mid: "mid";
|
|
1608
|
+
mark: "mark";
|
|
1609
|
+
}>;
|
|
1610
|
+
symbol: z.ZodString;
|
|
1611
|
+
track: z.ZodEnum<{
|
|
1612
|
+
PEAK: "PEAK";
|
|
1613
|
+
TROUGH: "TROUGH";
|
|
1614
|
+
}>;
|
|
1615
|
+
threshold: z.ZodNumber;
|
|
1616
|
+
}, z.core.$strip>;
|
|
1617
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1618
|
+
type: z.ZodLiteral<"weighted_ratio">;
|
|
1619
|
+
data: z.ZodObject<{
|
|
1620
|
+
priceSource: z.ZodEnum<{
|
|
1621
|
+
mid: "mid";
|
|
1622
|
+
mark: "mark";
|
|
1623
|
+
}>;
|
|
1624
|
+
basket: z.ZodArray<z.ZodObject<{
|
|
1625
|
+
symbol: z.ZodString;
|
|
1626
|
+
side: z.ZodEnum<{
|
|
1627
|
+
BUY: "BUY";
|
|
1628
|
+
SELL: "SELL";
|
|
1629
|
+
}>;
|
|
1630
|
+
weight: z.ZodNumber;
|
|
1631
|
+
}, z.core.$strip>>;
|
|
1632
|
+
track: z.ZodEnum<{
|
|
1633
|
+
PEAK: "PEAK";
|
|
1634
|
+
TROUGH: "TROUGH";
|
|
1635
|
+
}>;
|
|
1636
|
+
threshold: z.ZodNumber;
|
|
1637
|
+
}, z.core.$strip>;
|
|
1638
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1639
|
+
type: z.ZodLiteral<"notional">;
|
|
1640
|
+
data: z.ZodObject<{
|
|
1641
|
+
priceSource: z.ZodEnum<{
|
|
1642
|
+
mid: "mid";
|
|
1643
|
+
mark: "mark";
|
|
1644
|
+
}>;
|
|
1645
|
+
track: z.ZodEnum<{
|
|
1646
|
+
PEAK: "PEAK";
|
|
1647
|
+
TROUGH: "TROUGH";
|
|
1648
|
+
}>;
|
|
1649
|
+
threshold: z.ZodNumber;
|
|
1650
|
+
}, z.core.$strip>;
|
|
1651
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1652
|
+
type: z.ZodLiteral<"upnl">;
|
|
1653
|
+
data: z.ZodObject<{
|
|
1654
|
+
priceSource: z.ZodEnum<{
|
|
1655
|
+
mid: "mid";
|
|
1656
|
+
mark: "mark";
|
|
1657
|
+
}>;
|
|
1658
|
+
track: z.ZodEnum<{
|
|
1659
|
+
PEAK: "PEAK";
|
|
1660
|
+
TROUGH: "TROUGH";
|
|
1661
|
+
}>;
|
|
1662
|
+
threshold: z.ZodNumber;
|
|
1663
|
+
}, z.core.$strip>;
|
|
1664
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1665
|
+
type: z.ZodLiteral<"upnl_bps">;
|
|
1666
|
+
data: z.ZodObject<{
|
|
1667
|
+
priceSource: z.ZodEnum<{
|
|
1668
|
+
mid: "mid";
|
|
1669
|
+
mark: "mark";
|
|
1670
|
+
}>;
|
|
1671
|
+
track: z.ZodEnum<{
|
|
1672
|
+
PEAK: "PEAK";
|
|
1673
|
+
TROUGH: "TROUGH";
|
|
1674
|
+
}>;
|
|
1675
|
+
threshold: z.ZodNumber;
|
|
1676
|
+
}, z.core.$strip>;
|
|
1677
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1678
|
+
type: z.ZodLiteral<"funding_rate">;
|
|
1679
|
+
data: z.ZodObject<{
|
|
1680
|
+
connector: z.ZodEnum<{
|
|
1681
|
+
hyperliquid: "hyperliquid";
|
|
1682
|
+
binance: "binance";
|
|
1683
|
+
bybit: "bybit";
|
|
1684
|
+
okx: "okx";
|
|
1685
|
+
lighter: "lighter";
|
|
1686
|
+
}>;
|
|
1687
|
+
symbol: z.ZodString;
|
|
1688
|
+
track: z.ZodEnum<{
|
|
1689
|
+
PEAK: "PEAK";
|
|
1690
|
+
TROUGH: "TROUGH";
|
|
1691
|
+
}>;
|
|
1692
|
+
threshold: z.ZodNumber;
|
|
1693
|
+
}, z.core.$strip>;
|
|
1694
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1695
|
+
type: z.ZodLiteral<"prediction_market">;
|
|
1696
|
+
data: z.ZodObject<{
|
|
1697
|
+
source: z.ZodEnum<{
|
|
1698
|
+
kalshi: "kalshi";
|
|
1699
|
+
polymarket: "polymarket";
|
|
1700
|
+
}>;
|
|
1701
|
+
marketKey: z.ZodString;
|
|
1702
|
+
track: z.ZodEnum<{
|
|
1703
|
+
PEAK: "PEAK";
|
|
1704
|
+
TROUGH: "TROUGH";
|
|
1705
|
+
}>;
|
|
1706
|
+
threshold: z.ZodNumber;
|
|
1707
|
+
}, z.core.$strip>;
|
|
1708
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1709
|
+
type: z.ZodLiteral<"btc_dominance">;
|
|
1710
|
+
data: z.ZodObject<{
|
|
1711
|
+
source: z.ZodLiteral<"coingecko">;
|
|
1712
|
+
track: z.ZodEnum<{
|
|
1713
|
+
PEAK: "PEAK";
|
|
1714
|
+
TROUGH: "TROUGH";
|
|
1715
|
+
}>;
|
|
1716
|
+
threshold: z.ZodNumber;
|
|
1717
|
+
}, z.core.$strip>;
|
|
1718
|
+
}, z.core.$strip>], "type">;
|
|
1719
|
+
context: z.ZodObject<{
|
|
1720
|
+
type: z.ZodLiteral<"MARKET">;
|
|
1721
|
+
position: z.ZodObject<{
|
|
1722
|
+
id: z.ZodUUID;
|
|
1723
|
+
initialExposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
1724
|
+
}, z.core.$strip>;
|
|
1725
|
+
legs: z.ZodTuple<[z.ZodObject<{
|
|
1726
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1727
|
+
symbol: z.ZodString;
|
|
1728
|
+
side: z.ZodEnum<{
|
|
1729
|
+
BUY: "BUY";
|
|
1730
|
+
SELL: "SELL";
|
|
1731
|
+
}>;
|
|
1732
|
+
mode: z.ZodEnum<{
|
|
1733
|
+
QUANTITY: "QUANTITY";
|
|
1734
|
+
USD: "USD";
|
|
1735
|
+
}>;
|
|
1736
|
+
amount: z.ZodString;
|
|
1737
|
+
reduceOnly: z.ZodBoolean;
|
|
1738
|
+
}, z.core.$strip>], z.ZodObject<{
|
|
1739
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1740
|
+
symbol: z.ZodString;
|
|
1741
|
+
side: z.ZodEnum<{
|
|
1742
|
+
BUY: "BUY";
|
|
1743
|
+
SELL: "SELL";
|
|
1744
|
+
}>;
|
|
1745
|
+
mode: z.ZodEnum<{
|
|
1746
|
+
QUANTITY: "QUANTITY";
|
|
1747
|
+
USD: "USD";
|
|
1748
|
+
}>;
|
|
1749
|
+
amount: z.ZodString;
|
|
1750
|
+
reduceOnly: z.ZodBoolean;
|
|
1751
|
+
}, z.core.$strip>>;
|
|
1752
|
+
}, z.core.$strip>;
|
|
1753
|
+
trailing: z.ZodOptional<z.ZodObject<{
|
|
1754
|
+
mode: z.ZodEnum<{
|
|
1755
|
+
RELATIVE_BPS: "RELATIVE_BPS";
|
|
1756
|
+
ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
|
|
1757
|
+
}>;
|
|
1758
|
+
deltaValue: z.ZodNumber;
|
|
1759
|
+
activationValue: z.ZodOptional<z.ZodNumber>;
|
|
1760
|
+
bestMetricSeen: z.ZodOptional<z.ZodNumber>;
|
|
1761
|
+
currentStopValue: z.ZodOptional<z.ZodNumber>;
|
|
1762
|
+
stopBreachedAt: z.ZodOptional<z.ZodNumber>;
|
|
1763
|
+
}, z.core.$strip>>;
|
|
1764
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1765
|
+
id: z.ZodUUID;
|
|
1766
|
+
tradeAccountId: z.ZodUUID;
|
|
1767
|
+
connector: z.ZodEnum<{
|
|
1768
|
+
hyperliquid: "hyperliquid";
|
|
1769
|
+
binance: "binance";
|
|
1770
|
+
bybit: "bybit";
|
|
1771
|
+
okx: "okx";
|
|
1772
|
+
lighter: "lighter";
|
|
1773
|
+
}>;
|
|
1774
|
+
status: z.ZodEnum<{
|
|
1775
|
+
CANCELLED: "CANCELLED";
|
|
1776
|
+
ACTIVE: "ACTIVE";
|
|
1777
|
+
TRIGGERED: "TRIGGERED";
|
|
1778
|
+
}>;
|
|
1779
|
+
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
1780
|
+
ladderIndex: z.ZodOptional<z.ZodNumber>;
|
|
1781
|
+
parentTriggerId: z.ZodOptional<z.ZodUUID>;
|
|
1782
|
+
triggeredAt: z.ZodOptional<z.ZodString>;
|
|
1783
|
+
cancelledAt: z.ZodOptional<z.ZodString>;
|
|
1784
|
+
cancelledReason: z.ZodOptional<z.ZodEnum<{
|
|
1785
|
+
USER: "USER";
|
|
1786
|
+
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1787
|
+
SYSTEM: "SYSTEM";
|
|
1788
|
+
POSITION_NETTED: "POSITION_NETTED";
|
|
1789
|
+
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1790
|
+
}>>;
|
|
1791
|
+
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1792
|
+
id: z.ZodUUID;
|
|
1793
|
+
cloid: z.ZodOptional<z.ZodString>;
|
|
1794
|
+
exchangeFillId: z.ZodOptional<z.ZodString>;
|
|
1795
|
+
status: z.ZodEnum<{
|
|
1796
|
+
PROVISIONAL: "PROVISIONAL";
|
|
1797
|
+
CONFIRMED: "CONFIRMED";
|
|
1798
|
+
RECONCILED: "RECONCILED";
|
|
1799
|
+
}>;
|
|
1800
|
+
tradeAccountId: z.ZodUUID;
|
|
1801
|
+
symbol: z.ZodString;
|
|
1802
|
+
positionId: z.ZodUUID;
|
|
1803
|
+
connector: z.ZodEnum<{
|
|
1804
|
+
hyperliquid: "hyperliquid";
|
|
1805
|
+
binance: "binance";
|
|
1806
|
+
bybit: "bybit";
|
|
1807
|
+
okx: "okx";
|
|
1808
|
+
lighter: "lighter";
|
|
1809
|
+
}>;
|
|
1810
|
+
side: z.ZodEnum<{
|
|
1811
|
+
BUY: "BUY";
|
|
1812
|
+
SELL: "SELL";
|
|
1813
|
+
}>;
|
|
1814
|
+
reduceOnly: z.ZodBoolean;
|
|
1815
|
+
isExternal: z.ZodBoolean;
|
|
1816
|
+
synthetic: z.ZodBoolean;
|
|
1817
|
+
quantity: z.ZodString;
|
|
1818
|
+
price: z.ZodString;
|
|
1819
|
+
usd: z.ZodString;
|
|
1820
|
+
tradeFee: z.ZodOptional<z.ZodString>;
|
|
1821
|
+
pearFee: z.ZodOptional<z.ZodString>;
|
|
1822
|
+
timestamp: z.ZodString;
|
|
1823
|
+
original: z.ZodOptional<z.ZodObject<{
|
|
1824
|
+
exchangeFillId: z.ZodString;
|
|
1825
|
+
quantity: z.ZodString;
|
|
1826
|
+
}, z.core.$strip>>;
|
|
1827
|
+
}, z.core.$strip>>>;
|
|
1828
|
+
bracketType: z.ZodEnum<{
|
|
1829
|
+
STOP_LOSS: "STOP_LOSS";
|
|
1830
|
+
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1831
|
+
NONE: "NONE";
|
|
1832
|
+
}>;
|
|
1833
|
+
semanticBracketType: z.ZodOptional<z.ZodEnum<{
|
|
1834
|
+
STOP_LOSS: "STOP_LOSS";
|
|
1835
|
+
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1836
|
+
NONE: "NONE";
|
|
1837
|
+
}>>;
|
|
1838
|
+
createdAt: z.ZodString;
|
|
1839
|
+
updatedAt: z.ZodString;
|
|
1840
|
+
intent: z.ZodLiteral<"CLOSE">;
|
|
830
1841
|
type: z.ZodLiteral<"MARKET">;
|
|
831
1842
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
832
1843
|
type: z.ZodLiteral<"ratio">;
|
|
@@ -878,6 +1889,104 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
878
1889
|
}>;
|
|
879
1890
|
threshold: z.ZodNumber;
|
|
880
1891
|
}, z.core.$strip>;
|
|
1892
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1893
|
+
type: z.ZodLiteral<"notional">;
|
|
1894
|
+
data: z.ZodObject<{
|
|
1895
|
+
priceSource: z.ZodEnum<{
|
|
1896
|
+
mid: "mid";
|
|
1897
|
+
mark: "mark";
|
|
1898
|
+
}>;
|
|
1899
|
+
track: z.ZodEnum<{
|
|
1900
|
+
PEAK: "PEAK";
|
|
1901
|
+
TROUGH: "TROUGH";
|
|
1902
|
+
}>;
|
|
1903
|
+
threshold: z.ZodNumber;
|
|
1904
|
+
}, z.core.$strip>;
|
|
1905
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1906
|
+
type: z.ZodLiteral<"upnl">;
|
|
1907
|
+
data: z.ZodObject<{
|
|
1908
|
+
priceSource: z.ZodEnum<{
|
|
1909
|
+
mid: "mid";
|
|
1910
|
+
mark: "mark";
|
|
1911
|
+
}>;
|
|
1912
|
+
track: z.ZodEnum<{
|
|
1913
|
+
PEAK: "PEAK";
|
|
1914
|
+
TROUGH: "TROUGH";
|
|
1915
|
+
}>;
|
|
1916
|
+
threshold: z.ZodNumber;
|
|
1917
|
+
}, z.core.$strip>;
|
|
1918
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1919
|
+
type: z.ZodLiteral<"upnl_bps">;
|
|
1920
|
+
data: z.ZodObject<{
|
|
1921
|
+
priceSource: z.ZodEnum<{
|
|
1922
|
+
mid: "mid";
|
|
1923
|
+
mark: "mark";
|
|
1924
|
+
}>;
|
|
1925
|
+
track: z.ZodEnum<{
|
|
1926
|
+
PEAK: "PEAK";
|
|
1927
|
+
TROUGH: "TROUGH";
|
|
1928
|
+
}>;
|
|
1929
|
+
threshold: z.ZodNumber;
|
|
1930
|
+
}, z.core.$strip>;
|
|
1931
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1932
|
+
type: z.ZodLiteral<"ratio_trailing">;
|
|
1933
|
+
data: z.ZodObject<{
|
|
1934
|
+
priceSource: z.ZodEnum<{
|
|
1935
|
+
mid: "mid";
|
|
1936
|
+
mark: "mark";
|
|
1937
|
+
}>;
|
|
1938
|
+
symbol_a: z.ZodString;
|
|
1939
|
+
symbol_b: z.ZodString;
|
|
1940
|
+
}, z.core.$strip>;
|
|
1941
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1942
|
+
type: z.ZodLiteral<"price_trailing">;
|
|
1943
|
+
data: z.ZodObject<{
|
|
1944
|
+
priceSource: z.ZodEnum<{
|
|
1945
|
+
mid: "mid";
|
|
1946
|
+
mark: "mark";
|
|
1947
|
+
}>;
|
|
1948
|
+
symbol: z.ZodString;
|
|
1949
|
+
}, z.core.$strip>;
|
|
1950
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1951
|
+
type: z.ZodLiteral<"weighted_ratio_trailing">;
|
|
1952
|
+
data: z.ZodObject<{
|
|
1953
|
+
priceSource: z.ZodEnum<{
|
|
1954
|
+
mid: "mid";
|
|
1955
|
+
mark: "mark";
|
|
1956
|
+
}>;
|
|
1957
|
+
basket: z.ZodArray<z.ZodObject<{
|
|
1958
|
+
symbol: z.ZodString;
|
|
1959
|
+
side: z.ZodEnum<{
|
|
1960
|
+
BUY: "BUY";
|
|
1961
|
+
SELL: "SELL";
|
|
1962
|
+
}>;
|
|
1963
|
+
weight: z.ZodNumber;
|
|
1964
|
+
}, z.core.$strip>>;
|
|
1965
|
+
}, z.core.$strip>;
|
|
1966
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1967
|
+
type: z.ZodLiteral<"notional_trailing">;
|
|
1968
|
+
data: z.ZodObject<{
|
|
1969
|
+
priceSource: z.ZodEnum<{
|
|
1970
|
+
mid: "mid";
|
|
1971
|
+
mark: "mark";
|
|
1972
|
+
}>;
|
|
1973
|
+
}, z.core.$strip>;
|
|
1974
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1975
|
+
type: z.ZodLiteral<"upnl_trailing">;
|
|
1976
|
+
data: z.ZodObject<{
|
|
1977
|
+
priceSource: z.ZodEnum<{
|
|
1978
|
+
mid: "mid";
|
|
1979
|
+
mark: "mark";
|
|
1980
|
+
}>;
|
|
1981
|
+
}, z.core.$strip>;
|
|
1982
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1983
|
+
type: z.ZodLiteral<"upnl_bps_trailing">;
|
|
1984
|
+
data: z.ZodObject<{
|
|
1985
|
+
priceSource: z.ZodEnum<{
|
|
1986
|
+
mid: "mid";
|
|
1987
|
+
mark: "mark";
|
|
1988
|
+
}>;
|
|
1989
|
+
}, z.core.$strip>;
|
|
881
1990
|
}, z.core.$strip>, z.ZodObject<{
|
|
882
1991
|
type: z.ZodLiteral<"funding_rate">;
|
|
883
1992
|
data: z.ZodObject<{
|
|
@@ -922,41 +2031,23 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
922
2031
|
}, z.core.$strip>], "type">;
|
|
923
2032
|
context: z.ZodObject<{
|
|
924
2033
|
type: z.ZodLiteral<"MARKET">;
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
SELL: "SELL";
|
|
930
|
-
}>;
|
|
931
|
-
mode: z.ZodEnum<{
|
|
932
|
-
QUANTITY: "QUANTITY";
|
|
933
|
-
USD: "USD";
|
|
934
|
-
}>;
|
|
935
|
-
amount: z.ZodString;
|
|
936
|
-
}, z.core.$strip>], z.ZodObject<{
|
|
937
|
-
symbol: z.ZodString;
|
|
938
|
-
side: z.ZodEnum<{
|
|
939
|
-
BUY: "BUY";
|
|
940
|
-
SELL: "SELL";
|
|
941
|
-
}>;
|
|
942
|
-
mode: z.ZodEnum<{
|
|
943
|
-
QUANTITY: "QUANTITY";
|
|
944
|
-
USD: "USD";
|
|
945
|
-
}>;
|
|
946
|
-
amount: z.ZodString;
|
|
947
|
-
}, z.core.$strip>>;
|
|
948
|
-
attachedTriggers: z.ZodArray<z.ZodObject<{
|
|
949
|
-
kind: z.ZodEnum<{
|
|
950
|
-
STATIC: "STATIC";
|
|
951
|
-
TRAILING: "TRAILING";
|
|
952
|
-
}>;
|
|
953
|
-
bracketType: z.ZodEnum<{
|
|
954
|
-
STOP_LOSS: "STOP_LOSS";
|
|
955
|
-
TAKE_PROFIT: "TAKE_PROFIT";
|
|
956
|
-
}>;
|
|
957
|
-
}, z.core.$strip>>;
|
|
2034
|
+
position: z.ZodObject<{
|
|
2035
|
+
id: z.ZodUUID;
|
|
2036
|
+
initialExposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
2037
|
+
}, z.core.$strip>;
|
|
958
2038
|
}, z.core.$strip>;
|
|
959
|
-
|
|
2039
|
+
trailing: z.ZodOptional<z.ZodObject<{
|
|
2040
|
+
mode: z.ZodEnum<{
|
|
2041
|
+
RELATIVE_BPS: "RELATIVE_BPS";
|
|
2042
|
+
ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
|
|
2043
|
+
}>;
|
|
2044
|
+
deltaValue: z.ZodNumber;
|
|
2045
|
+
activationValue: z.ZodOptional<z.ZodNumber>;
|
|
2046
|
+
bestMetricSeen: z.ZodOptional<z.ZodNumber>;
|
|
2047
|
+
currentStopValue: z.ZodOptional<z.ZodNumber>;
|
|
2048
|
+
stopBreachedAt: z.ZodOptional<z.ZodNumber>;
|
|
2049
|
+
}, z.core.$strip>>;
|
|
2050
|
+
}, z.core.$strip>], "intent">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
960
2051
|
id: z.ZodUUID;
|
|
961
2052
|
tradeAccountId: z.ZodUUID;
|
|
962
2053
|
connector: z.ZodEnum<{
|
|
@@ -1033,7 +2124,8 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
1033
2124
|
createdAt: z.ZodString;
|
|
1034
2125
|
updatedAt: z.ZodString;
|
|
1035
2126
|
intent: z.ZodLiteral<"ADJUST">;
|
|
1036
|
-
type: z.ZodLiteral<"
|
|
2127
|
+
type: z.ZodLiteral<"TWAP">;
|
|
2128
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
1037
2129
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1038
2130
|
type: z.ZodLiteral<"ratio">;
|
|
1039
2131
|
data: z.ZodObject<{
|
|
@@ -1166,36 +2258,35 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
1166
2258
|
}, z.core.$strip>;
|
|
1167
2259
|
}, z.core.$strip>], "type">;
|
|
1168
2260
|
context: z.ZodObject<{
|
|
1169
|
-
type: z.ZodLiteral<"
|
|
2261
|
+
type: z.ZodLiteral<"TWAP">;
|
|
2262
|
+
durationSec: z.ZodInt;
|
|
2263
|
+
sliceIntervalSec: z.ZodInt;
|
|
2264
|
+
randomization: z.ZodObject<{
|
|
2265
|
+
timingJitterBps: z.ZodInt;
|
|
2266
|
+
sizeJitterBps: z.ZodInt;
|
|
2267
|
+
}, z.core.$strip>;
|
|
1170
2268
|
position: z.ZodObject<{
|
|
1171
2269
|
id: z.ZodUUID;
|
|
1172
2270
|
initialExposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
1173
2271
|
}, z.core.$strip>;
|
|
1174
2272
|
legs: z.ZodTuple<[z.ZodObject<{
|
|
2273
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1175
2274
|
symbol: z.ZodString;
|
|
1176
2275
|
side: z.ZodEnum<{
|
|
1177
2276
|
BUY: "BUY";
|
|
1178
2277
|
SELL: "SELL";
|
|
1179
2278
|
}>;
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
}>;
|
|
1184
|
-
amount: z.ZodString;
|
|
1185
|
-
reduceOnly: z.ZodBoolean;
|
|
1186
|
-
}, z.core.$strip>], z.ZodObject<{
|
|
2279
|
+
weight: z.ZodNumber;
|
|
2280
|
+
}, z.core.$strict>], z.ZodObject<{
|
|
2281
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1187
2282
|
symbol: z.ZodString;
|
|
1188
2283
|
side: z.ZodEnum<{
|
|
1189
2284
|
BUY: "BUY";
|
|
1190
2285
|
SELL: "SELL";
|
|
1191
2286
|
}>;
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
}>;
|
|
1196
|
-
amount: z.ZodString;
|
|
1197
|
-
reduceOnly: z.ZodBoolean;
|
|
1198
|
-
}, z.core.$strip>>;
|
|
2287
|
+
weight: z.ZodNumber;
|
|
2288
|
+
}, z.core.$strict>>;
|
|
2289
|
+
targetNotional: z.ZodString;
|
|
1199
2290
|
}, z.core.$strip>;
|
|
1200
2291
|
trailing: z.ZodOptional<z.ZodObject<{
|
|
1201
2292
|
mode: z.ZodEnum<{
|
|
@@ -1285,7 +2376,8 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
1285
2376
|
createdAt: z.ZodString;
|
|
1286
2377
|
updatedAt: z.ZodString;
|
|
1287
2378
|
intent: z.ZodLiteral<"CLOSE">;
|
|
1288
|
-
type: z.ZodLiteral<"
|
|
2379
|
+
type: z.ZodLiteral<"TWAP">;
|
|
2380
|
+
scheduleId: z.ZodOptional<z.ZodUUID>;
|
|
1289
2381
|
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1290
2382
|
type: z.ZodLiteral<"ratio">;
|
|
1291
2383
|
data: z.ZodObject<{
|
|
@@ -1477,7 +2569,13 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
1477
2569
|
}, z.core.$strip>;
|
|
1478
2570
|
}, z.core.$strip>], "type">;
|
|
1479
2571
|
context: z.ZodObject<{
|
|
1480
|
-
type: z.ZodLiteral<"
|
|
2572
|
+
type: z.ZodLiteral<"TWAP">;
|
|
2573
|
+
durationSec: z.ZodInt;
|
|
2574
|
+
sliceIntervalSec: z.ZodInt;
|
|
2575
|
+
randomization: z.ZodObject<{
|
|
2576
|
+
timingJitterBps: z.ZodInt;
|
|
2577
|
+
sizeJitterBps: z.ZodInt;
|
|
2578
|
+
}, z.core.$strip>;
|
|
1481
2579
|
position: z.ZodObject<{
|
|
1482
2580
|
id: z.ZodUUID;
|
|
1483
2581
|
initialExposure: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|