@polyester/sdk 0.32.1-devnet-20261102140938 → 0.32.1

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.
@@ -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" | "1m" | "1h" | "1w" | "24h">]>;
33
+ readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "1m" | "1h" | "24h" | "1w">]>;
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" | "1m" | "1h" | "1w" | "24h";
53
+ interval: "unspecified" | "1m" | "1h" | "24h" | "1w";
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<("1m" | "1h" | "1w" | "24h")[], (SparklineInterval.SPARKLINE_1H | SparklineInterval.SPARKLINE_24H | SparklineInterval.SPARKLINE_1W | SparklineInterval.SPARKLINE_1M)[]>]>;
83
+ readonly sparklineIntervals: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["1h", "24h", "1w", "1m"], undefined>, undefined>, readonly ["24h"]>, v.TransformAction<("1m" | "1h" | "24h" | "1w")[], (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 | 5 | 10 | 20 | 100 | 500 | 200 | 1000 | 50;
13
+ depth: 1 | 5 | 10 | 20 | 100 | 50 | 200 | 500 | 1000;
14
14
  protoDepth: Depth;
15
15
  }>]>;
16
16
  type GetOrderbookInput = v.InferInput<typeof GetOrderbookInputSchema>;
@@ -321,7 +321,7 @@ declare function createOrderSchema(scales: SdkScales): v.SchemaWithPipe<readonly
321
321
  symbolId: number;
322
322
  clientOrderId: string;
323
323
  status: "unspecified" | "canceled" | "pending" | "pending_cancel" | "working" | "filled" | "rejected" | "partial";
324
- side: "buy" | "sell" | "unspecified";
324
+ side: "unspecified" | "buy" | "sell";
325
325
  orderType: "unspecified" | "limit" | "market";
326
326
  timeInForce: "unspecified" | "GTC" | "IOC" | "FOK" | "GTD";
327
327
  selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both";
@@ -701,7 +701,7 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
701
701
  symbolId: number;
702
702
  clientOrderId: string;
703
703
  status: "unspecified" | "canceled" | "pending" | "pending_cancel" | "working" | "filled" | "rejected" | "partial";
704
- side: "buy" | "sell" | "unspecified";
704
+ side: "unspecified" | "buy" | "sell";
705
705
  orderType: "unspecified" | "limit" | "market";
706
706
  timeInForce: "unspecified" | "GTC" | "IOC" | "FOK" | "GTD";
707
707
  selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both";
@@ -780,7 +780,7 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
780
780
  referralShare?: string | undefined;
781
781
  orderId: string;
782
782
  symbolId: number;
783
- sideLabel: "buy" | "sell" | "unspecified";
783
+ sideLabel: "unspecified" | "buy" | "sell";
784
784
  liquidityLabel: "maker" | "taker";
785
785
  feeAsset: "unspecified" | "quote" | "base";
786
786
  qty: string;
@@ -19,7 +19,7 @@ declare const RewardAwardSchema: v.ObjectSchema<{
19
19
  readonly assetId: v.NumberSchema<undefined>;
20
20
  readonly amountBaseUnits: v.StringSchema<undefined>;
21
21
  readonly fulfillmentMethod: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "external_testnet" | "internal_trading">]>;
22
- readonly fulfillmentState: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "awaiting_destination" | "ready_for_payout" | "paid" | "canceled">]>;
22
+ readonly fulfillmentState: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "awaiting_destination" | "ready_for_payout" | "paid" | "failed" | "canceled">]>;
23
23
  readonly publishedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
24
24
  readonly seconds: v.BigintSchema<undefined>;
25
25
  readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
@@ -41,7 +41,7 @@ declare const ListRewardAwardsResultSchema: v.ObjectSchema<{
41
41
  readonly assetId: v.NumberSchema<undefined>;
42
42
  readonly amountBaseUnits: v.StringSchema<undefined>;
43
43
  readonly fulfillmentMethod: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "external_testnet" | "internal_trading">]>;
44
- readonly fulfillmentState: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "awaiting_destination" | "ready_for_payout" | "paid" | "canceled">]>;
44
+ readonly fulfillmentState: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "awaiting_destination" | "ready_for_payout" | "paid" | "failed" | "canceled">]>;
45
45
  readonly publishedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
46
46
  readonly seconds: v.BigintSchema<undefined>;
47
47
  readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
@@ -65,7 +65,7 @@ declare const SetRewardDestinationResultSchema: v.ObjectSchema<{
65
65
  readonly assetId: v.NumberSchema<undefined>;
66
66
  readonly amountBaseUnits: v.StringSchema<undefined>;
67
67
  readonly fulfillmentMethod: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "external_testnet" | "internal_trading">]>;
68
- readonly fulfillmentState: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "failed" | "awaiting_destination" | "ready_for_payout" | "paid" | "canceled">]>;
68
+ readonly fulfillmentState: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "awaiting_destination" | "ready_for_payout" | "paid" | "failed" | "canceled">]>;
69
69
  readonly publishedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
70
70
  readonly seconds: v.BigintSchema<undefined>;
71
71
  readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
@@ -296,7 +296,7 @@ declare const SubaccountActivityEventSchema: v.ObjectSchema<{
296
296
  nanos: number;
297
297
  } | undefined, number | undefined>]>;
298
298
  readonly entityKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "subaccount" | "api_key" | "account" | "destination" | "session" | "policy" | "member" | "invite" | "security">]>;
299
- readonly eventAction: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "disabled" | "revoked" | "removed" | "failed" | "created" | "enabled" | "updated" | "deleted" | "role_set" | "received" | "replied" | "blocked" | "hold_placed" | "hold_released">]>;
299
+ 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">]>;
300
300
  readonly source: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "web" | "mobile" | "api">]>;
301
301
  readonly ip: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
302
302
  readonly userAgent: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -62,7 +62,7 @@ declare function createUserTradeSchema(scales: SdkScales): v.SchemaWithPipe<read
62
62
  referralShare?: string | undefined;
63
63
  orderId: string;
64
64
  symbolId: number;
65
- sideLabel: "buy" | "sell" | "unspecified";
65
+ sideLabel: "unspecified" | "buy" | "sell";
66
66
  liquidityLabel: "maker" | "taker";
67
67
  feeAsset: "unspecified" | "quote" | "base";
68
68
  qty: string;
@@ -168,7 +168,7 @@ declare const GetUserTradesInputSchema: v.SchemaWithPipe<readonly [v.UnionSchema
168
168
  readonly orderId: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
169
169
  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`>]>;
170
170
  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>;
171
- }, undefined>], undefined>], ({ input }: v.UnionIssue<v.NumberIssue | v.BooleanIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 1> | v.MaxValueIssue<number, 4294967295> | v.StringIssue | v.MinLengthIssue<string, 1> | v.StrictObjectIssue | v.PicklistIssue | v.UnionIssue<v.StringIssue | v.MinLengthIssue<string, 1> | v.StrictObjectIssue | v.PicklistIssue> | v.CheckIssue<bigint> | v.NeverIssue | v.MaxValueIssue<number, 1000> | v.UnionIssue<v.NumberIssue | v.BooleanIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 1> | v.MaxValueIssue<number, 4294967295> | v.StringIssue | v.MinLengthIssue<string, 1> | v.StrictObjectIssue | v.PicklistIssue | v.UnionIssue<v.StringIssue | v.MinLengthIssue<string, 1> | v.StrictObjectIssue | v.PicklistIssue> | v.CheckIssue<bigint> | v.NeverIssue | v.MaxValueIssue<number, 1000>> | v.CheckIssue<number> | v.UnionIssue<v.NumberIssue | v.BooleanIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 1> | v.MaxValueIssue<number, 4294967295> | v.StringIssue | v.MinLengthIssue<string, 1> | v.StrictObjectIssue | v.PicklistIssue | v.UnionIssue<v.StringIssue | v.MinLengthIssue<string, 1> | v.StrictObjectIssue | v.PicklistIssue> | v.CheckIssue<bigint> | v.NeverIssue | v.MaxValueIssue<number, 1000> | v.CheckIssue<number>>>) => "symbolId is required when afterMatchId is set" | "Provide at most one of orderId or lineageId" | "throughGeneration requires lineageId">, v.TransformAction<{
171
+ }, 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.CheckIssue<bigint> | v.MaxValueIssue<number, 1000> | v.NeverIssue | 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.CheckIssue<bigint> | v.MaxValueIssue<number, 1000> | v.NeverIssue> | v.CheckIssue<number> | 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.CheckIssue<bigint> | v.MaxValueIssue<number, 1000> | v.NeverIssue | v.CheckIssue<number>>>) => "symbolId is required when afterMatchId is set" | "Provide at most one of orderId or lineageId" | "throughGeneration requires lineageId">, v.TransformAction<{
172
172
  symbolId?: number | undefined;
173
173
  afterMatchId?: undefined;
174
174
  side?: Side.BUY | Side.SELL | undefined;
@@ -620,7 +620,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
620
620
  selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both";
621
621
  configuration: {
622
622
  type: "stop_loss" | "take_profit";
623
- side: "buy" | "sell" | "unspecified";
623
+ side: "unspecified" | "buy" | "sell";
624
624
  triggerPrice: string;
625
625
  execution: {
626
626
  readonly type: "market_ioc";
@@ -672,7 +672,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
672
672
  readonly postOnly?: undefined;
673
673
  } | {
674
674
  type: "trailing_stop";
675
- side: "buy" | "sell" | "unspecified";
675
+ side: "unspecified" | "buy" | "sell";
676
676
  trailingDistance: {
677
677
  kind: "distance";
678
678
  distance: string;
@@ -711,7 +711,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
711
711
  readonly postOnly?: undefined;
712
712
  } | {
713
713
  type: "twap";
714
- side: "buy" | "sell" | "unspecified";
714
+ side: "unspecified" | "buy" | "sell";
715
715
  durationMs: number;
716
716
  sliceIntervalMs: number;
717
717
  execution: {
@@ -750,7 +750,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
750
750
  readonly postOnly?: undefined;
751
751
  } | {
752
752
  type: "ladder";
753
- side: "buy" | "sell" | "unspecified";
753
+ side: "unspecified" | "buy" | "sell";
754
754
  priceMin: string;
755
755
  priceMax: string;
756
756
  levels: number;
@@ -799,7 +799,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
799
799
  selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both";
800
800
  configuration: {
801
801
  type: "stop_loss" | "take_profit";
802
- side: "buy" | "sell" | "unspecified";
802
+ side: "unspecified" | "buy" | "sell";
803
803
  triggerPrice: string;
804
804
  execution: {
805
805
  readonly type: "market_ioc";
@@ -851,7 +851,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
851
851
  readonly postOnly?: undefined;
852
852
  } | {
853
853
  type: "trailing_stop";
854
- side: "buy" | "sell" | "unspecified";
854
+ side: "unspecified" | "buy" | "sell";
855
855
  trailingDistance: {
856
856
  kind: "distance";
857
857
  distance: string;
@@ -890,7 +890,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
890
890
  readonly postOnly?: undefined;
891
891
  } | {
892
892
  type: "twap";
893
- side: "buy" | "sell" | "unspecified";
893
+ side: "unspecified" | "buy" | "sell";
894
894
  durationMs: number;
895
895
  sliceIntervalMs: number;
896
896
  execution: {
@@ -929,7 +929,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
929
929
  readonly postOnly?: undefined;
930
930
  } | {
931
931
  type: "ladder";
932
- side: "buy" | "sell" | "unspecified";
932
+ side: "unspecified" | "buy" | "sell";
933
933
  priceMin: string;
934
934
  priceMax: string;
935
935
  levels: number;
@@ -978,7 +978,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
978
978
  selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both";
979
979
  configuration: {
980
980
  type: "stop_loss" | "take_profit";
981
- side: "buy" | "sell" | "unspecified";
981
+ side: "unspecified" | "buy" | "sell";
982
982
  triggerPrice: string;
983
983
  execution: {
984
984
  readonly type: "market_ioc";
@@ -1030,7 +1030,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
1030
1030
  readonly postOnly?: undefined;
1031
1031
  } | {
1032
1032
  type: "trailing_stop";
1033
- side: "buy" | "sell" | "unspecified";
1033
+ side: "unspecified" | "buy" | "sell";
1034
1034
  trailingDistance: {
1035
1035
  kind: "distance";
1036
1036
  distance: string;
@@ -1069,7 +1069,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
1069
1069
  readonly postOnly?: undefined;
1070
1070
  } | {
1071
1071
  type: "twap";
1072
- side: "buy" | "sell" | "unspecified";
1072
+ side: "unspecified" | "buy" | "sell";
1073
1073
  durationMs: number;
1074
1074
  sliceIntervalMs: number;
1075
1075
  execution: {
@@ -1108,7 +1108,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
1108
1108
  readonly postOnly?: undefined;
1109
1109
  } | {
1110
1110
  type: "ladder";
1111
- side: "buy" | "sell" | "unspecified";
1111
+ side: "unspecified" | "buy" | "sell";
1112
1112
  priceMin: string;
1113
1113
  priceMax: string;
1114
1114
  levels: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyester/sdk",
3
- "version": "0.32.1-devnet-20261102140938",
3
+ "version": "0.32.1",
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",