@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,20 +1,20 @@
|
|
|
1
|
-
import { validation_d_exports } from "../../shared/validation.js";
|
|
2
1
|
import { ModifyActionTaken, ModifyBehavior, RiskLimitGtc, RiskMarketIoc, RiskPolicy } 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-modify.schemas.d.ts
|
|
5
|
-
declare function createModifyOrderInputSchema(scales: SdkScales):
|
|
6
|
-
readonly requestId:
|
|
7
|
-
readonly account:
|
|
8
|
-
readonly subaccountId:
|
|
5
|
+
declare function createModifyOrderInputSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.IntersectSchema<[v.ObjectSchema<{
|
|
6
|
+
readonly requestId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "requestId has an invalid format">]>, undefined>;
|
|
7
|
+
readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
|
|
8
|
+
readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
9
9
|
}, undefined>], undefined>, undefined>;
|
|
10
|
-
}, undefined>,
|
|
11
|
-
readonly symbol:
|
|
12
|
-
readonly behavior:
|
|
13
|
-
readonly newClientOrderId:
|
|
14
|
-
}, undefined>,
|
|
15
|
-
readonly orderId:
|
|
16
|
-
readonly clientOrderId:
|
|
17
|
-
}, undefined>,
|
|
10
|
+
}, undefined>, v.IntersectSchema<[v.ObjectSchema<{
|
|
11
|
+
readonly symbol: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
12
|
+
readonly behavior: v.OptionalSchema<v.PicklistSchema<readonly ["AMEND_OR_REPLACE", "AMEND_ONLY", "REPLACE_ONLY"], undefined>, undefined>;
|
|
13
|
+
readonly newClientOrderId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, "clientOrderId has an invalid format">]>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
14
|
+
}, undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
15
|
+
readonly orderId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>, v.CheckAction<bigint, "orderId must be greater than zero">]>;
|
|
16
|
+
readonly clientOrderId: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
17
|
+
}, undefined>, v.TransformAction<{
|
|
18
18
|
orderId: bigint;
|
|
19
19
|
clientOrderId?: undefined;
|
|
20
20
|
}, {
|
|
@@ -22,10 +22,10 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
22
22
|
case: "orderId";
|
|
23
23
|
value: bigint;
|
|
24
24
|
};
|
|
25
|
-
}>]>,
|
|
26
|
-
readonly orderId:
|
|
27
|
-
readonly clientOrderId:
|
|
28
|
-
}, undefined>,
|
|
25
|
+
}>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
26
|
+
readonly orderId: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
27
|
+
readonly clientOrderId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, "clientOrderId has an invalid format">]>, v.MinLengthAction<string, 1, undefined>]>;
|
|
28
|
+
}, undefined>, v.TransformAction<{
|
|
29
29
|
orderId?: undefined;
|
|
30
30
|
clientOrderId: string;
|
|
31
31
|
}, {
|
|
@@ -33,20 +33,20 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
33
33
|
case: "clientOrderId";
|
|
34
34
|
value: string;
|
|
35
35
|
};
|
|
36
|
-
}>]>], undefined>,
|
|
37
|
-
readonly newPrice:
|
|
38
|
-
readonly newQty:
|
|
39
|
-
}, undefined>,
|
|
40
|
-
readonly risk:
|
|
41
|
-
readonly takeProfit:
|
|
42
|
-
readonly triggerPrice:
|
|
43
|
-
readonly execution:
|
|
44
|
-
readonly type:
|
|
45
|
-
}, undefined>,
|
|
46
|
-
readonly type:
|
|
47
|
-
readonly price:
|
|
36
|
+
}>]>], undefined>, v.UnionSchema<[v.IntersectSchema<[v.ObjectSchema<{
|
|
37
|
+
readonly newPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
38
|
+
readonly newQty: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
39
|
+
}, undefined>, v.UnionSchema<[v.ObjectSchema<{
|
|
40
|
+
readonly risk: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StrictObjectSchema<{
|
|
41
|
+
readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
42
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
43
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
44
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
45
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
46
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
47
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
48
48
|
}, undefined>], undefined>;
|
|
49
|
-
}, undefined>,
|
|
49
|
+
}, undefined>, v.TransformAction<{
|
|
50
50
|
triggerPrice: string;
|
|
51
51
|
execution: {
|
|
52
52
|
type: "market_ioc";
|
|
@@ -66,15 +66,15 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
68
|
}>]>;
|
|
69
|
-
readonly stopLoss:
|
|
70
|
-
readonly triggerPrice:
|
|
71
|
-
readonly execution:
|
|
72
|
-
readonly type:
|
|
73
|
-
}, undefined>,
|
|
74
|
-
readonly type:
|
|
75
|
-
readonly price:
|
|
69
|
+
readonly stopLoss: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
70
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
71
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
72
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
73
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
74
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
75
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
76
76
|
}, undefined>], undefined>;
|
|
77
|
-
}, undefined>,
|
|
77
|
+
}, undefined>, v.TransformAction<{
|
|
78
78
|
triggerPrice: string;
|
|
79
79
|
execution: {
|
|
80
80
|
type: "market_ioc";
|
|
@@ -94,18 +94,18 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
}>]>;
|
|
97
|
-
readonly trailingStop:
|
|
98
|
-
readonly oco:
|
|
99
|
-
}, undefined>,
|
|
100
|
-
readonly takeProfit:
|
|
101
|
-
readonly triggerPrice:
|
|
102
|
-
readonly execution:
|
|
103
|
-
readonly type:
|
|
104
|
-
}, undefined>,
|
|
105
|
-
readonly type:
|
|
106
|
-
readonly price:
|
|
97
|
+
readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
98
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
99
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
100
|
+
readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
101
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
102
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
103
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
104
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
105
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
106
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
107
107
|
}, undefined>], undefined>;
|
|
108
|
-
}, undefined>,
|
|
108
|
+
}, undefined>, v.TransformAction<{
|
|
109
109
|
triggerPrice: string;
|
|
110
110
|
execution: {
|
|
111
111
|
type: "market_ioc";
|
|
@@ -125,28 +125,28 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
125
125
|
};
|
|
126
126
|
};
|
|
127
127
|
}>]>;
|
|
128
|
-
readonly stopLoss:
|
|
129
|
-
readonly trailingStop:
|
|
130
|
-
readonly trailingDistance:
|
|
131
|
-
readonly kind:
|
|
132
|
-
readonly distance:
|
|
133
|
-
}, undefined>,
|
|
134
|
-
readonly kind:
|
|
135
|
-
readonly bps:
|
|
136
|
-
}, undefined>,
|
|
137
|
-
readonly kind:
|
|
128
|
+
readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
129
|
+
readonly trailingStop: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
130
|
+
readonly trailingDistance: v.UnionSchema<[v.StrictObjectSchema<{
|
|
131
|
+
readonly kind: v.LiteralSchema<"distance", undefined>;
|
|
132
|
+
readonly distance: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
133
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
134
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
135
|
+
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>;
|
|
136
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
137
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
138
138
|
}, undefined>], undefined>;
|
|
139
|
-
readonly maxSlippage:
|
|
140
|
-
readonly kind:
|
|
141
|
-
readonly slippage:
|
|
142
|
-
}, undefined>,
|
|
143
|
-
readonly kind:
|
|
144
|
-
readonly bps:
|
|
145
|
-
}, undefined>,
|
|
146
|
-
readonly kind:
|
|
139
|
+
readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
140
|
+
readonly kind: v.LiteralSchema<"slippage", undefined>;
|
|
141
|
+
readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
142
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
143
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
144
|
+
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>;
|
|
145
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
146
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
147
147
|
}, undefined>], undefined>, undefined>;
|
|
148
|
-
readonly activationPrice:
|
|
149
|
-
}, undefined>,
|
|
148
|
+
readonly activationPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
149
|
+
}, undefined>, v.TransformAction<{
|
|
150
150
|
trailingDistance: {
|
|
151
151
|
kind: "bps";
|
|
152
152
|
bps: string | number;
|
|
@@ -189,17 +189,17 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
189
189
|
};
|
|
190
190
|
activationPriceTicks: bigint;
|
|
191
191
|
}>]>;
|
|
192
|
-
readonly oco:
|
|
193
|
-
}, undefined>,
|
|
194
|
-
readonly takeProfit:
|
|
195
|
-
readonly triggerPrice:
|
|
196
|
-
readonly execution:
|
|
197
|
-
readonly type:
|
|
198
|
-
}, undefined>,
|
|
199
|
-
readonly type:
|
|
200
|
-
readonly price:
|
|
192
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
193
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
194
|
+
readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
195
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
196
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
197
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
198
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
199
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
200
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
201
201
|
}, undefined>], undefined>;
|
|
202
|
-
}, undefined>,
|
|
202
|
+
}, undefined>, v.TransformAction<{
|
|
203
203
|
triggerPrice: string;
|
|
204
204
|
execution: {
|
|
205
205
|
type: "market_ioc";
|
|
@@ -219,20 +219,20 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
219
219
|
};
|
|
220
220
|
};
|
|
221
221
|
}>]>;
|
|
222
|
-
readonly stopLoss:
|
|
223
|
-
readonly trailingStop:
|
|
224
|
-
readonly oco:
|
|
225
|
-
}, undefined>,
|
|
226
|
-
readonly takeProfit:
|
|
227
|
-
readonly stopLoss:
|
|
228
|
-
readonly triggerPrice:
|
|
229
|
-
readonly execution:
|
|
230
|
-
readonly type:
|
|
231
|
-
}, undefined>,
|
|
232
|
-
readonly type:
|
|
233
|
-
readonly price:
|
|
222
|
+
readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
223
|
+
readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
224
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
225
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
226
|
+
readonly takeProfit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
227
|
+
readonly stopLoss: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
228
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
229
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
230
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
231
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
232
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
233
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
234
234
|
}, undefined>], undefined>;
|
|
235
|
-
}, undefined>,
|
|
235
|
+
}, undefined>, v.TransformAction<{
|
|
236
236
|
triggerPrice: string;
|
|
237
237
|
execution: {
|
|
238
238
|
type: "market_ioc";
|
|
@@ -252,32 +252,32 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
252
252
|
};
|
|
253
253
|
};
|
|
254
254
|
}>]>;
|
|
255
|
-
readonly trailingStop:
|
|
256
|
-
readonly oco:
|
|
257
|
-
}, undefined>,
|
|
258
|
-
readonly takeProfit:
|
|
259
|
-
readonly stopLoss:
|
|
260
|
-
readonly trailingStop:
|
|
261
|
-
readonly trailingDistance:
|
|
262
|
-
readonly kind:
|
|
263
|
-
readonly distance:
|
|
264
|
-
}, undefined>,
|
|
265
|
-
readonly kind:
|
|
266
|
-
readonly bps:
|
|
267
|
-
}, undefined>,
|
|
268
|
-
readonly kind:
|
|
255
|
+
readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
256
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
257
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
258
|
+
readonly takeProfit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
259
|
+
readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
260
|
+
readonly trailingStop: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
261
|
+
readonly trailingDistance: v.UnionSchema<[v.StrictObjectSchema<{
|
|
262
|
+
readonly kind: v.LiteralSchema<"distance", undefined>;
|
|
263
|
+
readonly distance: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
264
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
265
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
266
|
+
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>;
|
|
267
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
268
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
269
269
|
}, undefined>], undefined>;
|
|
270
|
-
readonly maxSlippage:
|
|
271
|
-
readonly kind:
|
|
272
|
-
readonly slippage:
|
|
273
|
-
}, undefined>,
|
|
274
|
-
readonly kind:
|
|
275
|
-
readonly bps:
|
|
276
|
-
}, undefined>,
|
|
277
|
-
readonly kind:
|
|
270
|
+
readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
271
|
+
readonly kind: v.LiteralSchema<"slippage", undefined>;
|
|
272
|
+
readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
273
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
274
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
275
|
+
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>;
|
|
276
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
277
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
278
278
|
}, undefined>], undefined>, undefined>;
|
|
279
|
-
readonly activationPrice:
|
|
280
|
-
}, undefined>,
|
|
279
|
+
readonly activationPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
280
|
+
}, undefined>, v.TransformAction<{
|
|
281
281
|
trailingDistance: {
|
|
282
282
|
kind: "bps";
|
|
283
283
|
bps: string | number;
|
|
@@ -320,8 +320,8 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
320
320
|
};
|
|
321
321
|
activationPriceTicks: bigint;
|
|
322
322
|
}>]>;
|
|
323
|
-
readonly oco:
|
|
324
|
-
}, undefined>], undefined>,
|
|
323
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
324
|
+
}, undefined>], undefined>, v.TransformAction<{
|
|
325
325
|
takeProfit: {
|
|
326
326
|
triggerPriceTicks: bigint;
|
|
327
327
|
child: {
|
|
@@ -503,27 +503,27 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
503
503
|
};
|
|
504
504
|
oco: boolean;
|
|
505
505
|
}>]>;
|
|
506
|
-
readonly clearRisk:
|
|
507
|
-
}, undefined>,
|
|
508
|
-
readonly risk:
|
|
509
|
-
readonly clearRisk:
|
|
510
|
-
}, undefined>,
|
|
511
|
-
readonly risk:
|
|
512
|
-
readonly clearRisk:
|
|
513
|
-
}, undefined>], undefined>], undefined>,
|
|
514
|
-
readonly newPrice:
|
|
515
|
-
readonly newQty:
|
|
516
|
-
}, undefined>,
|
|
517
|
-
readonly risk:
|
|
518
|
-
readonly takeProfit:
|
|
519
|
-
readonly triggerPrice:
|
|
520
|
-
readonly execution:
|
|
521
|
-
readonly type:
|
|
522
|
-
}, undefined>,
|
|
523
|
-
readonly type:
|
|
524
|
-
readonly price:
|
|
506
|
+
readonly clearRisk: v.OptionalSchema<v.LiteralSchema<false, undefined>, undefined>;
|
|
507
|
+
}, undefined>, v.ObjectSchema<{
|
|
508
|
+
readonly risk: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
509
|
+
readonly clearRisk: v.LiteralSchema<true, undefined>;
|
|
510
|
+
}, undefined>, v.ObjectSchema<{
|
|
511
|
+
readonly risk: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
512
|
+
readonly clearRisk: v.OptionalSchema<v.LiteralSchema<false, undefined>, undefined>;
|
|
513
|
+
}, undefined>], undefined>], undefined>, v.IntersectSchema<[v.ObjectSchema<{
|
|
514
|
+
readonly newPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
515
|
+
readonly newQty: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
516
|
+
}, undefined>, v.UnionSchema<[v.ObjectSchema<{
|
|
517
|
+
readonly risk: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StrictObjectSchema<{
|
|
518
|
+
readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
519
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
520
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
521
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
522
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
523
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
524
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
525
525
|
}, undefined>], undefined>;
|
|
526
|
-
}, undefined>,
|
|
526
|
+
}, undefined>, v.TransformAction<{
|
|
527
527
|
triggerPrice: string;
|
|
528
528
|
execution: {
|
|
529
529
|
type: "market_ioc";
|
|
@@ -543,15 +543,15 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
543
543
|
};
|
|
544
544
|
};
|
|
545
545
|
}>]>;
|
|
546
|
-
readonly stopLoss:
|
|
547
|
-
readonly triggerPrice:
|
|
548
|
-
readonly execution:
|
|
549
|
-
readonly type:
|
|
550
|
-
}, undefined>,
|
|
551
|
-
readonly type:
|
|
552
|
-
readonly price:
|
|
546
|
+
readonly stopLoss: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
547
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
548
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
549
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
550
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
551
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
552
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
553
553
|
}, undefined>], undefined>;
|
|
554
|
-
}, undefined>,
|
|
554
|
+
}, undefined>, v.TransformAction<{
|
|
555
555
|
triggerPrice: string;
|
|
556
556
|
execution: {
|
|
557
557
|
type: "market_ioc";
|
|
@@ -571,18 +571,18 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
571
571
|
};
|
|
572
572
|
};
|
|
573
573
|
}>]>;
|
|
574
|
-
readonly trailingStop:
|
|
575
|
-
readonly oco:
|
|
576
|
-
}, undefined>,
|
|
577
|
-
readonly takeProfit:
|
|
578
|
-
readonly triggerPrice:
|
|
579
|
-
readonly execution:
|
|
580
|
-
readonly type:
|
|
581
|
-
}, undefined>,
|
|
582
|
-
readonly type:
|
|
583
|
-
readonly price:
|
|
574
|
+
readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
575
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
576
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
577
|
+
readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
578
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
579
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
580
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
581
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
582
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
583
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
584
584
|
}, undefined>], undefined>;
|
|
585
|
-
}, undefined>,
|
|
585
|
+
}, undefined>, v.TransformAction<{
|
|
586
586
|
triggerPrice: string;
|
|
587
587
|
execution: {
|
|
588
588
|
type: "market_ioc";
|
|
@@ -602,28 +602,28 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
602
602
|
};
|
|
603
603
|
};
|
|
604
604
|
}>]>;
|
|
605
|
-
readonly stopLoss:
|
|
606
|
-
readonly trailingStop:
|
|
607
|
-
readonly trailingDistance:
|
|
608
|
-
readonly kind:
|
|
609
|
-
readonly distance:
|
|
610
|
-
}, undefined>,
|
|
611
|
-
readonly kind:
|
|
612
|
-
readonly bps:
|
|
613
|
-
}, undefined>,
|
|
614
|
-
readonly kind:
|
|
605
|
+
readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
606
|
+
readonly trailingStop: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
607
|
+
readonly trailingDistance: v.UnionSchema<[v.StrictObjectSchema<{
|
|
608
|
+
readonly kind: v.LiteralSchema<"distance", undefined>;
|
|
609
|
+
readonly distance: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
610
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
611
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
612
|
+
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>;
|
|
613
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
614
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
615
615
|
}, undefined>], undefined>;
|
|
616
|
-
readonly maxSlippage:
|
|
617
|
-
readonly kind:
|
|
618
|
-
readonly slippage:
|
|
619
|
-
}, undefined>,
|
|
620
|
-
readonly kind:
|
|
621
|
-
readonly bps:
|
|
622
|
-
}, undefined>,
|
|
623
|
-
readonly kind:
|
|
616
|
+
readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
617
|
+
readonly kind: v.LiteralSchema<"slippage", undefined>;
|
|
618
|
+
readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
619
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
620
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
621
|
+
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>;
|
|
622
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
623
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
624
624
|
}, undefined>], undefined>, undefined>;
|
|
625
|
-
readonly activationPrice:
|
|
626
|
-
}, undefined>,
|
|
625
|
+
readonly activationPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
626
|
+
}, undefined>, v.TransformAction<{
|
|
627
627
|
trailingDistance: {
|
|
628
628
|
kind: "bps";
|
|
629
629
|
bps: string | number;
|
|
@@ -666,17 +666,17 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
666
666
|
};
|
|
667
667
|
activationPriceTicks: bigint;
|
|
668
668
|
}>]>;
|
|
669
|
-
readonly oco:
|
|
670
|
-
}, undefined>,
|
|
671
|
-
readonly takeProfit:
|
|
672
|
-
readonly triggerPrice:
|
|
673
|
-
readonly execution:
|
|
674
|
-
readonly type:
|
|
675
|
-
}, undefined>,
|
|
676
|
-
readonly type:
|
|
677
|
-
readonly price:
|
|
669
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
670
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
671
|
+
readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
672
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
673
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
674
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
675
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
676
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
677
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
678
678
|
}, undefined>], undefined>;
|
|
679
|
-
}, undefined>,
|
|
679
|
+
}, undefined>, v.TransformAction<{
|
|
680
680
|
triggerPrice: string;
|
|
681
681
|
execution: {
|
|
682
682
|
type: "market_ioc";
|
|
@@ -696,20 +696,20 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
696
696
|
};
|
|
697
697
|
};
|
|
698
698
|
}>]>;
|
|
699
|
-
readonly stopLoss:
|
|
700
|
-
readonly trailingStop:
|
|
701
|
-
readonly oco:
|
|
702
|
-
}, undefined>,
|
|
703
|
-
readonly takeProfit:
|
|
704
|
-
readonly stopLoss:
|
|
705
|
-
readonly triggerPrice:
|
|
706
|
-
readonly execution:
|
|
707
|
-
readonly type:
|
|
708
|
-
}, undefined>,
|
|
709
|
-
readonly type:
|
|
710
|
-
readonly price:
|
|
699
|
+
readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
700
|
+
readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
701
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
702
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
703
|
+
readonly takeProfit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
704
|
+
readonly stopLoss: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
705
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
706
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
707
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
708
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
709
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
710
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
711
711
|
}, undefined>], undefined>;
|
|
712
|
-
}, undefined>,
|
|
712
|
+
}, undefined>, v.TransformAction<{
|
|
713
713
|
triggerPrice: string;
|
|
714
714
|
execution: {
|
|
715
715
|
type: "market_ioc";
|
|
@@ -729,32 +729,32 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
729
729
|
};
|
|
730
730
|
};
|
|
731
731
|
}>]>;
|
|
732
|
-
readonly trailingStop:
|
|
733
|
-
readonly oco:
|
|
734
|
-
}, undefined>,
|
|
735
|
-
readonly takeProfit:
|
|
736
|
-
readonly stopLoss:
|
|
737
|
-
readonly trailingStop:
|
|
738
|
-
readonly trailingDistance:
|
|
739
|
-
readonly kind:
|
|
740
|
-
readonly distance:
|
|
741
|
-
}, undefined>,
|
|
742
|
-
readonly kind:
|
|
743
|
-
readonly bps:
|
|
744
|
-
}, undefined>,
|
|
745
|
-
readonly kind:
|
|
732
|
+
readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
733
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
734
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
735
|
+
readonly takeProfit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
736
|
+
readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
737
|
+
readonly trailingStop: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
738
|
+
readonly trailingDistance: v.UnionSchema<[v.StrictObjectSchema<{
|
|
739
|
+
readonly kind: v.LiteralSchema<"distance", undefined>;
|
|
740
|
+
readonly distance: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
741
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
742
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
743
|
+
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>;
|
|
744
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
745
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
746
746
|
}, undefined>], undefined>;
|
|
747
|
-
readonly maxSlippage:
|
|
748
|
-
readonly kind:
|
|
749
|
-
readonly slippage:
|
|
750
|
-
}, undefined>,
|
|
751
|
-
readonly kind:
|
|
752
|
-
readonly bps:
|
|
753
|
-
}, undefined>,
|
|
754
|
-
readonly kind:
|
|
747
|
+
readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
748
|
+
readonly kind: v.LiteralSchema<"slippage", undefined>;
|
|
749
|
+
readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
750
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
751
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
752
|
+
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>;
|
|
753
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
754
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
755
755
|
}, undefined>], undefined>, undefined>;
|
|
756
|
-
readonly activationPrice:
|
|
757
|
-
}, undefined>,
|
|
756
|
+
readonly activationPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
757
|
+
}, undefined>, v.TransformAction<{
|
|
758
758
|
trailingDistance: {
|
|
759
759
|
kind: "bps";
|
|
760
760
|
bps: string | number;
|
|
@@ -797,8 +797,8 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
797
797
|
};
|
|
798
798
|
activationPriceTicks: bigint;
|
|
799
799
|
}>]>;
|
|
800
|
-
readonly oco:
|
|
801
|
-
}, undefined>], undefined>,
|
|
800
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
801
|
+
}, undefined>], undefined>, v.TransformAction<{
|
|
802
802
|
takeProfit: {
|
|
803
803
|
triggerPriceTicks: bigint;
|
|
804
804
|
child: {
|
|
@@ -980,27 +980,27 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
980
980
|
};
|
|
981
981
|
oco: boolean;
|
|
982
982
|
}>]>;
|
|
983
|
-
readonly clearRisk:
|
|
984
|
-
}, undefined>,
|
|
985
|
-
readonly risk:
|
|
986
|
-
readonly clearRisk:
|
|
987
|
-
}, undefined>,
|
|
988
|
-
readonly risk:
|
|
989
|
-
readonly clearRisk:
|
|
990
|
-
}, undefined>], undefined>], undefined>,
|
|
991
|
-
readonly newPrice:
|
|
992
|
-
readonly newQty:
|
|
993
|
-
}, undefined>,
|
|
994
|
-
readonly risk:
|
|
995
|
-
readonly takeProfit:
|
|
996
|
-
readonly triggerPrice:
|
|
997
|
-
readonly execution:
|
|
998
|
-
readonly type:
|
|
999
|
-
}, undefined>,
|
|
1000
|
-
readonly type:
|
|
1001
|
-
readonly price:
|
|
983
|
+
readonly clearRisk: v.OptionalSchema<v.LiteralSchema<false, undefined>, undefined>;
|
|
984
|
+
}, undefined>, v.ObjectSchema<{
|
|
985
|
+
readonly risk: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
986
|
+
readonly clearRisk: v.LiteralSchema<true, undefined>;
|
|
987
|
+
}, undefined>, v.ObjectSchema<{
|
|
988
|
+
readonly risk: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
989
|
+
readonly clearRisk: v.OptionalSchema<v.LiteralSchema<false, undefined>, undefined>;
|
|
990
|
+
}, undefined>], undefined>], undefined>, v.IntersectSchema<[v.ObjectSchema<{
|
|
991
|
+
readonly newPrice: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
992
|
+
readonly newQty: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
993
|
+
}, undefined>, v.UnionSchema<[v.ObjectSchema<{
|
|
994
|
+
readonly risk: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StrictObjectSchema<{
|
|
995
|
+
readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
996
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
997
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
998
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
999
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1000
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
1001
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
1002
1002
|
}, undefined>], undefined>;
|
|
1003
|
-
}, undefined>,
|
|
1003
|
+
}, undefined>, v.TransformAction<{
|
|
1004
1004
|
triggerPrice: string;
|
|
1005
1005
|
execution: {
|
|
1006
1006
|
type: "market_ioc";
|
|
@@ -1020,15 +1020,15 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
1020
1020
|
};
|
|
1021
1021
|
};
|
|
1022
1022
|
}>]>;
|
|
1023
|
-
readonly stopLoss:
|
|
1024
|
-
readonly triggerPrice:
|
|
1025
|
-
readonly execution:
|
|
1026
|
-
readonly type:
|
|
1027
|
-
}, undefined>,
|
|
1028
|
-
readonly type:
|
|
1029
|
-
readonly price:
|
|
1023
|
+
readonly stopLoss: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
1024
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
1025
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1026
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
1027
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1028
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
1029
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
1030
1030
|
}, undefined>], undefined>;
|
|
1031
|
-
}, undefined>,
|
|
1031
|
+
}, undefined>, v.TransformAction<{
|
|
1032
1032
|
triggerPrice: string;
|
|
1033
1033
|
execution: {
|
|
1034
1034
|
type: "market_ioc";
|
|
@@ -1048,18 +1048,18 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
1048
1048
|
};
|
|
1049
1049
|
};
|
|
1050
1050
|
}>]>;
|
|
1051
|
-
readonly trailingStop:
|
|
1052
|
-
readonly oco:
|
|
1053
|
-
}, undefined>,
|
|
1054
|
-
readonly takeProfit:
|
|
1055
|
-
readonly triggerPrice:
|
|
1056
|
-
readonly execution:
|
|
1057
|
-
readonly type:
|
|
1058
|
-
}, undefined>,
|
|
1059
|
-
readonly type:
|
|
1060
|
-
readonly price:
|
|
1051
|
+
readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
1052
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1053
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1054
|
+
readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
1055
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
1056
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1057
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
1058
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1059
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
1060
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
1061
1061
|
}, undefined>], undefined>;
|
|
1062
|
-
}, undefined>,
|
|
1062
|
+
}, undefined>, v.TransformAction<{
|
|
1063
1063
|
triggerPrice: string;
|
|
1064
1064
|
execution: {
|
|
1065
1065
|
type: "market_ioc";
|
|
@@ -1079,28 +1079,28 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
1079
1079
|
};
|
|
1080
1080
|
};
|
|
1081
1081
|
}>]>;
|
|
1082
|
-
readonly stopLoss:
|
|
1083
|
-
readonly trailingStop:
|
|
1084
|
-
readonly trailingDistance:
|
|
1085
|
-
readonly kind:
|
|
1086
|
-
readonly distance:
|
|
1087
|
-
}, undefined>,
|
|
1088
|
-
readonly kind:
|
|
1089
|
-
readonly bps:
|
|
1090
|
-
}, undefined>,
|
|
1091
|
-
readonly kind:
|
|
1082
|
+
readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
1083
|
+
readonly trailingStop: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
1084
|
+
readonly trailingDistance: v.UnionSchema<[v.StrictObjectSchema<{
|
|
1085
|
+
readonly kind: v.LiteralSchema<"distance", undefined>;
|
|
1086
|
+
readonly distance: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
1087
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1088
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
1089
|
+
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>;
|
|
1090
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1091
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
1092
1092
|
}, undefined>], undefined>;
|
|
1093
|
-
readonly maxSlippage:
|
|
1094
|
-
readonly kind:
|
|
1095
|
-
readonly slippage:
|
|
1096
|
-
}, undefined>,
|
|
1097
|
-
readonly kind:
|
|
1098
|
-
readonly bps:
|
|
1099
|
-
}, undefined>,
|
|
1100
|
-
readonly kind:
|
|
1093
|
+
readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
1094
|
+
readonly kind: v.LiteralSchema<"slippage", undefined>;
|
|
1095
|
+
readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
1096
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1097
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
1098
|
+
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>;
|
|
1099
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1100
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
1101
1101
|
}, undefined>], undefined>, undefined>;
|
|
1102
|
-
readonly activationPrice:
|
|
1103
|
-
}, undefined>,
|
|
1102
|
+
readonly activationPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
1103
|
+
}, undefined>, v.TransformAction<{
|
|
1104
1104
|
trailingDistance: {
|
|
1105
1105
|
kind: "bps";
|
|
1106
1106
|
bps: string | number;
|
|
@@ -1143,17 +1143,17 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
1143
1143
|
};
|
|
1144
1144
|
activationPriceTicks: bigint;
|
|
1145
1145
|
}>]>;
|
|
1146
|
-
readonly oco:
|
|
1147
|
-
}, undefined>,
|
|
1148
|
-
readonly takeProfit:
|
|
1149
|
-
readonly triggerPrice:
|
|
1150
|
-
readonly execution:
|
|
1151
|
-
readonly type:
|
|
1152
|
-
}, undefined>,
|
|
1153
|
-
readonly type:
|
|
1154
|
-
readonly price:
|
|
1146
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1147
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1148
|
+
readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
1149
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
1150
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1151
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
1152
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1153
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
1154
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
1155
1155
|
}, undefined>], undefined>;
|
|
1156
|
-
}, undefined>,
|
|
1156
|
+
}, undefined>, v.TransformAction<{
|
|
1157
1157
|
triggerPrice: string;
|
|
1158
1158
|
execution: {
|
|
1159
1159
|
type: "market_ioc";
|
|
@@ -1173,20 +1173,20 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
1173
1173
|
};
|
|
1174
1174
|
};
|
|
1175
1175
|
}>]>;
|
|
1176
|
-
readonly stopLoss:
|
|
1177
|
-
readonly trailingStop:
|
|
1178
|
-
readonly oco:
|
|
1179
|
-
}, undefined>,
|
|
1180
|
-
readonly takeProfit:
|
|
1181
|
-
readonly stopLoss:
|
|
1182
|
-
readonly triggerPrice:
|
|
1183
|
-
readonly execution:
|
|
1184
|
-
readonly type:
|
|
1185
|
-
}, undefined>,
|
|
1186
|
-
readonly type:
|
|
1187
|
-
readonly price:
|
|
1176
|
+
readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
1177
|
+
readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
1178
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1179
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1180
|
+
readonly takeProfit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
1181
|
+
readonly stopLoss: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
1182
|
+
readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
1183
|
+
readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1184
|
+
readonly type: v.LiteralSchema<"market_ioc", undefined>;
|
|
1185
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1186
|
+
readonly type: v.LiteralSchema<"limit_gtc", undefined>;
|
|
1187
|
+
readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
1188
1188
|
}, undefined>], undefined>;
|
|
1189
|
-
}, undefined>,
|
|
1189
|
+
}, undefined>, v.TransformAction<{
|
|
1190
1190
|
triggerPrice: string;
|
|
1191
1191
|
execution: {
|
|
1192
1192
|
type: "market_ioc";
|
|
@@ -1206,32 +1206,32 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
1206
1206
|
};
|
|
1207
1207
|
};
|
|
1208
1208
|
}>]>;
|
|
1209
|
-
readonly trailingStop:
|
|
1210
|
-
readonly oco:
|
|
1211
|
-
}, undefined>,
|
|
1212
|
-
readonly takeProfit:
|
|
1213
|
-
readonly stopLoss:
|
|
1214
|
-
readonly trailingStop:
|
|
1215
|
-
readonly trailingDistance:
|
|
1216
|
-
readonly kind:
|
|
1217
|
-
readonly distance:
|
|
1218
|
-
}, undefined>,
|
|
1219
|
-
readonly kind:
|
|
1220
|
-
readonly bps:
|
|
1221
|
-
}, undefined>,
|
|
1222
|
-
readonly kind:
|
|
1209
|
+
readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
1210
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1211
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1212
|
+
readonly takeProfit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
1213
|
+
readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
1214
|
+
readonly trailingStop: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
1215
|
+
readonly trailingDistance: v.UnionSchema<[v.StrictObjectSchema<{
|
|
1216
|
+
readonly kind: v.LiteralSchema<"distance", undefined>;
|
|
1217
|
+
readonly distance: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
1218
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1219
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
1220
|
+
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>;
|
|
1221
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1222
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
1223
1223
|
}, undefined>], undefined>;
|
|
1224
|
-
readonly maxSlippage:
|
|
1225
|
-
readonly kind:
|
|
1226
|
-
readonly slippage:
|
|
1227
|
-
}, undefined>,
|
|
1228
|
-
readonly kind:
|
|
1229
|
-
readonly bps:
|
|
1230
|
-
}, undefined>,
|
|
1231
|
-
readonly kind:
|
|
1224
|
+
readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
1225
|
+
readonly kind: v.LiteralSchema<"slippage", undefined>;
|
|
1226
|
+
readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
1227
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1228
|
+
readonly kind: v.LiteralSchema<"bps", undefined>;
|
|
1229
|
+
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>;
|
|
1230
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1231
|
+
readonly kind: v.LiteralSchema<"none", undefined>;
|
|
1232
1232
|
}, undefined>], undefined>, undefined>;
|
|
1233
|
-
readonly activationPrice:
|
|
1234
|
-
}, undefined>,
|
|
1233
|
+
readonly activationPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
1234
|
+
}, undefined>, v.TransformAction<{
|
|
1235
1235
|
trailingDistance: {
|
|
1236
1236
|
kind: "bps";
|
|
1237
1237
|
bps: string | number;
|
|
@@ -1274,8 +1274,8 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
1274
1274
|
};
|
|
1275
1275
|
activationPriceTicks: bigint;
|
|
1276
1276
|
}>]>;
|
|
1277
|
-
readonly oco:
|
|
1278
|
-
}, undefined>], undefined>,
|
|
1277
|
+
readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1278
|
+
}, undefined>], undefined>, v.TransformAction<{
|
|
1279
1279
|
takeProfit: {
|
|
1280
1280
|
triggerPriceTicks: bigint;
|
|
1281
1281
|
child: {
|
|
@@ -1457,11 +1457,11 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
1457
1457
|
};
|
|
1458
1458
|
oco: boolean;
|
|
1459
1459
|
}>]>;
|
|
1460
|
-
readonly clearRisk:
|
|
1461
|
-
}, undefined>,
|
|
1462
|
-
readonly risk:
|
|
1463
|
-
readonly clearRisk:
|
|
1464
|
-
}, undefined>], undefined>], undefined>], undefined>], undefined>], undefined>,
|
|
1460
|
+
readonly clearRisk: v.OptionalSchema<v.LiteralSchema<false, undefined>, undefined>;
|
|
1461
|
+
}, undefined>, v.ObjectSchema<{
|
|
1462
|
+
readonly risk: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
1463
|
+
readonly clearRisk: v.LiteralSchema<true, undefined>;
|
|
1464
|
+
}, undefined>], undefined>], undefined>], undefined>], undefined>], undefined>, v.TransformAction<{
|
|
1465
1465
|
requestId?: string | undefined;
|
|
1466
1466
|
account?: "active" | "main" | {
|
|
1467
1467
|
subaccountId: string;
|
|
@@ -1757,17 +1757,17 @@ declare function createModifyOrderInputSchema(scales: SdkScales): validation_d_e
|
|
|
1757
1757
|
subaccountId: bigint | undefined;
|
|
1758
1758
|
requestId: string | undefined;
|
|
1759
1759
|
}>]>;
|
|
1760
|
-
type ModifyOrderInput =
|
|
1761
|
-
declare const ModifyOrderResultSchema:
|
|
1762
|
-
readonly actionTaken:
|
|
1763
|
-
readonly oldOrderId:
|
|
1764
|
-
readonly finalOrderId:
|
|
1765
|
-
readonly code:
|
|
1766
|
-
readonly takeProfitTriggerId:
|
|
1767
|
-
readonly stopLossTriggerId:
|
|
1768
|
-
readonly trailingStopTriggerId:
|
|
1769
|
-
readonly tsNs:
|
|
1770
|
-
}, undefined>,
|
|
1760
|
+
type ModifyOrderInput = v.InferInput<ReturnType<typeof createModifyOrderInputSchema>>;
|
|
1761
|
+
declare const ModifyOrderResultSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1762
|
+
readonly actionTaken: v.SchemaWithPipe<readonly [v.EnumSchema<typeof ModifyActionTaken, undefined>, v.TransformAction<ModifyActionTaken, "unspecified" | "AMENDED" | "REPLACED">]>;
|
|
1763
|
+
readonly oldOrderId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
1764
|
+
readonly finalOrderId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
1765
|
+
readonly code: v.StringSchema<undefined>;
|
|
1766
|
+
readonly takeProfitTriggerId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
1767
|
+
readonly stopLossTriggerId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
1768
|
+
readonly trailingStopTriggerId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
1769
|
+
readonly tsNs: v.BigintSchema<undefined>;
|
|
1770
|
+
}, undefined>, v.TransformAction<{
|
|
1771
1771
|
actionTaken: "unspecified" | "AMENDED" | "REPLACED";
|
|
1772
1772
|
oldOrderId: string;
|
|
1773
1773
|
finalOrderId: string;
|
|
@@ -1787,7 +1787,7 @@ declare const ModifyOrderResultSchema: validation_d_exports.SchemaWithPipe<reado
|
|
|
1787
1787
|
stopLossTriggerId?: string | undefined;
|
|
1788
1788
|
trailingStopTriggerId?: string | undefined;
|
|
1789
1789
|
}>]>;
|
|
1790
|
-
type ModifyOrderResult =
|
|
1790
|
+
type ModifyOrderResult = v.InferOutput<typeof ModifyOrderResultSchema>;
|
|
1791
1791
|
//#endregion
|
|
1792
1792
|
export { ModifyOrderInput, ModifyOrderResult, ModifyOrderResultSchema, createModifyOrderInputSchema };
|
|
1793
1793
|
//# sourceMappingURL=orders-modify.schemas.d.ts.map
|