@polyester/sdk 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/README.md +63 -17
- package/dist/_virtual/_rolldown/runtime.js +15 -1
- package/dist/account-signer/types.d.ts.map +1 -1
- package/dist/account-signer/types.js +6 -3
- package/dist/account-signer/types.js.map +1 -1
- package/dist/browser-client.d.ts +4 -2
- package/dist/browser-client.d.ts.map +1 -1
- package/dist/browser-client.js +3 -4
- package/dist/browser-client.js.map +1 -1
- package/dist/catalogs/client-catalog.d.ts.map +1 -1
- package/dist/catalogs/client-catalog.js +11 -4
- package/dist/catalogs/client-catalog.js.map +1 -1
- package/dist/catalogs/index.js +1 -1
- package/dist/catalogs/readers.d.ts.map +1 -1
- package/dist/catalogs/readers.js +3 -1
- package/dist/catalogs/readers.js.map +1 -1
- package/dist/catalogs/snapshot-validation.js +132 -0
- package/dist/catalogs/snapshot-validation.js.map +1 -0
- package/dist/catalogs/snapshot.d.ts.map +1 -1
- package/dist/catalogs/snapshot.js +16 -7
- package/dist/catalogs/snapshot.js.map +1 -1
- package/dist/catalogs/zipper-supply.d.ts.map +1 -1
- package/dist/catalogs/zipper-supply.js +10 -7
- package/dist/catalogs/zipper-supply.js.map +1 -1
- package/dist/core-client.d.ts +24 -17
- package/dist/core-client.d.ts.map +1 -1
- package/dist/core-client.js +21 -3
- package/dist/core-client.js.map +1 -1
- package/dist/environment.d.ts.map +1 -1
- package/dist/environment.js +32 -1
- package/dist/environment.js.map +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +7 -0
- package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts.map +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.js +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/realtime/client.js +13 -2
- package/dist/realtime/client.js.map +1 -1
- package/dist/realtime/snapshot-then-stream.js +1 -1
- package/dist/realtime/snapshot-then-stream.js.map +1 -1
- package/dist/realtime/types.d.ts +2 -0
- package/dist/realtime/types.d.ts.map +1 -1
- package/dist/server-client.d.ts +17 -8
- package/dist/server-client.d.ts.map +1 -1
- package/dist/server-client.js +8 -11
- package/dist/server-client.js.map +1 -1
- package/dist/services/accounts/accounts.js +3 -3
- 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 +28 -28
- 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 -160
- 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 +12 -12
- 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 +46 -40
- package/dist/services/auth/auth.d.ts.map +1 -1
- package/dist/services/auth/auth.js +28 -25
- 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 +7 -7
- 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.d.ts +1 -1
- package/dist/services/auth/session.d.ts.map +1 -1
- package/dist/services/auth/session.js +6 -2
- package/dist/services/auth/session.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/auth/session.types.d.ts +3 -2
- package/dist/services/auth/session.types.d.ts.map +1 -1
- package/dist/services/balances/balances.d.ts +1 -1
- package/dist/services/balances/balances.js +9 -9
- 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.js +12 -12
- 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 -48
- package/dist/services/candles/candles.schemas.js.map +1 -1
- package/dist/services/chain-analytics/chain-analytics.js +7 -7
- 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 +5 -5
- 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/guard-signer/guard-signer.js +13 -13
- 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.js +9 -9
- package/dist/services/heatmap/heatmap.js.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +141 -141
- 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 +3 -3
- 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.js +10 -10
- 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.js +6 -6
- package/dist/services/market-data/market-data.js.map +1 -1
- package/dist/services/market-data/market-data.schemas.d.ts +20 -20
- package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
- package/dist/services/market-data/market-data.schemas.js +51 -55
- package/dist/services/market-data/market-data.schemas.js.map +1 -1
- package/dist/services/market-overview/market-overview.d.ts +1 -1
- package/dist/services/market-overview/market-overview.js +5 -5
- package/dist/services/market-overview/market-overview.js.map +1 -1
- package/dist/services/market-overview/market-overview.schemas.d.ts +39 -36
- package/dist/services/market-overview/market-overview.schemas.d.ts.map +1 -1
- package/dist/services/market-overview/market-overview.schemas.js +34 -32
- package/dist/services/market-overview/market-overview.schemas.js.map +1 -1
- package/dist/services/mfa/mfa.js +27 -27
- 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 +5 -5
- 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 +118 -118
- 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 +657 -648
- package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-input.schemas.js +100 -96
- package/dist/services/orders/orders-input.schemas.js.map +1 -1
- package/dist/services/orders/orders-modify.schemas.d.ts +370 -351
- package/dist/services/orders/orders-modify.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-modify.schemas.js +48 -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 +8 -8
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +44 -32
- 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 +11 -11
- 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 +13 -13
- 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/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 +7 -7
- 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/subaccount-resolver.js +5 -3
- package/dist/services/subaccount-resolver.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.d.ts +15 -15
- package/dist/services/subaccounts/subaccounts.d.ts.map +1 -1
- package/dist/services/subaccounts/subaccounts.js +35 -35
- 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 +5 -5
- 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 +8 -8
- 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 +1 -1
- package/dist/services/transfers/transfers.d.ts.map +1 -1
- package/dist/services/transfers/transfers.js +5 -5
- 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.js +21 -21
- package/dist/services/triggers/triggers.js.map +1 -1
- package/dist/services/whiteboard/whiteboard.js +15 -15
- 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 +3 -3
- 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.d.ts +1 -1
- package/dist/shared/connect-error-mapping.js +29 -3
- 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/transports.js +7 -12
- package/dist/shared/transports.js.map +1 -1
- package/dist/shared/types.d.ts +12 -0
- package/dist/shared/types.d.ts.map +1 -1
- package/dist/shared/validation.d.ts +14 -0
- package/dist/shared/validation.d.ts.map +1 -0
- package/dist/shared/validation.js +24 -0
- package/dist/shared/validation.js.map +1 -0
- package/dist/utils/connect-order-errors.js +2 -2
- package/dist/utils/connect-order-errors.js.map +1 -1
- package/dist/utils/cookies.d.ts +8 -3
- package/dist/utils/cookies.d.ts.map +1 -1
- package/dist/utils/cookies.js +7 -1
- package/dist/utils/cookies.js.map +1 -1
- package/dist/utils/event-emitter.d.ts +1 -1
- package/dist/utils/event-emitter.d.ts.map +1 -1
- package/dist/utils/event-emitter.js +4 -2
- package/dist/utils/event-emitter.js.map +1 -1
- package/dist/utils/evm.js +2 -2
- package/dist/utils/evm.js.map +1 -1
- package/dist/utils/jwt.d.ts +2 -2
- package/dist/utils/jwt.d.ts.map +1 -1
- package/dist/utils/jwt.js +2 -2
- package/dist/utils/jwt.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
import { validation_d_exports } from "../../shared/validation.js";
|
|
1
2
|
import { FailureReason, LimiterScope, PolicyClass, RefillModel } from "../../gen/polyester/ratelimit/v1/types_pb.js";
|
|
2
3
|
import { BatchReplaceAdmissionStatus, BatchReplaceItemAdmissionStatus, ErrorCode, FeeAsset, LimitFok, LimitGtc, LimitIoc, MarketIoc, RiskLimitGtc, RiskMarketIoc, SelfTradePreventionMode, Side } from "../../gen/orders/v1/orders_pb.js";
|
|
3
4
|
import { BatchReplacePhase, OrderStatus } from "../../gen/orders/v1/orders_read_pb.js";
|
|
4
5
|
import { AccountScopeInputEntries } from "../../shared/account-scope.js";
|
|
5
6
|
import { SdkScales } from "../../shared/decimal-surface.js";
|
|
6
7
|
import { createRequiredRiskPolicyInputSchema } from "./orders-risk.schemas.js";
|
|
7
|
-
import * as v from "valibot";
|
|
8
8
|
//#region src/services/orders/orders-batch.schemas.d.ts
|
|
9
|
-
declare const CancelAllAfterInputSchema:
|
|
10
|
-
readonly timeoutSec:
|
|
11
|
-
readonly symbol:
|
|
12
|
-
readonly side:
|
|
13
|
-
readonly requestId:
|
|
14
|
-
readonly account:
|
|
15
|
-
readonly subaccountId:
|
|
9
|
+
declare const CancelAllAfterInputSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
10
|
+
readonly timeoutSec: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.CheckAction<number, "timeoutSec must be 0 to disable or between 10 and 120 seconds to arm">]>;
|
|
11
|
+
readonly symbol: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MaxLengthAction<string, 32, undefined>]>, undefined>;
|
|
12
|
+
readonly side: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.PicklistSchema<["buy", "sell"], undefined>, undefined>, validation_d_exports.TransformAction<"buy" | "sell" | undefined, Side.BUY | Side.SELL | undefined>]>;
|
|
13
|
+
readonly requestId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.MaxLengthAction<string, 64, undefined>, validation_d_exports.RegexAction<string, "requestId has an invalid format">]>, undefined>;
|
|
14
|
+
readonly account: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.PicklistSchema<["active", "main"], undefined>, validation_d_exports.StrictObjectSchema<{
|
|
15
|
+
readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
16
16
|
}, undefined>], undefined>, undefined>;
|
|
17
|
-
}, undefined>,
|
|
17
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
18
18
|
timeoutSec: number;
|
|
19
19
|
symbol?: string | undefined;
|
|
20
20
|
side?: Side.BUY | Side.SELL | undefined;
|
|
@@ -29,13 +29,13 @@ declare const CancelAllAfterInputSchema: v.SchemaWithPipe<readonly [v.StrictObje
|
|
|
29
29
|
side?: Side.BUY | Side.SELL | undefined;
|
|
30
30
|
requestId?: string | undefined;
|
|
31
31
|
}>]>;
|
|
32
|
-
type CancelAllAfterInput =
|
|
33
|
-
declare const CancelAllAfterResultSchema:
|
|
34
|
-
readonly status:
|
|
35
|
-
readonly effectiveTimeoutSec:
|
|
36
|
-
readonly expiresAtTsNs:
|
|
37
|
-
readonly tsNs:
|
|
38
|
-
}, undefined>,
|
|
32
|
+
type CancelAllAfterInput = validation_d_exports.InferInput<typeof CancelAllAfterInputSchema>;
|
|
33
|
+
declare const CancelAllAfterResultSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
|
|
34
|
+
readonly status: validation_d_exports.PicklistSchema<["armed", "disabled"], undefined>;
|
|
35
|
+
readonly effectiveTimeoutSec: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
|
|
36
|
+
readonly expiresAtTsNs: validation_d_exports.BigintSchema<undefined>;
|
|
37
|
+
readonly tsNs: validation_d_exports.BigintSchema<undefined>;
|
|
38
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
39
39
|
status: "disabled" | "armed";
|
|
40
40
|
effectiveTimeoutSec: number;
|
|
41
41
|
expiresAtTsNs: bigint;
|
|
@@ -48,27 +48,27 @@ declare const CancelAllAfterResultSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
48
48
|
status: "disabled" | "armed";
|
|
49
49
|
effectiveTimeoutSec: number;
|
|
50
50
|
}>]>;
|
|
51
|
-
type CancelAllAfterResult =
|
|
52
|
-
declare function createBatchCreateOrdersInputSchema(scales: SdkScales):
|
|
53
|
-
readonly requestId:
|
|
54
|
-
readonly items:
|
|
55
|
-
readonly qty:
|
|
56
|
-
readonly maxQuoteDebit:
|
|
57
|
-
readonly symbol:
|
|
58
|
-
readonly side:
|
|
59
|
-
readonly execution:
|
|
60
|
-
readonly type:
|
|
61
|
-
readonly maxSlippage:
|
|
62
|
-
readonly kind:
|
|
63
|
-
readonly slippage:
|
|
64
|
-
}, undefined>,
|
|
65
|
-
readonly kind:
|
|
66
|
-
readonly bps:
|
|
67
|
-
}, undefined>,
|
|
68
|
-
readonly kind:
|
|
51
|
+
type CancelAllAfterResult = validation_d_exports.InferOutput<typeof CancelAllAfterResultSchema>;
|
|
52
|
+
declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
53
|
+
readonly requestId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.MaxLengthAction<string, 64, undefined>, validation_d_exports.RegexAction<string, "requestId has an invalid format">]>, undefined>;
|
|
54
|
+
readonly items: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ArraySchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
|
|
55
|
+
readonly qty: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
56
|
+
readonly maxQuoteDebit: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
57
|
+
readonly symbol: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
58
|
+
readonly side: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.PicklistSchema<["buy", "sell"], undefined>, validation_d_exports.TransformAction<"buy" | "sell", Side.BUY | Side.SELL>]>;
|
|
59
|
+
readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
60
|
+
readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
|
|
61
|
+
readonly maxSlippage: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
|
|
62
|
+
readonly kind: validation_d_exports.LiteralSchema<"slippage", undefined>;
|
|
63
|
+
readonly slippage: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
64
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
65
|
+
readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
|
|
66
|
+
readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
67
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
68
|
+
readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
|
|
69
69
|
}, undefined>], undefined>, undefined>;
|
|
70
|
-
readonly clientRefPrice:
|
|
71
|
-
}, undefined>,
|
|
70
|
+
readonly clientRefPrice: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
71
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
72
72
|
type: "market_ioc";
|
|
73
73
|
maxSlippage?: {
|
|
74
74
|
kind: "bps";
|
|
@@ -83,49 +83,49 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
83
83
|
}, {
|
|
84
84
|
case: "marketIoc";
|
|
85
85
|
value: MarketIoc;
|
|
86
|
-
}>]>,
|
|
87
|
-
readonly type:
|
|
88
|
-
readonly price:
|
|
89
|
-
readonly postOnly:
|
|
90
|
-
}, undefined>,
|
|
86
|
+
}>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
87
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
|
|
88
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
89
|
+
readonly postOnly: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, false>;
|
|
90
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
91
91
|
type: "limit_gtc";
|
|
92
92
|
price: string;
|
|
93
93
|
postOnly: boolean;
|
|
94
94
|
}, {
|
|
95
95
|
case: "limitGtc";
|
|
96
96
|
value: LimitGtc;
|
|
97
|
-
}>]>,
|
|
98
|
-
readonly type:
|
|
99
|
-
readonly price:
|
|
100
|
-
}, undefined>,
|
|
97
|
+
}>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
98
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_ioc", undefined>;
|
|
99
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
100
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
101
101
|
type: "limit_ioc";
|
|
102
102
|
price: string;
|
|
103
103
|
}, {
|
|
104
104
|
case: "limitIoc";
|
|
105
105
|
value: LimitIoc;
|
|
106
|
-
}>]>,
|
|
107
|
-
readonly type:
|
|
108
|
-
readonly price:
|
|
109
|
-
}, undefined>,
|
|
106
|
+
}>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
107
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_fok", undefined>;
|
|
108
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
109
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
110
110
|
type: "limit_fok";
|
|
111
111
|
price: string;
|
|
112
112
|
}, {
|
|
113
113
|
case: "limitFok";
|
|
114
114
|
value: LimitFok;
|
|
115
115
|
}>]>], undefined>;
|
|
116
|
-
readonly clientOrderId:
|
|
117
|
-
readonly feeAsset:
|
|
118
|
-
readonly selfTradePreventionMode:
|
|
119
|
-
readonly risk:
|
|
120
|
-
readonly takeProfit:
|
|
121
|
-
readonly triggerPrice:
|
|
122
|
-
readonly execution:
|
|
123
|
-
readonly type:
|
|
124
|
-
}, undefined>,
|
|
125
|
-
readonly type:
|
|
126
|
-
readonly price:
|
|
116
|
+
readonly clientOrderId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MaxLengthAction<string, 36, undefined>, validation_d_exports.RegexAction<string, "clientOrderId has an invalid format">]>, undefined>;
|
|
117
|
+
readonly feeAsset: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.PicklistSchema<readonly ["quote", "base"], undefined>, undefined>, validation_d_exports.TransformAction<"quote" | "base" | undefined, FeeAsset.QUOTE | FeeAsset.BASE | undefined>]>;
|
|
118
|
+
readonly selfTradePreventionMode: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.PicklistSchema<readonly ["expire_taker", "expire_maker", "expire_both"], undefined>, undefined>, validation_d_exports.TransformAction<"expire_taker" | "expire_maker" | "expire_both" | undefined, SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined>]>;
|
|
119
|
+
readonly risk: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
|
|
120
|
+
readonly takeProfit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
121
|
+
readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
122
|
+
readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
|
|
123
|
+
readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
|
|
124
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
125
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
|
|
126
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
127
127
|
}, undefined>], undefined>;
|
|
128
|
-
}, undefined>,
|
|
128
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
129
129
|
triggerPrice: string;
|
|
130
130
|
execution: {
|
|
131
131
|
type: "market_ioc";
|
|
@@ -145,15 +145,15 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
147
|
}>]>;
|
|
148
|
-
readonly stopLoss:
|
|
149
|
-
readonly triggerPrice:
|
|
150
|
-
readonly execution:
|
|
151
|
-
readonly type:
|
|
152
|
-
}, undefined>,
|
|
153
|
-
readonly type:
|
|
154
|
-
readonly price:
|
|
148
|
+
readonly stopLoss: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
149
|
+
readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
150
|
+
readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
|
|
151
|
+
readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
|
|
152
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
153
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
|
|
154
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
155
155
|
}, undefined>], undefined>;
|
|
156
|
-
}, undefined>,
|
|
156
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
157
157
|
triggerPrice: string;
|
|
158
158
|
execution: {
|
|
159
159
|
type: "market_ioc";
|
|
@@ -173,18 +173,18 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
173
173
|
};
|
|
174
174
|
};
|
|
175
175
|
}>]>;
|
|
176
|
-
readonly trailingStop:
|
|
177
|
-
readonly oco:
|
|
178
|
-
}, undefined>,
|
|
179
|
-
readonly takeProfit:
|
|
180
|
-
readonly triggerPrice:
|
|
181
|
-
readonly execution:
|
|
182
|
-
readonly type:
|
|
183
|
-
}, undefined>,
|
|
184
|
-
readonly type:
|
|
185
|
-
readonly price:
|
|
176
|
+
readonly trailingStop: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
177
|
+
readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
|
|
178
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
179
|
+
readonly takeProfit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
180
|
+
readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
181
|
+
readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
|
|
182
|
+
readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
|
|
183
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
184
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
|
|
185
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
186
186
|
}, undefined>], undefined>;
|
|
187
|
-
}, undefined>,
|
|
187
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
188
188
|
triggerPrice: string;
|
|
189
189
|
execution: {
|
|
190
190
|
type: "market_ioc";
|
|
@@ -204,28 +204,28 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
204
204
|
};
|
|
205
205
|
};
|
|
206
206
|
}>]>;
|
|
207
|
-
readonly stopLoss:
|
|
208
|
-
readonly trailingStop:
|
|
209
|
-
readonly trailingDistance:
|
|
210
|
-
readonly kind:
|
|
211
|
-
readonly distance:
|
|
212
|
-
}, undefined>,
|
|
213
|
-
readonly kind:
|
|
214
|
-
readonly bps:
|
|
215
|
-
}, undefined>,
|
|
216
|
-
readonly kind:
|
|
207
|
+
readonly stopLoss: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
208
|
+
readonly trailingStop: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
209
|
+
readonly trailingDistance: validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
|
|
210
|
+
readonly kind: validation_d_exports.LiteralSchema<"distance", undefined>;
|
|
211
|
+
readonly distance: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
212
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
213
|
+
readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
|
|
214
|
+
readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
215
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
216
|
+
readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
|
|
217
217
|
}, undefined>], undefined>;
|
|
218
|
-
readonly maxSlippage:
|
|
219
|
-
readonly kind:
|
|
220
|
-
readonly slippage:
|
|
221
|
-
}, undefined>,
|
|
222
|
-
readonly kind:
|
|
223
|
-
readonly bps:
|
|
224
|
-
}, undefined>,
|
|
225
|
-
readonly kind:
|
|
218
|
+
readonly maxSlippage: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
|
|
219
|
+
readonly kind: validation_d_exports.LiteralSchema<"slippage", undefined>;
|
|
220
|
+
readonly slippage: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
221
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
222
|
+
readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
|
|
223
|
+
readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
224
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
225
|
+
readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
|
|
226
226
|
}, undefined>], undefined>, undefined>;
|
|
227
|
-
readonly activationPrice:
|
|
228
|
-
}, undefined>,
|
|
227
|
+
readonly activationPrice: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
228
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
229
229
|
trailingDistance: {
|
|
230
230
|
kind: "bps";
|
|
231
231
|
bps: string | number;
|
|
@@ -268,17 +268,17 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
268
268
|
};
|
|
269
269
|
activationPriceTicks: bigint;
|
|
270
270
|
}>]>;
|
|
271
|
-
readonly oco:
|
|
272
|
-
}, undefined>,
|
|
273
|
-
readonly takeProfit:
|
|
274
|
-
readonly triggerPrice:
|
|
275
|
-
readonly execution:
|
|
276
|
-
readonly type:
|
|
277
|
-
}, undefined>,
|
|
278
|
-
readonly type:
|
|
279
|
-
readonly price:
|
|
271
|
+
readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
|
|
272
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
273
|
+
readonly takeProfit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
274
|
+
readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
275
|
+
readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
|
|
276
|
+
readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
|
|
277
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
278
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
|
|
279
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
280
280
|
}, undefined>], undefined>;
|
|
281
|
-
}, undefined>,
|
|
281
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
282
282
|
triggerPrice: string;
|
|
283
283
|
execution: {
|
|
284
284
|
type: "market_ioc";
|
|
@@ -298,20 +298,20 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
298
298
|
};
|
|
299
299
|
};
|
|
300
300
|
}>]>;
|
|
301
|
-
readonly stopLoss:
|
|
302
|
-
readonly trailingStop:
|
|
303
|
-
readonly oco:
|
|
304
|
-
}, undefined>,
|
|
305
|
-
readonly takeProfit:
|
|
306
|
-
readonly stopLoss:
|
|
307
|
-
readonly triggerPrice:
|
|
308
|
-
readonly execution:
|
|
309
|
-
readonly type:
|
|
310
|
-
}, undefined>,
|
|
311
|
-
readonly type:
|
|
312
|
-
readonly price:
|
|
301
|
+
readonly stopLoss: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
302
|
+
readonly trailingStop: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
303
|
+
readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
|
|
304
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
305
|
+
readonly takeProfit: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
306
|
+
readonly stopLoss: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
307
|
+
readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
308
|
+
readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
|
|
309
|
+
readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
|
|
310
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
311
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
|
|
312
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
313
313
|
}, undefined>], undefined>;
|
|
314
|
-
}, undefined>,
|
|
314
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
315
315
|
triggerPrice: string;
|
|
316
316
|
execution: {
|
|
317
317
|
type: "market_ioc";
|
|
@@ -331,32 +331,32 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
331
331
|
};
|
|
332
332
|
};
|
|
333
333
|
}>]>;
|
|
334
|
-
readonly trailingStop:
|
|
335
|
-
readonly oco:
|
|
336
|
-
}, undefined>,
|
|
337
|
-
readonly takeProfit:
|
|
338
|
-
readonly stopLoss:
|
|
339
|
-
readonly trailingStop:
|
|
340
|
-
readonly trailingDistance:
|
|
341
|
-
readonly kind:
|
|
342
|
-
readonly distance:
|
|
343
|
-
}, undefined>,
|
|
344
|
-
readonly kind:
|
|
345
|
-
readonly bps:
|
|
346
|
-
}, undefined>,
|
|
347
|
-
readonly kind:
|
|
334
|
+
readonly trailingStop: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
335
|
+
readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
|
|
336
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
337
|
+
readonly takeProfit: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
338
|
+
readonly stopLoss: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
339
|
+
readonly trailingStop: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
340
|
+
readonly trailingDistance: validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
|
|
341
|
+
readonly kind: validation_d_exports.LiteralSchema<"distance", undefined>;
|
|
342
|
+
readonly distance: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
343
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
344
|
+
readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
|
|
345
|
+
readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
346
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
347
|
+
readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
|
|
348
348
|
}, undefined>], undefined>;
|
|
349
|
-
readonly maxSlippage:
|
|
350
|
-
readonly kind:
|
|
351
|
-
readonly slippage:
|
|
352
|
-
}, undefined>,
|
|
353
|
-
readonly kind:
|
|
354
|
-
readonly bps:
|
|
355
|
-
}, undefined>,
|
|
356
|
-
readonly kind:
|
|
349
|
+
readonly maxSlippage: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
|
|
350
|
+
readonly kind: validation_d_exports.LiteralSchema<"slippage", undefined>;
|
|
351
|
+
readonly slippage: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
352
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
353
|
+
readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
|
|
354
|
+
readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
355
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
356
|
+
readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
|
|
357
357
|
}, undefined>], undefined>, undefined>;
|
|
358
|
-
readonly activationPrice:
|
|
359
|
-
}, undefined>,
|
|
358
|
+
readonly activationPrice: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
359
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
360
360
|
trailingDistance: {
|
|
361
361
|
kind: "bps";
|
|
362
362
|
bps: string | number;
|
|
@@ -399,8 +399,8 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
399
399
|
};
|
|
400
400
|
activationPriceTicks: bigint;
|
|
401
401
|
}>]>;
|
|
402
|
-
readonly oco:
|
|
403
|
-
}, undefined>], undefined>, undefined>,
|
|
402
|
+
readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
|
|
403
|
+
}, undefined>], undefined>, undefined>, validation_d_exports.TransformAction<{
|
|
404
404
|
takeProfit: {
|
|
405
405
|
triggerPriceTicks: bigint;
|
|
406
406
|
child: {
|
|
@@ -582,24 +582,24 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
582
582
|
};
|
|
583
583
|
oco: boolean;
|
|
584
584
|
} | undefined>]>;
|
|
585
|
-
}, undefined>,
|
|
586
|
-
readonly qty:
|
|
587
|
-
readonly maxQuoteDebit:
|
|
588
|
-
readonly symbol:
|
|
589
|
-
readonly side:
|
|
590
|
-
readonly execution:
|
|
591
|
-
readonly type:
|
|
592
|
-
readonly maxSlippage:
|
|
593
|
-
readonly kind:
|
|
594
|
-
readonly slippage:
|
|
595
|
-
}, undefined>,
|
|
596
|
-
readonly kind:
|
|
597
|
-
readonly bps:
|
|
598
|
-
}, undefined>,
|
|
599
|
-
readonly kind:
|
|
585
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
586
|
+
readonly qty: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
587
|
+
readonly maxQuoteDebit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
588
|
+
readonly symbol: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
589
|
+
readonly side: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.PicklistSchema<["buy", "sell"], undefined>, validation_d_exports.TransformAction<"buy" | "sell", Side.BUY | Side.SELL>]>;
|
|
590
|
+
readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
591
|
+
readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
|
|
592
|
+
readonly maxSlippage: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
|
|
593
|
+
readonly kind: validation_d_exports.LiteralSchema<"slippage", undefined>;
|
|
594
|
+
readonly slippage: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
595
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
596
|
+
readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
|
|
597
|
+
readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
598
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
599
|
+
readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
|
|
600
600
|
}, undefined>], undefined>, undefined>;
|
|
601
|
-
readonly clientRefPrice:
|
|
602
|
-
}, undefined>,
|
|
601
|
+
readonly clientRefPrice: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
602
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
603
603
|
type: "market_ioc";
|
|
604
604
|
maxSlippage?: {
|
|
605
605
|
kind: "bps";
|
|
@@ -614,49 +614,49 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
614
614
|
}, {
|
|
615
615
|
case: "marketIoc";
|
|
616
616
|
value: MarketIoc;
|
|
617
|
-
}>]>,
|
|
618
|
-
readonly type:
|
|
619
|
-
readonly price:
|
|
620
|
-
readonly postOnly:
|
|
621
|
-
}, undefined>,
|
|
617
|
+
}>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
618
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
|
|
619
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
620
|
+
readonly postOnly: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, false>;
|
|
621
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
622
622
|
type: "limit_gtc";
|
|
623
623
|
price: string;
|
|
624
624
|
postOnly: boolean;
|
|
625
625
|
}, {
|
|
626
626
|
case: "limitGtc";
|
|
627
627
|
value: LimitGtc;
|
|
628
|
-
}>]>,
|
|
629
|
-
readonly type:
|
|
630
|
-
readonly price:
|
|
631
|
-
}, undefined>,
|
|
628
|
+
}>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
629
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_ioc", undefined>;
|
|
630
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
631
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
632
632
|
type: "limit_ioc";
|
|
633
633
|
price: string;
|
|
634
634
|
}, {
|
|
635
635
|
case: "limitIoc";
|
|
636
636
|
value: LimitIoc;
|
|
637
|
-
}>]>,
|
|
638
|
-
readonly type:
|
|
639
|
-
readonly price:
|
|
640
|
-
}, undefined>,
|
|
637
|
+
}>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
638
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_fok", undefined>;
|
|
639
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
640
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
641
641
|
type: "limit_fok";
|
|
642
642
|
price: string;
|
|
643
643
|
}, {
|
|
644
644
|
case: "limitFok";
|
|
645
645
|
value: LimitFok;
|
|
646
646
|
}>]>], undefined>;
|
|
647
|
-
readonly clientOrderId:
|
|
648
|
-
readonly feeAsset:
|
|
649
|
-
readonly selfTradePreventionMode:
|
|
650
|
-
readonly risk:
|
|
651
|
-
readonly takeProfit:
|
|
652
|
-
readonly triggerPrice:
|
|
653
|
-
readonly execution:
|
|
654
|
-
readonly type:
|
|
655
|
-
}, undefined>,
|
|
656
|
-
readonly type:
|
|
657
|
-
readonly price:
|
|
647
|
+
readonly clientOrderId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MaxLengthAction<string, 36, undefined>, validation_d_exports.RegexAction<string, "clientOrderId has an invalid format">]>, undefined>;
|
|
648
|
+
readonly feeAsset: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.PicklistSchema<readonly ["quote", "base"], undefined>, undefined>, validation_d_exports.TransformAction<"quote" | "base" | undefined, FeeAsset.QUOTE | FeeAsset.BASE | undefined>]>;
|
|
649
|
+
readonly selfTradePreventionMode: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.PicklistSchema<readonly ["expire_taker", "expire_maker", "expire_both"], undefined>, undefined>, validation_d_exports.TransformAction<"expire_taker" | "expire_maker" | "expire_both" | undefined, SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined>]>;
|
|
650
|
+
readonly risk: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
|
|
651
|
+
readonly takeProfit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
652
|
+
readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
653
|
+
readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
|
|
654
|
+
readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
|
|
655
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
656
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
|
|
657
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
658
658
|
}, undefined>], undefined>;
|
|
659
|
-
}, undefined>,
|
|
659
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
660
660
|
triggerPrice: string;
|
|
661
661
|
execution: {
|
|
662
662
|
type: "market_ioc";
|
|
@@ -676,15 +676,15 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
676
676
|
};
|
|
677
677
|
};
|
|
678
678
|
}>]>;
|
|
679
|
-
readonly stopLoss:
|
|
680
|
-
readonly triggerPrice:
|
|
681
|
-
readonly execution:
|
|
682
|
-
readonly type:
|
|
683
|
-
}, undefined>,
|
|
684
|
-
readonly type:
|
|
685
|
-
readonly price:
|
|
679
|
+
readonly stopLoss: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
680
|
+
readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
681
|
+
readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
|
|
682
|
+
readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
|
|
683
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
684
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
|
|
685
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
686
686
|
}, undefined>], undefined>;
|
|
687
|
-
}, undefined>,
|
|
687
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
688
688
|
triggerPrice: string;
|
|
689
689
|
execution: {
|
|
690
690
|
type: "market_ioc";
|
|
@@ -704,18 +704,18 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
704
704
|
};
|
|
705
705
|
};
|
|
706
706
|
}>]>;
|
|
707
|
-
readonly trailingStop:
|
|
708
|
-
readonly oco:
|
|
709
|
-
}, undefined>,
|
|
710
|
-
readonly takeProfit:
|
|
711
|
-
readonly triggerPrice:
|
|
712
|
-
readonly execution:
|
|
713
|
-
readonly type:
|
|
714
|
-
}, undefined>,
|
|
715
|
-
readonly type:
|
|
716
|
-
readonly price:
|
|
707
|
+
readonly trailingStop: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
708
|
+
readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
|
|
709
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
710
|
+
readonly takeProfit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
711
|
+
readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
712
|
+
readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
|
|
713
|
+
readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
|
|
714
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
715
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
|
|
716
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
717
717
|
}, undefined>], undefined>;
|
|
718
|
-
}, undefined>,
|
|
718
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
719
719
|
triggerPrice: string;
|
|
720
720
|
execution: {
|
|
721
721
|
type: "market_ioc";
|
|
@@ -735,28 +735,28 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
735
735
|
};
|
|
736
736
|
};
|
|
737
737
|
}>]>;
|
|
738
|
-
readonly stopLoss:
|
|
739
|
-
readonly trailingStop:
|
|
740
|
-
readonly trailingDistance:
|
|
741
|
-
readonly kind:
|
|
742
|
-
readonly distance:
|
|
743
|
-
}, undefined>,
|
|
744
|
-
readonly kind:
|
|
745
|
-
readonly bps:
|
|
746
|
-
}, undefined>,
|
|
747
|
-
readonly kind:
|
|
738
|
+
readonly stopLoss: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
739
|
+
readonly trailingStop: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
740
|
+
readonly trailingDistance: validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
|
|
741
|
+
readonly kind: validation_d_exports.LiteralSchema<"distance", undefined>;
|
|
742
|
+
readonly distance: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
743
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
744
|
+
readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
|
|
745
|
+
readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
746
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
747
|
+
readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
|
|
748
748
|
}, undefined>], undefined>;
|
|
749
|
-
readonly maxSlippage:
|
|
750
|
-
readonly kind:
|
|
751
|
-
readonly slippage:
|
|
752
|
-
}, undefined>,
|
|
753
|
-
readonly kind:
|
|
754
|
-
readonly bps:
|
|
755
|
-
}, undefined>,
|
|
756
|
-
readonly kind:
|
|
749
|
+
readonly maxSlippage: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
|
|
750
|
+
readonly kind: validation_d_exports.LiteralSchema<"slippage", undefined>;
|
|
751
|
+
readonly slippage: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
752
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
753
|
+
readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
|
|
754
|
+
readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
755
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
756
|
+
readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
|
|
757
757
|
}, undefined>], undefined>, undefined>;
|
|
758
|
-
readonly activationPrice:
|
|
759
|
-
}, undefined>,
|
|
758
|
+
readonly activationPrice: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
759
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
760
760
|
trailingDistance: {
|
|
761
761
|
kind: "bps";
|
|
762
762
|
bps: string | number;
|
|
@@ -799,17 +799,17 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
799
799
|
};
|
|
800
800
|
activationPriceTicks: bigint;
|
|
801
801
|
}>]>;
|
|
802
|
-
readonly oco:
|
|
803
|
-
}, undefined>,
|
|
804
|
-
readonly takeProfit:
|
|
805
|
-
readonly triggerPrice:
|
|
806
|
-
readonly execution:
|
|
807
|
-
readonly type:
|
|
808
|
-
}, undefined>,
|
|
809
|
-
readonly type:
|
|
810
|
-
readonly price:
|
|
802
|
+
readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
|
|
803
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
804
|
+
readonly takeProfit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
805
|
+
readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
806
|
+
readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
|
|
807
|
+
readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
|
|
808
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
809
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
|
|
810
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
811
811
|
}, undefined>], undefined>;
|
|
812
|
-
}, undefined>,
|
|
812
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
813
813
|
triggerPrice: string;
|
|
814
814
|
execution: {
|
|
815
815
|
type: "market_ioc";
|
|
@@ -829,20 +829,20 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
829
829
|
};
|
|
830
830
|
};
|
|
831
831
|
}>]>;
|
|
832
|
-
readonly stopLoss:
|
|
833
|
-
readonly trailingStop:
|
|
834
|
-
readonly oco:
|
|
835
|
-
}, undefined>,
|
|
836
|
-
readonly takeProfit:
|
|
837
|
-
readonly stopLoss:
|
|
838
|
-
readonly triggerPrice:
|
|
839
|
-
readonly execution:
|
|
840
|
-
readonly type:
|
|
841
|
-
}, undefined>,
|
|
842
|
-
readonly type:
|
|
843
|
-
readonly price:
|
|
832
|
+
readonly stopLoss: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
833
|
+
readonly trailingStop: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
834
|
+
readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
|
|
835
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
836
|
+
readonly takeProfit: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
837
|
+
readonly stopLoss: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
838
|
+
readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
839
|
+
readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
|
|
840
|
+
readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
|
|
841
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
842
|
+
readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
|
|
843
|
+
readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
844
844
|
}, undefined>], undefined>;
|
|
845
|
-
}, undefined>,
|
|
845
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
846
846
|
triggerPrice: string;
|
|
847
847
|
execution: {
|
|
848
848
|
type: "market_ioc";
|
|
@@ -862,32 +862,32 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
862
862
|
};
|
|
863
863
|
};
|
|
864
864
|
}>]>;
|
|
865
|
-
readonly trailingStop:
|
|
866
|
-
readonly oco:
|
|
867
|
-
}, undefined>,
|
|
868
|
-
readonly takeProfit:
|
|
869
|
-
readonly stopLoss:
|
|
870
|
-
readonly trailingStop:
|
|
871
|
-
readonly trailingDistance:
|
|
872
|
-
readonly kind:
|
|
873
|
-
readonly distance:
|
|
874
|
-
}, undefined>,
|
|
875
|
-
readonly kind:
|
|
876
|
-
readonly bps:
|
|
877
|
-
}, undefined>,
|
|
878
|
-
readonly kind:
|
|
865
|
+
readonly trailingStop: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
866
|
+
readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
|
|
867
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
868
|
+
readonly takeProfit: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
869
|
+
readonly stopLoss: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
870
|
+
readonly trailingStop: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
871
|
+
readonly trailingDistance: validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
|
|
872
|
+
readonly kind: validation_d_exports.LiteralSchema<"distance", undefined>;
|
|
873
|
+
readonly distance: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
874
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
875
|
+
readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
|
|
876
|
+
readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
877
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
878
|
+
readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
|
|
879
879
|
}, undefined>], undefined>;
|
|
880
|
-
readonly maxSlippage:
|
|
881
|
-
readonly kind:
|
|
882
|
-
readonly slippage:
|
|
883
|
-
}, undefined>,
|
|
884
|
-
readonly kind:
|
|
885
|
-
readonly bps:
|
|
886
|
-
}, undefined>,
|
|
887
|
-
readonly kind:
|
|
880
|
+
readonly maxSlippage: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
|
|
881
|
+
readonly kind: validation_d_exports.LiteralSchema<"slippage", undefined>;
|
|
882
|
+
readonly slippage: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
883
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
884
|
+
readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
|
|
885
|
+
readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
|
|
886
|
+
}, undefined>, validation_d_exports.StrictObjectSchema<{
|
|
887
|
+
readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
|
|
888
888
|
}, undefined>], undefined>, undefined>;
|
|
889
|
-
readonly activationPrice:
|
|
890
|
-
}, undefined>,
|
|
889
|
+
readonly activationPrice: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
890
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
891
891
|
trailingDistance: {
|
|
892
892
|
kind: "bps";
|
|
893
893
|
bps: string | number;
|
|
@@ -930,8 +930,8 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
930
930
|
};
|
|
931
931
|
activationPriceTicks: bigint;
|
|
932
932
|
}>]>;
|
|
933
|
-
readonly oco:
|
|
934
|
-
}, undefined>], undefined>, undefined>,
|
|
933
|
+
readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
|
|
934
|
+
}, undefined>], undefined>, undefined>, validation_d_exports.TransformAction<{
|
|
935
935
|
takeProfit: {
|
|
936
936
|
triggerPriceTicks: bigint;
|
|
937
937
|
child: {
|
|
@@ -1113,7 +1113,7 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
1113
1113
|
};
|
|
1114
1114
|
oco: boolean;
|
|
1115
1115
|
} | undefined>]>;
|
|
1116
|
-
}, undefined>], undefined>,
|
|
1116
|
+
}, undefined>], undefined>, validation_d_exports.CheckAction<{
|
|
1117
1117
|
qty: string;
|
|
1118
1118
|
maxQuoteDebit?: undefined;
|
|
1119
1119
|
symbol: string;
|
|
@@ -1271,7 +1271,7 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
1271
1271
|
};
|
|
1272
1272
|
oco: boolean;
|
|
1273
1273
|
} | undefined;
|
|
1274
|
-
}, "maxQuoteDebit is supported only for BUY market IOC and BUY limit IOC orders">,
|
|
1274
|
+
}, "maxQuoteDebit is supported only for BUY market IOC and BUY limit IOC orders">, validation_d_exports.CheckAction<{
|
|
1275
1275
|
qty: string;
|
|
1276
1276
|
maxQuoteDebit?: undefined;
|
|
1277
1277
|
symbol: string;
|
|
@@ -1429,7 +1429,7 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
1429
1429
|
};
|
|
1430
1430
|
oco: boolean;
|
|
1431
1431
|
} | undefined;
|
|
1432
|
-
}, "SELL orders must use the quote fee asset">]>,
|
|
1432
|
+
}, "SELL orders must use the quote fee asset">]>, validation_d_exports.TransformAction<{
|
|
1433
1433
|
qty: string;
|
|
1434
1434
|
maxQuoteDebit?: undefined;
|
|
1435
1435
|
symbol: string;
|
|
@@ -1755,7 +1755,7 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
1755
1755
|
};
|
|
1756
1756
|
clientOrderId?: string | undefined;
|
|
1757
1757
|
selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined;
|
|
1758
|
-
}>]>, undefined>,
|
|
1758
|
+
}>]>, undefined>, validation_d_exports.MinLengthAction<({
|
|
1759
1759
|
sizing: {
|
|
1760
1760
|
readonly case: "baseQtyScaled";
|
|
1761
1761
|
readonly value: bigint;
|
|
@@ -1923,7 +1923,7 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
1923
1923
|
};
|
|
1924
1924
|
clientOrderId?: string | undefined;
|
|
1925
1925
|
selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined;
|
|
1926
|
-
})[], 1, "At least one order is required.">,
|
|
1926
|
+
})[], 1, "At least one order is required.">, validation_d_exports.MaxLengthAction<({
|
|
1927
1927
|
sizing: {
|
|
1928
1928
|
readonly case: "baseQtyScaled";
|
|
1929
1929
|
readonly value: bigint;
|
|
@@ -2092,10 +2092,10 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
2092
2092
|
clientOrderId?: string | undefined;
|
|
2093
2093
|
selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined;
|
|
2094
2094
|
})[], 20, "Batch create accepts at most 20 orders.">]>;
|
|
2095
|
-
readonly account:
|
|
2096
|
-
readonly subaccountId:
|
|
2095
|
+
readonly account: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.PicklistSchema<["active", "main"], undefined>, validation_d_exports.StrictObjectSchema<{
|
|
2096
|
+
readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
2097
2097
|
}, undefined>], undefined>, undefined>;
|
|
2098
|
-
}, undefined>,
|
|
2098
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
2099
2099
|
requestId?: string | undefined;
|
|
2100
2100
|
items: ({
|
|
2101
2101
|
sizing: {
|
|
@@ -2442,49 +2442,49 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.Schema
|
|
|
2442
2442
|
selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined;
|
|
2443
2443
|
})[];
|
|
2444
2444
|
}>]>;
|
|
2445
|
-
type BatchCreateOrdersInput =
|
|
2446
|
-
declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbols: string[]):
|
|
2447
|
-
readonly results:
|
|
2448
|
-
readonly clientOrderId:
|
|
2449
|
-
readonly outcome:
|
|
2450
|
-
readonly case:
|
|
2451
|
-
readonly value:
|
|
2452
|
-
readonly orderId:
|
|
2453
|
-
readonly takeProfitTriggerId:
|
|
2454
|
-
readonly stopLossTriggerId:
|
|
2455
|
-
readonly trailingStopTriggerId:
|
|
2456
|
-
readonly resolvedBaseQtyScaled:
|
|
2457
|
-
readonly submittedMaxQuoteDebitScaled:
|
|
2445
|
+
type BatchCreateOrdersInput = validation_d_exports.InferInput<ReturnType<typeof createBatchCreateOrdersInputSchema>>;
|
|
2446
|
+
declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbols: string[]): validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
|
|
2447
|
+
readonly results: validation_d_exports.ArraySchema<validation_d_exports.ObjectSchema<{
|
|
2448
|
+
readonly clientOrderId: validation_d_exports.StringSchema<undefined>;
|
|
2449
|
+
readonly outcome: validation_d_exports.VariantSchema<"case", [validation_d_exports.ObjectSchema<{
|
|
2450
|
+
readonly case: validation_d_exports.LiteralSchema<"accepted", undefined>;
|
|
2451
|
+
readonly value: validation_d_exports.ObjectSchema<{
|
|
2452
|
+
readonly orderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.TransformAction<bigint, string>]>;
|
|
2453
|
+
readonly takeProfitTriggerId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2454
|
+
readonly stopLossTriggerId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2455
|
+
readonly trailingStopTriggerId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2456
|
+
readonly resolvedBaseQtyScaled: validation_d_exports.BigintSchema<undefined>;
|
|
2457
|
+
readonly submittedMaxQuoteDebitScaled: validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>;
|
|
2458
2458
|
}, undefined>;
|
|
2459
|
-
}, undefined>,
|
|
2460
|
-
readonly case:
|
|
2461
|
-
readonly value:
|
|
2462
|
-
readonly error:
|
|
2463
|
-
readonly code:
|
|
2464
|
-
readonly violations:
|
|
2465
|
-
readonly fieldPath:
|
|
2466
|
-
readonly ruleId:
|
|
2467
|
-
readonly message:
|
|
2459
|
+
}, undefined>, validation_d_exports.ObjectSchema<{
|
|
2460
|
+
readonly case: validation_d_exports.LiteralSchema<"rejected", undefined>;
|
|
2461
|
+
readonly value: validation_d_exports.ObjectSchema<{
|
|
2462
|
+
readonly error: validation_d_exports.ObjectSchema<{
|
|
2463
|
+
readonly code: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof ErrorCode, undefined>, validation_d_exports.TransformAction<ErrorCode, "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED">]>;
|
|
2464
|
+
readonly violations: validation_d_exports.ArraySchema<validation_d_exports.ObjectSchema<{
|
|
2465
|
+
readonly fieldPath: validation_d_exports.StringSchema<undefined>;
|
|
2466
|
+
readonly ruleId: validation_d_exports.StringSchema<undefined>;
|
|
2467
|
+
readonly message: validation_d_exports.StringSchema<undefined>;
|
|
2468
2468
|
}, undefined>, undefined>;
|
|
2469
|
-
readonly rateLimit:
|
|
2470
|
-
readonly reason:
|
|
2471
|
-
readonly limit:
|
|
2472
|
-
readonly remaining:
|
|
2473
|
-
readonly retryAfterMs:
|
|
2474
|
-
readonly policyVersion:
|
|
2475
|
-
readonly operationId:
|
|
2476
|
-
readonly policyClass:
|
|
2477
|
-
readonly scope:
|
|
2478
|
-
readonly refillModel:
|
|
2469
|
+
readonly rateLimit: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
|
|
2470
|
+
readonly reason: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof FailureReason, undefined>, validation_d_exports.TransformAction<FailureReason, "unspecified" | "quota_exceeded" | "authority_unavailable">]>;
|
|
2471
|
+
readonly limit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2472
|
+
readonly remaining: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2473
|
+
readonly retryAfterMs: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2474
|
+
readonly policyVersion: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2475
|
+
readonly operationId: validation_d_exports.StringSchema<undefined>;
|
|
2476
|
+
readonly policyClass: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof PolicyClass, undefined>, validation_d_exports.TransformAction<PolicyClass, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider">]>;
|
|
2477
|
+
readonly scope: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof LimiterScope, undefined>, validation_d_exports.TransformAction<LimiterScope, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
2478
|
+
readonly refillModel: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof RefillModel, undefined>, validation_d_exports.TransformAction<RefillModel, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
2479
2479
|
}, undefined>, undefined>;
|
|
2480
2480
|
}, undefined>;
|
|
2481
2481
|
}, undefined>;
|
|
2482
2482
|
}, undefined>], undefined>;
|
|
2483
2483
|
}, undefined>, undefined>;
|
|
2484
|
-
readonly acceptedCount:
|
|
2485
|
-
readonly rejectedCount:
|
|
2486
|
-
readonly tsNs:
|
|
2487
|
-
}, undefined>,
|
|
2484
|
+
readonly acceptedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
|
|
2485
|
+
readonly rejectedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
|
|
2486
|
+
readonly tsNs: validation_d_exports.BigintSchema<undefined>;
|
|
2487
|
+
}, undefined>, validation_d_exports.CheckAction<{
|
|
2488
2488
|
results: {
|
|
2489
2489
|
clientOrderId: string;
|
|
2490
2490
|
outcome: {
|
|
@@ -2525,7 +2525,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbols:
|
|
|
2525
2525
|
acceptedCount: number;
|
|
2526
2526
|
rejectedCount: number;
|
|
2527
2527
|
tsNs: bigint;
|
|
2528
|
-
}, "Batch create result counts do not match the returned results.">,
|
|
2528
|
+
}, "Batch create result counts do not match the returned results.">, validation_d_exports.CheckAction<{
|
|
2529
2529
|
results: {
|
|
2530
2530
|
clientOrderId: string;
|
|
2531
2531
|
outcome: {
|
|
@@ -2566,7 +2566,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbols:
|
|
|
2566
2566
|
acceptedCount: number;
|
|
2567
2567
|
rejectedCount: number;
|
|
2568
2568
|
tsNs: bigint;
|
|
2569
|
-
}, "Batch create result count does not match the submitted item count.">,
|
|
2569
|
+
}, "Batch create result count does not match the submitted item count.">, validation_d_exports.TransformAction<{
|
|
2570
2570
|
results: {
|
|
2571
2571
|
clientOrderId: string;
|
|
2572
2572
|
outcome: {
|
|
@@ -2646,10 +2646,10 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbols:
|
|
|
2646
2646
|
acceptedCount: number;
|
|
2647
2647
|
rejectedCount: number;
|
|
2648
2648
|
}>]>;
|
|
2649
|
-
type BatchCreateOrdersResult =
|
|
2649
|
+
type BatchCreateOrdersResult = validation_d_exports.InferOutput<ReturnType<typeof createBatchCreateOrdersResultSchema>>;
|
|
2650
2650
|
type BatchCreateOrderResult = BatchCreateOrdersResult["results"][number];
|
|
2651
2651
|
type BatchReplaceOrdersInput = {
|
|
2652
|
-
account?:
|
|
2652
|
+
account?: validation_d_exports.InferInput<typeof AccountScopeInputEntries.account>;
|
|
2653
2653
|
symbolId: number;
|
|
2654
2654
|
requestId?: string;
|
|
2655
2655
|
items: Array<{
|
|
@@ -2657,38 +2657,38 @@ type BatchReplaceOrdersInput = {
|
|
|
2657
2657
|
clientOrderId?: string;
|
|
2658
2658
|
newPrice?: string;
|
|
2659
2659
|
newQty?: string;
|
|
2660
|
-
risk?:
|
|
2660
|
+
risk?: validation_d_exports.InferInput<ReturnType<typeof createRequiredRiskPolicyInputSchema>>;
|
|
2661
2661
|
clearRisk?: boolean;
|
|
2662
2662
|
newClientOrderId?: string;
|
|
2663
2663
|
}>;
|
|
2664
2664
|
};
|
|
2665
|
-
declare const BatchReplaceAdmissionItemSchema:
|
|
2666
|
-
readonly itemIndex:
|
|
2667
|
-
readonly status:
|
|
2668
|
-
readonly oldOrderId:
|
|
2669
|
-
readonly replacementOrderId:
|
|
2670
|
-
readonly clientOrderId:
|
|
2671
|
-
readonly code:
|
|
2672
|
-
readonly error:
|
|
2673
|
-
readonly code:
|
|
2674
|
-
readonly violations:
|
|
2675
|
-
readonly fieldPath:
|
|
2676
|
-
readonly ruleId:
|
|
2677
|
-
readonly message:
|
|
2665
|
+
declare const BatchReplaceAdmissionItemSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
|
|
2666
|
+
readonly itemIndex: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
|
|
2667
|
+
readonly status: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof BatchReplaceItemAdmissionStatus, undefined>, validation_d_exports.TransformAction<BatchReplaceItemAdmissionStatus, "unspecified" | "rejected" | "admitted">]>;
|
|
2668
|
+
readonly oldOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2669
|
+
readonly replacementOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2670
|
+
readonly clientOrderId: validation_d_exports.StringSchema<undefined>;
|
|
2671
|
+
readonly code: validation_d_exports.StringSchema<undefined>;
|
|
2672
|
+
readonly error: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
|
|
2673
|
+
readonly code: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof ErrorCode, undefined>, validation_d_exports.TransformAction<ErrorCode, "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED">]>;
|
|
2674
|
+
readonly violations: validation_d_exports.ArraySchema<validation_d_exports.ObjectSchema<{
|
|
2675
|
+
readonly fieldPath: validation_d_exports.StringSchema<undefined>;
|
|
2676
|
+
readonly ruleId: validation_d_exports.StringSchema<undefined>;
|
|
2677
|
+
readonly message: validation_d_exports.StringSchema<undefined>;
|
|
2678
2678
|
}, undefined>, undefined>;
|
|
2679
|
-
readonly rateLimit:
|
|
2680
|
-
readonly reason:
|
|
2681
|
-
readonly limit:
|
|
2682
|
-
readonly remaining:
|
|
2683
|
-
readonly retryAfterMs:
|
|
2684
|
-
readonly policyVersion:
|
|
2685
|
-
readonly operationId:
|
|
2686
|
-
readonly policyClass:
|
|
2687
|
-
readonly scope:
|
|
2688
|
-
readonly refillModel:
|
|
2679
|
+
readonly rateLimit: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
|
|
2680
|
+
readonly reason: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof FailureReason, undefined>, validation_d_exports.TransformAction<FailureReason, "unspecified" | "quota_exceeded" | "authority_unavailable">]>;
|
|
2681
|
+
readonly limit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2682
|
+
readonly remaining: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2683
|
+
readonly retryAfterMs: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2684
|
+
readonly policyVersion: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2685
|
+
readonly operationId: validation_d_exports.StringSchema<undefined>;
|
|
2686
|
+
readonly policyClass: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof PolicyClass, undefined>, validation_d_exports.TransformAction<PolicyClass, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider">]>;
|
|
2687
|
+
readonly scope: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof LimiterScope, undefined>, validation_d_exports.TransformAction<LimiterScope, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
2688
|
+
readonly refillModel: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof RefillModel, undefined>, validation_d_exports.TransformAction<RefillModel, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
2689
2689
|
}, undefined>, undefined>;
|
|
2690
2690
|
}, undefined>, undefined>;
|
|
2691
|
-
}, undefined>,
|
|
2691
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
2692
2692
|
itemIndex: number;
|
|
2693
2693
|
status: "unspecified" | "rejected" | "admitted";
|
|
2694
2694
|
oldOrderId?: string | undefined;
|
|
@@ -2741,37 +2741,37 @@ declare const BatchReplaceAdmissionItemSchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
2741
2741
|
} | undefined;
|
|
2742
2742
|
} | undefined;
|
|
2743
2743
|
}>]>;
|
|
2744
|
-
type BatchReplaceAdmissionItem =
|
|
2745
|
-
declare const BatchReplaceOrdersResultSchema:
|
|
2746
|
-
readonly batchRequestId:
|
|
2747
|
-
readonly status:
|
|
2748
|
-
readonly results:
|
|
2749
|
-
readonly itemIndex:
|
|
2750
|
-
readonly status:
|
|
2751
|
-
readonly oldOrderId:
|
|
2752
|
-
readonly replacementOrderId:
|
|
2753
|
-
readonly clientOrderId:
|
|
2754
|
-
readonly code:
|
|
2755
|
-
readonly error:
|
|
2756
|
-
readonly code:
|
|
2757
|
-
readonly violations:
|
|
2758
|
-
readonly fieldPath:
|
|
2759
|
-
readonly ruleId:
|
|
2760
|
-
readonly message:
|
|
2744
|
+
type BatchReplaceAdmissionItem = validation_d_exports.InferOutput<typeof BatchReplaceAdmissionItemSchema>;
|
|
2745
|
+
declare const BatchReplaceOrdersResultSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
|
|
2746
|
+
readonly batchRequestId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.GtValueAction<bigint, 0n, undefined>, validation_d_exports.TransformAction<bigint, string>]>;
|
|
2747
|
+
readonly status: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof BatchReplaceAdmissionStatus, undefined>, validation_d_exports.TransformAction<BatchReplaceAdmissionStatus, "unspecified" | "rejected" | "admitted" | "partially_admitted">]>;
|
|
2748
|
+
readonly results: validation_d_exports.ArraySchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
|
|
2749
|
+
readonly itemIndex: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
|
|
2750
|
+
readonly status: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof BatchReplaceItemAdmissionStatus, undefined>, validation_d_exports.TransformAction<BatchReplaceItemAdmissionStatus, "unspecified" | "rejected" | "admitted">]>;
|
|
2751
|
+
readonly oldOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2752
|
+
readonly replacementOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2753
|
+
readonly clientOrderId: validation_d_exports.StringSchema<undefined>;
|
|
2754
|
+
readonly code: validation_d_exports.StringSchema<undefined>;
|
|
2755
|
+
readonly error: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
|
|
2756
|
+
readonly code: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof ErrorCode, undefined>, validation_d_exports.TransformAction<ErrorCode, "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED">]>;
|
|
2757
|
+
readonly violations: validation_d_exports.ArraySchema<validation_d_exports.ObjectSchema<{
|
|
2758
|
+
readonly fieldPath: validation_d_exports.StringSchema<undefined>;
|
|
2759
|
+
readonly ruleId: validation_d_exports.StringSchema<undefined>;
|
|
2760
|
+
readonly message: validation_d_exports.StringSchema<undefined>;
|
|
2761
2761
|
}, undefined>, undefined>;
|
|
2762
|
-
readonly rateLimit:
|
|
2763
|
-
readonly reason:
|
|
2764
|
-
readonly limit:
|
|
2765
|
-
readonly remaining:
|
|
2766
|
-
readonly retryAfterMs:
|
|
2767
|
-
readonly policyVersion:
|
|
2768
|
-
readonly operationId:
|
|
2769
|
-
readonly policyClass:
|
|
2770
|
-
readonly scope:
|
|
2771
|
-
readonly refillModel:
|
|
2762
|
+
readonly rateLimit: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
|
|
2763
|
+
readonly reason: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof FailureReason, undefined>, validation_d_exports.TransformAction<FailureReason, "unspecified" | "quota_exceeded" | "authority_unavailable">]>;
|
|
2764
|
+
readonly limit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2765
|
+
readonly remaining: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2766
|
+
readonly retryAfterMs: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2767
|
+
readonly policyVersion: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2768
|
+
readonly operationId: validation_d_exports.StringSchema<undefined>;
|
|
2769
|
+
readonly policyClass: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof PolicyClass, undefined>, validation_d_exports.TransformAction<PolicyClass, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider">]>;
|
|
2770
|
+
readonly scope: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof LimiterScope, undefined>, validation_d_exports.TransformAction<LimiterScope, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
2771
|
+
readonly refillModel: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof RefillModel, undefined>, validation_d_exports.TransformAction<RefillModel, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
2772
2772
|
}, undefined>, undefined>;
|
|
2773
2773
|
}, undefined>, undefined>;
|
|
2774
|
-
}, undefined>,
|
|
2774
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
2775
2775
|
itemIndex: number;
|
|
2776
2776
|
status: "unspecified" | "rejected" | "admitted";
|
|
2777
2777
|
oldOrderId?: string | undefined;
|
|
@@ -2824,10 +2824,10 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
2824
2824
|
} | undefined;
|
|
2825
2825
|
} | undefined;
|
|
2826
2826
|
}>]>, undefined>;
|
|
2827
|
-
readonly acceptedCount:
|
|
2828
|
-
readonly rejectedCount:
|
|
2829
|
-
readonly acceptedTsNs:
|
|
2830
|
-
}, undefined>,
|
|
2827
|
+
readonly acceptedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
|
|
2828
|
+
readonly rejectedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
|
|
2829
|
+
readonly acceptedTsNs: validation_d_exports.BigintSchema<undefined>;
|
|
2830
|
+
}, undefined>, validation_d_exports.CheckAction<{
|
|
2831
2831
|
batchRequestId: string;
|
|
2832
2832
|
status: "unspecified" | "rejected" | "admitted" | "partially_admitted";
|
|
2833
2833
|
results: {
|
|
@@ -2860,7 +2860,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
2860
2860
|
acceptedCount: number;
|
|
2861
2861
|
rejectedCount: number;
|
|
2862
2862
|
acceptedTsNs: bigint;
|
|
2863
|
-
}, "Batch replace result counts do not match the returned results.">,
|
|
2863
|
+
}, "Batch replace result counts do not match the returned results.">, validation_d_exports.CheckAction<{
|
|
2864
2864
|
batchRequestId: string;
|
|
2865
2865
|
status: "unspecified" | "rejected" | "admitted" | "partially_admitted";
|
|
2866
2866
|
results: {
|
|
@@ -2893,7 +2893,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
2893
2893
|
acceptedCount: number;
|
|
2894
2894
|
rejectedCount: number;
|
|
2895
2895
|
acceptedTsNs: bigint;
|
|
2896
|
-
}, "Batch replace results must preserve request item order.">,
|
|
2896
|
+
}, "Batch replace results must preserve request item order.">, validation_d_exports.TransformAction<{
|
|
2897
2897
|
batchRequestId: string;
|
|
2898
2898
|
status: "unspecified" | "rejected" | "admitted" | "partially_admitted";
|
|
2899
2899
|
results: {
|
|
@@ -2961,13 +2961,13 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
2961
2961
|
acceptedCount: number;
|
|
2962
2962
|
rejectedCount: number;
|
|
2963
2963
|
}>]>;
|
|
2964
|
-
type BatchReplaceOrdersResult =
|
|
2965
|
-
declare const GetBatchReplaceStatusInputSchema:
|
|
2966
|
-
readonly batchRequestId:
|
|
2967
|
-
readonly account:
|
|
2968
|
-
readonly subaccountId:
|
|
2964
|
+
type BatchReplaceOrdersResult = validation_d_exports.InferOutput<typeof BatchReplaceOrdersResultSchema>;
|
|
2965
|
+
declare const GetBatchReplaceStatusInputSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
2966
|
+
readonly batchRequestId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>, validation_d_exports.CheckAction<bigint, "batchRequestId must be greater than zero">]>;
|
|
2967
|
+
readonly account: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.PicklistSchema<["active", "main"], undefined>, validation_d_exports.StrictObjectSchema<{
|
|
2968
|
+
readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
2969
2969
|
}, undefined>], undefined>, undefined>;
|
|
2970
|
-
}, undefined>,
|
|
2970
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
2971
2971
|
batchRequestId: bigint;
|
|
2972
2972
|
account?: "active" | "main" | {
|
|
2973
2973
|
subaccountId: string;
|
|
@@ -2976,19 +2976,19 @@ declare const GetBatchReplaceStatusInputSchema: v.SchemaWithPipe<readonly [v.Str
|
|
|
2976
2976
|
subaccountId: bigint | undefined;
|
|
2977
2977
|
batchRequestId: bigint;
|
|
2978
2978
|
}>]>;
|
|
2979
|
-
type GetBatchReplaceStatusInput =
|
|
2980
|
-
declare const GetBatchReplaceStatusResultSchema:
|
|
2981
|
-
readonly batchRequestId:
|
|
2982
|
-
readonly admissionStatus:
|
|
2983
|
-
readonly items:
|
|
2984
|
-
readonly itemIndex:
|
|
2985
|
-
readonly phase:
|
|
2986
|
-
readonly oldOrderId:
|
|
2987
|
-
readonly replacementOrderId:
|
|
2988
|
-
readonly orderStatus:
|
|
2989
|
-
readonly code:
|
|
2990
|
-
readonly updatedTsNs:
|
|
2991
|
-
}, undefined>,
|
|
2979
|
+
type GetBatchReplaceStatusInput = validation_d_exports.InferInput<typeof GetBatchReplaceStatusInputSchema>;
|
|
2980
|
+
declare const GetBatchReplaceStatusResultSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
|
|
2981
|
+
readonly batchRequestId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.GtValueAction<bigint, 0n, undefined>, validation_d_exports.TransformAction<bigint, string>]>;
|
|
2982
|
+
readonly admissionStatus: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof BatchReplaceAdmissionStatus, undefined>, validation_d_exports.TransformAction<BatchReplaceAdmissionStatus, "unspecified" | "rejected" | "admitted" | "partially_admitted">]>;
|
|
2983
|
+
readonly items: validation_d_exports.ArraySchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
|
|
2984
|
+
readonly itemIndex: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
|
|
2985
|
+
readonly phase: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof BatchReplacePhase, undefined>, validation_d_exports.TransformAction<BatchReplacePhase, "unspecified" | "terminal" | "rejected" | "admitted" | "working">]>;
|
|
2986
|
+
readonly oldOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2987
|
+
readonly replacementOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
2988
|
+
readonly orderStatus: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof OrderStatus, undefined>, validation_d_exports.TransformAction<OrderStatus, "unspecified" | "pending" | "canceled" | "rejected" | "working" | "pending_cancel" | "filled">]>;
|
|
2989
|
+
readonly code: validation_d_exports.StringSchema<undefined>;
|
|
2990
|
+
readonly updatedTsNs: validation_d_exports.BigintSchema<undefined>;
|
|
2991
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
2992
2992
|
itemIndex: number;
|
|
2993
2993
|
phase: "unspecified" | "terminal" | "rejected" | "admitted" | "working";
|
|
2994
2994
|
oldOrderId?: string | undefined;
|
|
@@ -3006,11 +3006,11 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
3006
3006
|
replacementOrderId?: string | undefined;
|
|
3007
3007
|
orderStatus: "unspecified" | "pending" | "canceled" | "rejected" | "working" | "pending_cancel" | "filled";
|
|
3008
3008
|
}>]>, undefined>;
|
|
3009
|
-
readonly acceptedCount:
|
|
3010
|
-
readonly rejectedCount:
|
|
3011
|
-
readonly acceptedTsNs:
|
|
3012
|
-
readonly updatedTsNs:
|
|
3013
|
-
}, undefined>,
|
|
3009
|
+
readonly acceptedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
|
|
3010
|
+
readonly rejectedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
|
|
3011
|
+
readonly acceptedTsNs: validation_d_exports.BigintSchema<undefined>;
|
|
3012
|
+
readonly updatedTsNs: validation_d_exports.BigintSchema<undefined>;
|
|
3013
|
+
}, undefined>, validation_d_exports.CheckAction<{
|
|
3014
3014
|
batchRequestId: string;
|
|
3015
3015
|
admissionStatus: "unspecified" | "rejected" | "admitted" | "partially_admitted";
|
|
3016
3016
|
items: {
|
|
@@ -3027,7 +3027,7 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
3027
3027
|
rejectedCount: number;
|
|
3028
3028
|
acceptedTsNs: bigint;
|
|
3029
3029
|
updatedTsNs: bigint;
|
|
3030
|
-
}, "Batch replace status counts do not match the returned items.">,
|
|
3030
|
+
}, "Batch replace status counts do not match the returned items.">, validation_d_exports.CheckAction<{
|
|
3031
3031
|
batchRequestId: string;
|
|
3032
3032
|
admissionStatus: "unspecified" | "rejected" | "admitted" | "partially_admitted";
|
|
3033
3033
|
items: {
|
|
@@ -3044,7 +3044,7 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
3044
3044
|
rejectedCount: number;
|
|
3045
3045
|
acceptedTsNs: bigint;
|
|
3046
3046
|
updatedTsNs: bigint;
|
|
3047
|
-
}, "Batch replace status items must preserve request item order.">,
|
|
3047
|
+
}, "Batch replace status items must preserve request item order.">, validation_d_exports.TransformAction<{
|
|
3048
3048
|
batchRequestId: string;
|
|
3049
3049
|
admissionStatus: "unspecified" | "rejected" | "admitted" | "partially_admitted";
|
|
3050
3050
|
items: {
|
|
@@ -3081,23 +3081,23 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
3081
3081
|
acceptedCount: number;
|
|
3082
3082
|
rejectedCount: number;
|
|
3083
3083
|
}>]>;
|
|
3084
|
-
type GetBatchReplaceStatusResult =
|
|
3085
|
-
declare const BatchCancelOrderInputSchema:
|
|
3086
|
-
readonly orderId:
|
|
3087
|
-
readonly clientOrderId:
|
|
3088
|
-
readonly symbolId:
|
|
3089
|
-
}, undefined>,
|
|
3084
|
+
type GetBatchReplaceStatusResult = validation_d_exports.InferOutput<typeof GetBatchReplaceStatusResultSchema>;
|
|
3085
|
+
declare const BatchCancelOrderInputSchema: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
3086
|
+
readonly orderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>, validation_d_exports.CheckAction<bigint, "items.orderId must be greater than zero">]>;
|
|
3087
|
+
readonly clientOrderId: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
3088
|
+
readonly symbolId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
3089
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
3090
3090
|
orderId: bigint;
|
|
3091
3091
|
clientOrderId?: undefined;
|
|
3092
3092
|
symbolId?: number | undefined;
|
|
3093
3093
|
}, {
|
|
3094
3094
|
orderId: bigint;
|
|
3095
3095
|
symbolId: number | undefined;
|
|
3096
|
-
}>]>,
|
|
3097
|
-
readonly orderId:
|
|
3098
|
-
readonly clientOrderId:
|
|
3099
|
-
readonly symbolId:
|
|
3100
|
-
}, undefined>,
|
|
3096
|
+
}>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
3097
|
+
readonly orderId: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
3098
|
+
readonly clientOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MaxLengthAction<string, 36, undefined>, validation_d_exports.RegexAction<string, "clientOrderId has an invalid format">]>, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
3099
|
+
readonly symbolId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
3100
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
3101
3101
|
orderId?: undefined;
|
|
3102
3102
|
clientOrderId: string;
|
|
3103
3103
|
symbolId?: number | undefined;
|
|
@@ -3105,48 +3105,48 @@ declare const BatchCancelOrderInputSchema: v.UnionSchema<[v.SchemaWithPipe<reado
|
|
|
3105
3105
|
clientOrderId: string;
|
|
3106
3106
|
symbolId: number | undefined;
|
|
3107
3107
|
}>]>], undefined>;
|
|
3108
|
-
type BatchCancelOrderInput =
|
|
3109
|
-
declare const BatchCancelOrdersInputSchema:
|
|
3110
|
-
readonly requestId:
|
|
3111
|
-
readonly items:
|
|
3112
|
-
readonly orderId:
|
|
3113
|
-
readonly clientOrderId:
|
|
3114
|
-
readonly symbolId:
|
|
3115
|
-
}, undefined>,
|
|
3108
|
+
type BatchCancelOrderInput = validation_d_exports.InferInput<typeof BatchCancelOrderInputSchema>;
|
|
3109
|
+
declare const BatchCancelOrdersInputSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
3110
|
+
readonly requestId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.MaxLengthAction<string, 64, undefined>, validation_d_exports.RegexAction<string, "requestId has an invalid format">]>, undefined>;
|
|
3111
|
+
readonly items: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ArraySchema<validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
3112
|
+
readonly orderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>, validation_d_exports.CheckAction<bigint, "items.orderId must be greater than zero">]>;
|
|
3113
|
+
readonly clientOrderId: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
3114
|
+
readonly symbolId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
3115
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
3116
3116
|
orderId: bigint;
|
|
3117
3117
|
clientOrderId?: undefined;
|
|
3118
3118
|
symbolId?: number | undefined;
|
|
3119
3119
|
}, {
|
|
3120
3120
|
orderId: bigint;
|
|
3121
3121
|
symbolId: number | undefined;
|
|
3122
|
-
}>]>,
|
|
3123
|
-
readonly orderId:
|
|
3124
|
-
readonly clientOrderId:
|
|
3125
|
-
readonly symbolId:
|
|
3126
|
-
}, undefined>,
|
|
3122
|
+
}>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
|
|
3123
|
+
readonly orderId: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
|
|
3124
|
+
readonly clientOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MaxLengthAction<string, 36, undefined>, validation_d_exports.RegexAction<string, "clientOrderId has an invalid format">]>, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
3125
|
+
readonly symbolId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
3126
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
3127
3127
|
orderId?: undefined;
|
|
3128
3128
|
clientOrderId: string;
|
|
3129
3129
|
symbolId?: number | undefined;
|
|
3130
3130
|
}, {
|
|
3131
3131
|
clientOrderId: string;
|
|
3132
3132
|
symbolId: number | undefined;
|
|
3133
|
-
}>]>], undefined>, undefined>,
|
|
3133
|
+
}>]>], undefined>, undefined>, validation_d_exports.MinLengthAction<({
|
|
3134
3134
|
orderId: bigint;
|
|
3135
3135
|
symbolId: number | undefined;
|
|
3136
3136
|
} | {
|
|
3137
3137
|
clientOrderId: string;
|
|
3138
3138
|
symbolId: number | undefined;
|
|
3139
|
-
})[], 1, "At least one order is required.">,
|
|
3139
|
+
})[], 1, "At least one order is required.">, validation_d_exports.MaxLengthAction<({
|
|
3140
3140
|
orderId: bigint;
|
|
3141
3141
|
symbolId: number | undefined;
|
|
3142
3142
|
} | {
|
|
3143
3143
|
clientOrderId: string;
|
|
3144
3144
|
symbolId: number | undefined;
|
|
3145
3145
|
})[], 50, "Batch cancel accepts at most 50 orders.">]>;
|
|
3146
|
-
readonly account:
|
|
3147
|
-
readonly subaccountId:
|
|
3146
|
+
readonly account: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.PicklistSchema<["active", "main"], undefined>, validation_d_exports.StrictObjectSchema<{
|
|
3147
|
+
readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
|
|
3148
3148
|
}, undefined>], undefined>, undefined>;
|
|
3149
|
-
}, undefined>,
|
|
3149
|
+
}, undefined>, validation_d_exports.TransformAction<{
|
|
3150
3150
|
requestId?: string | undefined;
|
|
3151
3151
|
items: ({
|
|
3152
3152
|
orderId: bigint;
|
|
@@ -3169,63 +3169,63 @@ declare const BatchCancelOrdersInputSchema: v.SchemaWithPipe<readonly [v.StrictO
|
|
|
3169
3169
|
symbolId: number | undefined;
|
|
3170
3170
|
})[];
|
|
3171
3171
|
}>]>;
|
|
3172
|
-
type BatchCancelOrdersInput =
|
|
3173
|
-
declare const BatchCancelOrderResultSchema:
|
|
3174
|
-
readonly status:
|
|
3175
|
-
readonly orderId:
|
|
3176
|
-
readonly clientOrderId:
|
|
3177
|
-
readonly code:
|
|
3178
|
-
readonly error:
|
|
3179
|
-
readonly code:
|
|
3180
|
-
readonly violations:
|
|
3181
|
-
readonly fieldPath:
|
|
3182
|
-
readonly ruleId:
|
|
3183
|
-
readonly message:
|
|
3172
|
+
type BatchCancelOrdersInput = validation_d_exports.InferInput<typeof BatchCancelOrdersInputSchema>;
|
|
3173
|
+
declare const BatchCancelOrderResultSchema: validation_d_exports.ObjectSchema<{
|
|
3174
|
+
readonly status: validation_d_exports.PicklistSchema<["accepted", "rejected"], undefined>;
|
|
3175
|
+
readonly orderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3176
|
+
readonly clientOrderId: validation_d_exports.StringSchema<undefined>;
|
|
3177
|
+
readonly code: validation_d_exports.StringSchema<undefined>;
|
|
3178
|
+
readonly error: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
|
|
3179
|
+
readonly code: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof ErrorCode, undefined>, validation_d_exports.TransformAction<ErrorCode, "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED">]>;
|
|
3180
|
+
readonly violations: validation_d_exports.ArraySchema<validation_d_exports.ObjectSchema<{
|
|
3181
|
+
readonly fieldPath: validation_d_exports.StringSchema<undefined>;
|
|
3182
|
+
readonly ruleId: validation_d_exports.StringSchema<undefined>;
|
|
3183
|
+
readonly message: validation_d_exports.StringSchema<undefined>;
|
|
3184
3184
|
}, undefined>, undefined>;
|
|
3185
|
-
readonly rateLimit:
|
|
3186
|
-
readonly reason:
|
|
3187
|
-
readonly limit:
|
|
3188
|
-
readonly remaining:
|
|
3189
|
-
readonly retryAfterMs:
|
|
3190
|
-
readonly policyVersion:
|
|
3191
|
-
readonly operationId:
|
|
3192
|
-
readonly policyClass:
|
|
3193
|
-
readonly scope:
|
|
3194
|
-
readonly refillModel:
|
|
3185
|
+
readonly rateLimit: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
|
|
3186
|
+
readonly reason: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof FailureReason, undefined>, validation_d_exports.TransformAction<FailureReason, "unspecified" | "quota_exceeded" | "authority_unavailable">]>;
|
|
3187
|
+
readonly limit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3188
|
+
readonly remaining: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3189
|
+
readonly retryAfterMs: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3190
|
+
readonly policyVersion: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3191
|
+
readonly operationId: validation_d_exports.StringSchema<undefined>;
|
|
3192
|
+
readonly policyClass: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof PolicyClass, undefined>, validation_d_exports.TransformAction<PolicyClass, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider">]>;
|
|
3193
|
+
readonly scope: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof LimiterScope, undefined>, validation_d_exports.TransformAction<LimiterScope, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
3194
|
+
readonly refillModel: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof RefillModel, undefined>, validation_d_exports.TransformAction<RefillModel, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
3195
3195
|
}, undefined>, undefined>;
|
|
3196
3196
|
}, undefined>, undefined>;
|
|
3197
3197
|
}, undefined>;
|
|
3198
|
-
type BatchCancelOrderResult =
|
|
3199
|
-
declare const BatchCancelOrdersResultSchema:
|
|
3200
|
-
readonly results:
|
|
3201
|
-
readonly status:
|
|
3202
|
-
readonly orderId:
|
|
3203
|
-
readonly clientOrderId:
|
|
3204
|
-
readonly code:
|
|
3205
|
-
readonly error:
|
|
3206
|
-
readonly code:
|
|
3207
|
-
readonly violations:
|
|
3208
|
-
readonly fieldPath:
|
|
3209
|
-
readonly ruleId:
|
|
3210
|
-
readonly message:
|
|
3198
|
+
type BatchCancelOrderResult = validation_d_exports.InferOutput<typeof BatchCancelOrderResultSchema>;
|
|
3199
|
+
declare const BatchCancelOrdersResultSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
|
|
3200
|
+
readonly results: validation_d_exports.ArraySchema<validation_d_exports.ObjectSchema<{
|
|
3201
|
+
readonly status: validation_d_exports.PicklistSchema<["accepted", "rejected"], undefined>;
|
|
3202
|
+
readonly orderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3203
|
+
readonly clientOrderId: validation_d_exports.StringSchema<undefined>;
|
|
3204
|
+
readonly code: validation_d_exports.StringSchema<undefined>;
|
|
3205
|
+
readonly error: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
|
|
3206
|
+
readonly code: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof ErrorCode, undefined>, validation_d_exports.TransformAction<ErrorCode, "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED">]>;
|
|
3207
|
+
readonly violations: validation_d_exports.ArraySchema<validation_d_exports.ObjectSchema<{
|
|
3208
|
+
readonly fieldPath: validation_d_exports.StringSchema<undefined>;
|
|
3209
|
+
readonly ruleId: validation_d_exports.StringSchema<undefined>;
|
|
3210
|
+
readonly message: validation_d_exports.StringSchema<undefined>;
|
|
3211
3211
|
}, undefined>, undefined>;
|
|
3212
|
-
readonly rateLimit:
|
|
3213
|
-
readonly reason:
|
|
3214
|
-
readonly limit:
|
|
3215
|
-
readonly remaining:
|
|
3216
|
-
readonly retryAfterMs:
|
|
3217
|
-
readonly policyVersion:
|
|
3218
|
-
readonly operationId:
|
|
3219
|
-
readonly policyClass:
|
|
3220
|
-
readonly scope:
|
|
3221
|
-
readonly refillModel:
|
|
3212
|
+
readonly rateLimit: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
|
|
3213
|
+
readonly reason: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof FailureReason, undefined>, validation_d_exports.TransformAction<FailureReason, "unspecified" | "quota_exceeded" | "authority_unavailable">]>;
|
|
3214
|
+
readonly limit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3215
|
+
readonly remaining: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3216
|
+
readonly retryAfterMs: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3217
|
+
readonly policyVersion: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3218
|
+
readonly operationId: validation_d_exports.StringSchema<undefined>;
|
|
3219
|
+
readonly policyClass: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof PolicyClass, undefined>, validation_d_exports.TransformAction<PolicyClass, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider">]>;
|
|
3220
|
+
readonly scope: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof LimiterScope, undefined>, validation_d_exports.TransformAction<LimiterScope, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
3221
|
+
readonly refillModel: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof RefillModel, undefined>, validation_d_exports.TransformAction<RefillModel, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
3222
3222
|
}, undefined>, undefined>;
|
|
3223
3223
|
}, undefined>, undefined>;
|
|
3224
3224
|
}, undefined>, undefined>;
|
|
3225
|
-
readonly acceptedCount:
|
|
3226
|
-
readonly rejectedCount:
|
|
3227
|
-
readonly tsNs:
|
|
3228
|
-
}, undefined>,
|
|
3225
|
+
readonly acceptedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
|
|
3226
|
+
readonly rejectedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
|
|
3227
|
+
readonly tsNs: validation_d_exports.BigintSchema<undefined>;
|
|
3228
|
+
}, undefined>, validation_d_exports.CheckAction<{
|
|
3229
3229
|
results: {
|
|
3230
3230
|
status: "accepted" | "rejected";
|
|
3231
3231
|
orderId?: string | undefined;
|
|
@@ -3254,7 +3254,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
3254
3254
|
acceptedCount: number;
|
|
3255
3255
|
rejectedCount: number;
|
|
3256
3256
|
tsNs: bigint;
|
|
3257
|
-
}, "Batch cancel result counts do not match the returned results.">,
|
|
3257
|
+
}, "Batch cancel result counts do not match the returned results.">, validation_d_exports.TransformAction<{
|
|
3258
3258
|
results: {
|
|
3259
3259
|
status: "accepted" | "rejected";
|
|
3260
3260
|
orderId?: string | undefined;
|
|
@@ -3314,7 +3314,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
3314
3314
|
acceptedCount: number;
|
|
3315
3315
|
rejectedCount: number;
|
|
3316
3316
|
}>]>;
|
|
3317
|
-
type BatchCancelOrdersResult =
|
|
3317
|
+
type BatchCancelOrdersResult = validation_d_exports.InferOutput<typeof BatchCancelOrdersResultSchema>;
|
|
3318
3318
|
//#endregion
|
|
3319
3319
|
export { BatchCancelOrderInput, BatchCancelOrderResult, BatchCancelOrdersInput, BatchCancelOrdersInputSchema, BatchCancelOrdersResult, BatchCancelOrdersResultSchema, BatchCreateOrderResult, BatchCreateOrdersInput, BatchCreateOrdersResult, BatchReplaceAdmissionItem, BatchReplaceOrdersInput, BatchReplaceOrdersResult, BatchReplaceOrdersResultSchema, CancelAllAfterInput, CancelAllAfterInputSchema, CancelAllAfterResult, CancelAllAfterResultSchema, GetBatchReplaceStatusInput, GetBatchReplaceStatusInputSchema, GetBatchReplaceStatusResult, GetBatchReplaceStatusResultSchema, createBatchCreateOrdersInputSchema, createBatchCreateOrdersResultSchema };
|
|
3320
3320
|
//# sourceMappingURL=orders-batch.schemas.d.ts.map
|