@polyester/sdk 0.34.0-devnet-20261105175510 → 0.34.1-devnet-20261106025831
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 +7 -1
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/changelog/changelog.schemas.d.ts +17 -17
- package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +79 -79
- package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
- 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 +32 -32
- package/dist/services/orders/orders-input.schemas.d.ts +3 -3
- package/dist/services/orders/orders-output.schemas.d.ts +6 -6
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +1 -1
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +3 -3
- package/dist/shared/rate-limit.schemas.d.ts +1 -1
- package/dist/utils/columnar-time.d.ts.map +1 -1
- package/dist/utils/columnar-time.js +2 -1
- package/dist/utils/columnar-time.js.map +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -80,7 +80,7 @@ declare const ListMarketOverviewInputSchema: v.SchemaWithPipe<readonly [v.Strict
|
|
|
80
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<"change_24h_bps" | "volume_24h_usd" | "last_price" | "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 | 5 | 10 | 20 | 100 | 500 | 1000 | 200 | 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">]>;
|
|
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" | "subaccount" | "client_ip" | "api_key" | "account" | "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">]>;
|
|
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" | "subaccount" | "client_ip" | "api_key" | "account" | "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";
|
|
3266
|
-
scope: "symbol" | "unspecified" | "
|
|
3266
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "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";
|
|
3308
|
-
scope: "symbol" | "unspecified" | "
|
|
3308
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "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";
|
|
3350
|
-
scope: "symbol" | "unspecified" | "
|
|
3350
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "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";
|
|
3380
|
-
scope: "symbol" | "unspecified" | "
|
|
3380
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "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">]>;
|
|
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" | "subaccount" | "client_ip" | "api_key" | "account" | "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";
|
|
3468
|
-
scope: "symbol" | "unspecified" | "
|
|
3468
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "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";
|
|
3496
|
-
scope: "symbol" | "unspecified" | "
|
|
3496
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "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">]>;
|
|
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" | "subaccount" | "client_ip" | "api_key" | "account" | "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";
|
|
3557
|
-
scope: "symbol" | "unspecified" | "
|
|
3557
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "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";
|
|
3585
|
-
scope: "symbol" | "unspecified" | "
|
|
3585
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "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";
|
|
3620
|
-
scope: "symbol" | "unspecified" | "
|
|
3620
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "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";
|
|
3655
|
-
scope: "symbol" | "unspecified" | "
|
|
3655
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "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";
|
|
3690
|
-
scope: "symbol" | "unspecified" | "
|
|
3690
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "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";
|
|
3727
|
-
scope: "symbol" | "unspecified" | "
|
|
3727
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "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" | "
|
|
3757
|
+
readonly phase: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "terminal" | "working" | "rejected" | "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" | "AMENDED" | "REPLACED">]>;
|
|
@@ -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" | "
|
|
3766
|
+
phase: "unspecified" | "terminal" | "working" | "rejected" | "admitted";
|
|
3767
3767
|
oldOrderId?: string | undefined;
|
|
3768
3768
|
replacementOrderId?: string | undefined;
|
|
3769
3769
|
actionTaken: "unspecified" | "AMENDED" | "REPLACED";
|
|
@@ -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" | "
|
|
3778
|
+
phase: "unspecified" | "terminal" | "working" | "rejected" | "admitted";
|
|
3779
3779
|
oldOrderId?: string | undefined;
|
|
3780
3780
|
replacementOrderId?: string | undefined;
|
|
3781
3781
|
actionTaken: "unspecified" | "AMENDED" | "REPLACED";
|
|
@@ -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" | "
|
|
3796
|
+
phase: "unspecified" | "terminal" | "working" | "rejected" | "admitted";
|
|
3797
3797
|
oldOrderId?: string | undefined;
|
|
3798
3798
|
replacementOrderId?: string | undefined;
|
|
3799
3799
|
actionTaken: "unspecified" | "AMENDED" | "REPLACED";
|
|
@@ -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" | "
|
|
3814
|
+
phase: "unspecified" | "terminal" | "working" | "rejected" | "admitted";
|
|
3815
3815
|
oldOrderId?: string | undefined;
|
|
3816
3816
|
replacementOrderId?: string | undefined;
|
|
3817
3817
|
actionTaken: "unspecified" | "AMENDED" | "REPLACED";
|
|
@@ -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" | "
|
|
3832
|
+
phase: "unspecified" | "terminal" | "working" | "rejected" | "admitted";
|
|
3833
3833
|
oldOrderId?: string | undefined;
|
|
3834
3834
|
replacementOrderId?: string | undefined;
|
|
3835
3835
|
actionTaken: "unspecified" | "AMENDED" | "REPLACED";
|
|
@@ -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" | "
|
|
3854
|
+
phase: "unspecified" | "terminal" | "working" | "rejected" | "admitted";
|
|
3855
3855
|
oldOrderId?: string | undefined;
|
|
3856
3856
|
replacementOrderId?: string | undefined;
|
|
3857
3857
|
actionTaken: "unspecified" | "AMENDED" | "REPLACED";
|
|
@@ -3950,7 +3950,7 @@ declare const BatchCancelOrdersInputSchema: v.SchemaWithPipe<readonly [v.StrictO
|
|
|
3950
3950
|
}>]>;
|
|
3951
3951
|
type BatchCancelOrdersInput = v.InferInput<typeof BatchCancelOrdersInputSchema>;
|
|
3952
3952
|
declare const BatchCancelOrderResultSchema: v.ObjectSchema<{
|
|
3953
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
3953
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rejected" | "accepted">]>;
|
|
3954
3954
|
readonly orderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3955
3955
|
readonly clientOrderId: v.StringSchema<undefined>;
|
|
3956
3956
|
readonly code: v.StringSchema<undefined>;
|
|
@@ -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">]>;
|
|
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" | "subaccount" | "client_ip" | "api_key" | "account" | "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>]>;
|
|
@@ -3978,7 +3978,7 @@ declare const BatchCancelOrderResultSchema: v.ObjectSchema<{
|
|
|
3978
3978
|
type BatchCancelOrderResult = v.InferOutput<typeof BatchCancelOrderResultSchema>;
|
|
3979
3979
|
declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
3980
3980
|
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
3981
|
-
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
3981
|
+
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rejected" | "accepted">]>;
|
|
3982
3982
|
readonly orderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
3983
3983
|
readonly clientOrderId: v.StringSchema<undefined>;
|
|
3984
3984
|
readonly code: v.StringSchema<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">]>;
|
|
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" | "subaccount" | "client_ip" | "api_key" | "account" | "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>]>;
|
|
@@ -4008,7 +4008,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
4008
4008
|
readonly tsNs: v.BigintSchema<undefined>;
|
|
4009
4009
|
}, undefined>, v.CheckAction<{
|
|
4010
4010
|
results: {
|
|
4011
|
-
status: "unspecified" | "
|
|
4011
|
+
status: "unspecified" | "rejected" | "accepted";
|
|
4012
4012
|
orderId?: string | undefined;
|
|
4013
4013
|
clientOrderId: string;
|
|
4014
4014
|
code: string;
|
|
@@ -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";
|
|
4030
|
-
scope: "symbol" | "unspecified" | "
|
|
4030
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
4031
4031
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
4032
4032
|
} | undefined;
|
|
4033
4033
|
existingOrderId?: string | undefined;
|
|
@@ -4038,7 +4038,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
4038
4038
|
tsNs: bigint;
|
|
4039
4039
|
}, "Batch cancel result counts do not match the returned results.">, v.TransformAction<{
|
|
4040
4040
|
results: {
|
|
4041
|
-
status: "unspecified" | "
|
|
4041
|
+
status: "unspecified" | "rejected" | "accepted";
|
|
4042
4042
|
orderId?: string | undefined;
|
|
4043
4043
|
clientOrderId: string;
|
|
4044
4044
|
code: string;
|
|
@@ -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";
|
|
4060
|
-
scope: "symbol" | "unspecified" | "
|
|
4060
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
4061
4061
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
4062
4062
|
} | undefined;
|
|
4063
4063
|
existingOrderId?: string | undefined;
|
|
@@ -4070,7 +4070,7 @@ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.Object
|
|
|
4070
4070
|
ts: number;
|
|
4071
4071
|
tsNs: string;
|
|
4072
4072
|
results: {
|
|
4073
|
-
status: "unspecified" | "
|
|
4073
|
+
status: "unspecified" | "rejected" | "accepted";
|
|
4074
4074
|
orderId?: string | undefined;
|
|
4075
4075
|
clientOrderId: string;
|
|
4076
4076
|
code: string;
|
|
@@ -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";
|
|
4092
|
-
scope: "symbol" | "unspecified" | "
|
|
4092
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "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">]>;
|
|
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" | "subaccount" | "client_ip" | "api_key" | "account" | "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";
|
|
4792
|
-
scope: "symbol" | "unspecified" | "
|
|
4792
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "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";
|
|
4819
|
-
scope: "symbol" | "unspecified" | "
|
|
4819
|
+
scope: "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject";
|
|
4820
4820
|
refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window";
|
|
4821
4821
|
} | undefined;
|
|
4822
4822
|
existingOrderId?: string | undefined;
|
|
@@ -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" | "canceled" | "completed" | "
|
|
285
|
+
status: "unspecified" | "failed" | "canceled" | "completed" | "not_configured" | "created" | "armed" | "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" | "canceled" | "completed" | "
|
|
305
|
+
status: "unspecified" | "failed" | "canceled" | "completed" | "not_configured" | "created" | "armed" | "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" | "canceled" | "completed" | "
|
|
325
|
+
status: "unspecified" | "failed" | "canceled" | "completed" | "not_configured" | "created" | "armed" | "running" | "paused";
|
|
326
326
|
armedTs: number | undefined;
|
|
327
327
|
armedTsNs: string | undefined;
|
|
328
328
|
terminalTs: number | undefined;
|
|
@@ -703,7 +703,7 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
|
|
|
703
703
|
attachedRisk: {
|
|
704
704
|
takeProfit: {
|
|
705
705
|
state: {
|
|
706
|
-
status: "unspecified" | "failed" | "canceled" | "completed" | "
|
|
706
|
+
status: "unspecified" | "failed" | "canceled" | "completed" | "not_configured" | "created" | "armed" | "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" | "canceled" | "completed" | "
|
|
726
|
+
status: "unspecified" | "failed" | "canceled" | "completed" | "not_configured" | "created" | "armed" | "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" | "canceled" | "completed" | "
|
|
746
|
+
status: "unspecified" | "failed" | "canceled" | "completed" | "not_configured" | "created" | "armed" | "running" | "paused";
|
|
747
747
|
armedTs: number | undefined;
|
|
748
748
|
armedTsNs: string | undefined;
|
|
749
749
|
terminalTs: number | undefined;
|
|
@@ -300,7 +300,7 @@ declare const SubaccountActivityEventSchema: v.ObjectSchema<{
|
|
|
300
300
|
seconds: bigint;
|
|
301
301
|
nanos: number;
|
|
302
302
|
} | undefined, number | undefined>]>;
|
|
303
|
-
readonly entityKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
303
|
+
readonly entityKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "subaccount" | "api_key" | "account" | "destination" | "session" | "policy" | "member" | "invite" | "security">]>;
|
|
304
304
|
readonly eventAction: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "disabled" | "revoked" | "removed" | "failed" | "enabled" | "created" | "updated" | "deleted" | "role_set" | "received" | "replied" | "blocked" | "hold_placed" | "hold_released">]>;
|
|
305
305
|
readonly source: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "api" | "web" | "mobile">]>;
|
|
306
306
|
readonly ip: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -169,7 +169,7 @@ declare const GetUserTradesInputSchema: v.SchemaWithPipe<readonly [v.UnionSchema
|
|
|
169
169
|
readonly orderId: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
170
170
|
readonly lineageId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>, v.CheckAction<bigint, `${string} must be greater than zero`>]>;
|
|
171
171
|
readonly throughGeneration: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>;
|
|
172
|
-
}, undefined>], undefined>], ({ input }: v.UnionIssue<v.
|
|
172
|
+
}, undefined>], undefined>], ({ input }: v.UnionIssue<v.StringIssue | v.NumberIssue | v.BooleanIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 1> | v.MaxValueIssue<number, 4294967295> | v.StrictObjectIssue | v.PicklistIssue | v.MinLengthIssue<string, 1> | v.UnionIssue<v.StringIssue | v.StrictObjectIssue | v.PicklistIssue | v.MinLengthIssue<string, 1>> | v.GtValueIssue<number, 0> | v.CheckIssue<bigint> | v.NeverIssue | v.MaxValueIssue<number, 1000> | v.UnionIssue<v.StringIssue | v.NumberIssue | v.BooleanIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 1> | v.MaxValueIssue<number, 4294967295> | v.StrictObjectIssue | v.PicklistIssue | v.MinLengthIssue<string, 1> | v.UnionIssue<v.StringIssue | v.StrictObjectIssue | v.PicklistIssue | v.MinLengthIssue<string, 1>> | v.GtValueIssue<number, 0> | v.CheckIssue<bigint> | v.NeverIssue | v.MaxValueIssue<number, 1000>>>) => "Provide at most one of orderId or lineageId" | "throughGeneration requires lineageId" | "symbolId is required when afterMatchId is set" | "Invalid trade filters">, v.TransformAction<{
|
|
173
173
|
symbolId?: number | undefined;
|
|
174
174
|
afterMatchId?: undefined;
|
|
175
175
|
side?: Side.BUY | Side.SELL | undefined;
|
|
@@ -1329,7 +1329,7 @@ declare const ListTriggerEventsInputSchema: v.SchemaWithPipe<readonly [v.StrictO
|
|
|
1329
1329
|
readonly triggerId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
|
|
1330
1330
|
}, undefined>, v.TransformAction<{
|
|
1331
1331
|
limit?: number | undefined;
|
|
1332
|
-
eventType?: "failed" | "canceled" | "
|
|
1332
|
+
eventType?: "failed" | "canceled" | "armed" | "updated" | "fired" | "activated" | "fire_refused" | undefined;
|
|
1333
1333
|
pageToken: string;
|
|
1334
1334
|
account?: "active" | "main" | {
|
|
1335
1335
|
subaccountId: string;
|
|
@@ -1196,7 +1196,7 @@ declare function createTriggerEventSchema(scales: SdkScales): v.SchemaWithPipe<r
|
|
|
1196
1196
|
subaccountId: string;
|
|
1197
1197
|
symbolId: number;
|
|
1198
1198
|
triggerType: "unspecified" | "twap" | "ladder" | "stop_loss" | "take_profit" | "trailing_stop";
|
|
1199
|
-
eventType: "unspecified" | "failed" | "canceled" | "
|
|
1199
|
+
eventType: "unspecified" | "failed" | "canceled" | "armed" | "updated" | "fired" | "activated" | "fire_refused";
|
|
1200
1200
|
ts: number;
|
|
1201
1201
|
tsNs: string;
|
|
1202
1202
|
childSeq: number;
|
|
@@ -1211,7 +1211,7 @@ declare function createTriggerEventSchema(scales: SdkScales): v.SchemaWithPipe<r
|
|
|
1211
1211
|
subaccountId: string;
|
|
1212
1212
|
symbolId: number;
|
|
1213
1213
|
triggerType: "unspecified" | "twap" | "ladder" | "stop_loss" | "take_profit" | "trailing_stop";
|
|
1214
|
-
eventType: "unspecified" | "failed" | "canceled" | "
|
|
1214
|
+
eventType: "unspecified" | "failed" | "canceled" | "armed" | "updated" | "fired" | "activated" | "fire_refused";
|
|
1215
1215
|
ts: number;
|
|
1216
1216
|
tsNs: string;
|
|
1217
1217
|
childSeq: number;
|
|
@@ -1226,7 +1226,7 @@ declare function createTriggerEventSchema(scales: SdkScales): v.SchemaWithPipe<r
|
|
|
1226
1226
|
subaccountId: string;
|
|
1227
1227
|
symbolId: number;
|
|
1228
1228
|
triggerType: "unspecified" | "twap" | "ladder" | "stop_loss" | "take_profit" | "trailing_stop";
|
|
1229
|
-
eventType: "unspecified" | "failed" | "canceled" | "
|
|
1229
|
+
eventType: "unspecified" | "failed" | "canceled" | "armed" | "updated" | "fired" | "activated" | "fire_refused";
|
|
1230
1230
|
ts: number;
|
|
1231
1231
|
tsNs: string;
|
|
1232
1232
|
childSeq: number;
|
|
@@ -21,7 +21,7 @@ declare const RateLimitDetailSchema: v.ObjectSchema<{
|
|
|
21
21
|
readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
|
|
22
22
|
readonly operationId: v.StringSchema<undefined>;
|
|
23
23
|
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">]>;
|
|
24
|
-
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "
|
|
24
|
+
readonly scope: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "symbol" | "unspecified" | "subaccount" | "client_ip" | "api_key" | "account" | "connection" | "service" | "region" | "auth_subject">]>;
|
|
25
25
|
readonly refillModel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
|
|
26
26
|
}, undefined>;
|
|
27
27
|
/** Structured quota state exposed by order rejections and {@link RateLimitError}. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columnar-time.d.ts","names":[],"sources":["../../src/utils/columnar-time.ts"],"mappings":";KAAY;EACR;EACA;EACA;;iBAQY,uBAAuB,QAAQ,oBAAoB;
|
|
1
|
+
{"version":3,"file":"columnar-time.d.ts","names":[],"sources":["../../src/utils/columnar-time.ts"],"mappings":";KAAY;EACR;EACA;EACA;;iBAQY,uBAAuB,QAAQ,oBAAoB;iBAenD,4BACZ,QAAQ,oBACR"}
|
|
@@ -11,7 +11,8 @@ function columnarTimestampSecAt(window, index) {
|
|
|
11
11
|
const endTsSec = Number(window.endTsSec);
|
|
12
12
|
if (!Number.isFinite(startTsSec) || !Number.isFinite(endTsSec)) return null;
|
|
13
13
|
if (endTsSec < startTsSec) return null;
|
|
14
|
-
|
|
14
|
+
if (points === 1) return startTsSec;
|
|
15
|
+
return startTsSec + index * (endTsSec - startTsSec) / (points - 1);
|
|
15
16
|
}
|
|
16
17
|
function expandColumnarTimestampsSec(window, count = window.points) {
|
|
17
18
|
const points = pointCount(window.points);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columnar-time.js","names":[],"sources":["../../src/utils/columnar-time.ts"],"sourcesContent":["export type ColumnarTimeWindow = {\n startTsSec: number;\n endTsSec: number;\n points: number;\n};\n\nfunction pointCount(points: number): number {\n if (!Number.isFinite(points)) return 0;\n return Math.max(0, Math.trunc(points));\n}\n\nexport function columnarTimestampSecAt(window: ColumnarTimeWindow, index: number): number | null {\n const points = pointCount(window.points);\n if (points === 0) return null;\n if (!Number.isInteger(index) || index < 0 || index >= points) return null;\n\n const startTsSec = Number(window.startTsSec);\n const endTsSec = Number(window.endTsSec);\n if (!Number.isFinite(startTsSec) || !Number.isFinite(endTsSec)) return null;\n if (endTsSec < startTsSec) return null;\n\n return startTsSec + index * (
|
|
1
|
+
{"version":3,"file":"columnar-time.js","names":[],"sources":["../../src/utils/columnar-time.ts"],"sourcesContent":["export type ColumnarTimeWindow = {\n startTsSec: number;\n endTsSec: number;\n points: number;\n};\n\nfunction pointCount(points: number): number {\n if (!Number.isFinite(points)) return 0;\n return Math.max(0, Math.trunc(points));\n}\n\nexport function columnarTimestampSecAt(window: ColumnarTimeWindow, index: number): number | null {\n const points = pointCount(window.points);\n if (points === 0) return null;\n if (!Number.isInteger(index) || index < 0 || index >= points) return null;\n\n const startTsSec = Number(window.startTsSec);\n const endTsSec = Number(window.endTsSec);\n if (!Number.isFinite(startTsSec) || !Number.isFinite(endTsSec)) return null;\n if (endTsSec < startTsSec) return null;\n if (points === 1) return startTsSec;\n\n // endTsSec is the last point's own timestamp, so points span points - 1 steps.\n return startTsSec + (index * (endTsSec - startTsSec)) / (points - 1);\n}\n\nexport function expandColumnarTimestampsSec(\n window: ColumnarTimeWindow,\n count = window.points,\n): number[] {\n const points = pointCount(window.points);\n const length = Math.min(points, pointCount(count));\n const timestamps: number[] = [];\n\n for (let index = 0; index < length; index++) {\n const tsSec = columnarTimestampSecAt(window, index);\n if (tsSec == null) return [];\n timestamps.push(tsSec);\n }\n\n return timestamps;\n}\n"],"mappings":";AAMA,SAAS,WAAW,QAAwB;CACxC,IAAI,CAAC,OAAO,SAAS,MAAM,GAAG,OAAO;CACrC,OAAO,KAAK,IAAI,GAAG,KAAK,MAAM,MAAM,CAAC;AACzC;AAEA,SAAgB,uBAAuB,QAA4B,OAA8B;CAC7F,MAAM,SAAS,WAAW,OAAO,MAAM;CACvC,IAAI,WAAW,GAAG,OAAO;CACzB,IAAI,CAAC,OAAO,UAAU,KAAK,KAAK,QAAQ,KAAK,SAAS,QAAQ,OAAO;CAErE,MAAM,aAAa,OAAO,OAAO,UAAU;CAC3C,MAAM,WAAW,OAAO,OAAO,QAAQ;CACvC,IAAI,CAAC,OAAO,SAAS,UAAU,KAAK,CAAC,OAAO,SAAS,QAAQ,GAAG,OAAO;CACvE,IAAI,WAAW,YAAY,OAAO;CAClC,IAAI,WAAW,GAAG,OAAO;CAGzB,OAAO,aAAc,SAAS,WAAW,eAAgB,SAAS;AACtE;AAEA,SAAgB,4BACZ,QACA,QAAQ,OAAO,QACP;CACR,MAAM,SAAS,WAAW,OAAO,MAAM;CACvC,MAAM,SAAS,KAAK,IAAI,QAAQ,WAAW,KAAK,CAAC;CACjD,MAAM,aAAuB,CAAC;CAE9B,KAAK,IAAI,QAAQ,GAAG,QAAQ,QAAQ,SAAS;EACzC,MAAM,QAAQ,uBAAuB,QAAQ,KAAK;EAClD,IAAI,SAAS,MAAM,OAAO,CAAC;EAC3B,WAAW,KAAK,KAAK;CACzB;CAEA,OAAO;AACX"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polyester/sdk",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.1-devnet-20261106025831",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "TypeScript SDK providing access to APIs on Polyester Exchange.",
|
|
6
6
|
"homepage": "https://github.com/Fabric-Labs/polyester-sdk-typescript#readme",
|