@polyester/sdk 0.4.0 → 0.4.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/CHANGELOG.md +16 -0
- package/dist/_virtual/_rolldown/runtime.js +1 -15
- package/dist/catalogs/snapshot-validation.js +63 -63
- package/dist/catalogs/snapshot-validation.js.map +1 -1
- package/dist/core-client.d.ts +9 -0
- package/dist/core-client.d.ts.map +1 -1
- package/dist/core-client.js +21 -0
- package/dist/core-client.js.map +1 -1
- package/dist/gen/fees/v1/fees_pb.d.ts +124 -0
- package/dist/gen/fees/v1/fees_pb.d.ts.map +1 -0
- package/dist/gen/fees/v1/fees_pb.js +39 -0
- package/dist/gen/fees/v1/fees_pb.js.map +1 -0
- package/dist/gen/index.d.ts +4 -1
- package/dist/gen/index.js +4 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +223 -0
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts.map +1 -0
- package/dist/gen/ratelimit/v1/ratelimit_pb.js +86 -0
- package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -0
- package/dist/gen/vip/v1/vip_pb.d.ts +277 -0
- package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -0
- package/dist/gen/vip/v1/vip_pb.js +60 -0
- package/dist/gen/vip/v1/vip_pb.js.map +1 -0
- package/dist/index.d.ts +8 -1
- package/dist/services/accounts/accounts.js +1 -1
- package/dist/services/accounts/accounts.js.map +1 -1
- package/dist/services/accounts/accounts.schemas.d.ts +13 -13
- package/dist/services/accounts/accounts.schemas.d.ts.map +1 -1
- package/dist/services/accounts/accounts.schemas.js +11 -11
- package/dist/services/accounts/accounts.schemas.js.map +1 -1
- package/dist/services/address-book/address-book.js.map +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +751 -751
- package/dist/services/address-book/address-book.schemas.d.ts.map +1 -1
- package/dist/services/address-book/address-book.schemas.js +160 -159
- package/dist/services/address-book/address-book.schemas.js.map +1 -1
- package/dist/services/api-keys/api-keys.d.ts +6 -6
- package/dist/services/api-keys/api-keys.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.js.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.d.ts +62 -62
- package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.js +34 -34
- package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
- package/dist/services/auth/auth.d.ts +39 -39
- package/dist/services/auth/auth.d.ts.map +1 -1
- package/dist/services/auth/auth.js +19 -18
- package/dist/services/auth/auth.js.map +1 -1
- package/dist/services/auth/profile/profile.d.ts +2 -2
- package/dist/services/auth/profile/profile.d.ts.map +1 -1
- package/dist/services/auth/profile/profile.js +3 -2
- package/dist/services/auth/profile/profile.js.map +1 -1
- package/dist/services/auth/profile/profile.schemas.d.ts +41 -41
- package/dist/services/auth/profile/profile.schemas.d.ts.map +1 -1
- package/dist/services/auth/profile/profile.schemas.js +27 -27
- package/dist/services/auth/profile/profile.schemas.js.map +1 -1
- package/dist/services/auth/session.schemas.js +17 -17
- package/dist/services/auth/session.schemas.js.map +1 -1
- package/dist/services/balances/balances.d.ts.map +1 -1
- package/dist/services/balances/balances.js +3 -2
- package/dist/services/balances/balances.js.map +1 -1
- package/dist/services/balances/balances.schemas.d.ts +95 -95
- package/dist/services/balances/balances.schemas.d.ts.map +1 -1
- package/dist/services/balances/balances.schemas.js +61 -61
- package/dist/services/balances/balances.schemas.js.map +1 -1
- package/dist/services/candles/candles.d.ts.map +1 -1
- package/dist/services/candles/candles.js +5 -4
- package/dist/services/candles/candles.js.map +1 -1
- package/dist/services/candles/candles.schemas.d.ts +64 -64
- package/dist/services/candles/candles.schemas.d.ts.map +1 -1
- package/dist/services/candles/candles.schemas.js +47 -47
- package/dist/services/candles/candles.schemas.js.map +1 -1
- package/dist/services/chain-analytics/chain-analytics.js.map +1 -1
- package/dist/services/chain-analytics/chain-analytics.schemas.d.ts +68 -68
- package/dist/services/chain-analytics/chain-analytics.schemas.d.ts.map +1 -1
- package/dist/services/chain-analytics/chain-analytics.schemas.js +29 -29
- package/dist/services/chain-analytics/chain-analytics.schemas.js.map +1 -1
- package/dist/services/deposit/deposit.js.map +1 -1
- package/dist/services/deposit/deposit.schemas.d.ts +17 -17
- package/dist/services/deposit/deposit.schemas.d.ts.map +1 -1
- package/dist/services/deposit/deposit.schemas.js +11 -11
- package/dist/services/deposit/deposit.schemas.js.map +1 -1
- package/dist/services/fees/fees.d.ts +19 -0
- package/dist/services/fees/fees.d.ts.map +1 -0
- package/dist/services/fees/fees.js +32 -0
- package/dist/services/fees/fees.js.map +1 -0
- package/dist/services/fees/fees.schemas.d.ts +28 -0
- package/dist/services/fees/fees.schemas.d.ts.map +1 -0
- package/dist/services/fees/fees.schemas.js +25 -0
- package/dist/services/fees/fees.schemas.js.map +1 -0
- package/dist/services/fees/fees.types.d.ts +2 -0
- package/dist/services/fees/index.d.ts +3 -0
- package/dist/services/guard-signer/guard-signer.js.map +1 -1
- package/dist/services/guard-signer/guard-signer.schemas.d.ts +75 -75
- package/dist/services/guard-signer/guard-signer.schemas.d.ts.map +1 -1
- package/dist/services/guard-signer/guard-signer.schemas.js +42 -42
- package/dist/services/guard-signer/guard-signer.schemas.js.map +1 -1
- package/dist/services/heatmap/heatmap.d.ts.map +1 -1
- package/dist/services/heatmap/heatmap.js +5 -4
- package/dist/services/heatmap/heatmap.js.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +138 -138
- package/dist/services/heatmap/heatmap.schemas.d.ts.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.js +47 -47
- package/dist/services/heatmap/heatmap.schemas.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +53 -53
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.js +27 -27
- package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.js +3 -2
- package/dist/services/lifecycle/lifecycle.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +614 -614
- package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.js +146 -146
- package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
- package/dist/services/market-data/market-data.d.ts.map +1 -1
- package/dist/services/market-data/market-data.js +4 -3
- package/dist/services/market-data/market-data.js.map +1 -1
- package/dist/services/market-data/market-data.schemas.d.ts +19 -19
- package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
- package/dist/services/market-data/market-data.schemas.js +50 -50
- package/dist/services/market-data/market-data.schemas.js.map +1 -1
- package/dist/services/market-overview/market-overview.d.ts.map +1 -1
- package/dist/services/market-overview/market-overview.js +3 -2
- package/dist/services/market-overview/market-overview.js.map +1 -1
- package/dist/services/market-overview/market-overview.schemas.d.ts +37 -37
- package/dist/services/market-overview/market-overview.schemas.d.ts.map +1 -1
- package/dist/services/market-overview/market-overview.schemas.js +33 -33
- package/dist/services/market-overview/market-overview.schemas.js.map +1 -1
- package/dist/services/mfa/mfa.js +1 -1
- package/dist/services/mfa/mfa.js.map +1 -1
- package/dist/services/mfa/mfa.schemas.d.ts +206 -206
- package/dist/services/mfa/mfa.schemas.d.ts.map +1 -1
- package/dist/services/mfa/mfa.schemas.js +83 -83
- package/dist/services/mfa/mfa.schemas.js.map +1 -1
- package/dist/services/orderbook/orderbook.d.ts +2 -2
- package/dist/services/orderbook/orderbook.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.js +3 -2
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.d.ts +23 -23
- package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.js +15 -15
- package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +18 -18
- package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
- package/dist/services/orders/order-errors.schemas.js +8 -8
- package/dist/services/orders/order-errors.schemas.js.map +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +492 -492
- package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-batch.schemas.js +117 -117
- package/dist/services/orders/orders-batch.schemas.js.map +1 -1
- package/dist/services/orders/orders-identifiers.schemas.js +5 -5
- package/dist/services/orders/orders-identifiers.schemas.js.map +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +648 -648
- package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-input.schemas.js +95 -95
- package/dist/services/orders/orders-input.schemas.js.map +1 -1
- package/dist/services/orders/orders-modify.schemas.d.ts +351 -351
- package/dist/services/orders/orders-modify.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-modify.schemas.js +44 -44
- package/dist/services/orders/orders-modify.schemas.js.map +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +179 -179
- package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-output.schemas.js +49 -49
- package/dist/services/orders/orders-output.schemas.js.map +1 -1
- package/dist/services/orders/orders-risk.schemas.d.ts +226 -226
- package/dist/services/orders/orders-risk.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-risk.schemas.js +69 -69
- package/dist/services/orders/orders-risk.schemas.js.map +1 -1
- package/dist/services/orders/orders.d.ts +6 -6
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +4 -3
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.d.ts +6 -6
- package/dist/services/policies/api-key-policies/api-key-policies.d.ts.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +105 -105
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +49 -49
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.js.map +1 -1
- package/dist/services/policies/shared.d.ts +5 -5
- package/dist/services/policies/shared.d.ts.map +1 -1
- package/dist/services/policies/shared.js +10 -10
- package/dist/services/policies/shared.js.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts +6 -6
- package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.js +3 -2
- package/dist/services/policies/subaccount-policies/subaccount-policies.js.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +124 -124
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +75 -75
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
- package/dist/services/rate-limits/index.d.ts +4 -0
- package/dist/services/rate-limits/rate-limits.codecs.d.ts +6 -0
- package/dist/services/rate-limits/rate-limits.codecs.d.ts.map +1 -0
- package/dist/services/rate-limits/rate-limits.codecs.js +11 -0
- package/dist/services/rate-limits/rate-limits.codecs.js.map +1 -0
- package/dist/services/rate-limits/rate-limits.d.ts +24 -0
- package/dist/services/rate-limits/rate-limits.d.ts.map +1 -0
- package/dist/services/rate-limits/rate-limits.js +40 -0
- package/dist/services/rate-limits/rate-limits.js.map +1 -0
- package/dist/services/rate-limits/rate-limits.schemas.d.ts +58 -0
- package/dist/services/rate-limits/rate-limits.schemas.d.ts.map +1 -0
- package/dist/services/rate-limits/rate-limits.schemas.js +30 -0
- package/dist/services/rate-limits/rate-limits.schemas.js.map +1 -0
- package/dist/services/rate-limits/rate-limits.types.d.ts +3 -0
- package/dist/services/shared.js +11 -11
- package/dist/services/shared.js.map +1 -1
- package/dist/services/social-verification/social-verification.d.ts +3 -3
- package/dist/services/social-verification/social-verification.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.js.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.d.ts +54 -54
- package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +28 -28
- package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.d.ts +14 -14
- package/dist/services/subaccounts/subaccounts.d.ts.map +1 -1
- package/dist/services/subaccounts/subaccounts.js +9 -8
- package/dist/services/subaccounts/subaccounts.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +137 -137
- package/dist/services/subaccounts/subaccounts.schemas.d.ts.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.js +72 -72
- package/dist/services/subaccounts/subaccounts.schemas.js.map +1 -1
- package/dist/services/trades/trades.d.ts +2 -2
- package/dist/services/trades/trades.d.ts.map +1 -1
- package/dist/services/trades/trades.js +3 -2
- package/dist/services/trades/trades.js.map +1 -1
- package/dist/services/trades/trades.schemas.d.ts +31 -31
- package/dist/services/trades/trades.schemas.d.ts.map +1 -1
- package/dist/services/trades/trades.schemas.js +24 -24
- package/dist/services/trades/trades.schemas.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +45 -45
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +36 -36
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/transfers/transfers.d.ts.map +1 -1
- package/dist/services/transfers/transfers.js +3 -2
- package/dist/services/transfers/transfers.js.map +1 -1
- package/dist/services/transfers/transfers.schemas.d.ts +42 -42
- package/dist/services/transfers/transfers.schemas.d.ts.map +1 -1
- package/dist/services/transfers/transfers.schemas.js +30 -30
- package/dist/services/transfers/transfers.schemas.js.map +1 -1
- package/dist/services/triggers/trigger-child-order.schemas.js +23 -23
- package/dist/services/triggers/trigger-child-order.schemas.js.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +226 -226
- package/dist/services/triggers/trigger-input.schemas.d.ts.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.js +53 -53
- package/dist/services/triggers/trigger-input.schemas.js.map +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +218 -218
- package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
- package/dist/services/triggers/triggers-output.schemas.js +152 -152
- package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
- package/dist/services/triggers/triggers.d.ts.map +1 -1
- package/dist/services/triggers/triggers.js +4 -3
- package/dist/services/triggers/triggers.js.map +1 -1
- package/dist/services/vip/index.d.ts +3 -0
- package/dist/services/vip/vip.d.ts +22 -0
- package/dist/services/vip/vip.d.ts.map +1 -0
- package/dist/services/vip/vip.js +35 -0
- package/dist/services/vip/vip.js.map +1 -0
- package/dist/services/vip/vip.schemas.d.ts +90 -0
- package/dist/services/vip/vip.schemas.d.ts.map +1 -0
- package/dist/services/vip/vip.schemas.js +47 -0
- package/dist/services/vip/vip.schemas.js.map +1 -0
- package/dist/services/vip/vip.types.d.ts +2 -0
- package/dist/services/whiteboard/whiteboard.js.map +1 -1
- package/dist/services/whiteboard/whiteboard.schemas.d.ts +379 -379
- package/dist/services/whiteboard/whiteboard.schemas.d.ts.map +1 -1
- package/dist/services/whiteboard/whiteboard.schemas.js +71 -71
- package/dist/services/whiteboard/whiteboard.schemas.js.map +1 -1
- package/dist/services/zipper/zipper.js.map +1 -1
- package/dist/services/zipper/zipper.schemas.d.ts +1 -1
- package/dist/services/zipper/zipper.schemas.js +54 -54
- package/dist/services/zipper/zipper.schemas.js.map +1 -1
- package/dist/shared/account-scope.d.ts +6 -6
- package/dist/shared/account-scope.d.ts.map +1 -1
- package/dist/shared/account-scope.js +3 -3
- package/dist/shared/account-scope.js.map +1 -1
- package/dist/shared/connect-error-mapping.js +2 -2
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +12 -12
- package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
- package/dist/shared/rate-limit.schemas.js +7 -7
- package/dist/shared/rate-limit.schemas.js.map +1 -1
- package/dist/shared/schemas.js +26 -26
- package/dist/shared/schemas.js.map +1 -1
- package/dist/shared/validation.js +1 -6
- package/dist/shared/validation.js.map +1 -1
- package/dist/utils/connect-order-errors.js +2 -2
- package/dist/utils/connect-order-errors.js.map +1 -1
- package/dist/wired-services.d.ts.map +1 -1
- package/dist/wired-services.js +6 -0
- package/dist/wired-services.js.map +1 -1
- package/package.json +3 -3
- package/dist/shared/validation.d.ts +0 -14
- package/dist/shared/validation.d.ts.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { validation_d_exports } from "../../shared/validation.js";
|
|
2
1
|
import { RiskLimitGtc, RiskMarketIoc } from "../../gen/orders/v1/orders_pb.js";
|
|
3
2
|
import { SdkScales } from "../../shared/decimal-surface.js";
|
|
3
|
+
import * as v from "valibot";
|
|
4
4
|
//#region src/services/orders/orders-risk.schemas.d.ts
|
|
5
|
-
declare function attachedTriggerInputSchema(scales: SdkScales, fieldPrefix: "takeProfit" | "stopLoss"):
|
|
6
|
-
readonly triggerPrice:
|
|
7
|
-
readonly execution:
|
|
8
|
-
readonly type:
|
|
9
|
-
}, undefined>,
|
|
10
|
-
readonly type:
|
|
11
|
-
readonly price:
|
|
5
|
+
declare function attachedTriggerInputSchema(scales: SdkScales, fieldPrefix: "takeProfit" | "stopLoss"): v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
6
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
7
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
8
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
9
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
10
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
11
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
12
12
|
}, undefined>], undefined>;
|
|
13
|
-
}, undefined>,
|
|
13
|
+
}, undefined>, v.TransformAction<{
|
|
14
14
|
triggerPrice: string;
|
|
15
15
|
execution: {
|
|
16
16
|
type: "market_ioc";
|
|
@@ -30,27 +30,27 @@ declare function attachedTriggerInputSchema(scales: SdkScales, fieldPrefix: "tak
|
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
}>]>;
|
|
33
|
-
declare function createTrailingStopInputSchema(scales: SdkScales):
|
|
34
|
-
readonly trailingDistance:
|
|
35
|
-
readonly kind:
|
|
36
|
-
readonly distance:
|
|
37
|
-
}, undefined>,
|
|
38
|
-
readonly kind:
|
|
39
|
-
readonly bps:
|
|
40
|
-
}, undefined>,
|
|
41
|
-
readonly kind:
|
|
33
|
+
declare function createTrailingStopInputSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
34
|
+
readonly trailingDistance: v.UnionSchema<[v.StrictObjectSchema<{
|
|
35
|
+
readonly kind: v.LiteralSchema<"distance", undefined>;
|
|
36
|
+
readonly distance: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
37
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
38
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
39
|
+
readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
40
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
41
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
42
42
|
}, undefined>], undefined>;
|
|
43
|
-
readonly maxSlippage:
|
|
44
|
-
readonly kind:
|
|
45
|
-
readonly slippage:
|
|
46
|
-
}, undefined>,
|
|
47
|
-
readonly kind:
|
|
48
|
-
readonly bps:
|
|
49
|
-
}, undefined>,
|
|
50
|
-
readonly kind:
|
|
43
|
+
readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
44
|
+
readonly kind: v.LiteralSchema<"slippage", undefined>;
|
|
45
|
+
readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
46
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
47
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
48
|
+
readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
49
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
50
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
51
51
|
}, undefined>], undefined>, undefined>;
|
|
52
|
-
readonly activationPrice:
|
|
53
|
-
}, undefined>,
|
|
52
|
+
readonly activationPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
53
|
+
}, undefined>, v.TransformAction<{
|
|
54
54
|
trailingDistance: {
|
|
55
55
|
kind: "bps";
|
|
56
56
|
bps: string | number;
|
|
@@ -93,16 +93,16 @@ declare function createTrailingStopInputSchema(scales: SdkScales): validation_d_
|
|
|
93
93
|
};
|
|
94
94
|
activationPriceTicks: bigint;
|
|
95
95
|
}>]>;
|
|
96
|
-
declare function createRiskPolicyInputSchema(scales: SdkScales):
|
|
97
|
-
readonly takeProfit:
|
|
98
|
-
readonly triggerPrice:
|
|
99
|
-
readonly execution:
|
|
100
|
-
readonly type:
|
|
101
|
-
}, undefined>,
|
|
102
|
-
readonly type:
|
|
103
|
-
readonly price:
|
|
96
|
+
declare function createRiskPolicyInputSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
97
|
+
readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
98
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
99
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
100
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
101
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
102
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
103
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
104
104
|
}, undefined>], undefined>;
|
|
105
|
-
}, undefined>,
|
|
105
|
+
}, undefined>, v.TransformAction<{
|
|
106
106
|
triggerPrice: string;
|
|
107
107
|
execution: {
|
|
108
108
|
type: "market_ioc";
|
|
@@ -122,15 +122,15 @@ declare function createRiskPolicyInputSchema(scales: SdkScales): validation_d_ex
|
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
124
|
}>]>;
|
|
125
|
-
readonly stopLoss:
|
|
126
|
-
readonly triggerPrice:
|
|
127
|
-
readonly execution:
|
|
128
|
-
readonly type:
|
|
129
|
-
}, undefined>,
|
|
130
|
-
readonly type:
|
|
131
|
-
readonly price:
|
|
125
|
+
readonly stopLoss: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
126
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
127
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
128
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
129
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
130
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
131
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
132
132
|
}, undefined>], undefined>;
|
|
133
|
-
}, undefined>,
|
|
133
|
+
}, undefined>, v.TransformAction<{
|
|
134
134
|
triggerPrice: string;
|
|
135
135
|
execution: {
|
|
136
136
|
type: "market_ioc";
|
|
@@ -150,18 +150,18 @@ declare function createRiskPolicyInputSchema(scales: SdkScales): validation_d_ex
|
|
|
150
150
|
};
|
|
151
151
|
};
|
|
152
152
|
}>]>;
|
|
153
|
-
readonly trailingStop:
|
|
154
|
-
readonly oco:
|
|
155
|
-
}, undefined>,
|
|
156
|
-
readonly takeProfit:
|
|
157
|
-
readonly triggerPrice:
|
|
158
|
-
readonly execution:
|
|
159
|
-
readonly type:
|
|
160
|
-
}, undefined>,
|
|
161
|
-
readonly type:
|
|
162
|
-
readonly price:
|
|
153
|
+
readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
154
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
155
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
156
|
+
readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
157
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
158
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
159
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
160
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
161
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
162
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
163
163
|
}, undefined>], undefined>;
|
|
164
|
-
}, undefined>,
|
|
164
|
+
}, undefined>, v.TransformAction<{
|
|
165
165
|
triggerPrice: string;
|
|
166
166
|
execution: {
|
|
167
167
|
type: "market_ioc";
|
|
@@ -181,28 +181,28 @@ declare function createRiskPolicyInputSchema(scales: SdkScales): validation_d_ex
|
|
|
181
181
|
};
|
|
182
182
|
};
|
|
183
183
|
}>]>;
|
|
184
|
-
readonly stopLoss:
|
|
185
|
-
readonly trailingStop:
|
|
186
|
-
readonly trailingDistance:
|
|
187
|
-
readonly kind:
|
|
188
|
-
readonly distance:
|
|
189
|
-
}, undefined>,
|
|
190
|
-
readonly kind:
|
|
191
|
-
readonly bps:
|
|
192
|
-
}, undefined>,
|
|
193
|
-
readonly kind:
|
|
184
|
+
readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
185
|
+
readonly trailingStop: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
186
|
+
readonly trailingDistance: v.UnionSchema<[v.StrictObjectSchema<{
|
|
187
|
+
readonly kind: v.LiteralSchema<"distance", undefined>;
|
|
188
|
+
readonly distance: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
189
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
190
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
191
|
+
readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
192
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
193
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
194
194
|
}, undefined>], undefined>;
|
|
195
|
-
readonly maxSlippage:
|
|
196
|
-
readonly kind:
|
|
197
|
-
readonly slippage:
|
|
198
|
-
}, undefined>,
|
|
199
|
-
readonly kind:
|
|
200
|
-
readonly bps:
|
|
201
|
-
}, undefined>,
|
|
202
|
-
readonly kind:
|
|
195
|
+
readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
196
|
+
readonly kind: v.LiteralSchema<"slippage", undefined>;
|
|
197
|
+
readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
198
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
199
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
200
|
+
readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
201
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
202
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
203
203
|
}, undefined>], undefined>, undefined>;
|
|
204
|
-
readonly activationPrice:
|
|
205
|
-
}, undefined>,
|
|
204
|
+
readonly activationPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
205
|
+
}, undefined>, v.TransformAction<{
|
|
206
206
|
trailingDistance: {
|
|
207
207
|
kind: "bps";
|
|
208
208
|
bps: string | number;
|
|
@@ -245,17 +245,17 @@ declare function createRiskPolicyInputSchema(scales: SdkScales): validation_d_ex
|
|
|
245
245
|
};
|
|
246
246
|
activationPriceTicks: bigint;
|
|
247
247
|
}>]>;
|
|
248
|
-
readonly oco:
|
|
249
|
-
}, undefined>,
|
|
250
|
-
readonly takeProfit:
|
|
251
|
-
readonly triggerPrice:
|
|
252
|
-
readonly execution:
|
|
253
|
-
readonly type:
|
|
254
|
-
}, undefined>,
|
|
255
|
-
readonly type:
|
|
256
|
-
readonly price:
|
|
248
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
249
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
250
|
+
readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
251
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
252
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
253
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
254
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
255
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
256
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
257
257
|
}, undefined>], undefined>;
|
|
258
|
-
}, undefined>,
|
|
258
|
+
}, undefined>, v.TransformAction<{
|
|
259
259
|
triggerPrice: string;
|
|
260
260
|
execution: {
|
|
261
261
|
type: "market_ioc";
|
|
@@ -275,20 +275,20 @@ declare function createRiskPolicyInputSchema(scales: SdkScales): validation_d_ex
|
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
277
|
}>]>;
|
|
278
|
-
readonly stopLoss:
|
|
279
|
-
readonly trailingStop:
|
|
280
|
-
readonly oco:
|
|
281
|
-
}, undefined>,
|
|
282
|
-
readonly takeProfit:
|
|
283
|
-
readonly stopLoss:
|
|
284
|
-
readonly triggerPrice:
|
|
285
|
-
readonly execution:
|
|
286
|
-
readonly type:
|
|
287
|
-
}, undefined>,
|
|
288
|
-
readonly type:
|
|
289
|
-
readonly price:
|
|
278
|
+
readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
279
|
+
readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
280
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
281
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
282
|
+
readonly takeProfit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
283
|
+
readonly stopLoss: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
284
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
285
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
286
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
287
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
288
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
289
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
290
290
|
}, undefined>], undefined>;
|
|
291
|
-
}, undefined>,
|
|
291
|
+
}, undefined>, v.TransformAction<{
|
|
292
292
|
triggerPrice: string;
|
|
293
293
|
execution: {
|
|
294
294
|
type: "market_ioc";
|
|
@@ -308,32 +308,32 @@ declare function createRiskPolicyInputSchema(scales: SdkScales): validation_d_ex
|
|
|
308
308
|
};
|
|
309
309
|
};
|
|
310
310
|
}>]>;
|
|
311
|
-
readonly trailingStop:
|
|
312
|
-
readonly oco:
|
|
313
|
-
}, undefined>,
|
|
314
|
-
readonly takeProfit:
|
|
315
|
-
readonly stopLoss:
|
|
316
|
-
readonly trailingStop:
|
|
317
|
-
readonly trailingDistance:
|
|
318
|
-
readonly kind:
|
|
319
|
-
readonly distance:
|
|
320
|
-
}, undefined>,
|
|
321
|
-
readonly kind:
|
|
322
|
-
readonly bps:
|
|
323
|
-
}, undefined>,
|
|
324
|
-
readonly kind:
|
|
311
|
+
readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
312
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
313
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
314
|
+
readonly takeProfit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
315
|
+
readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
316
|
+
readonly trailingStop: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
317
|
+
readonly trailingDistance: v.UnionSchema<[v.StrictObjectSchema<{
|
|
318
|
+
readonly kind: v.LiteralSchema<"distance", undefined>;
|
|
319
|
+
readonly distance: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
320
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
321
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
322
|
+
readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
323
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
324
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
325
325
|
}, undefined>], undefined>;
|
|
326
|
-
readonly maxSlippage:
|
|
327
|
-
readonly kind:
|
|
328
|
-
readonly slippage:
|
|
329
|
-
}, undefined>,
|
|
330
|
-
readonly kind:
|
|
331
|
-
readonly bps:
|
|
332
|
-
}, undefined>,
|
|
333
|
-
readonly kind:
|
|
326
|
+
readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
327
|
+
readonly kind: v.LiteralSchema<"slippage", undefined>;
|
|
328
|
+
readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
329
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
330
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
331
|
+
readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
332
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
333
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
334
334
|
}, undefined>], undefined>, undefined>;
|
|
335
|
-
readonly activationPrice:
|
|
336
|
-
}, undefined>,
|
|
335
|
+
readonly activationPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
336
|
+
}, undefined>, v.TransformAction<{
|
|
337
337
|
trailingDistance: {
|
|
338
338
|
kind: "bps";
|
|
339
339
|
bps: string | number;
|
|
@@ -376,8 +376,8 @@ declare function createRiskPolicyInputSchema(scales: SdkScales): validation_d_ex
|
|
|
376
376
|
};
|
|
377
377
|
activationPriceTicks: bigint;
|
|
378
378
|
}>]>;
|
|
379
|
-
readonly oco:
|
|
380
|
-
}, undefined>], undefined>, undefined>,
|
|
379
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
380
|
+
}, undefined>], undefined>, undefined>, v.TransformAction<{
|
|
381
381
|
takeProfit: {
|
|
382
382
|
triggerPriceTicks: bigint;
|
|
383
383
|
child: {
|
|
@@ -559,16 +559,16 @@ declare function createRiskPolicyInputSchema(scales: SdkScales): validation_d_ex
|
|
|
559
559
|
};
|
|
560
560
|
oco: boolean;
|
|
561
561
|
} | undefined>]>;
|
|
562
|
-
declare function createRequiredRiskPolicyInputSchema(scales: SdkScales):
|
|
563
|
-
readonly takeProfit:
|
|
564
|
-
readonly triggerPrice:
|
|
565
|
-
readonly execution:
|
|
566
|
-
readonly type:
|
|
567
|
-
}, undefined>,
|
|
568
|
-
readonly type:
|
|
569
|
-
readonly price:
|
|
562
|
+
declare function createRequiredRiskPolicyInputSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StrictObjectSchema<{
|
|
563
|
+
readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
564
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
565
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
566
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
567
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
568
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
569
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
570
570
|
}, undefined>], undefined>;
|
|
571
|
-
}, undefined>,
|
|
571
|
+
}, undefined>, v.TransformAction<{
|
|
572
572
|
triggerPrice: string;
|
|
573
573
|
execution: {
|
|
574
574
|
type: "market_ioc";
|
|
@@ -588,15 +588,15 @@ declare function createRequiredRiskPolicyInputSchema(scales: SdkScales): validat
|
|
|
588
588
|
};
|
|
589
589
|
};
|
|
590
590
|
}>]>;
|
|
591
|
-
readonly stopLoss:
|
|
592
|
-
readonly triggerPrice:
|
|
593
|
-
readonly execution:
|
|
594
|
-
readonly type:
|
|
595
|
-
}, undefined>,
|
|
596
|
-
readonly type:
|
|
597
|
-
readonly price:
|
|
591
|
+
readonly stopLoss: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
592
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
593
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
594
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
595
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
596
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
597
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
598
598
|
}, undefined>], undefined>;
|
|
599
|
-
}, undefined>,
|
|
599
|
+
}, undefined>, v.TransformAction<{
|
|
600
600
|
triggerPrice: string;
|
|
601
601
|
execution: {
|
|
602
602
|
type: "market_ioc";
|
|
@@ -616,18 +616,18 @@ declare function createRequiredRiskPolicyInputSchema(scales: SdkScales): validat
|
|
|
616
616
|
};
|
|
617
617
|
};
|
|
618
618
|
}>]>;
|
|
619
|
-
readonly trailingStop:
|
|
620
|
-
readonly oco:
|
|
621
|
-
}, undefined>,
|
|
622
|
-
readonly takeProfit:
|
|
623
|
-
readonly triggerPrice:
|
|
624
|
-
readonly execution:
|
|
625
|
-
readonly type:
|
|
626
|
-
}, undefined>,
|
|
627
|
-
readonly type:
|
|
628
|
-
readonly price:
|
|
619
|
+
readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
620
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
621
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
622
|
+
readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
623
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
624
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
625
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
626
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
627
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
628
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
629
629
|
}, undefined>], undefined>;
|
|
630
|
-
}, undefined>,
|
|
630
|
+
}, undefined>, v.TransformAction<{
|
|
631
631
|
triggerPrice: string;
|
|
632
632
|
execution: {
|
|
633
633
|
type: "market_ioc";
|
|
@@ -647,28 +647,28 @@ declare function createRequiredRiskPolicyInputSchema(scales: SdkScales): validat
|
|
|
647
647
|
};
|
|
648
648
|
};
|
|
649
649
|
}>]>;
|
|
650
|
-
readonly stopLoss:
|
|
651
|
-
readonly trailingStop:
|
|
652
|
-
readonly trailingDistance:
|
|
653
|
-
readonly kind:
|
|
654
|
-
readonly distance:
|
|
655
|
-
}, undefined>,
|
|
656
|
-
readonly kind:
|
|
657
|
-
readonly bps:
|
|
658
|
-
}, undefined>,
|
|
659
|
-
readonly kind:
|
|
650
|
+
readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
651
|
+
readonly trailingStop: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
652
|
+
readonly trailingDistance: v.UnionSchema<[v.StrictObjectSchema<{
|
|
653
|
+
readonly kind: v.LiteralSchema<"distance", undefined>;
|
|
654
|
+
readonly distance: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
655
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
656
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
657
|
+
readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
658
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
659
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
660
660
|
}, undefined>], undefined>;
|
|
661
|
-
readonly maxSlippage:
|
|
662
|
-
readonly kind:
|
|
663
|
-
readonly slippage:
|
|
664
|
-
}, undefined>,
|
|
665
|
-
readonly kind:
|
|
666
|
-
readonly bps:
|
|
667
|
-
}, undefined>,
|
|
668
|
-
readonly kind:
|
|
661
|
+
readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
662
|
+
readonly kind: v.LiteralSchema<"slippage", undefined>;
|
|
663
|
+
readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
664
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
665
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
666
|
+
readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
667
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
668
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
669
669
|
}, undefined>], undefined>, undefined>;
|
|
670
|
-
readonly activationPrice:
|
|
671
|
-
}, undefined>,
|
|
670
|
+
readonly activationPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
671
|
+
}, undefined>, v.TransformAction<{
|
|
672
672
|
trailingDistance: {
|
|
673
673
|
kind: "bps";
|
|
674
674
|
bps: string | number;
|
|
@@ -711,17 +711,17 @@ declare function createRequiredRiskPolicyInputSchema(scales: SdkScales): validat
|
|
|
711
711
|
};
|
|
712
712
|
activationPriceTicks: bigint;
|
|
713
713
|
}>]>;
|
|
714
|
-
readonly oco:
|
|
715
|
-
}, undefined>,
|
|
716
|
-
readonly takeProfit:
|
|
717
|
-
readonly triggerPrice:
|
|
718
|
-
readonly execution:
|
|
719
|
-
readonly type:
|
|
720
|
-
}, undefined>,
|
|
721
|
-
readonly type:
|
|
722
|
-
readonly price:
|
|
714
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
715
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
716
|
+
readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
717
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
718
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
719
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
720
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
721
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
722
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
723
723
|
}, undefined>], undefined>;
|
|
724
|
-
}, undefined>,
|
|
724
|
+
}, undefined>, v.TransformAction<{
|
|
725
725
|
triggerPrice: string;
|
|
726
726
|
execution: {
|
|
727
727
|
type: "market_ioc";
|
|
@@ -741,20 +741,20 @@ declare function createRequiredRiskPolicyInputSchema(scales: SdkScales): validat
|
|
|
741
741
|
};
|
|
742
742
|
};
|
|
743
743
|
}>]>;
|
|
744
|
-
readonly stopLoss:
|
|
745
|
-
readonly trailingStop:
|
|
746
|
-
readonly oco:
|
|
747
|
-
}, undefined>,
|
|
748
|
-
readonly takeProfit:
|
|
749
|
-
readonly stopLoss:
|
|
750
|
-
readonly triggerPrice:
|
|
751
|
-
readonly execution:
|
|
752
|
-
readonly type:
|
|
753
|
-
}, undefined>,
|
|
754
|
-
readonly type:
|
|
755
|
-
readonly price:
|
|
744
|
+
readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
745
|
+
readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
746
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
747
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
748
|
+
readonly takeProfit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
749
|
+
readonly stopLoss: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
750
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
751
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
752
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
753
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
754
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
755
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
756
756
|
}, undefined>], undefined>;
|
|
757
|
-
}, undefined>,
|
|
757
|
+
}, undefined>, v.TransformAction<{
|
|
758
758
|
triggerPrice: string;
|
|
759
759
|
execution: {
|
|
760
760
|
type: "market_ioc";
|
|
@@ -774,32 +774,32 @@ declare function createRequiredRiskPolicyInputSchema(scales: SdkScales): validat
|
|
|
774
774
|
};
|
|
775
775
|
};
|
|
776
776
|
}>]>;
|
|
777
|
-
readonly trailingStop:
|
|
778
|
-
readonly oco:
|
|
779
|
-
}, undefined>,
|
|
780
|
-
readonly takeProfit:
|
|
781
|
-
readonly stopLoss:
|
|
782
|
-
readonly trailingStop:
|
|
783
|
-
readonly trailingDistance:
|
|
784
|
-
readonly kind:
|
|
785
|
-
readonly distance:
|
|
786
|
-
}, undefined>,
|
|
787
|
-
readonly kind:
|
|
788
|
-
readonly bps:
|
|
789
|
-
}, undefined>,
|
|
790
|
-
readonly kind:
|
|
777
|
+
readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
778
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
779
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
780
|
+
readonly takeProfit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
781
|
+
readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
782
|
+
readonly trailingStop: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
783
|
+
readonly trailingDistance: v.UnionSchema<[v.StrictObjectSchema<{
|
|
784
|
+
readonly kind: v.LiteralSchema<"distance", undefined>;
|
|
785
|
+
readonly distance: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
786
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
787
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
788
|
+
readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
789
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
790
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
791
791
|
}, undefined>], undefined>;
|
|
792
|
-
readonly maxSlippage:
|
|
793
|
-
readonly kind:
|
|
794
|
-
readonly slippage:
|
|
795
|
-
}, undefined>,
|
|
796
|
-
readonly kind:
|
|
797
|
-
readonly bps:
|
|
798
|
-
}, undefined>,
|
|
799
|
-
readonly kind:
|
|
792
|
+
readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
793
|
+
readonly kind: v.LiteralSchema<"slippage", undefined>;
|
|
794
|
+
readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
795
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
796
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
797
|
+
readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
798
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
799
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
800
800
|
}, undefined>], undefined>, undefined>;
|
|
801
|
-
readonly activationPrice:
|
|
802
|
-
}, undefined>,
|
|
801
|
+
readonly activationPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
802
|
+
}, undefined>, v.TransformAction<{
|
|
803
803
|
trailingDistance: {
|
|
804
804
|
kind: "bps";
|
|
805
805
|
bps: string | number;
|
|
@@ -842,8 +842,8 @@ declare function createRequiredRiskPolicyInputSchema(scales: SdkScales): validat
|
|
|
842
842
|
};
|
|
843
843
|
activationPriceTicks: bigint;
|
|
844
844
|
}>]>;
|
|
845
|
-
readonly oco:
|
|
846
|
-
}, undefined>], undefined>,
|
|
845
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
846
|
+
}, undefined>], undefined>, v.TransformAction<{
|
|
847
847
|
takeProfit: {
|
|
848
848
|
triggerPriceTicks: bigint;
|
|
849
849
|
child: {
|
|
@@ -1025,10 +1025,10 @@ declare function createRequiredRiskPolicyInputSchema(scales: SdkScales): validat
|
|
|
1025
1025
|
};
|
|
1026
1026
|
oco: boolean;
|
|
1027
1027
|
}>]>;
|
|
1028
|
-
type TakeProfitInput =
|
|
1029
|
-
type StopLossInput =
|
|
1030
|
-
type TrailingStopInput =
|
|
1031
|
-
type RiskPolicyInput =
|
|
1028
|
+
type TakeProfitInput = v.InferInput<ReturnType<typeof attachedTriggerInputSchema>>;
|
|
1029
|
+
type StopLossInput = v.InferInput<ReturnType<typeof attachedTriggerInputSchema>>;
|
|
1030
|
+
type TrailingStopInput = v.InferInput<ReturnType<typeof createTrailingStopInputSchema>>;
|
|
1031
|
+
type RiskPolicyInput = v.InferInput<ReturnType<typeof createRiskPolicyInputSchema>>;
|
|
1032
1032
|
type MarketMaxSlippage = {
|
|
1033
1033
|
kind: "slippage";
|
|
1034
1034
|
slippage: string;
|