@polyester/sdk 0.36.0-devnet-20261116010019 → 0.36.0-devnet-20261116180931
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 +5 -1
- package/dist/browser-core.js +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +1 -1
- package/dist/gen/ai/v1/assistant_pb.js +1 -1
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts +1 -1
- package/dist/gen/auth/v1/address_book_pb.d.ts +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +2 -2
- package/dist/gen/auth/v1/auth_pb.js +1 -1
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/mfa_pb.d.ts +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +1 -1
- package/dist/gen/auth/v1/profile_pb.d.ts +1 -1
- package/dist/gen/auth/v1/resolve_pb.d.ts +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +2 -2
- package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
- package/dist/gen/chain/analytics/v1/analytics_read_pb.d.ts +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +4 -3
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +3 -2
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/chain/zipper/v1/reason_pb.d.ts +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +1 -1
- package/dist/gen/changelog/v1/changelog_pb.d.ts +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +1 -1
- package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
- package/dist/gen/fees/v1/fees_pb.d.ts +1 -1
- package/dist/gen/index.js +21 -21
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +3 -2
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
- package/dist/gen/ledger/read/v1/ledger_read_pb.js +2 -1
- package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
- package/dist/gen/ledger/read/v1/statement_export_pb.d.ts +1 -1
- package/dist/gen/marketdata/v1/asset_info_pb.d.ts +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts +1 -4
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.js +0 -3
- package/dist/gen/marketdata/v1/heatmap_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +1 -1
- package/dist/gen/notifications/v1/notifications_pb.d.ts +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.d.ts +29 -80
- package/dist/gen/orderbook/v1/orderbook_pb.d.ts.map +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.js +3 -77
- package/dist/gen/orderbook/v1/orderbook_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +127 -72
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +37 -19
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +31 -13
- package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +1 -1
- package/dist/gen/polyester/type/v1/u128_pb.d.ts +1 -1
- package/dist/gen/privatews/v1/private_ws_pb.d.ts +1 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +1 -1
- package/dist/gen/rewards/v1/rewards_pb.d.ts +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +88 -61
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +15 -12
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +8 -4
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +46 -43
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +10 -10
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -1
- package/dist/gen/swap/v1/swap_pb.d.ts +1 -1
- package/dist/gen/system/v1/system_pb.d.ts +1 -1
- package/dist/gen/tradews/v1/trade_ws_pb.d.ts +1 -1
- package/dist/gen/transfer/v1/dust_conversion_pb.d.ts +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +3 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js +2 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +66 -50
- package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
- package/dist/gen/vip/v1/vip_pb.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/realtime/client.js +1 -1
- package/dist/realtime/client.js.map +1 -1
- package/dist/realtime/snapshot-then-stream.js +1 -1
- package/dist/server-core.js +3 -3
- package/dist/services/accounts/accounts.js +1 -1
- package/dist/services/accounts/accounts.schemas.js +1 -1
- package/dist/services/address-book/address-book.js +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/api-keys/api-keys.js +1 -1
- package/dist/services/api-keys/api-keys.schemas.js +1 -1
- package/dist/services/assistant/assistant-events.schemas.d.ts +22 -22
- package/dist/services/assistant/assistant.js +1 -1
- package/dist/services/assistant/assistant.schemas.js +1 -1
- package/dist/services/auth/account-signer-auth.js +2 -2
- package/dist/services/auth/auth.js +1 -1
- package/dist/services/auth/profile/profile.js +2 -2
- package/dist/services/auto-withdraw/auto-withdraw.js +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -1
- package/dist/services/balances/balances.js +1 -1
- package/dist/services/candles/candles.js +2 -2
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/chain-analytics/chain-analytics.js +1 -1
- package/dist/services/changelog/changelog.js +1 -1
- package/dist/services/changelog/changelog.schemas.d.ts +16 -16
- package/dist/services/checkpoints/checkpoints.js +1 -1
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
- package/dist/services/claims/claims.js +1 -1
- package/dist/services/claims/claims.schemas.js +1 -1
- package/dist/services/deposit/deposit.js +1 -1
- package/dist/services/dust-conversion/dust-conversion.js +1 -1
- package/dist/services/dust-conversion/dust-conversion.schemas.js +1 -1
- package/dist/services/fees/fees.js +1 -1
- package/dist/services/guard-signer/guard-signer.js +1 -1
- package/dist/services/guard-signer/guard-signer.schemas.js +1 -1
- package/dist/services/heatmap/heatmap.js +2 -2
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.js +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +10 -10
- package/dist/services/lifecycle/lifecycle.js +3 -3
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +104 -104
- package/dist/services/lifecycle/lifecycle.schemas.js +2 -2
- package/dist/services/market-data/market-data.js +3 -3
- package/dist/services/market-overview/market-overview.js +2 -2
- package/dist/services/market-overview/market-overview.schemas.js +1 -1
- package/dist/services/notifications/notifications.js +1 -1
- package/dist/services/orderbook/orderbook.codecs.js +2 -42
- package/dist/services/orderbook/orderbook.codecs.js.map +1 -1
- package/dist/services/orderbook/orderbook.d.ts +3 -1
- package/dist/services/orderbook/orderbook.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.js +24 -17
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.d.ts +12 -11
- package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.js +10 -12
- package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +1 -1
- package/dist/services/orders/order-errors.schemas.js +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +39 -39
- package/dist/services/orders/orders-batch.schemas.js +2 -2
- package/dist/services/orders/orders-input.schemas.d.ts +3 -3
- package/dist/services/orders/orders-input.schemas.js +2 -2
- package/dist/services/orders/orders-modify.schemas.js +2 -2
- package/dist/services/orders/orders-output.schemas.d.ts +12 -12
- package/dist/services/orders/orders-risk.schemas.js +3 -3
- package/dist/services/orders/orders.js +2 -2
- package/dist/services/policies/api-key-policies/api-key-policies.js +1 -1
- package/dist/services/policies/shared.codecs.js +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.js +2 -2
- package/dist/services/price-alerts/price-alerts.js +1 -1
- package/dist/services/rate-limits/rate-limits.js +1 -1
- package/dist/services/rewards/rewards.js +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +4 -4
- package/dist/services/social-verification/social-verification.js +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +1 -1
- package/dist/services/statement-exports/statement-exports.js +1 -1
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
- package/dist/services/subaccounts/subaccounts.js +3 -3
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +15 -15
- package/dist/services/system/system.js +1 -1
- package/dist/services/system/system.schemas.d.ts +13 -13
- package/dist/services/trades/trades.js +2 -2
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +1 -1
- package/dist/services/trading-withdraws/wallet-message.js +1 -1
- package/dist/services/transfers/transfers.js +2 -2
- package/dist/services/triggers/trigger-child-order.schemas.js +3 -3
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/trigger-input.schemas.js +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +31 -31
- package/dist/services/triggers/triggers.js +2 -2
- package/dist/services/vip/vip.js +1 -1
- package/dist/services/vip/vip.schemas.js +1 -1
- package/dist/services/zipper/zipper.js +1 -1
- package/dist/services/zipper/zipper.schemas.js +1 -1
- package/dist/shared/error-details/alerts.js +1 -1
- package/dist/shared/error-details/assistant.js +1 -1
- package/dist/shared/error-details/auth.js +1 -1
- package/dist/shared/error-details/claims.js +1 -1
- package/dist/shared/error-details/internal-transfer.js +1 -1
- package/dist/shared/error-details/ledger.js +1 -1
- package/dist/shared/error-details/market-overview.js +1 -1
- package/dist/shared/error-details/notifications.js +1 -1
- package/dist/shared/error-details/orders.js +1 -1
- package/dist/shared/error-details/profile.js +1 -1
- package/dist/shared/error-details/rate-limit.js +1 -1
- package/dist/shared/error-details/withdraw.js +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +1 -1
- package/dist/shared/rate-limit.schemas.js +1 -1
- package/dist/utils/cookies.js +1 -1
- package/dist/wired-services.js +18 -18
- package/package.json +1 -1
|
@@ -5488,7 +5488,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
5488
5488
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
5489
5489
|
readonly operationId: v.StringSchema<undefined>;
|
|
5490
5490
|
readonly policyClass: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "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" | "assistant_message" | "assistant_control" | "assistant_read">]>;
|
|
5491
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
5491
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
5492
5492
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
5493
5493
|
}, undefined>, undefined>;
|
|
5494
5494
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -5533,7 +5533,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
5533
5533
|
policyVersion?: string | undefined;
|
|
5534
5534
|
operationId: string;
|
|
5535
5535
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5536
|
-
scope: "symbol" | "unspecified" | "
|
|
5536
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
5537
5537
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5538
5538
|
} | undefined;
|
|
5539
5539
|
existingOrderId?: string | undefined;
|
|
@@ -5578,7 +5578,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
5578
5578
|
policyVersion?: string | undefined;
|
|
5579
5579
|
operationId: string;
|
|
5580
5580
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5581
|
-
scope: "symbol" | "unspecified" | "
|
|
5581
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
5582
5582
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5583
5583
|
} | undefined;
|
|
5584
5584
|
existingOrderId?: string | undefined;
|
|
@@ -5623,7 +5623,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
5623
5623
|
policyVersion?: string | undefined;
|
|
5624
5624
|
operationId: string;
|
|
5625
5625
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5626
|
-
scope: "symbol" | "unspecified" | "
|
|
5626
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
5627
5627
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5628
5628
|
} | undefined;
|
|
5629
5629
|
existingOrderId?: string | undefined;
|
|
@@ -5655,7 +5655,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
5655
5655
|
policyVersion?: string | undefined;
|
|
5656
5656
|
operationId: string;
|
|
5657
5657
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5658
|
-
scope: "symbol" | "unspecified" | "
|
|
5658
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
5659
5659
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5660
5660
|
} | undefined;
|
|
5661
5661
|
existingOrderId?: string | undefined;
|
|
@@ -5718,7 +5718,7 @@ declare const BatchReplaceAdmissionItemSchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
5718
5718
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
5719
5719
|
readonly operationId: v.StringSchema<undefined>;
|
|
5720
5720
|
readonly policyClass: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "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" | "assistant_message" | "assistant_control" | "assistant_read">]>;
|
|
5721
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
5721
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
5722
5722
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
5723
5723
|
}, undefined>, undefined>;
|
|
5724
5724
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -5748,7 +5748,7 @@ declare const BatchReplaceAdmissionItemSchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
5748
5748
|
policyVersion?: string | undefined;
|
|
5749
5749
|
operationId: string;
|
|
5750
5750
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5751
|
-
scope: "symbol" | "unspecified" | "
|
|
5751
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
5752
5752
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5753
5753
|
} | undefined;
|
|
5754
5754
|
existingOrderId?: string | undefined;
|
|
@@ -5778,7 +5778,7 @@ declare const BatchReplaceAdmissionItemSchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
5778
5778
|
policyVersion?: string | undefined;
|
|
5779
5779
|
operationId: string;
|
|
5780
5780
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5781
|
-
scope: "symbol" | "unspecified" | "
|
|
5781
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
5782
5782
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5783
5783
|
} | undefined;
|
|
5784
5784
|
existingOrderId?: string | undefined;
|
|
@@ -5813,7 +5813,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
5813
5813
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
5814
5814
|
readonly operationId: v.StringSchema<undefined>;
|
|
5815
5815
|
readonly policyClass: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "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" | "assistant_message" | "assistant_control" | "assistant_read">]>;
|
|
5816
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
5816
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
5817
5817
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
5818
5818
|
}, undefined>, undefined>;
|
|
5819
5819
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -5843,7 +5843,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
5843
5843
|
policyVersion?: string | undefined;
|
|
5844
5844
|
operationId: string;
|
|
5845
5845
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5846
|
-
scope: "symbol" | "unspecified" | "
|
|
5846
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
5847
5847
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5848
5848
|
} | undefined;
|
|
5849
5849
|
existingOrderId?: string | undefined;
|
|
@@ -5873,7 +5873,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
5873
5873
|
policyVersion?: string | undefined;
|
|
5874
5874
|
operationId: string;
|
|
5875
5875
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5876
|
-
scope: "symbol" | "unspecified" | "
|
|
5876
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
5877
5877
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5878
5878
|
} | undefined;
|
|
5879
5879
|
existingOrderId?: string | undefined;
|
|
@@ -5910,7 +5910,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
5910
5910
|
policyVersion?: string | undefined;
|
|
5911
5911
|
operationId: string;
|
|
5912
5912
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5913
|
-
scope: "symbol" | "unspecified" | "
|
|
5913
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
5914
5914
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5915
5915
|
} | undefined;
|
|
5916
5916
|
existingOrderId?: string | undefined;
|
|
@@ -5947,7 +5947,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
5947
5947
|
policyVersion?: string | undefined;
|
|
5948
5948
|
operationId: string;
|
|
5949
5949
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5950
|
-
scope: "symbol" | "unspecified" | "
|
|
5950
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
5951
5951
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5952
5952
|
} | undefined;
|
|
5953
5953
|
existingOrderId?: string | undefined;
|
|
@@ -5984,7 +5984,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
5984
5984
|
policyVersion?: string | undefined;
|
|
5985
5985
|
operationId: string;
|
|
5986
5986
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
5987
|
-
scope: "symbol" | "unspecified" | "
|
|
5987
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
5988
5988
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
5989
5989
|
} | undefined;
|
|
5990
5990
|
existingOrderId?: string | undefined;
|
|
@@ -6023,7 +6023,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
6023
6023
|
policyVersion?: string | undefined;
|
|
6024
6024
|
operationId: string;
|
|
6025
6025
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6026
|
-
scope: "symbol" | "unspecified" | "
|
|
6026
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
6027
6027
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6028
6028
|
} | undefined;
|
|
6029
6029
|
existingOrderId?: string | undefined;
|
|
@@ -6055,20 +6055,20 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
6055
6055
|
readonly admissionStatus: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rejected" | "admitted" | "partially_admitted">]>;
|
|
6056
6056
|
readonly items: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
6057
6057
|
readonly itemIndex: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6058
|
-
readonly phase: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
6058
|
+
readonly phase: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "terminal" | "rejected" | "working" | "admitted">]>;
|
|
6059
6059
|
readonly oldOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
6060
6060
|
readonly replacementOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
6061
6061
|
readonly actionTaken: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "replaced" | "amended">]>;
|
|
6062
|
-
readonly orderStatus: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
6062
|
+
readonly orderStatus: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled">]>;
|
|
6063
6063
|
readonly code: v.StringSchema<undefined>;
|
|
6064
6064
|
readonly updatedTsNs: v.BigintSchema<undefined>;
|
|
6065
6065
|
}, undefined>, v.TransformAction<{
|
|
6066
6066
|
itemIndex: number;
|
|
6067
|
-
phase: "unspecified" | "
|
|
6067
|
+
phase: "unspecified" | "terminal" | "rejected" | "working" | "admitted";
|
|
6068
6068
|
oldOrderId?: string | undefined;
|
|
6069
6069
|
replacementOrderId?: string | undefined;
|
|
6070
6070
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
6071
|
-
orderStatus: "unspecified" | "
|
|
6071
|
+
orderStatus: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled";
|
|
6072
6072
|
code: string;
|
|
6073
6073
|
updatedTsNs: bigint;
|
|
6074
6074
|
}, {
|
|
@@ -6076,11 +6076,11 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
6076
6076
|
updatedTs: number;
|
|
6077
6077
|
updatedTsNs: string;
|
|
6078
6078
|
itemIndex: number;
|
|
6079
|
-
phase: "unspecified" | "
|
|
6079
|
+
phase: "unspecified" | "terminal" | "rejected" | "working" | "admitted";
|
|
6080
6080
|
oldOrderId?: string | undefined;
|
|
6081
6081
|
replacementOrderId?: string | undefined;
|
|
6082
6082
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
6083
|
-
orderStatus: "unspecified" | "
|
|
6083
|
+
orderStatus: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled";
|
|
6084
6084
|
}>]>, undefined>;
|
|
6085
6085
|
readonly acceptedCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
6086
6086
|
readonly rejectedCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -6094,11 +6094,11 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
6094
6094
|
updatedTs: number;
|
|
6095
6095
|
updatedTsNs: string;
|
|
6096
6096
|
itemIndex: number;
|
|
6097
|
-
phase: "unspecified" | "
|
|
6097
|
+
phase: "unspecified" | "terminal" | "rejected" | "working" | "admitted";
|
|
6098
6098
|
oldOrderId?: string | undefined;
|
|
6099
6099
|
replacementOrderId?: string | undefined;
|
|
6100
6100
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
6101
|
-
orderStatus: "unspecified" | "
|
|
6101
|
+
orderStatus: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled";
|
|
6102
6102
|
}[];
|
|
6103
6103
|
acceptedCount: number;
|
|
6104
6104
|
rejectedCount: number;
|
|
@@ -6112,11 +6112,11 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
6112
6112
|
updatedTs: number;
|
|
6113
6113
|
updatedTsNs: string;
|
|
6114
6114
|
itemIndex: number;
|
|
6115
|
-
phase: "unspecified" | "
|
|
6115
|
+
phase: "unspecified" | "terminal" | "rejected" | "working" | "admitted";
|
|
6116
6116
|
oldOrderId?: string | undefined;
|
|
6117
6117
|
replacementOrderId?: string | undefined;
|
|
6118
6118
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
6119
|
-
orderStatus: "unspecified" | "
|
|
6119
|
+
orderStatus: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled";
|
|
6120
6120
|
}[];
|
|
6121
6121
|
acceptedCount: number;
|
|
6122
6122
|
rejectedCount: number;
|
|
@@ -6130,11 +6130,11 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
6130
6130
|
updatedTs: number;
|
|
6131
6131
|
updatedTsNs: string;
|
|
6132
6132
|
itemIndex: number;
|
|
6133
|
-
phase: "unspecified" | "
|
|
6133
|
+
phase: "unspecified" | "terminal" | "rejected" | "working" | "admitted";
|
|
6134
6134
|
oldOrderId?: string | undefined;
|
|
6135
6135
|
replacementOrderId?: string | undefined;
|
|
6136
6136
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
6137
|
-
orderStatus: "unspecified" | "
|
|
6137
|
+
orderStatus: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled";
|
|
6138
6138
|
}[];
|
|
6139
6139
|
acceptedCount: number;
|
|
6140
6140
|
rejectedCount: number;
|
|
@@ -6152,11 +6152,11 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
6152
6152
|
updatedTs: number;
|
|
6153
6153
|
updatedTsNs: string;
|
|
6154
6154
|
itemIndex: number;
|
|
6155
|
-
phase: "unspecified" | "
|
|
6155
|
+
phase: "unspecified" | "terminal" | "rejected" | "working" | "admitted";
|
|
6156
6156
|
oldOrderId?: string | undefined;
|
|
6157
6157
|
replacementOrderId?: string | undefined;
|
|
6158
6158
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
6159
|
-
orderStatus: "unspecified" | "
|
|
6159
|
+
orderStatus: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled";
|
|
6160
6160
|
}[];
|
|
6161
6161
|
acceptedCount: number;
|
|
6162
6162
|
rejectedCount: number;
|
|
@@ -6251,7 +6251,7 @@ declare const BatchCancelOrdersInputSchema: v.SchemaWithPipe<readonly [v.StrictO
|
|
|
6251
6251
|
}>]>;
|
|
6252
6252
|
type BatchCancelOrdersInput = v.InferInput<typeof BatchCancelOrdersInputSchema>;
|
|
6253
6253
|
declare const BatchCancelOrderResultSchema: v.ObjectSchema<{
|
|
6254
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
6254
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rejected" | "accepted">]>;
|
|
6255
6255
|
readonly orderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
6256
6256
|
readonly clientOrderId: v.StringSchema<undefined>;
|
|
6257
6257
|
readonly code: v.StringSchema<undefined>;
|
|
@@ -6270,7 +6270,7 @@ declare const BatchCancelOrderResultSchema: v.ObjectSchema<{
|
|
|
6270
6270
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
6271
6271
|
readonly operationId: v.StringSchema<undefined>;
|
|
6272
6272
|
readonly policyClass: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "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" | "assistant_message" | "assistant_control" | "assistant_read">]>;
|
|
6273
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
6273
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
6274
6274
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
6275
6275
|
}, undefined>, undefined>;
|
|
6276
6276
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -6281,7 +6281,7 @@ declare const BatchCancelOrderResultSchema: v.ObjectSchema<{
|
|
|
6281
6281
|
type BatchCancelOrderResult = v.InferOutput<typeof BatchCancelOrderResultSchema>;
|
|
6282
6282
|
declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
6283
6283
|
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
6284
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
6284
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rejected" | "accepted">]>;
|
|
6285
6285
|
readonly orderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
6286
6286
|
readonly clientOrderId: v.StringSchema<undefined>;
|
|
6287
6287
|
readonly code: v.StringSchema<undefined>;
|
|
@@ -6300,7 +6300,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
6300
6300
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
6301
6301
|
readonly operationId: v.StringSchema<undefined>;
|
|
6302
6302
|
readonly policyClass: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "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" | "assistant_message" | "assistant_control" | "assistant_read">]>;
|
|
6303
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
6303
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
6304
6304
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
6305
6305
|
}, undefined>, undefined>;
|
|
6306
6306
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -6313,7 +6313,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
6313
6313
|
readonly tsNs: v.BigintSchema<undefined>;
|
|
6314
6314
|
}, undefined>, v.CheckAction<{
|
|
6315
6315
|
results: {
|
|
6316
|
-
status: "unspecified" | "
|
|
6316
|
+
status: "unspecified" | "rejected" | "accepted";
|
|
6317
6317
|
orderId?: string | undefined;
|
|
6318
6318
|
clientOrderId: string;
|
|
6319
6319
|
code: string;
|
|
@@ -6332,7 +6332,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
6332
6332
|
policyVersion?: string | undefined;
|
|
6333
6333
|
operationId: string;
|
|
6334
6334
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6335
|
-
scope: "symbol" | "unspecified" | "
|
|
6335
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
6336
6336
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6337
6337
|
} | undefined;
|
|
6338
6338
|
existingOrderId?: string | undefined;
|
|
@@ -6345,7 +6345,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
6345
6345
|
tsNs: bigint;
|
|
6346
6346
|
}, "Batch cancel result counts do not match the returned results.">, v.TransformAction<{
|
|
6347
6347
|
results: {
|
|
6348
|
-
status: "unspecified" | "
|
|
6348
|
+
status: "unspecified" | "rejected" | "accepted";
|
|
6349
6349
|
orderId?: string | undefined;
|
|
6350
6350
|
clientOrderId: string;
|
|
6351
6351
|
code: string;
|
|
@@ -6364,7 +6364,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
6364
6364
|
policyVersion?: string | undefined;
|
|
6365
6365
|
operationId: string;
|
|
6366
6366
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6367
|
-
scope: "symbol" | "unspecified" | "
|
|
6367
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
6368
6368
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6369
6369
|
} | undefined;
|
|
6370
6370
|
existingOrderId?: string | undefined;
|
|
@@ -6379,7 +6379,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
6379
6379
|
ts: number;
|
|
6380
6380
|
tsNs: string;
|
|
6381
6381
|
results: {
|
|
6382
|
-
status: "unspecified" | "
|
|
6382
|
+
status: "unspecified" | "rejected" | "accepted";
|
|
6383
6383
|
orderId?: string | undefined;
|
|
6384
6384
|
clientOrderId: string;
|
|
6385
6385
|
code: string;
|
|
@@ -6398,7 +6398,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
6398
6398
|
policyVersion?: string | undefined;
|
|
6399
6399
|
operationId: string;
|
|
6400
6400
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
6401
|
-
scope: "symbol" | "unspecified" | "
|
|
6401
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
6402
6402
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
6403
6403
|
} | undefined;
|
|
6404
6404
|
existingOrderId?: string | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { RiskPolicySchema } from "../../gen/orders/v1/orders_pb.js";
|
|
2
1
|
import { ValidationError } from "../../shared/errors.js";
|
|
3
2
|
import { formatId } from "../../utils/base58-id.js";
|
|
4
3
|
import { tsNsToMs } from "../../utils/time.js";
|
|
@@ -7,14 +6,15 @@ import { enumLabelSchema } from "../../shared/proto-enum-codec.js";
|
|
|
7
6
|
import { positiveDecimalInputToScaled, scaledToDecimalOutput } from "../../shared/decimal-surface.js";
|
|
8
7
|
import { SideSchema, SymbolIdInputSchema } from "../shared.js";
|
|
9
8
|
import { AccountScopeInputEntries, accountScopeToSubaccountId } from "../../shared/account-scope.js";
|
|
9
|
+
import { RiskPolicySchema } from "../../gen/orders/v1/orders_pb.js";
|
|
10
10
|
import { OrderSideCodec } from "./order-enums.codecs.js";
|
|
11
11
|
import { OrderErrorDetailSchema } from "./order-errors.schemas.js";
|
|
12
12
|
import { BatchCancelOrderStatusCodec, BatchReplaceAdmissionStatusCodec, BatchReplaceItemAdmissionStatusCodec, BatchReplacePhaseCodec, CancelAllAfterStatusCodec, ModifyActionCodec, OrderStatusCodec } from "./orders.codecs.js";
|
|
13
13
|
import { ClientOrderIdInputSchema, OrderRequestIdInputSchema, positiveOrderIdInputSchema } from "./orders-identifiers.schemas.js";
|
|
14
14
|
import { createOrderIntentInputSchema } from "./orders-input.schemas.js";
|
|
15
15
|
import { createModifyOrderPatchInputSchema } from "./orders-modify.schemas.js";
|
|
16
|
-
import * as v from "valibot";
|
|
17
16
|
import { create } from "@bufbuild/protobuf";
|
|
17
|
+
import * as v from "valibot";
|
|
18
18
|
//#region src/services/orders/orders-batch.schemas.ts
|
|
19
19
|
const BatchCountSchema = v.pipe(v.number(), v.integer(), v.minValue(0));
|
|
20
20
|
const BatchItemIndexSchema = v.pipe(v.number(), v.integer(), v.minValue(0));
|
|
@@ -8322,7 +8322,7 @@ declare function createPreviewOrderResultSchema(scales: SdkScales, symbolId: num
|
|
|
8322
8322
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
8323
8323
|
readonly operationId: v.StringSchema<undefined>;
|
|
8324
8324
|
readonly policyClass: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "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" | "assistant_message" | "assistant_control" | "assistant_read">]>;
|
|
8325
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
8325
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
8326
8326
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
8327
8327
|
}, undefined>, undefined>;
|
|
8328
8328
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -8355,7 +8355,7 @@ declare function createPreviewOrderResultSchema(scales: SdkScales, symbolId: num
|
|
|
8355
8355
|
policyVersion?: string | undefined;
|
|
8356
8356
|
operationId: string;
|
|
8357
8357
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
8358
|
-
scope: "symbol" | "unspecified" | "
|
|
8358
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
8359
8359
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
8360
8360
|
} | undefined;
|
|
8361
8361
|
existingOrderId?: string | undefined;
|
|
@@ -8384,7 +8384,7 @@ declare function createPreviewOrderResultSchema(scales: SdkScales, symbolId: num
|
|
|
8384
8384
|
policyVersion?: string | undefined;
|
|
8385
8385
|
operationId: string;
|
|
8386
8386
|
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" | "assistant_message" | "assistant_control" | "assistant_read";
|
|
8387
|
-
scope: "symbol" | "unspecified" | "
|
|
8387
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
8388
8388
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
8389
8389
|
} | undefined;
|
|
8390
8390
|
existingOrderId?: string | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LimitFokSchema, LimitGtcSchema, LimitGtdSchema, LimitIocSchema, MarketIocSchema, StaticPegSchema } from "../../gen/orders/v1/orders_pb.js";
|
|
2
1
|
import { PROTOBUF_INT64_MAX } from "../../shared/wire-bounds.js";
|
|
3
2
|
import { tsNsToMs } from "../../utils/time.js";
|
|
4
3
|
import { OptionalPublicIdSchema, OptionalTimestampMsSchema, PublicIdSchema, TimestampMsSchema, optionalIdInputSchema, optionalUint64DecimalFilterSchema } from "../../shared/schemas.js";
|
|
@@ -8,14 +7,15 @@ import { positiveDecimalInputToScaled, scaledToDecimalOutput } from "../../share
|
|
|
8
7
|
import { SideSchema, SymbolIdInputSchema } from "../shared.js";
|
|
9
8
|
import { AccountScopeInputEntries, accountScopeToSubaccountId } from "../../shared/account-scope.js";
|
|
10
9
|
import { msToTimestamp } from "../../utils/timestamp.js";
|
|
10
|
+
import { LimitFokSchema, LimitGtcSchema, LimitGtdSchema, LimitIocSchema, MarketIocSchema, StaticPegSchema } from "../../gen/orders/v1/orders_pb.js";
|
|
11
11
|
import { FEE_ASSET_VALUES, FeeAssetCodec, OrderSideCodec, PEG_REFERENCE_VALUES, PegReferenceCodec, SELF_TRADE_PREVENTION_MODE_VALUES, SelfTradePreventionModeCodec } from "./order-enums.codecs.js";
|
|
12
12
|
import { OrderErrorDetailSchema } from "./order-errors.schemas.js";
|
|
13
13
|
import { CancelAllListingStatusCodec, CancelAllOrdersStatusCodec, CancelOrderStatusCodec, ORDER_STATUS_FILTER_VALUES, OrderStatusFilterCodec } from "./orders.codecs.js";
|
|
14
14
|
import { ClientOrderIdInputSchema, OptionalClientOrderIdInputSchema, OrderIdInputSchema, OrderRequestIdInputSchema } from "./orders-identifiers.schemas.js";
|
|
15
15
|
import { MAX_SELLING_SLIPPAGE_BPS } from "../trailing-oneof-inputs.js";
|
|
16
16
|
import { ATTACHED_TRAILING_LIMIT_SIDE_MESSAGE, MarketMaxSlippageSchema, attachedTrailingLimitMatchesSide, createRiskPolicyInputSchema, parseMarketMaxSlippage } from "./orders-risk.schemas.js";
|
|
17
|
-
import * as v from "valibot";
|
|
18
17
|
import { create } from "@bufbuild/protobuf";
|
|
18
|
+
import * as v from "valibot";
|
|
19
19
|
//#region src/services/orders/orders-input.schemas.ts
|
|
20
20
|
const OrderStatusSchema = v.picklist(ORDER_STATUS_FILTER_VALUES);
|
|
21
21
|
const FeeAssetSchema = v.picklist(FEE_ASSET_VALUES);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { RiskPolicySchema } from "../../gen/orders/v1/orders_pb.js";
|
|
2
1
|
import { ValidationError } from "../../shared/errors.js";
|
|
3
2
|
import { PROTOBUF_UINT32_MAX } from "../../shared/wire-bounds.js";
|
|
4
3
|
import { tsNsToMs } from "../../utils/time.js";
|
|
@@ -6,11 +5,12 @@ import { OptionalPublicIdSchema, PublicIdSchema } from "../../shared/schemas.js"
|
|
|
6
5
|
import { enumLabelSchema } from "../../shared/proto-enum-codec.js";
|
|
7
6
|
import { positiveDecimalInputToScaled } from "../../shared/decimal-surface.js";
|
|
8
7
|
import { AccountScopeInputEntries, accountScopeToSubaccountId } from "../../shared/account-scope.js";
|
|
8
|
+
import { RiskPolicySchema } from "../../gen/orders/v1/orders_pb.js";
|
|
9
9
|
import { MODIFY_BEHAVIOR_VALUES, ModifyActionCodec, ModifyBehaviorCodec } from "./orders.codecs.js";
|
|
10
10
|
import { ClientOrderIdInputSchema, OrderIdInputSchema, OrderRequestIdInputSchema } from "./orders-identifiers.schemas.js";
|
|
11
11
|
import { createRequiredRiskPolicyInputSchema } from "./orders-risk.schemas.js";
|
|
12
|
-
import * as v from "valibot";
|
|
13
12
|
import { create } from "@bufbuild/protobuf";
|
|
13
|
+
import * as v from "valibot";
|
|
14
14
|
//#region src/services/orders/orders-modify.schemas.ts
|
|
15
15
|
const ModifyBehaviorInputSchema = v.picklist(MODIFY_BEHAVIOR_VALUES);
|
|
16
16
|
const DecimalInputStringSchema = v.pipe(v.string(), v.trim(), v.minLength(1));
|
|
@@ -12,7 +12,7 @@ declare function createOrderSchema(scales: SdkScales): v.SchemaWithPipe<readonly
|
|
|
12
12
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
13
13
|
readonly clientOrderId: v.StringSchema<undefined>;
|
|
14
14
|
readonly side: v.NumberSchema<undefined>;
|
|
15
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
15
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled">]>;
|
|
16
16
|
readonly orderType: v.NumberSchema<undefined>;
|
|
17
17
|
readonly timeInForce: v.NumberSchema<undefined>;
|
|
18
18
|
readonly selfTradePreventionMode: v.NumberSchema<undefined>;
|
|
@@ -149,7 +149,7 @@ declare function createOrderSchema(scales: SdkScales): v.SchemaWithPipe<readonly
|
|
|
149
149
|
symbolId: number;
|
|
150
150
|
clientOrderId: string;
|
|
151
151
|
side: number;
|
|
152
|
-
status: "unspecified" | "
|
|
152
|
+
status: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled";
|
|
153
153
|
orderType: number;
|
|
154
154
|
timeInForce: number;
|
|
155
155
|
selfTradePreventionMode: number;
|
|
@@ -289,7 +289,7 @@ declare function createOrderSchema(scales: SdkScales): v.SchemaWithPipe<readonly
|
|
|
289
289
|
attachedRisk: {
|
|
290
290
|
takeProfit: {
|
|
291
291
|
state: {
|
|
292
|
-
status: "unspecified" | "completed" | "
|
|
292
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running" | "not_configured";
|
|
293
293
|
armedTs: number | undefined;
|
|
294
294
|
armedTsNs: string | undefined;
|
|
295
295
|
terminalTs: number | undefined;
|
|
@@ -309,7 +309,7 @@ declare function createOrderSchema(scales: SdkScales): v.SchemaWithPipe<readonly
|
|
|
309
309
|
} | undefined;
|
|
310
310
|
stopLoss: {
|
|
311
311
|
state: {
|
|
312
|
-
status: "unspecified" | "completed" | "
|
|
312
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running" | "not_configured";
|
|
313
313
|
armedTs: number | undefined;
|
|
314
314
|
armedTsNs: string | undefined;
|
|
315
315
|
terminalTs: number | undefined;
|
|
@@ -329,7 +329,7 @@ declare function createOrderSchema(scales: SdkScales): v.SchemaWithPipe<readonly
|
|
|
329
329
|
} | undefined;
|
|
330
330
|
trailingStop: {
|
|
331
331
|
state: {
|
|
332
|
-
status: "unspecified" | "completed" | "
|
|
332
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running" | "not_configured";
|
|
333
333
|
armedTs: number | undefined;
|
|
334
334
|
armedTsNs: string | undefined;
|
|
335
335
|
terminalTs: number | undefined;
|
|
@@ -375,7 +375,7 @@ declare function createOrderSchema(scales: SdkScales): v.SchemaWithPipe<readonly
|
|
|
375
375
|
hiddenQty?: string | undefined;
|
|
376
376
|
symbolId: number;
|
|
377
377
|
clientOrderId: string;
|
|
378
|
-
status: "unspecified" | "
|
|
378
|
+
status: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled" | "partial";
|
|
379
379
|
side: "unspecified" | "buy" | "sell";
|
|
380
380
|
orderType: "unspecified" | "limit" | "market";
|
|
381
381
|
timeInForce: "unspecified" | "gtc" | "ioc" | "fok" | "gtd";
|
|
@@ -442,7 +442,7 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
|
|
|
442
442
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
443
443
|
readonly clientOrderId: v.StringSchema<undefined>;
|
|
444
444
|
readonly side: v.NumberSchema<undefined>;
|
|
445
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
445
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled">]>;
|
|
446
446
|
readonly orderType: v.NumberSchema<undefined>;
|
|
447
447
|
readonly timeInForce: v.NumberSchema<undefined>;
|
|
448
448
|
readonly selfTradePreventionMode: v.NumberSchema<undefined>;
|
|
@@ -579,7 +579,7 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
|
|
|
579
579
|
symbolId: number;
|
|
580
580
|
clientOrderId: string;
|
|
581
581
|
side: number;
|
|
582
|
-
status: "unspecified" | "
|
|
582
|
+
status: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled";
|
|
583
583
|
orderType: number;
|
|
584
584
|
timeInForce: number;
|
|
585
585
|
selfTradePreventionMode: number;
|
|
@@ -719,7 +719,7 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
|
|
|
719
719
|
attachedRisk: {
|
|
720
720
|
takeProfit: {
|
|
721
721
|
state: {
|
|
722
|
-
status: "unspecified" | "completed" | "
|
|
722
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running" | "not_configured";
|
|
723
723
|
armedTs: number | undefined;
|
|
724
724
|
armedTsNs: string | undefined;
|
|
725
725
|
terminalTs: number | undefined;
|
|
@@ -739,7 +739,7 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
|
|
|
739
739
|
} | undefined;
|
|
740
740
|
stopLoss: {
|
|
741
741
|
state: {
|
|
742
|
-
status: "unspecified" | "completed" | "
|
|
742
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running" | "not_configured";
|
|
743
743
|
armedTs: number | undefined;
|
|
744
744
|
armedTsNs: string | undefined;
|
|
745
745
|
terminalTs: number | undefined;
|
|
@@ -759,7 +759,7 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
|
|
|
759
759
|
} | undefined;
|
|
760
760
|
trailingStop: {
|
|
761
761
|
state: {
|
|
762
|
-
status: "unspecified" | "completed" | "
|
|
762
|
+
status: "unspecified" | "completed" | "canceled" | "armed" | "failed" | "paused" | "created" | "running" | "not_configured";
|
|
763
763
|
armedTs: number | undefined;
|
|
764
764
|
armedTsNs: string | undefined;
|
|
765
765
|
terminalTs: number | undefined;
|
|
@@ -805,7 +805,7 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
|
|
|
805
805
|
hiddenQty?: string | undefined;
|
|
806
806
|
symbolId: number;
|
|
807
807
|
clientOrderId: string;
|
|
808
|
-
status: "unspecified" | "
|
|
808
|
+
status: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled" | "partial";
|
|
809
809
|
side: "unspecified" | "buy" | "sell";
|
|
810
810
|
orderType: "unspecified" | "limit" | "market";
|
|
811
811
|
timeInForce: "unspecified" | "gtc" | "ioc" | "fok" | "gtd";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { RiskLimitGtcSchema, RiskMarketIocSchema } from "../../gen/orders/v1/orders_pb.js";
|
|
2
|
-
import "../../gen/orders/v1/orders_read_pb.js";
|
|
3
1
|
import { formatId } from "../../utils/base58-id.js";
|
|
4
2
|
import { tsNsToMs } from "../../utils/time.js";
|
|
5
3
|
import { enumLabel } from "../../shared/proto-enum-codec.js";
|
|
6
4
|
import { CatalogConversionError } from "../../catalogs/types.js";
|
|
7
5
|
import { positiveDecimalInputToScaled, scaledToDecimalOutput } from "../../shared/decimal-surface.js";
|
|
8
6
|
import { BpsStringOrNumberInputSchema, NoneInputSchema, PriceDistanceInputSchema, PriceSlippageInputSchema } from "../shared.js";
|
|
7
|
+
import { RiskLimitGtcSchema, RiskMarketIocSchema } from "../../gen/orders/v1/orders_pb.js";
|
|
8
|
+
import "../../gen/orders/v1/orders_read_pb.js";
|
|
9
9
|
import { TriggerPriceSourceCodec, TriggerPriceSourceInputSchema } from "./order-enums.codecs.js";
|
|
10
10
|
import { AttachedRiskLegStatusCodec } from "./orders.codecs.js";
|
|
11
11
|
import { MAX_SELLING_SLIPPAGE_BPS, MAX_SLIPPAGE_BPS, parseSlippageInput, parseTrailingDistanceInput } from "../trailing-oneof-inputs.js";
|
|
12
|
-
import * as v from "valibot";
|
|
13
12
|
import { create } from "@bufbuild/protobuf";
|
|
13
|
+
import * as v from "valibot";
|
|
14
14
|
//#region src/services/orders/orders-risk.schemas.ts
|
|
15
15
|
const DecimalInputStringSchema = v.pipe(v.string(), v.trim(), v.minLength(1));
|
|
16
16
|
function attachedTriggerInputSchema(scales, fieldPrefix) {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { OrdersService as OrdersService$1 } from "../../gen/orders/v1/orders_pb.js";
|
|
2
|
-
import { OrdersReadService } from "../../gen/orders/v1/orders_read_pb.js";
|
|
3
1
|
import { PolyesterError } from "../../shared/errors.js";
|
|
4
2
|
import { loadErrorDetailDecoders } from "../../shared/error-detail.js";
|
|
5
3
|
import { toPolyesterError } from "../../shared/connect-error-mapping.js";
|
|
@@ -9,6 +7,8 @@ import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
|
9
7
|
import { formatId, idToBigInt } from "../../utils/base58-id.js";
|
|
10
8
|
import { deliverBatch } from "../../shared/subscription-errors.js";
|
|
11
9
|
import { resolveAccountScopedInput } from "../subaccount-resolver.js";
|
|
10
|
+
import { OrdersService as OrdersService$1 } from "../../gen/orders/v1/orders_pb.js";
|
|
11
|
+
import { OrdersReadService } from "../../gen/orders/v1/orders_read_pb.js";
|
|
12
12
|
import { createOrderDetailsSchema, formatOrder } from "./orders-output.schemas.js";
|
|
13
13
|
import { connectReadyGated } from "../../realtime/ready-gated-subscription.js";
|
|
14
14
|
import { formatConnectError, isResourceNotFoundError } from "../../utils/errors.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PolicyService } from "../../../gen/auth/v1/policies_pb.js";
|
|
2
1
|
import { parse } from "../../../shared/validation.js";
|
|
3
2
|
import { removeUndefined } from "../../../utils/remove-undefined.js";
|
|
4
3
|
import { toConnectCallOptions } from "../../../shared/request-options.js";
|
|
4
|
+
import { PolicyService } from "../../../gen/auth/v1/policies_pb.js";
|
|
5
5
|
import { PolicyIdSchema } from "../shared.js";
|
|
6
6
|
import { ApiKeyPolicySchema, ApplyApiKeyPolicyInputSchema, CreateApiKeyPolicyInputSchema, DEFAULT_API_KEY_POLICY, GetApiKeyPolicyInputSchema, ListApiKeyPoliciesInputSchema, ListApiKeyPoliciesResponseSchema, UpdateApiKeyPolicyInputSchema } from "./api-key-policies.schemas.js";
|
|
7
7
|
import { createClient } from "@connectrpc/connect";
|