@polyester/sdk 0.35.0-devnet-20261111140253 → 0.35.0-devnet-20261111161451
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 +10 -2
- package/dist/client.d.ts +6 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +6 -0
- package/dist/client.js.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +2 -2
- package/dist/gen/ai/v1/assistant_pb.js +2 -2
- package/dist/gen/index.d.ts +11 -11
- package/dist/gen/index.js +9 -9
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/services/api-keys/api-keys.d.ts +16 -1
- package/dist/services/api-keys/api-keys.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.js +25 -1
- package/dist/services/api-keys/api-keys.js.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.d.ts +112 -1
- package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.js +26 -2
- package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
- package/dist/services/api-keys/api-keys.types.d.ts +2 -2
- package/dist/services/api-keys/index.d.ts +2 -2
- package/dist/services/assistant/assistant-events.schemas.d.ts +4618 -0
- package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -0
- package/dist/services/assistant/assistant-events.schemas.js +485 -0
- package/dist/services/assistant/assistant-events.schemas.js.map +1 -0
- package/dist/services/assistant/assistant.codecs.d.ts +24 -0
- package/dist/services/assistant/assistant.codecs.d.ts.map +1 -0
- package/dist/services/assistant/assistant.codecs.js +88 -0
- package/dist/services/assistant/assistant.codecs.js.map +1 -0
- package/dist/services/assistant/assistant.d.ts +76 -0
- package/dist/services/assistant/assistant.d.ts.map +1 -0
- package/dist/services/assistant/assistant.js +133 -0
- package/dist/services/assistant/assistant.js.map +1 -0
- package/dist/services/assistant/assistant.schemas.d.ts +184 -0
- package/dist/services/assistant/assistant.schemas.d.ts.map +1 -0
- package/dist/services/assistant/assistant.schemas.js +135 -0
- package/dist/services/assistant/assistant.schemas.js.map +1 -0
- package/dist/services/assistant/assistant.types.d.ts +4 -0
- package/dist/services/assistant/service.d.ts +8 -0
- package/dist/services/assistant/service.d.ts.map +1 -0
- package/dist/services/assistant/service.js +9 -0
- package/dist/services/assistant/service.js.map +1 -0
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +22 -22
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -1
- package/dist/services/balances/balances.js +1 -1
- package/dist/services/balances/balances.schemas.d.ts +3 -3
- package/dist/services/candles/candles.js +1 -1
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/candles/candles.schemas.js +5 -2
- package/dist/services/candles/candles.schemas.js.map +1 -1
- package/dist/services/changelog/changelog.schemas.d.ts +17 -17
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +3 -3
- package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +148 -148
- package/dist/services/market-data/market-data.js +1 -1
- package/dist/services/market-overview/market-overview.schemas.d.ts +4 -4
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +27 -27
- package/dist/services/orders/orders-input.schemas.d.ts +3 -3
- package/dist/services/orders/orders-input.schemas.js +1 -1
- package/dist/services/orders/orders-modify.schemas.js +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +11 -11
- package/dist/services/orders/orders-output.schemas.js +3 -3
- package/dist/services/orders/orders-risk.schemas.js +1 -1
- package/dist/services/orders/orders.codecs.js +1 -1
- package/dist/services/orders/orders.js +3 -3
- package/dist/services/price-alerts/price-alerts.codecs.d.ts +20 -0
- package/dist/services/price-alerts/price-alerts.codecs.d.ts.map +1 -0
- package/dist/services/price-alerts/price-alerts.codecs.js +66 -0
- package/dist/services/price-alerts/price-alerts.codecs.js.map +1 -0
- package/dist/services/price-alerts/price-alerts.d.ts +38 -0
- package/dist/services/price-alerts/price-alerts.d.ts.map +1 -0
- package/dist/services/price-alerts/price-alerts.js +60 -0
- package/dist/services/price-alerts/price-alerts.js.map +1 -0
- package/dist/services/price-alerts/price-alerts.schemas.d.ts +309 -0
- package/dist/services/price-alerts/price-alerts.schemas.d.ts.map +1 -0
- package/dist/services/price-alerts/price-alerts.schemas.js +130 -0
- package/dist/services/price-alerts/price-alerts.schemas.js.map +1 -0
- package/dist/services/price-alerts/price-alerts.types.d.ts +3 -0
- package/dist/services/price-alerts/service.d.ts +8 -0
- package/dist/services/price-alerts/service.d.ts.map +1 -0
- package/dist/services/price-alerts/service.js +9 -0
- package/dist/services/price-alerts/service.js.map +1 -0
- package/dist/services/social-verification/social-verification.schemas.d.ts +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +3 -3
- package/dist/services/system/service.d.ts +8 -0
- package/dist/services/system/service.d.ts.map +1 -0
- package/dist/services/system/service.js +9 -0
- package/dist/services/system/service.js.map +1 -0
- package/dist/services/system/system.d.ts +25 -0
- package/dist/services/system/system.d.ts.map +1 -0
- package/dist/services/system/system.js +24 -0
- package/dist/services/system/system.js.map +1 -0
- package/dist/services/trades/trades.js +1 -1
- package/dist/services/trades/trades.schemas.d.ts +2 -2
- package/dist/services/trades/trades.schemas.js +1 -1
- package/dist/services/transfers/transfers.schemas.d.ts +1 -1
- package/dist/services/triggers/trigger-child-order.schemas.js +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/trigger-input.schemas.js +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +61 -61
- package/dist/services/triggers/triggers.codecs.js +1 -1
- package/dist/services/triggers/triggers.js +2 -2
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +1 -0
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-detail.d.ts +18 -10
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js +2 -0
- package/dist/shared/error-detail.js.map +1 -1
- package/dist/shared/error-details/alerts.js +15 -0
- package/dist/shared/error-details/alerts.js.map +1 -0
- package/dist/shared/error-details/assistant.js +15 -0
- package/dist/shared/error-details/assistant.js.map +1 -0
- package/dist/shared/rate-limit.schemas.d.ts +1 -1
- package/dist/wired-services.d.ts.map +1 -1
- package/dist/wired-services.js +11 -5
- package/dist/wired-services.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@ import { parse } from "../../shared/validation.js";
|
|
|
2
2
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
3
3
|
import { deliverBatch } from "../../shared/subscription-errors.js";
|
|
4
4
|
import { SymbolIdInputSchema } from "../shared.js";
|
|
5
|
-
import { connectReadyGatedProtoChannel } from "../../realtime/ready-gated-subscription.js";
|
|
6
5
|
import { MarketDataService as MarketDataService$1, MarketTradeBatchSchema } from "../../gen/marketdata/v1/marketdata_pb.js";
|
|
6
|
+
import { connectReadyGatedProtoChannel } from "../../realtime/ready-gated-subscription.js";
|
|
7
7
|
import { isDev } from "../../utils/is-dev.js";
|
|
8
8
|
import { GetMarketTradesInputSchema, SpotConfigSchema, TradeBackfillSchema, formatMarketTrade } from "./market-data.schemas.js";
|
|
9
9
|
import { createClient } from "@connectrpc/connect";
|
|
@@ -30,7 +30,7 @@ declare function createMarketOverviewSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
30
30
|
readonly bestAskTicks: v.BigintSchema<undefined>;
|
|
31
31
|
readonly bestAskQtyScaled: v.BigintSchema<undefined>;
|
|
32
32
|
readonly sparklines: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
33
|
-
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
33
|
+
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "1h" | "24h" | "1w" | "1m">]>;
|
|
34
34
|
readonly closeTicks: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
35
35
|
}, undefined>, undefined>, readonly []>;
|
|
36
36
|
readonly indexPriceTicks: v.BigintSchema<undefined>;
|
|
@@ -50,7 +50,7 @@ declare function createMarketOverviewSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
50
50
|
bestAskTicks: bigint;
|
|
51
51
|
bestAskQtyScaled: bigint;
|
|
52
52
|
sparklines: {
|
|
53
|
-
interval: "unspecified" | "
|
|
53
|
+
interval: "unspecified" | "1h" | "24h" | "1w" | "1m";
|
|
54
54
|
closeTicks: bigint[];
|
|
55
55
|
}[];
|
|
56
56
|
indexPriceTicks: bigint;
|
|
@@ -77,10 +77,10 @@ declare const ListMarketOverviewInputSchema: v.SchemaWithPipe<readonly [v.Strict
|
|
|
77
77
|
readonly symbolIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>, readonly []>;
|
|
78
78
|
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, 500>;
|
|
79
79
|
readonly pageToken: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, "">;
|
|
80
|
-
readonly orderBy: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["change_24h_bps", "volume_24h_usd", "last_price", "date_added"], undefined>, "volume_24h_usd">, v.TransformAction<"
|
|
80
|
+
readonly orderBy: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["change_24h_bps", "volume_24h_usd", "last_price", "date_added"], undefined>, "volume_24h_usd">, v.TransformAction<"last_price" | "change_24h_bps" | "volume_24h_usd" | "date_added", MarketOrderBy.ORDER_BY_CHANGE_24H_BPS | MarketOrderBy.ORDER_BY_VOLUME_24H_USD | MarketOrderBy.ORDER_BY_LAST_PRICE | MarketOrderBy.ORDER_BY_DATE_ADDED>]>;
|
|
81
81
|
readonly sort: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["asc", "desc"], undefined>, "desc">, v.TransformAction<"asc" | "desc", SortDirection.SORT_ASC | SortDirection.SORT_DESC>]>;
|
|
82
82
|
readonly includeSparklines: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
83
|
-
readonly sparklineIntervals: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["1h", "24h", "1w", "1m"], undefined>, undefined>, readonly ["24h"]>, v.TransformAction<("
|
|
83
|
+
readonly sparklineIntervals: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["1h", "24h", "1w", "1m"], undefined>, undefined>, readonly ["24h"]>, v.TransformAction<("1h" | "24h" | "1w" | "1m")[], (SparklineInterval.SPARKLINE_1H | SparklineInterval.SPARKLINE_24H | SparklineInterval.SPARKLINE_1W | SparklineInterval.SPARKLINE_1M)[]>]>;
|
|
84
84
|
}, undefined>, v.TransformAction<{
|
|
85
85
|
symbolIds: number[];
|
|
86
86
|
limit: number;
|
|
@@ -10,7 +10,7 @@ declare const GetOrderbookInputSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
10
10
|
depth: number;
|
|
11
11
|
}, {
|
|
12
12
|
symbolId: number;
|
|
13
|
-
depth: 1 |
|
|
13
|
+
depth: 1 | 10 | 5 | 20 | 200 | 100 | 1000 | 500 | 50;
|
|
14
14
|
protoDepth: Depth;
|
|
15
15
|
}>]>;
|
|
16
16
|
type GetOrderbookInput = v.InferInput<typeof GetOrderbookInputSchema>;
|
|
@@ -17,7 +17,7 @@ declare const OrderErrorDetailSchema: v.ObjectSchema<{
|
|
|
17
17
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
18
18
|
readonly operationId: v.StringSchema<undefined>;
|
|
19
19
|
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">]>;
|
|
20
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
20
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
21
21
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
22
22
|
}, undefined>, undefined>;
|
|
23
23
|
/** Order holding the client order ID on a `CONFLICT_DUPLICATE_CLIENT_ORDER_ID` rejection, when known. */
|
|
@@ -3221,7 +3221,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
3221
3221
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3222
3222
|
readonly operationId: v.StringSchema<undefined>;
|
|
3223
3223
|
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">]>;
|
|
3224
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
3224
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
3225
3225
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
3226
3226
|
}, undefined>, undefined>;
|
|
3227
3227
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -3263,7 +3263,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
3263
3263
|
policyVersion?: string | undefined;
|
|
3264
3264
|
operationId: string;
|
|
3265
3265
|
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";
|
|
3266
|
-
scope: "symbol" | "unspecified" | "
|
|
3266
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
3267
3267
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
3268
3268
|
} | undefined;
|
|
3269
3269
|
existingOrderId?: string | undefined;
|
|
@@ -3305,7 +3305,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
3305
3305
|
policyVersion?: string | undefined;
|
|
3306
3306
|
operationId: string;
|
|
3307
3307
|
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";
|
|
3308
|
-
scope: "symbol" | "unspecified" | "
|
|
3308
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
3309
3309
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
3310
3310
|
} | undefined;
|
|
3311
3311
|
existingOrderId?: string | undefined;
|
|
@@ -3347,7 +3347,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
3347
3347
|
policyVersion?: string | undefined;
|
|
3348
3348
|
operationId: string;
|
|
3349
3349
|
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";
|
|
3350
|
-
scope: "symbol" | "unspecified" | "
|
|
3350
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
3351
3351
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
3352
3352
|
} | undefined;
|
|
3353
3353
|
existingOrderId?: string | undefined;
|
|
@@ -3377,7 +3377,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbolId
|
|
|
3377
3377
|
policyVersion?: string | undefined;
|
|
3378
3378
|
operationId: string;
|
|
3379
3379
|
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";
|
|
3380
|
-
scope: "symbol" | "unspecified" | "
|
|
3380
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
3381
3381
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
3382
3382
|
} | undefined;
|
|
3383
3383
|
existingOrderId?: string | undefined;
|
|
@@ -3437,7 +3437,7 @@ declare const BatchReplaceAdmissionItemSchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
3437
3437
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3438
3438
|
readonly operationId: v.StringSchema<undefined>;
|
|
3439
3439
|
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">]>;
|
|
3440
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
3440
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
3441
3441
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
3442
3442
|
}, undefined>, undefined>;
|
|
3443
3443
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -3465,7 +3465,7 @@ declare const BatchReplaceAdmissionItemSchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
3465
3465
|
policyVersion?: string | undefined;
|
|
3466
3466
|
operationId: string;
|
|
3467
3467
|
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";
|
|
3468
|
-
scope: "symbol" | "unspecified" | "
|
|
3468
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
3469
3469
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
3470
3470
|
} | undefined;
|
|
3471
3471
|
existingOrderId?: string | undefined;
|
|
@@ -3493,7 +3493,7 @@ declare const BatchReplaceAdmissionItemSchema: v.SchemaWithPipe<readonly [v.Obje
|
|
|
3493
3493
|
policyVersion?: string | undefined;
|
|
3494
3494
|
operationId: string;
|
|
3495
3495
|
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";
|
|
3496
|
-
scope: "symbol" | "unspecified" | "
|
|
3496
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
3497
3497
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
3498
3498
|
} | undefined;
|
|
3499
3499
|
existingOrderId?: string | undefined;
|
|
@@ -3526,7 +3526,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
3526
3526
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3527
3527
|
readonly operationId: v.StringSchema<undefined>;
|
|
3528
3528
|
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">]>;
|
|
3529
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
3529
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
3530
3530
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
3531
3531
|
}, undefined>, undefined>;
|
|
3532
3532
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -3554,7 +3554,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
3554
3554
|
policyVersion?: string | undefined;
|
|
3555
3555
|
operationId: string;
|
|
3556
3556
|
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";
|
|
3557
|
-
scope: "symbol" | "unspecified" | "
|
|
3557
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
3558
3558
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
3559
3559
|
} | undefined;
|
|
3560
3560
|
existingOrderId?: string | undefined;
|
|
@@ -3582,7 +3582,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
3582
3582
|
policyVersion?: string | undefined;
|
|
3583
3583
|
operationId: string;
|
|
3584
3584
|
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";
|
|
3585
|
-
scope: "symbol" | "unspecified" | "
|
|
3585
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
3586
3586
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
3587
3587
|
} | undefined;
|
|
3588
3588
|
existingOrderId?: string | undefined;
|
|
@@ -3617,7 +3617,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
3617
3617
|
policyVersion?: string | undefined;
|
|
3618
3618
|
operationId: string;
|
|
3619
3619
|
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";
|
|
3620
|
-
scope: "symbol" | "unspecified" | "
|
|
3620
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
3621
3621
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
3622
3622
|
} | undefined;
|
|
3623
3623
|
existingOrderId?: string | undefined;
|
|
@@ -3652,7 +3652,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
3652
3652
|
policyVersion?: string | undefined;
|
|
3653
3653
|
operationId: string;
|
|
3654
3654
|
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";
|
|
3655
|
-
scope: "symbol" | "unspecified" | "
|
|
3655
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
3656
3656
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
3657
3657
|
} | undefined;
|
|
3658
3658
|
existingOrderId?: string | undefined;
|
|
@@ -3687,7 +3687,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
3687
3687
|
policyVersion?: string | undefined;
|
|
3688
3688
|
operationId: string;
|
|
3689
3689
|
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";
|
|
3690
|
-
scope: "symbol" | "unspecified" | "
|
|
3690
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
3691
3691
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
3692
3692
|
} | undefined;
|
|
3693
3693
|
existingOrderId?: string | undefined;
|
|
@@ -3724,7 +3724,7 @@ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.Objec
|
|
|
3724
3724
|
policyVersion?: string | undefined;
|
|
3725
3725
|
operationId: string;
|
|
3726
3726
|
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";
|
|
3727
|
-
scope: "symbol" | "unspecified" | "
|
|
3727
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
3728
3728
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
3729
3729
|
} | undefined;
|
|
3730
3730
|
existingOrderId?: string | undefined;
|
|
@@ -3754,7 +3754,7 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
3754
3754
|
readonly admissionStatus: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rejected" | "admitted" | "partially_admitted">]>;
|
|
3755
3755
|
readonly items: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
3756
3756
|
readonly itemIndex: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
3757
|
-
readonly phase: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rejected" | "
|
|
3757
|
+
readonly phase: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rejected" | "terminal" | "working" | "admitted">]>;
|
|
3758
3758
|
readonly oldOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3759
3759
|
readonly replacementOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3760
3760
|
readonly actionTaken: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "replaced" | "amended">]>;
|
|
@@ -3763,7 +3763,7 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
3763
3763
|
readonly updatedTsNs: v.BigintSchema<undefined>;
|
|
3764
3764
|
}, undefined>, v.TransformAction<{
|
|
3765
3765
|
itemIndex: number;
|
|
3766
|
-
phase: "unspecified" | "rejected" | "
|
|
3766
|
+
phase: "unspecified" | "rejected" | "terminal" | "working" | "admitted";
|
|
3767
3767
|
oldOrderId?: string | undefined;
|
|
3768
3768
|
replacementOrderId?: string | undefined;
|
|
3769
3769
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
@@ -3775,7 +3775,7 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
3775
3775
|
updatedTs: number;
|
|
3776
3776
|
updatedTsNs: string;
|
|
3777
3777
|
itemIndex: number;
|
|
3778
|
-
phase: "unspecified" | "rejected" | "
|
|
3778
|
+
phase: "unspecified" | "rejected" | "terminal" | "working" | "admitted";
|
|
3779
3779
|
oldOrderId?: string | undefined;
|
|
3780
3780
|
replacementOrderId?: string | undefined;
|
|
3781
3781
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
@@ -3793,7 +3793,7 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
3793
3793
|
updatedTs: number;
|
|
3794
3794
|
updatedTsNs: string;
|
|
3795
3795
|
itemIndex: number;
|
|
3796
|
-
phase: "unspecified" | "rejected" | "
|
|
3796
|
+
phase: "unspecified" | "rejected" | "terminal" | "working" | "admitted";
|
|
3797
3797
|
oldOrderId?: string | undefined;
|
|
3798
3798
|
replacementOrderId?: string | undefined;
|
|
3799
3799
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
@@ -3811,7 +3811,7 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
3811
3811
|
updatedTs: number;
|
|
3812
3812
|
updatedTsNs: string;
|
|
3813
3813
|
itemIndex: number;
|
|
3814
|
-
phase: "unspecified" | "rejected" | "
|
|
3814
|
+
phase: "unspecified" | "rejected" | "terminal" | "working" | "admitted";
|
|
3815
3815
|
oldOrderId?: string | undefined;
|
|
3816
3816
|
replacementOrderId?: string | undefined;
|
|
3817
3817
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
@@ -3829,7 +3829,7 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
3829
3829
|
updatedTs: number;
|
|
3830
3830
|
updatedTsNs: string;
|
|
3831
3831
|
itemIndex: number;
|
|
3832
|
-
phase: "unspecified" | "rejected" | "
|
|
3832
|
+
phase: "unspecified" | "rejected" | "terminal" | "working" | "admitted";
|
|
3833
3833
|
oldOrderId?: string | undefined;
|
|
3834
3834
|
replacementOrderId?: string | undefined;
|
|
3835
3835
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
@@ -3851,7 +3851,7 @@ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.Ob
|
|
|
3851
3851
|
updatedTs: number;
|
|
3852
3852
|
updatedTsNs: string;
|
|
3853
3853
|
itemIndex: number;
|
|
3854
|
-
phase: "unspecified" | "rejected" | "
|
|
3854
|
+
phase: "unspecified" | "rejected" | "terminal" | "working" | "admitted";
|
|
3855
3855
|
oldOrderId?: string | undefined;
|
|
3856
3856
|
replacementOrderId?: string | undefined;
|
|
3857
3857
|
actionTaken: "unspecified" | "replaced" | "amended";
|
|
@@ -3969,7 +3969,7 @@ declare const BatchCancelOrderResultSchema: v.ObjectSchema<{
|
|
|
3969
3969
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3970
3970
|
readonly operationId: v.StringSchema<undefined>;
|
|
3971
3971
|
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">]>;
|
|
3972
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
3972
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
3973
3973
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
3974
3974
|
}, undefined>, undefined>;
|
|
3975
3975
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -3997,7 +3997,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
3997
3997
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3998
3998
|
readonly operationId: v.StringSchema<undefined>;
|
|
3999
3999
|
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">]>;
|
|
4000
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
4000
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
4001
4001
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
4002
4002
|
}, undefined>, undefined>;
|
|
4003
4003
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -4027,7 +4027,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
4027
4027
|
policyVersion?: string | undefined;
|
|
4028
4028
|
operationId: string;
|
|
4029
4029
|
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";
|
|
4030
|
-
scope: "symbol" | "unspecified" | "
|
|
4030
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
4031
4031
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
4032
4032
|
} | undefined;
|
|
4033
4033
|
existingOrderId?: string | undefined;
|
|
@@ -4057,7 +4057,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
4057
4057
|
policyVersion?: string | undefined;
|
|
4058
4058
|
operationId: string;
|
|
4059
4059
|
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";
|
|
4060
|
-
scope: "symbol" | "unspecified" | "
|
|
4060
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
4061
4061
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
4062
4062
|
} | undefined;
|
|
4063
4063
|
existingOrderId?: string | undefined;
|
|
@@ -4089,7 +4089,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
4089
4089
|
policyVersion?: string | undefined;
|
|
4090
4090
|
operationId: string;
|
|
4091
4091
|
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";
|
|
4092
|
-
scope: "symbol" | "unspecified" | "
|
|
4092
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
4093
4093
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
4094
4094
|
} | undefined;
|
|
4095
4095
|
existingOrderId?: string | undefined;
|
|
@@ -4758,7 +4758,7 @@ declare function createPreviewOrderResultSchema(scales: SdkScales, symbolId: num
|
|
|
4758
4758
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
4759
4759
|
readonly operationId: v.StringSchema<undefined>;
|
|
4760
4760
|
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">]>;
|
|
4761
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
4761
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
4762
4762
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
4763
4763
|
}, undefined>, undefined>;
|
|
4764
4764
|
readonly existingOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
@@ -4789,7 +4789,7 @@ declare function createPreviewOrderResultSchema(scales: SdkScales, symbolId: num
|
|
|
4789
4789
|
policyVersion?: string | undefined;
|
|
4790
4790
|
operationId: string;
|
|
4791
4791
|
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";
|
|
4792
|
-
scope: "symbol" | "unspecified" | "
|
|
4792
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
4793
4793
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
4794
4794
|
} | undefined;
|
|
4795
4795
|
existingOrderId?: string | undefined;
|
|
@@ -4816,7 +4816,7 @@ declare function createPreviewOrderResultSchema(scales: SdkScales, symbolId: num
|
|
|
4816
4816
|
policyVersion?: string | undefined;
|
|
4817
4817
|
operationId: string;
|
|
4818
4818
|
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";
|
|
4819
|
-
scope: "symbol" | "unspecified" | "
|
|
4819
|
+
scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject";
|
|
4820
4820
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
4821
4821
|
} | undefined;
|
|
4822
4822
|
existingOrderId?: string | undefined;
|
|
@@ -8,9 +8,9 @@ import { msToTimestamp } from "../../utils/timestamp.js";
|
|
|
8
8
|
import { LimitFokSchema, LimitGtcSchema, LimitGtdSchema, LimitIocSchema, MarketIocSchema } from "../../gen/orders/v1/orders_pb.js";
|
|
9
9
|
import { FEE_ASSET_VALUES, FeeAssetCodec, OrderSideCodec, SELF_TRADE_PREVENTION_MODE_VALUES, SelfTradePreventionModeCodec } from "./order-enums.codecs.js";
|
|
10
10
|
import { CancelAllListingStatusCodec, CancelAllOrdersStatusCodec, CancelOrderStatusCodec, ORDER_STATUS_FILTER_VALUES, OrderStatusFilterCodec } from "./orders.codecs.js";
|
|
11
|
+
import { ClientOrderIdInputSchema, OptionalClientOrderIdInputSchema, OrderIdInputSchema, OrderRequestIdInputSchema } from "./orders-identifiers.schemas.js";
|
|
11
12
|
import { MAX_SELLING_SLIPPAGE_BPS } from "../trailing-oneof-inputs.js";
|
|
12
13
|
import { ATTACHED_TRAILING_LIMIT_SIDE_MESSAGE, MarketMaxSlippageSchema, attachedTrailingLimitMatchesSide, createRiskPolicyInputSchema, parseMarketMaxSlippage } from "./orders-risk.schemas.js";
|
|
13
|
-
import { ClientOrderIdInputSchema, OptionalClientOrderIdInputSchema, OrderIdInputSchema, OrderRequestIdInputSchema } from "./orders-identifiers.schemas.js";
|
|
14
14
|
import { OrderErrorDetailSchema } from "./order-errors.schemas.js";
|
|
15
15
|
import { create } from "@bufbuild/protobuf";
|
|
16
16
|
import * as v from "valibot";
|
|
@@ -6,8 +6,8 @@ import { positiveDecimalInputToScaled } from "../../shared/decimal-surface.js";
|
|
|
6
6
|
import { AccountScopeInputEntries, accountScopeToSubaccountId } from "../../shared/account-scope.js";
|
|
7
7
|
import { RiskPolicySchema } from "../../gen/orders/v1/orders_pb.js";
|
|
8
8
|
import { MODIFY_BEHAVIOR_VALUES, ModifyActionCodec, ModifyBehaviorCodec } from "./orders.codecs.js";
|
|
9
|
-
import { createRequiredRiskPolicyInputSchema } from "./orders-risk.schemas.js";
|
|
10
9
|
import { ClientOrderIdInputSchema, OrderIdInputSchema, OrderRequestIdInputSchema } from "./orders-identifiers.schemas.js";
|
|
10
|
+
import { createRequiredRiskPolicyInputSchema } from "./orders-risk.schemas.js";
|
|
11
11
|
import { create } from "@bufbuild/protobuf";
|
|
12
12
|
import * as v from "valibot";
|
|
13
13
|
//#region src/services/orders/orders-modify.schemas.ts
|
|
@@ -282,7 +282,7 @@ declare function createOrderSchema(scales: SdkScales): v.SchemaWithPipe<readonly
|
|
|
282
282
|
attachedRisk: {
|
|
283
283
|
takeProfit: {
|
|
284
284
|
state: {
|
|
285
|
-
status: "unspecified" | "failed" | "
|
|
285
|
+
status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "not_configured" | "running" | "paused";
|
|
286
286
|
armedTs: number | undefined;
|
|
287
287
|
armedTsNs: string | undefined;
|
|
288
288
|
terminalTs: number | undefined;
|
|
@@ -302,7 +302,7 @@ declare function createOrderSchema(scales: SdkScales): v.SchemaWithPipe<readonly
|
|
|
302
302
|
} | undefined;
|
|
303
303
|
stopLoss: {
|
|
304
304
|
state: {
|
|
305
|
-
status: "unspecified" | "failed" | "
|
|
305
|
+
status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "not_configured" | "running" | "paused";
|
|
306
306
|
armedTs: number | undefined;
|
|
307
307
|
armedTsNs: string | undefined;
|
|
308
308
|
terminalTs: number | undefined;
|
|
@@ -322,7 +322,7 @@ declare function createOrderSchema(scales: SdkScales): v.SchemaWithPipe<readonly
|
|
|
322
322
|
} | undefined;
|
|
323
323
|
trailingStop: {
|
|
324
324
|
state: {
|
|
325
|
-
status: "unspecified" | "failed" | "
|
|
325
|
+
status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "not_configured" | "running" | "paused";
|
|
326
326
|
armedTs: number | undefined;
|
|
327
327
|
armedTsNs: string | undefined;
|
|
328
328
|
terminalTs: number | undefined;
|
|
@@ -365,7 +365,7 @@ declare function createOrderSchema(scales: SdkScales): v.SchemaWithPipe<readonly
|
|
|
365
365
|
symbolId: number;
|
|
366
366
|
clientOrderId: string;
|
|
367
367
|
status: "unspecified" | "rejected" | "canceled" | "pending" | "pending_cancel" | "working" | "filled" | "partial";
|
|
368
|
-
side: "
|
|
368
|
+
side: "unspecified" | "buy" | "sell";
|
|
369
369
|
orderType: "unspecified" | "limit" | "market";
|
|
370
370
|
timeInForce: "unspecified" | "gtc" | "ioc" | "fok" | "gtd";
|
|
371
371
|
selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both";
|
|
@@ -419,7 +419,7 @@ declare function createOrderTransferSchema(): v.SchemaWithPipe<readonly [v.Objec
|
|
|
419
419
|
timestamp: number;
|
|
420
420
|
amount: string;
|
|
421
421
|
type: "unspecified" | "internal_transfer" | "deposit" | "withdraw" | "maker_fee" | "taker_fee" | "trade_base" | "trade_quote" | "rebate" | "funding_to_trading" | "trading_to_funding" | "trading_withdraw_reserve" | "funding_user_transfer" | "trading_withdraw_request_fee" | "trading_withdraw_fee_leg" | "quickswap_polyester_fee" | "quickswap_broker_fee" | "quickswap_affiliate_fee" | "fee_sweep" | "fee_refill" | "system_adjustment" | "withdraw_failed";
|
|
422
|
-
accountCode: "unspecified" | "
|
|
422
|
+
accountCode: "unspecified" | "funding" | "trading";
|
|
423
423
|
}>]>;
|
|
424
424
|
type OrderTransfer = v.InferOutput<ReturnType<typeof createOrderTransferSchema>>;
|
|
425
425
|
declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
|
|
@@ -703,7 +703,7 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
|
|
|
703
703
|
attachedRisk: {
|
|
704
704
|
takeProfit: {
|
|
705
705
|
state: {
|
|
706
|
-
status: "unspecified" | "failed" | "
|
|
706
|
+
status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "not_configured" | "running" | "paused";
|
|
707
707
|
armedTs: number | undefined;
|
|
708
708
|
armedTsNs: string | undefined;
|
|
709
709
|
terminalTs: number | undefined;
|
|
@@ -723,7 +723,7 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
|
|
|
723
723
|
} | undefined;
|
|
724
724
|
stopLoss: {
|
|
725
725
|
state: {
|
|
726
|
-
status: "unspecified" | "failed" | "
|
|
726
|
+
status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "not_configured" | "running" | "paused";
|
|
727
727
|
armedTs: number | undefined;
|
|
728
728
|
armedTsNs: string | undefined;
|
|
729
729
|
terminalTs: number | undefined;
|
|
@@ -743,7 +743,7 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
|
|
|
743
743
|
} | undefined;
|
|
744
744
|
trailingStop: {
|
|
745
745
|
state: {
|
|
746
|
-
status: "unspecified" | "failed" | "
|
|
746
|
+
status: "unspecified" | "failed" | "armed" | "canceled" | "completed" | "created" | "not_configured" | "running" | "paused";
|
|
747
747
|
armedTs: number | undefined;
|
|
748
748
|
armedTsNs: string | undefined;
|
|
749
749
|
terminalTs: number | undefined;
|
|
@@ -786,7 +786,7 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
|
|
|
786
786
|
symbolId: number;
|
|
787
787
|
clientOrderId: string;
|
|
788
788
|
status: "unspecified" | "rejected" | "canceled" | "pending" | "pending_cancel" | "working" | "filled" | "partial";
|
|
789
|
-
side: "
|
|
789
|
+
side: "unspecified" | "buy" | "sell";
|
|
790
790
|
orderType: "unspecified" | "limit" | "market";
|
|
791
791
|
timeInForce: "unspecified" | "gtc" | "ioc" | "fok" | "gtd";
|
|
792
792
|
selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both";
|
|
@@ -863,7 +863,7 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
|
|
|
863
863
|
referralShare?: string | undefined;
|
|
864
864
|
orderId: string;
|
|
865
865
|
symbolId: number;
|
|
866
|
-
sideLabel: "
|
|
866
|
+
sideLabel: "unspecified" | "buy" | "sell";
|
|
867
867
|
liquidityLabel: "maker" | "taker";
|
|
868
868
|
feeAsset: "unspecified" | "quote" | "base";
|
|
869
869
|
qty: string;
|
|
@@ -905,7 +905,7 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
|
|
|
905
905
|
timestamp: number;
|
|
906
906
|
amount: string;
|
|
907
907
|
type: "unspecified" | "internal_transfer" | "deposit" | "withdraw" | "maker_fee" | "taker_fee" | "trade_base" | "trade_quote" | "rebate" | "funding_to_trading" | "trading_to_funding" | "trading_withdraw_reserve" | "funding_user_transfer" | "trading_withdraw_request_fee" | "trading_withdraw_fee_leg" | "quickswap_polyester_fee" | "quickswap_broker_fee" | "quickswap_affiliate_fee" | "fee_sweep" | "fee_refill" | "system_adjustment" | "withdraw_failed";
|
|
908
|
-
accountCode: "unspecified" | "
|
|
908
|
+
accountCode: "unspecified" | "funding" | "trading";
|
|
909
909
|
}>]>, undefined>, readonly []>;
|
|
910
910
|
readonly executionsComplete: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
911
911
|
}, undefined>;
|
|
@@ -4,14 +4,14 @@ import { tsNsToMs, tsObjToMs } from "../../utils/time.js";
|
|
|
4
4
|
import { OptionalPublicIdSchema, OptionalTimestampMsSchema, U128Schema } from "../../shared/schemas.js";
|
|
5
5
|
import { enumLabel, enumLabelSchema } from "../../shared/proto-enum-codec.js";
|
|
6
6
|
import { scaledToDecimalOutput } from "../../shared/decimal-surface.js";
|
|
7
|
+
import { ErrorCode } from "../../gen/orders/v1/orders_pb.js";
|
|
7
8
|
import { fromU128 } from "../../utils/u128.js";
|
|
8
9
|
import { AccountCodeCodec, TransferCodeCodec } from "../../shared/ledger-codes.js";
|
|
9
|
-
import { ErrorCode } from "../../gen/orders/v1/orders_pb.js";
|
|
10
10
|
import { FeeAssetCodec, OrderSideCodec, OrderTypeCodec, SelfTradePreventionModeCodec, TimeInForceCodec } from "./order-enums.codecs.js";
|
|
11
|
-
import { OrderCancelReasonCodec, OrderOriginScopeCodec, OrderStatusCodec, OrderTriggerTypeCodec } from "./orders.codecs.js";
|
|
12
|
-
import { ReadAttachedRiskSchema, formatAttachedRisk, formatMarketMaxSlippage } from "./orders-risk.schemas.js";
|
|
13
11
|
import { OrderLineageSchema } from "./order-lineage.schemas.js";
|
|
12
|
+
import { OrderCancelReasonCodec, OrderOriginScopeCodec, OrderStatusCodec, OrderTriggerTypeCodec } from "./orders.codecs.js";
|
|
14
13
|
import { createUserTradeSchema } from "../trades/trades.schemas.js";
|
|
14
|
+
import { ReadAttachedRiskSchema, formatAttachedRisk, formatMarketMaxSlippage } from "./orders-risk.schemas.js";
|
|
15
15
|
import * as v from "valibot";
|
|
16
16
|
//#region src/services/orders/orders-output.schemas.ts
|
|
17
17
|
const OrderStatusOutputSchema = enumLabelSchema(OrderStatusCodec.protoToOutput);
|
|
@@ -5,8 +5,8 @@ import { CatalogConversionError } from "../../catalogs/types.js";
|
|
|
5
5
|
import { positiveDecimalInputToScaled, scaledToDecimalOutput } from "../../shared/decimal-surface.js";
|
|
6
6
|
import { BpsStringOrNumberInputSchema, NoneInputSchema, PriceDistanceInputSchema, PriceSlippageInputSchema } from "../shared.js";
|
|
7
7
|
import { RiskLimitGtcSchema, RiskMarketIocSchema } from "../../gen/orders/v1/orders_pb.js";
|
|
8
|
-
import { TriggerPriceSourceCodec, TriggerPriceSourceInputSchema } from "./order-enums.codecs.js";
|
|
9
8
|
import "../../gen/orders/v1/orders_read_pb.js";
|
|
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
12
|
import { create } from "@bufbuild/protobuf";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../gen/orders/v1/orders_pb.js";
|
|
2
|
-
import { FEE_ASSET_VALUES, FeeAssetCodec, OrderSideCodec, OrderTypeCodec, SELF_TRADE_PREVENTION_MODE_VALUES, SelfTradePreventionModeCodec, TimeInForceCodec, TriggerPriceSourceCodec } from "./order-enums.codecs.js";
|
|
3
2
|
import "../../gen/orders/v1/orders_read_pb.js";
|
|
3
|
+
import { FEE_ASSET_VALUES, FeeAssetCodec, OrderSideCodec, OrderTypeCodec, SELF_TRADE_PREVENTION_MODE_VALUES, SelfTradePreventionModeCodec, TimeInForceCodec, TriggerPriceSourceCodec } from "./order-enums.codecs.js";
|
|
4
4
|
//#region src/services/orders/orders.codecs.ts
|
|
5
5
|
const ORDER_STATUS_FILTER_VALUES = [
|
|
6
6
|
"filled",
|
|
@@ -7,14 +7,14 @@ import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
|
7
7
|
import { formatId, idToBigInt } from "../../utils/base58-id.js";
|
|
8
8
|
import { deliverBatch } from "../../shared/subscription-errors.js";
|
|
9
9
|
import { resolveAccountScopedInput } from "../subaccount-resolver.js";
|
|
10
|
-
import { connectReadyGated } from "../../realtime/ready-gated-subscription.js";
|
|
11
10
|
import { OrdersService as OrdersService$1 } from "../../gen/orders/v1/orders_pb.js";
|
|
12
|
-
import { formatConnectError, isResourceNotFoundError } from "../../utils/errors.js";
|
|
13
11
|
import { OrdersReadService } from "../../gen/orders/v1/orders_read_pb.js";
|
|
12
|
+
import { createOrderDetailsSchema, formatOrder } from "./orders-output.schemas.js";
|
|
13
|
+
import { connectReadyGated } from "../../realtime/ready-gated-subscription.js";
|
|
14
|
+
import { formatConnectError, isResourceNotFoundError } from "../../utils/errors.js";
|
|
14
15
|
import { CancelAllOrdersInputSchema, CancelAllOrdersResponseSchema, CancelOrderInputSchema, CancelOrderResultSchema, GetOrderDetailsInputSchema, OpenOrdersInputSchema, OrderHistoryInputSchema, createCreateOrderResultSchema, createNewOrderInputSchema, createPreviewOrderResultSchema } from "./orders-input.schemas.js";
|
|
15
16
|
import { ModifyOrderResultSchema, assertKnownModifyOrderInputKeys, createModifyOrderInputSchema } from "./orders-modify.schemas.js";
|
|
16
17
|
import { BatchCancelOrdersInputSchema, BatchCancelOrdersResultSchema, BatchReplaceOrdersResultSchema, CancelAllAfterInputSchema, CancelAllAfterResultSchema, GetBatchReplaceStatusInputSchema, GetBatchReplaceStatusResultSchema, assertKnownBatchReplaceOrderItemInputKeys, createBatchCreateOrdersInputSchema, createBatchCreateOrdersResultSchema, createBatchReplaceOrdersInputSchema } from "./orders-batch.schemas.js";
|
|
17
|
-
import { createOrderDetailsSchema, formatOrder } from "./orders-output.schemas.js";
|
|
18
18
|
import { createClient } from "@connectrpc/connect";
|
|
19
19
|
//#region src/services/orders/orders.ts
|
|
20
20
|
function hasKnownOrderSymbol(scales, order) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "../../gen/alerts/v1/price_alerts_pb.js";
|
|
2
|
+
//#region src/services/price-alerts/price-alerts.codecs.d.ts
|
|
3
|
+
declare const PRICE_ALERT_DIRECTION_VALUES: readonly ["above", "below"];
|
|
4
|
+
/** `above` fires at or above the alert price, `below` at or below it. */
|
|
5
|
+
type PriceAlertDirection = (typeof PRICE_ALERT_DIRECTION_VALUES)[number];
|
|
6
|
+
declare const PRICE_ALERT_PRICE_SOURCE_VALUES: readonly ["last_price", "index_price"];
|
|
7
|
+
type PriceAlertPriceSource = (typeof PRICE_ALERT_PRICE_SOURCE_VALUES)[number];
|
|
8
|
+
declare const PRICE_ALERT_STATUS_VALUES: readonly ["active", "triggered", "cancelled"];
|
|
9
|
+
type PriceAlertStatus = (typeof PRICE_ALERT_STATUS_VALUES)[number];
|
|
10
|
+
declare const PRICE_ALERT_CHANNEL_VALUES: readonly ["in_app", "telegram"];
|
|
11
|
+
type PriceAlertChannel = (typeof PRICE_ALERT_CHANNEL_VALUES)[number];
|
|
12
|
+
declare const PRICE_ALERT_UPDATE_OUTCOME_VALUES: readonly ["applied", "unchanged", "replayed"];
|
|
13
|
+
/**
|
|
14
|
+
* What an update did: `applied` changed the alert, `unchanged` found it already as requested,
|
|
15
|
+
* and `replayed` recognized a reused idempotency key and changed nothing.
|
|
16
|
+
*/
|
|
17
|
+
type PriceAlertUpdateOutcome = (typeof PRICE_ALERT_UPDATE_OUTCOME_VALUES)[number];
|
|
18
|
+
//#endregion
|
|
19
|
+
export { PRICE_ALERT_CHANNEL_VALUES, PRICE_ALERT_DIRECTION_VALUES, PRICE_ALERT_PRICE_SOURCE_VALUES, PRICE_ALERT_STATUS_VALUES, PRICE_ALERT_UPDATE_OUTCOME_VALUES, PriceAlertChannel, PriceAlertDirection, PriceAlertPriceSource, PriceAlertStatus, PriceAlertUpdateOutcome };
|
|
20
|
+
//# sourceMappingURL=price-alerts.codecs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"price-alerts.codecs.d.ts","names":[],"sources":["../../../src/services/price-alerts/price-alerts.codecs.ts"],"mappings":";;cAGa;;KAED,8BAA8B;cAE7B;KACD,gCAAgC;cAE/B;KACD,2BAA2B;cAE1B;KACD,4BAA4B;cAE3B;;;;;KAKD,kCAAkC"}
|