@pear-protocol/types 2.23.0 → 2.25.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/copy/entities.d.ts +162 -10
- package/dist/copy/responses.d.ts +96 -11
- package/dist/execution/entities.d.ts +260 -43
- package/dist/execution/queries.d.ts +3 -2
- package/dist/execution/responses.d.ts +144 -24
- package/dist/fill/entities.d.ts +60 -1
- package/dist/fill/queries.d.ts +1 -0
- package/dist/fill/responses.d.ts +34 -4
- package/dist/index.js +743 -411
- package/dist/ladder/entities.d.ts +141 -24
- package/dist/ladder/payloads.d.ts +60 -24
- package/dist/ladder/queries.d.ts +2 -2
- package/dist/ladder/responses.d.ts +420 -69
- package/dist/leverage/payloads.d.ts +6 -1
- package/dist/notification/entities.d.ts +209 -7
- package/dist/notification/responses.d.ts +99 -2
- package/dist/order/entities.d.ts +3 -3
- package/dist/position/entities.d.ts +5 -5
- package/dist/position/responses.d.ts +4 -4
- package/dist/realtime/frames.d.ts +38 -6
- package/dist/realtime/public-events.d.ts +19 -3
- package/dist/rewards/entities.d.ts +18 -0
- package/dist/rewards/index.d.ts +1 -0
- package/dist/rewards/queries.d.ts +7 -0
- package/dist/rewards/responses.d.ts +52 -0
- package/dist/schedule/entities.d.ts +155 -19
- package/dist/schedule/index.d.ts +1 -0
- package/dist/schedule/queries.d.ts +3 -2
- package/dist/schedule/responses.d.ts +142 -19
- package/dist/sync/payloads.d.ts +56 -88
- package/dist/tca/responses.d.ts +12 -12
- package/dist/trade/payloads.d.ts +60 -24
- package/dist/trade/responses.d.ts +360 -60
- package/dist/traders/performance.d.ts +4 -0
- package/dist/traders/public.d.ts +537 -285
- package/dist/trigger/common/index.d.ts +8 -2
- package/dist/trigger/entities/conditions.d.ts +40 -0
- package/dist/trigger/entities/index.d.ts +339 -32
- package/dist/trigger/payloads/conditions.d.ts +70 -38
- package/dist/trigger/payloads/index.d.ts +408 -216
- package/dist/trigger/queries.d.ts +2 -2
- package/dist/trigger/responses.d.ts +218 -20
- package/dist/users/entities.d.ts +1 -0
- package/dist/users/payloads.d.ts +1 -0
- package/dist/users/response.d.ts +2 -0
- package/package.json +1 -1
package/dist/copy/entities.d.ts
CHANGED
|
@@ -31,11 +31,11 @@ export declare const CopySubscription: z.ZodObject<{
|
|
|
31
31
|
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
32
32
|
createdAt: z.ZodString;
|
|
33
33
|
endedAt: z.ZodOptional<z.ZodString>;
|
|
34
|
+
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
35
|
+
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
34
36
|
grossRealizedPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
35
37
|
grossUpnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
36
38
|
fundingPayment: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
37
|
-
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
38
|
-
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
39
39
|
totalNetPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
40
40
|
id: z.ZodUUID;
|
|
41
41
|
leaderTradeAccountId: z.ZodUUID;
|
|
@@ -321,11 +321,11 @@ export declare const CopyEndedSubscriptionWithVolume: z.ZodObject<{
|
|
|
321
321
|
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
322
322
|
createdAt: z.ZodString;
|
|
323
323
|
endedAt: z.ZodOptional<z.ZodString>;
|
|
324
|
+
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
325
|
+
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
324
326
|
grossRealizedPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
325
327
|
grossUpnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
326
328
|
fundingPayment: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
327
|
-
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
328
|
-
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
329
329
|
totalNetPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
330
330
|
id: z.ZodUUID;
|
|
331
331
|
leaderTradeAccountId: z.ZodUUID;
|
|
@@ -606,11 +606,11 @@ export declare const CopySubscriptionRead: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
606
606
|
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
607
607
|
createdAt: z.ZodString;
|
|
608
608
|
endedAt: z.ZodOptional<z.ZodString>;
|
|
609
|
+
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
610
|
+
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
609
611
|
grossRealizedPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
610
612
|
grossUpnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
611
613
|
fundingPayment: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
612
|
-
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
613
|
-
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
614
614
|
totalNetPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
615
615
|
id: z.ZodUUID;
|
|
616
616
|
leaderTradeAccountId: z.ZodUUID;
|
|
@@ -778,13 +778,20 @@ export declare const CopySkipReason: z.ZodEnum<{
|
|
|
778
778
|
FOLLOWER_EQUITY_UNREADABLE: "FOLLOWER_EQUITY_UNREADABLE";
|
|
779
779
|
PRICE_UNAVAILABLE: "PRICE_UNAVAILABLE";
|
|
780
780
|
LEVERAGE_NOT_APPLIED: "LEVERAGE_NOT_APPLIED";
|
|
781
|
+
FOLLOWER_TWAP_NOT_ACTIVE: "FOLLOWER_TWAP_NOT_ACTIVE";
|
|
782
|
+
FOLLOWER_TWAP_ALREADY_ACTIVE: "FOLLOWER_TWAP_ALREADY_ACTIVE";
|
|
783
|
+
TRUE_UP_STALE: "TRUE_UP_STALE";
|
|
784
|
+
ASSET_CONFLICT: "ASSET_CONFLICT";
|
|
781
785
|
}>;
|
|
782
786
|
export type CopySkipReason = z.infer<typeof CopySkipReason>;
|
|
783
787
|
export declare const CopyLeaderAction: z.ZodEnum<{
|
|
788
|
+
TWAP: "TWAP";
|
|
784
789
|
OPEN: "OPEN";
|
|
785
|
-
ADJUST: "ADJUST";
|
|
786
790
|
CLOSE: "CLOSE";
|
|
791
|
+
ADJUST: "ADJUST";
|
|
787
792
|
REVERSE: "REVERSE";
|
|
793
|
+
TWAP_END: "TWAP_END";
|
|
794
|
+
LEVERAGE_CHANGED: "LEVERAGE_CHANGED";
|
|
788
795
|
}>;
|
|
789
796
|
export type CopyLeaderAction = z.infer<typeof CopyLeaderAction>;
|
|
790
797
|
/** Leader execution provenance; these resources are never installed on the follower. */
|
|
@@ -798,8 +805,8 @@ export declare const CopyExecutionSource: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
798
805
|
triggerId: z.ZodString;
|
|
799
806
|
triggerIntent: z.ZodEnum<{
|
|
800
807
|
OPEN: "OPEN";
|
|
801
|
-
ADJUST: "ADJUST";
|
|
802
808
|
CLOSE: "CLOSE";
|
|
809
|
+
ADJUST: "ADJUST";
|
|
803
810
|
}>;
|
|
804
811
|
bracketType: z.ZodOptional<z.ZodString>;
|
|
805
812
|
ladderId: z.ZodOptional<z.ZodString>;
|
|
@@ -808,6 +815,51 @@ export declare const CopyExecutionSource: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
808
815
|
configId: z.ZodString;
|
|
809
816
|
}, z.core.$strip>], "origin">;
|
|
810
817
|
export type CopyExecutionSource = z.infer<typeof CopyExecutionSource>;
|
|
818
|
+
/** Why the follower TWAP has fewer slices than the leader's. */
|
|
819
|
+
export declare const CopyActivityTWAPReduction: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
820
|
+
kind: z.ZodLiteral<"NONE">;
|
|
821
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
822
|
+
kind: z.ZodLiteral<"MINIMUM">;
|
|
823
|
+
limitingLegs: z.ZodArray<z.ZodObject<{
|
|
824
|
+
symbol: z.ZodString;
|
|
825
|
+
minimumNotional: z.ZodString;
|
|
826
|
+
}, z.core.$strip>>;
|
|
827
|
+
}, z.core.$strip>], "kind">;
|
|
828
|
+
export type CopyActivityTWAPReduction = z.infer<typeof CopyActivityTWAPReduction>;
|
|
829
|
+
/** The follower TWAP a copied leader TWAP created, and how far it has run. */
|
|
830
|
+
export declare const CopyActivityTWAP: z.ZodObject<{
|
|
831
|
+
intent: z.ZodEnum<{
|
|
832
|
+
OPEN: "OPEN";
|
|
833
|
+
CLOSE: "CLOSE";
|
|
834
|
+
}>;
|
|
835
|
+
totalNotional: z.ZodString;
|
|
836
|
+
startAt: z.ZodString;
|
|
837
|
+
endAt: z.ZodString;
|
|
838
|
+
sliceCount: z.ZodNumber;
|
|
839
|
+
sliceIntervalSec: z.ZodNumber;
|
|
840
|
+
leaderSliceCount: z.ZodNumber;
|
|
841
|
+
reduction: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
842
|
+
kind: z.ZodLiteral<"NONE">;
|
|
843
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
844
|
+
kind: z.ZodLiteral<"MINIMUM">;
|
|
845
|
+
limitingLegs: z.ZodArray<z.ZodObject<{
|
|
846
|
+
symbol: z.ZodString;
|
|
847
|
+
minimumNotional: z.ZodString;
|
|
848
|
+
}, z.core.$strip>>;
|
|
849
|
+
}, z.core.$strip>], "kind">;
|
|
850
|
+
progress: z.ZodOptional<z.ZodObject<{
|
|
851
|
+
status: z.ZodEnum<{
|
|
852
|
+
ACTIVE: "ACTIVE";
|
|
853
|
+
COMPLETED: "COMPLETED";
|
|
854
|
+
FAILED: "FAILED";
|
|
855
|
+
CANCELLED: "CANCELLED";
|
|
856
|
+
}>;
|
|
857
|
+
filledNotional: z.ZodString;
|
|
858
|
+
executedSliceCount: z.ZodNumber;
|
|
859
|
+
partiallyFilled: z.ZodBoolean;
|
|
860
|
+
}, z.core.$strip>>;
|
|
861
|
+
}, z.core.$strip>;
|
|
862
|
+
export type CopyActivityTWAP = z.infer<typeof CopyActivityTWAP>;
|
|
811
863
|
/**
|
|
812
864
|
* One leader action, and what it meant for this follower.
|
|
813
865
|
*
|
|
@@ -818,10 +870,13 @@ export type CopyExecutionSource = z.infer<typeof CopyExecutionSource>;
|
|
|
818
870
|
export declare const CopyActivity: z.ZodObject<{
|
|
819
871
|
id: z.ZodUUID;
|
|
820
872
|
leaderAction: z.ZodEnum<{
|
|
873
|
+
TWAP: "TWAP";
|
|
821
874
|
OPEN: "OPEN";
|
|
822
|
-
ADJUST: "ADJUST";
|
|
823
875
|
CLOSE: "CLOSE";
|
|
876
|
+
ADJUST: "ADJUST";
|
|
824
877
|
REVERSE: "REVERSE";
|
|
878
|
+
TWAP_END: "TWAP_END";
|
|
879
|
+
LEVERAGE_CHANGED: "LEVERAGE_CHANGED";
|
|
825
880
|
}>;
|
|
826
881
|
executionSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
827
882
|
origin: z.ZodLiteral<"DIRECT">;
|
|
@@ -833,8 +888,8 @@ export declare const CopyActivity: z.ZodObject<{
|
|
|
833
888
|
triggerId: z.ZodString;
|
|
834
889
|
triggerIntent: z.ZodEnum<{
|
|
835
890
|
OPEN: "OPEN";
|
|
836
|
-
ADJUST: "ADJUST";
|
|
837
891
|
CLOSE: "CLOSE";
|
|
892
|
+
ADJUST: "ADJUST";
|
|
838
893
|
}>;
|
|
839
894
|
bracketType: z.ZodOptional<z.ZodString>;
|
|
840
895
|
ladderId: z.ZodOptional<z.ZodString>;
|
|
@@ -868,6 +923,10 @@ export declare const CopyActivity: z.ZodObject<{
|
|
|
868
923
|
FOLLOWER_EQUITY_UNREADABLE: "FOLLOWER_EQUITY_UNREADABLE";
|
|
869
924
|
PRICE_UNAVAILABLE: "PRICE_UNAVAILABLE";
|
|
870
925
|
LEVERAGE_NOT_APPLIED: "LEVERAGE_NOT_APPLIED";
|
|
926
|
+
FOLLOWER_TWAP_NOT_ACTIVE: "FOLLOWER_TWAP_NOT_ACTIVE";
|
|
927
|
+
FOLLOWER_TWAP_ALREADY_ACTIVE: "FOLLOWER_TWAP_ALREADY_ACTIVE";
|
|
928
|
+
TRUE_UP_STALE: "TRUE_UP_STALE";
|
|
929
|
+
ASSET_CONFLICT: "ASSET_CONFLICT";
|
|
871
930
|
}>>;
|
|
872
931
|
failureReason: z.ZodOptional<z.ZodString>;
|
|
873
932
|
followerLegs: z.ZodArray<z.ZodObject<{
|
|
@@ -876,9 +935,102 @@ export declare const CopyActivity: z.ZodObject<{
|
|
|
876
935
|
deltaQuantity: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
877
936
|
}, z.core.$strip>>;
|
|
878
937
|
leaderEquityFraction: z.ZodOptional<z.ZodString>;
|
|
938
|
+
twap: z.ZodOptional<z.ZodObject<{
|
|
939
|
+
intent: z.ZodEnum<{
|
|
940
|
+
OPEN: "OPEN";
|
|
941
|
+
CLOSE: "CLOSE";
|
|
942
|
+
}>;
|
|
943
|
+
totalNotional: z.ZodString;
|
|
944
|
+
startAt: z.ZodString;
|
|
945
|
+
endAt: z.ZodString;
|
|
946
|
+
sliceCount: z.ZodNumber;
|
|
947
|
+
sliceIntervalSec: z.ZodNumber;
|
|
948
|
+
leaderSliceCount: z.ZodNumber;
|
|
949
|
+
reduction: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
950
|
+
kind: z.ZodLiteral<"NONE">;
|
|
951
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
952
|
+
kind: z.ZodLiteral<"MINIMUM">;
|
|
953
|
+
limitingLegs: z.ZodArray<z.ZodObject<{
|
|
954
|
+
symbol: z.ZodString;
|
|
955
|
+
minimumNotional: z.ZodString;
|
|
956
|
+
}, z.core.$strip>>;
|
|
957
|
+
}, z.core.$strip>], "kind">;
|
|
958
|
+
progress: z.ZodOptional<z.ZodObject<{
|
|
959
|
+
status: z.ZodEnum<{
|
|
960
|
+
ACTIVE: "ACTIVE";
|
|
961
|
+
COMPLETED: "COMPLETED";
|
|
962
|
+
FAILED: "FAILED";
|
|
963
|
+
CANCELLED: "CANCELLED";
|
|
964
|
+
}>;
|
|
965
|
+
filledNotional: z.ZodString;
|
|
966
|
+
executedSliceCount: z.ZodNumber;
|
|
967
|
+
partiallyFilled: z.ZodBoolean;
|
|
968
|
+
}, z.core.$strip>>;
|
|
969
|
+
}, z.core.$strip>>;
|
|
879
970
|
createdAt: z.ZodString;
|
|
880
971
|
}, z.core.$strip>;
|
|
881
972
|
export type CopyActivity = z.infer<typeof CopyActivity>;
|
|
973
|
+
/** Whether every open position on the follower account follows the leader. */
|
|
974
|
+
export declare const CopyCoverage: z.ZodEnum<{
|
|
975
|
+
FULLY_COPY: "FULLY_COPY";
|
|
976
|
+
PARTIALLY_COPY: "PARTIALLY_COPY";
|
|
977
|
+
}>;
|
|
978
|
+
export type CopyCoverage = z.infer<typeof CopyCoverage>;
|
|
979
|
+
/** Why a leader position lifecycle no longer copies; the follower manages its copied position, including the close. */
|
|
980
|
+
export declare const CopyControlTransferReason: z.ZodEnum<{
|
|
981
|
+
LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
|
|
982
|
+
ASSET_CONFLICT: "ASSET_CONFLICT";
|
|
983
|
+
FOLLOWER_INTERVENTION: "FOLLOWER_INTERVENTION";
|
|
984
|
+
EXTERNAL_SYNC: "EXTERNAL_SYNC";
|
|
985
|
+
LIQUIDATED: "LIQUIDATED";
|
|
986
|
+
}>;
|
|
987
|
+
export type CopyControlTransferReason = z.infer<typeof CopyControlTransferReason>;
|
|
988
|
+
/** Why a follower position is outside copy management: released from copy, or never copied at all. */
|
|
989
|
+
export declare const CopyUnmanagedFollowerPositionReason: z.ZodEnum<{
|
|
990
|
+
LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
|
|
991
|
+
ASSET_CONFLICT: "ASSET_CONFLICT";
|
|
992
|
+
FOLLOWER_INTERVENTION: "FOLLOWER_INTERVENTION";
|
|
993
|
+
EXTERNAL_SYNC: "EXTERNAL_SYNC";
|
|
994
|
+
LIQUIDATED: "LIQUIDATED";
|
|
995
|
+
EXISTING_AT_ADMISSION: "EXISTING_AT_ADMISSION";
|
|
996
|
+
MANUAL_POSITION: "MANUAL_POSITION";
|
|
997
|
+
}>;
|
|
998
|
+
export type CopyUnmanagedFollowerPositionReason = z.infer<typeof CopyUnmanagedFollowerPositionReason>;
|
|
999
|
+
/** One open position copy does not manage, on either side of the subscription. */
|
|
1000
|
+
export declare const CopyUnmanagedPosition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1001
|
+
kind: z.ZodLiteral<"FOLLOWER_POSITION">;
|
|
1002
|
+
positionId: z.ZodUUID;
|
|
1003
|
+
reason: z.ZodEnum<{
|
|
1004
|
+
LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
|
|
1005
|
+
ASSET_CONFLICT: "ASSET_CONFLICT";
|
|
1006
|
+
FOLLOWER_INTERVENTION: "FOLLOWER_INTERVENTION";
|
|
1007
|
+
EXTERNAL_SYNC: "EXTERNAL_SYNC";
|
|
1008
|
+
LIQUIDATED: "LIQUIDATED";
|
|
1009
|
+
EXISTING_AT_ADMISSION: "EXISTING_AT_ADMISSION";
|
|
1010
|
+
MANUAL_POSITION: "MANUAL_POSITION";
|
|
1011
|
+
}>;
|
|
1012
|
+
detectedAt: z.ZodString;
|
|
1013
|
+
instrumentIds: z.ZodArray<z.ZodString>;
|
|
1014
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1015
|
+
kind: z.ZodLiteral<"LEADER_POSITION">;
|
|
1016
|
+
positionId: z.ZodUUID;
|
|
1017
|
+
reason: z.ZodEnum<{
|
|
1018
|
+
LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
|
|
1019
|
+
ASSET_CONFLICT: "ASSET_CONFLICT";
|
|
1020
|
+
FOLLOWER_INTERVENTION: "FOLLOWER_INTERVENTION";
|
|
1021
|
+
EXTERNAL_SYNC: "EXTERNAL_SYNC";
|
|
1022
|
+
LIQUIDATED: "LIQUIDATED";
|
|
1023
|
+
}>;
|
|
1024
|
+
detectedAt: z.ZodString;
|
|
1025
|
+
instrumentIds: z.ZodArray<z.ZodString>;
|
|
1026
|
+
}, z.core.$strip>], "kind">;
|
|
1027
|
+
export type CopyUnmanagedPosition = z.infer<typeof CopyUnmanagedPosition>;
|
|
1028
|
+
/** One open follower position copy manages, so a symbol-wide setting change can name what it would release. */
|
|
1029
|
+
export declare const CopyManagedPosition: z.ZodObject<{
|
|
1030
|
+
positionId: z.ZodUUID;
|
|
1031
|
+
instrumentIds: z.ZodArray<z.ZodString>;
|
|
1032
|
+
}, z.core.$strip>;
|
|
1033
|
+
export type CopyManagedPosition = z.infer<typeof CopyManagedPosition>;
|
|
882
1034
|
/** A current follower account with only its owner's publishable X identity. */
|
|
883
1035
|
export declare const CopyFollower: z.ZodObject<{
|
|
884
1036
|
tradeAccountId: z.ZodUUID;
|
package/dist/copy/responses.d.ts
CHANGED
|
@@ -146,6 +146,41 @@ export declare const CopyStateResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
146
146
|
pearFee: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
147
147
|
totalNetPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
148
148
|
}, z.core.$strip>;
|
|
149
|
+
coverage: z.ZodEnum<{
|
|
150
|
+
FULLY_COPY: "FULLY_COPY";
|
|
151
|
+
PARTIALLY_COPY: "PARTIALLY_COPY";
|
|
152
|
+
}>;
|
|
153
|
+
unmanagedPositions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
154
|
+
kind: z.ZodLiteral<"FOLLOWER_POSITION">;
|
|
155
|
+
positionId: z.ZodUUID;
|
|
156
|
+
reason: z.ZodEnum<{
|
|
157
|
+
LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
|
|
158
|
+
ASSET_CONFLICT: "ASSET_CONFLICT";
|
|
159
|
+
FOLLOWER_INTERVENTION: "FOLLOWER_INTERVENTION";
|
|
160
|
+
EXTERNAL_SYNC: "EXTERNAL_SYNC";
|
|
161
|
+
LIQUIDATED: "LIQUIDATED";
|
|
162
|
+
EXISTING_AT_ADMISSION: "EXISTING_AT_ADMISSION";
|
|
163
|
+
MANUAL_POSITION: "MANUAL_POSITION";
|
|
164
|
+
}>;
|
|
165
|
+
detectedAt: z.ZodString;
|
|
166
|
+
instrumentIds: z.ZodArray<z.ZodString>;
|
|
167
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
168
|
+
kind: z.ZodLiteral<"LEADER_POSITION">;
|
|
169
|
+
positionId: z.ZodUUID;
|
|
170
|
+
reason: z.ZodEnum<{
|
|
171
|
+
LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
|
|
172
|
+
ASSET_CONFLICT: "ASSET_CONFLICT";
|
|
173
|
+
FOLLOWER_INTERVENTION: "FOLLOWER_INTERVENTION";
|
|
174
|
+
EXTERNAL_SYNC: "EXTERNAL_SYNC";
|
|
175
|
+
LIQUIDATED: "LIQUIDATED";
|
|
176
|
+
}>;
|
|
177
|
+
detectedAt: z.ZodString;
|
|
178
|
+
instrumentIds: z.ZodArray<z.ZodString>;
|
|
179
|
+
}, z.core.$strip>], "kind">>;
|
|
180
|
+
managedPositions: z.ZodArray<z.ZodObject<{
|
|
181
|
+
positionId: z.ZodUUID;
|
|
182
|
+
instrumentIds: z.ZodArray<z.ZodString>;
|
|
183
|
+
}, z.core.$strip>>;
|
|
149
184
|
}, z.core.$strip>], "state">;
|
|
150
185
|
export type CopyStateResponse = z.output<typeof CopyStateResponse>;
|
|
151
186
|
/** All current follower accounts, including accounts without X. */
|
|
@@ -169,11 +204,11 @@ export declare const CopySubscriptionResponse: z.ZodObject<{
|
|
|
169
204
|
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
170
205
|
createdAt: z.ZodString;
|
|
171
206
|
endedAt: z.ZodOptional<z.ZodString>;
|
|
207
|
+
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
208
|
+
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
172
209
|
grossRealizedPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
173
210
|
grossUpnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
174
211
|
fundingPayment: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
175
|
-
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
176
|
-
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
177
212
|
totalNetPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
178
213
|
id: z.ZodUUID;
|
|
179
214
|
leaderTradeAccountId: z.ZodUUID;
|
|
@@ -317,11 +352,11 @@ export declare const EndCopySubscriptionResponse: z.ZodObject<{
|
|
|
317
352
|
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
318
353
|
createdAt: z.ZodString;
|
|
319
354
|
endedAt: z.ZodOptional<z.ZodString>;
|
|
355
|
+
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
356
|
+
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
320
357
|
grossRealizedPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
321
358
|
grossUpnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
322
359
|
fundingPayment: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
323
|
-
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
324
|
-
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
325
360
|
totalNetPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
326
361
|
id: z.ZodUUID;
|
|
327
362
|
leaderTradeAccountId: z.ZodUUID;
|
|
@@ -485,6 +520,10 @@ export declare const CopyJoinResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
485
520
|
FOLLOWER_EQUITY_UNREADABLE: "FOLLOWER_EQUITY_UNREADABLE";
|
|
486
521
|
PRICE_UNAVAILABLE: "PRICE_UNAVAILABLE";
|
|
487
522
|
LEVERAGE_NOT_APPLIED: "LEVERAGE_NOT_APPLIED";
|
|
523
|
+
FOLLOWER_TWAP_NOT_ACTIVE: "FOLLOWER_TWAP_NOT_ACTIVE";
|
|
524
|
+
FOLLOWER_TWAP_ALREADY_ACTIVE: "FOLLOWER_TWAP_ALREADY_ACTIVE";
|
|
525
|
+
TRUE_UP_STALE: "TRUE_UP_STALE";
|
|
526
|
+
ASSET_CONFLICT: "ASSET_CONFLICT";
|
|
488
527
|
}>;
|
|
489
528
|
}, z.core.$strip>, z.ZodObject<{
|
|
490
529
|
leaderPositionId: z.ZodUUID;
|
|
@@ -502,11 +541,11 @@ export declare const CreateCopySubscriptionResponse: z.ZodObject<{
|
|
|
502
541
|
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
503
542
|
createdAt: z.ZodString;
|
|
504
543
|
endedAt: z.ZodOptional<z.ZodString>;
|
|
544
|
+
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
545
|
+
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
505
546
|
grossRealizedPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
506
547
|
grossUpnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
507
548
|
fundingPayment: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
508
|
-
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
509
|
-
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
510
549
|
totalNetPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
511
550
|
id: z.ZodUUID;
|
|
512
551
|
leaderTradeAccountId: z.ZodUUID;
|
|
@@ -667,6 +706,10 @@ export declare const CreateCopySubscriptionResponse: z.ZodObject<{
|
|
|
667
706
|
FOLLOWER_EQUITY_UNREADABLE: "FOLLOWER_EQUITY_UNREADABLE";
|
|
668
707
|
PRICE_UNAVAILABLE: "PRICE_UNAVAILABLE";
|
|
669
708
|
LEVERAGE_NOT_APPLIED: "LEVERAGE_NOT_APPLIED";
|
|
709
|
+
FOLLOWER_TWAP_NOT_ACTIVE: "FOLLOWER_TWAP_NOT_ACTIVE";
|
|
710
|
+
FOLLOWER_TWAP_ALREADY_ACTIVE: "FOLLOWER_TWAP_ALREADY_ACTIVE";
|
|
711
|
+
TRUE_UP_STALE: "TRUE_UP_STALE";
|
|
712
|
+
ASSET_CONFLICT: "ASSET_CONFLICT";
|
|
670
713
|
}>;
|
|
671
714
|
}, z.core.$strip>, z.ZodObject<{
|
|
672
715
|
leaderPositionId: z.ZodUUID;
|
|
@@ -826,11 +869,11 @@ export declare const CopySubscriptionListResponse: z.ZodObject<{
|
|
|
826
869
|
latestFillAt: z.ZodOptional<z.ZodString>;
|
|
827
870
|
createdAt: z.ZodString;
|
|
828
871
|
endedAt: z.ZodOptional<z.ZodString>;
|
|
872
|
+
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
873
|
+
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
829
874
|
grossRealizedPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
830
875
|
grossUpnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
831
876
|
fundingPayment: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
832
|
-
tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
833
|
-
pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
834
877
|
totalNetPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
|
|
835
878
|
id: z.ZodUUID;
|
|
836
879
|
leaderTradeAccountId: z.ZodUUID;
|
|
@@ -968,10 +1011,13 @@ export declare const CopyActivityListResponse: z.ZodObject<{
|
|
|
968
1011
|
activities: z.ZodArray<z.ZodObject<{
|
|
969
1012
|
id: z.ZodUUID;
|
|
970
1013
|
leaderAction: z.ZodEnum<{
|
|
1014
|
+
TWAP: "TWAP";
|
|
971
1015
|
OPEN: "OPEN";
|
|
972
|
-
ADJUST: "ADJUST";
|
|
973
1016
|
CLOSE: "CLOSE";
|
|
1017
|
+
ADJUST: "ADJUST";
|
|
974
1018
|
REVERSE: "REVERSE";
|
|
1019
|
+
TWAP_END: "TWAP_END";
|
|
1020
|
+
LEVERAGE_CHANGED: "LEVERAGE_CHANGED";
|
|
975
1021
|
}>;
|
|
976
1022
|
executionSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
977
1023
|
origin: z.ZodLiteral<"DIRECT">;
|
|
@@ -983,8 +1029,8 @@ export declare const CopyActivityListResponse: z.ZodObject<{
|
|
|
983
1029
|
triggerId: z.ZodString;
|
|
984
1030
|
triggerIntent: z.ZodEnum<{
|
|
985
1031
|
OPEN: "OPEN";
|
|
986
|
-
ADJUST: "ADJUST";
|
|
987
1032
|
CLOSE: "CLOSE";
|
|
1033
|
+
ADJUST: "ADJUST";
|
|
988
1034
|
}>;
|
|
989
1035
|
bracketType: z.ZodOptional<z.ZodString>;
|
|
990
1036
|
ladderId: z.ZodOptional<z.ZodString>;
|
|
@@ -1018,6 +1064,10 @@ export declare const CopyActivityListResponse: z.ZodObject<{
|
|
|
1018
1064
|
FOLLOWER_EQUITY_UNREADABLE: "FOLLOWER_EQUITY_UNREADABLE";
|
|
1019
1065
|
PRICE_UNAVAILABLE: "PRICE_UNAVAILABLE";
|
|
1020
1066
|
LEVERAGE_NOT_APPLIED: "LEVERAGE_NOT_APPLIED";
|
|
1067
|
+
FOLLOWER_TWAP_NOT_ACTIVE: "FOLLOWER_TWAP_NOT_ACTIVE";
|
|
1068
|
+
FOLLOWER_TWAP_ALREADY_ACTIVE: "FOLLOWER_TWAP_ALREADY_ACTIVE";
|
|
1069
|
+
TRUE_UP_STALE: "TRUE_UP_STALE";
|
|
1070
|
+
ASSET_CONFLICT: "ASSET_CONFLICT";
|
|
1021
1071
|
}>>;
|
|
1022
1072
|
failureReason: z.ZodOptional<z.ZodString>;
|
|
1023
1073
|
followerLegs: z.ZodArray<z.ZodObject<{
|
|
@@ -1026,6 +1076,38 @@ export declare const CopyActivityListResponse: z.ZodObject<{
|
|
|
1026
1076
|
deltaQuantity: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
1027
1077
|
}, z.core.$strip>>;
|
|
1028
1078
|
leaderEquityFraction: z.ZodOptional<z.ZodString>;
|
|
1079
|
+
twap: z.ZodOptional<z.ZodObject<{
|
|
1080
|
+
intent: z.ZodEnum<{
|
|
1081
|
+
OPEN: "OPEN";
|
|
1082
|
+
CLOSE: "CLOSE";
|
|
1083
|
+
}>;
|
|
1084
|
+
totalNotional: z.ZodString;
|
|
1085
|
+
startAt: z.ZodString;
|
|
1086
|
+
endAt: z.ZodString;
|
|
1087
|
+
sliceCount: z.ZodNumber;
|
|
1088
|
+
sliceIntervalSec: z.ZodNumber;
|
|
1089
|
+
leaderSliceCount: z.ZodNumber;
|
|
1090
|
+
reduction: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1091
|
+
kind: z.ZodLiteral<"NONE">;
|
|
1092
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1093
|
+
kind: z.ZodLiteral<"MINIMUM">;
|
|
1094
|
+
limitingLegs: z.ZodArray<z.ZodObject<{
|
|
1095
|
+
symbol: z.ZodString;
|
|
1096
|
+
minimumNotional: z.ZodString;
|
|
1097
|
+
}, z.core.$strip>>;
|
|
1098
|
+
}, z.core.$strip>], "kind">;
|
|
1099
|
+
progress: z.ZodOptional<z.ZodObject<{
|
|
1100
|
+
status: z.ZodEnum<{
|
|
1101
|
+
ACTIVE: "ACTIVE";
|
|
1102
|
+
COMPLETED: "COMPLETED";
|
|
1103
|
+
FAILED: "FAILED";
|
|
1104
|
+
CANCELLED: "CANCELLED";
|
|
1105
|
+
}>;
|
|
1106
|
+
filledNotional: z.ZodString;
|
|
1107
|
+
executedSliceCount: z.ZodNumber;
|
|
1108
|
+
partiallyFilled: z.ZodBoolean;
|
|
1109
|
+
}, z.core.$strip>>;
|
|
1110
|
+
}, z.core.$strip>>;
|
|
1029
1111
|
createdAt: z.ZodString;
|
|
1030
1112
|
}, z.core.$strip>>;
|
|
1031
1113
|
}, z.core.$strip>;
|
|
@@ -1057,14 +1139,16 @@ export declare const CopyFollowerStats: z.ZodObject<{
|
|
|
1057
1139
|
}>;
|
|
1058
1140
|
copiedTrades: z.ZodNumber;
|
|
1059
1141
|
copiedVolumeUsd: z.ZodString;
|
|
1142
|
+
rewardsEarnedUsd: z.ZodString;
|
|
1060
1143
|
}, z.core.$strip>;
|
|
1061
1144
|
export type CopyFollowerStats = z.output<typeof CopyFollowerStats>;
|
|
1062
|
-
/** Owner-only copy totals from tagged history; date filters apply only to trades and
|
|
1145
|
+
/** Owner-only copy totals from tagged history; date filters apply only to trades, volume and leader reward earnings. */
|
|
1063
1146
|
export declare const CopyStatsResponse: z.ZodObject<{
|
|
1064
1147
|
currentFollowerCount: z.ZodNumber;
|
|
1065
1148
|
lifetimeFollowerCount: z.ZodNumber;
|
|
1066
1149
|
copiedTrades: z.ZodNumber;
|
|
1067
1150
|
copiedVolumeUsd: z.ZodString;
|
|
1151
|
+
rewardsEarnedUsd: z.ZodString;
|
|
1068
1152
|
followers: z.ZodArray<z.ZodObject<{
|
|
1069
1153
|
tradeAccountId: z.ZodUUID;
|
|
1070
1154
|
xUserId: z.ZodOptional<z.ZodString>;
|
|
@@ -1077,6 +1161,7 @@ export declare const CopyStatsResponse: z.ZodObject<{
|
|
|
1077
1161
|
}>;
|
|
1078
1162
|
copiedTrades: z.ZodNumber;
|
|
1079
1163
|
copiedVolumeUsd: z.ZodString;
|
|
1164
|
+
rewardsEarnedUsd: z.ZodString;
|
|
1080
1165
|
}, z.core.$strip>>;
|
|
1081
1166
|
}, z.core.$strip>;
|
|
1082
1167
|
export type CopyStatsResponse = z.output<typeof CopyStatsResponse>;
|