@polyester/sdk 0.4.1 → 0.4.3
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 +16 -0
- package/dist/core-client.d.ts +9 -0
- package/dist/core-client.d.ts.map +1 -1
- package/dist/core-client.js +21 -0
- package/dist/core-client.js.map +1 -1
- package/dist/environment.js +4 -0
- package/dist/environment.js.map +1 -1
- package/dist/gen/fees/v1/fees_pb.d.ts +124 -0
- package/dist/gen/fees/v1/fees_pb.d.ts.map +1 -0
- package/dist/gen/fees/v1/fees_pb.js +39 -0
- package/dist/gen/fees/v1/fees_pb.js.map +1 -0
- package/dist/gen/index.d.ts +4 -1
- package/dist/gen/index.js +4 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +223 -0
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts.map +1 -0
- package/dist/gen/ratelimit/v1/ratelimit_pb.js +86 -0
- package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -0
- package/dist/gen/vip/v1/vip_pb.d.ts +277 -0
- package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -0
- package/dist/gen/vip/v1/vip_pb.js +60 -0
- package/dist/gen/vip/v1/vip_pb.js.map +1 -0
- package/dist/index.d.ts +8 -1
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/fees/fees.d.ts +19 -0
- package/dist/services/fees/fees.d.ts.map +1 -0
- package/dist/services/fees/fees.js +32 -0
- package/dist/services/fees/fees.js.map +1 -0
- package/dist/services/fees/fees.schemas.d.ts +28 -0
- package/dist/services/fees/fees.schemas.d.ts.map +1 -0
- package/dist/services/fees/fees.schemas.js +25 -0
- package/dist/services/fees/fees.schemas.js.map +1 -0
- package/dist/services/fees/fees.types.d.ts +2 -0
- package/dist/services/fees/index.d.ts +3 -0
- package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
- 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/orders-batch.schemas.d.ts +14 -14
- package/dist/services/orders/orders-output.schemas.d.ts +12 -12
- package/dist/services/rate-limits/index.d.ts +4 -0
- package/dist/services/rate-limits/rate-limits.codecs.d.ts +6 -0
- package/dist/services/rate-limits/rate-limits.codecs.d.ts.map +1 -0
- package/dist/services/rate-limits/rate-limits.codecs.js +11 -0
- package/dist/services/rate-limits/rate-limits.codecs.js.map +1 -0
- package/dist/services/rate-limits/rate-limits.d.ts +24 -0
- package/dist/services/rate-limits/rate-limits.d.ts.map +1 -0
- package/dist/services/rate-limits/rate-limits.js +40 -0
- package/dist/services/rate-limits/rate-limits.js.map +1 -0
- package/dist/services/rate-limits/rate-limits.schemas.d.ts +58 -0
- package/dist/services/rate-limits/rate-limits.schemas.d.ts.map +1 -0
- package/dist/services/rate-limits/rate-limits.schemas.js +30 -0
- package/dist/services/rate-limits/rate-limits.schemas.js.map +1 -0
- package/dist/services/rate-limits/rate-limits.types.d.ts +3 -0
- package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +1 -1
- package/dist/services/vip/index.d.ts +3 -0
- package/dist/services/vip/vip.d.ts +22 -0
- package/dist/services/vip/vip.d.ts.map +1 -0
- package/dist/services/vip/vip.js +35 -0
- package/dist/services/vip/vip.js.map +1 -0
- package/dist/services/vip/vip.schemas.d.ts +90 -0
- package/dist/services/vip/vip.schemas.d.ts.map +1 -0
- package/dist/services/vip/vip.schemas.js +47 -0
- package/dist/services/vip/vip.schemas.js.map +1 -0
- package/dist/services/vip/vip.types.d.ts +2 -0
- package/dist/wired-services.d.ts.map +1 -1
- package/dist/wired-services.js +6 -0
- package/dist/wired-services.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { file_polyester_api_options } from "../../polyester/api/options_pb.js";
|
|
3
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
4
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
|
+
//#region src/gen/vip/v1/vip_pb.ts
|
|
6
|
+
var vip_pb_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
GetVIPStatusRequestSchema: () => GetVIPStatusRequestSchema,
|
|
8
|
+
GetVIPStatusResponseSchema: () => GetVIPStatusResponseSchema,
|
|
9
|
+
ListVIPTiersRequestSchema: () => ListVIPTiersRequestSchema,
|
|
10
|
+
ListVIPTiersResponseSchema: () => ListVIPTiersResponseSchema,
|
|
11
|
+
NextVIPTierThresholdsSchema: () => NextVIPTierThresholdsSchema,
|
|
12
|
+
VIPService: () => VIPService,
|
|
13
|
+
VIPTierSchema: () => VIPTierSchema,
|
|
14
|
+
file_vip_v1_vip: () => file_vip_v1_vip
|
|
15
|
+
});
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file vip/v1/vip.proto.
|
|
18
|
+
*/
|
|
19
|
+
const file_vip_v1_vip = /*@__PURE__*/ fileDesc("ChB2aXAvdjEvdmlwLnByb3RvEgZ2aXAudjEitQEKB1ZJUFRpZXISDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASIAoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCAEgAiAEBEiAKFm1ha2VyX2ZlZV9yYXRlX3BlcmNlbnQYBCABKAlCABIgChZ0YWtlcl9mZWVfcmF0ZV9wZXJjZW50GAUgASgJQgBCFAoSX2FvcF90aHJlc2hvbGRfdXNkIhUKE0xpc3RWSVBUaWVyc1JlcXVlc3QiqgEKFExpc3RWSVBUaWVyc1Jlc3BvbnNlEhgKDnBvbGljeV92ZXJzaW9uGAEgASgEQgASNAoOZWZmZWN0aXZlX2Zyb20YAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgASIAoWcmV0ZW50aW9uX3RocmVzaG9sZF9icBgDIAEoDUIAEiAKBXRpZXJzGAQgAygLMg8udmlwLnYxLlZJUFRpZXJCACJkChVOZXh0VklQVGllclRocmVzaG9sZHMSDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASGwoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCACIVChNHZXRWSVBTdGF0dXNSZXF1ZXN0It8EChRHZXRWSVBTdGF0dXNSZXNwb25zZRIOCgR0aWVyGAEgASgNQgASFQoLdm9sdW1lX3RpZXIYAiABKA1CABISCghhb3BfdGllchgDIAEoDUIAEiUKFnNldHRsZWRfdm9sdW1lXzMwZF91c2QYBCABKAlCAEgAiAEBEiIKE2F2ZXJhZ2VfYW9wXzMwZF91c2QYBSABKAlCAEgBiAEBEhgKDnBvbGljeV92ZXJzaW9uGAYgASgEQgASOwoVcG9saWN5X2VmZmVjdGl2ZV9mcm9tGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIAEjcKDmVmZmVjdGl2ZV9mcm9tGAggASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgCiAEBEjUKDGV2YWx1YXRlZF9hdBgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIA4gBARI2Cg1tZXRyaWNzX2FzX29mGAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgEiAEBEkAKFG5leHRfdGllcl90aHJlc2hvbGRzGAsgASgLMh0udmlwLnYxLk5leHRWSVBUaWVyVGhyZXNob2xkc0gFiAEBQhkKF19zZXR0bGVkX3ZvbHVtZV8zMGRfdXNkQhYKFF9hdmVyYWdlX2FvcF8zMGRfdXNkQhEKD19lZmZlY3RpdmVfZnJvbUIPCg1fZXZhbHVhdGVkX2F0QhAKDl9tZXRyaWNzX2FzX29mQhcKFV9uZXh0X3RpZXJfdGhyZXNob2xkczKmAQoKVklQU2VydmljZRJLCgxMaXN0VklQVGllcnMSGy52aXAudjEuTGlzdFZJUFRpZXJzUmVxdWVzdBocLnZpcC52MS5MaXN0VklQVGllcnNSZXNwb25zZSIAEksKDEdldFZJUFN0YXR1cxIbLnZpcC52MS5HZXRWSVBTdGF0dXNSZXF1ZXN0GhwudmlwLnYxLkdldFZJUFN0YXR1c1Jlc3BvbnNlIgBCOlo4Z2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi92aXAvdjE7dmlwdjFiBnByb3RvMw==", [file_google_protobuf_timestamp, file_polyester_api_options]);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message vip.v1.VIPTier.
|
|
22
|
+
* Use `create(VIPTierSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
const VIPTierSchema = /*@__PURE__*/ messageDesc(file_vip_v1_vip, 0);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message vip.v1.ListVIPTiersRequest.
|
|
27
|
+
* Use `create(ListVIPTiersRequestSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
const ListVIPTiersRequestSchema = /*@__PURE__*/ messageDesc(file_vip_v1_vip, 1);
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message vip.v1.ListVIPTiersResponse.
|
|
32
|
+
* Use `create(ListVIPTiersResponseSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
const ListVIPTiersResponseSchema = /*@__PURE__*/ messageDesc(file_vip_v1_vip, 2);
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message vip.v1.NextVIPTierThresholds.
|
|
37
|
+
* Use `create(NextVIPTierThresholdsSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
const NextVIPTierThresholdsSchema = /*@__PURE__*/ messageDesc(file_vip_v1_vip, 3);
|
|
40
|
+
/**
|
|
41
|
+
* Describes the message vip.v1.GetVIPStatusRequest.
|
|
42
|
+
* Use `create(GetVIPStatusRequestSchema)` to create a new message.
|
|
43
|
+
*/
|
|
44
|
+
const GetVIPStatusRequestSchema = /*@__PURE__*/ messageDesc(file_vip_v1_vip, 4);
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message vip.v1.GetVIPStatusResponse.
|
|
47
|
+
* Use `create(GetVIPStatusResponseSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
const GetVIPStatusResponseSchema = /*@__PURE__*/ messageDesc(file_vip_v1_vip, 5);
|
|
50
|
+
/**
|
|
51
|
+
* VIPService serves public VIP policy reference data and the authenticated
|
|
52
|
+
* caller-root qualification status.
|
|
53
|
+
*
|
|
54
|
+
* @generated from service vip.v1.VIPService
|
|
55
|
+
*/
|
|
56
|
+
const VIPService = /*@__PURE__*/ serviceDesc(file_vip_v1_vip, 0);
|
|
57
|
+
//#endregion
|
|
58
|
+
export { GetVIPStatusRequestSchema, GetVIPStatusResponseSchema, ListVIPTiersRequestSchema, ListVIPTiersResponseSchema, NextVIPTierThresholdsSchema, VIPService, VIPTierSchema, file_vip_v1_vip, vip_pb_exports };
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=vip_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vip_pb.js","names":[],"sources":["../../../../src/gen/vip/v1/vip_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file vip/v1/vip.proto (package vip.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file vip/v1/vip.proto.\n */\nexport const file_vip_v1_vip: GenFile = /*@__PURE__*/\n fileDesc(\"ChB2aXAvdjEvdmlwLnByb3RvEgZ2aXAudjEitQEKB1ZJUFRpZXISDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASIAoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCAEgAiAEBEiAKFm1ha2VyX2ZlZV9yYXRlX3BlcmNlbnQYBCABKAlCABIgChZ0YWtlcl9mZWVfcmF0ZV9wZXJjZW50GAUgASgJQgBCFAoSX2FvcF90aHJlc2hvbGRfdXNkIhUKE0xpc3RWSVBUaWVyc1JlcXVlc3QiqgEKFExpc3RWSVBUaWVyc1Jlc3BvbnNlEhgKDnBvbGljeV92ZXJzaW9uGAEgASgEQgASNAoOZWZmZWN0aXZlX2Zyb20YAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgASIAoWcmV0ZW50aW9uX3RocmVzaG9sZF9icBgDIAEoDUIAEiAKBXRpZXJzGAQgAygLMg8udmlwLnYxLlZJUFRpZXJCACJkChVOZXh0VklQVGllclRocmVzaG9sZHMSDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASGwoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCACIVChNHZXRWSVBTdGF0dXNSZXF1ZXN0It8EChRHZXRWSVBTdGF0dXNSZXNwb25zZRIOCgR0aWVyGAEgASgNQgASFQoLdm9sdW1lX3RpZXIYAiABKA1CABISCghhb3BfdGllchgDIAEoDUIAEiUKFnNldHRsZWRfdm9sdW1lXzMwZF91c2QYBCABKAlCAEgAiAEBEiIKE2F2ZXJhZ2VfYW9wXzMwZF91c2QYBSABKAlCAEgBiAEBEhgKDnBvbGljeV92ZXJzaW9uGAYgASgEQgASOwoVcG9saWN5X2VmZmVjdGl2ZV9mcm9tGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIAEjcKDmVmZmVjdGl2ZV9mcm9tGAggASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgCiAEBEjUKDGV2YWx1YXRlZF9hdBgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIA4gBARI2Cg1tZXRyaWNzX2FzX29mGAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgEiAEBEkAKFG5leHRfdGllcl90aHJlc2hvbGRzGAsgASgLMh0udmlwLnYxLk5leHRWSVBUaWVyVGhyZXNob2xkc0gFiAEBQhkKF19zZXR0bGVkX3ZvbHVtZV8zMGRfdXNkQhYKFF9hdmVyYWdlX2FvcF8zMGRfdXNkQhEKD19lZmZlY3RpdmVfZnJvbUIPCg1fZXZhbHVhdGVkX2F0QhAKDl9tZXRyaWNzX2FzX29mQhcKFV9uZXh0X3RpZXJfdGhyZXNob2xkczKmAQoKVklQU2VydmljZRJLCgxMaXN0VklQVGllcnMSGy52aXAudjEuTGlzdFZJUFRpZXJzUmVxdWVzdBocLnZpcC52MS5MaXN0VklQVGllcnNSZXNwb25zZSIAEksKDEdldFZJUFN0YXR1cxIbLnZpcC52MS5HZXRWSVBTdGF0dXNSZXF1ZXN0GhwudmlwLnYxLkdldFZJUFN0YXR1c1Jlc3BvbnNlIgBCOlo4Z2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi92aXAvdjE7dmlwdjFiBnByb3RvMw==\", [file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * VIPTier describes one row in a complete VIP0 through VIP10 policy catalog.\n *\n * @generated from message vip.v1.VIPTier\n */\nexport type VIPTier = Message<\"vip.v1.VIPTier\"> & {\n /**\n * Numeric VIP tier in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 tier = 1;\n */\n tier: number;\n\n /**\n * Rolling 30-day settled spot volume entry threshold in USD, encoded as a\n * non-negative base-10 decimal string without separators or a currency\n * symbol.\n *\n * @generated from field: string volume_threshold_usd = 2;\n */\n volumeThresholdUsd: string;\n\n /**\n * Rolling 30-day average portfolio value entry threshold in USD, encoded as\n * a positive base-10 decimal string without separators or a currency symbol.\n * Omitted for VIP0, which has no average portfolio value entry threshold.\n *\n * @generated from field: optional string aop_threshold_usd = 3;\n */\n aopThresholdUsd?: string | undefined;\n\n /**\n * Absolute maker fee rate before symbol-specific adjustments, encoded as a\n * base-10 percentage string without a percent sign. Values are between\n * -100 and 100 inclusive.\n *\n * @generated from field: string maker_fee_rate_percent = 4;\n */\n makerFeeRatePercent: string;\n\n /**\n * Absolute taker fee rate before symbol-specific adjustments, encoded as a\n * non-negative base-10 percentage string without a percent sign. Values are\n * between 0 and 100 inclusive.\n *\n * @generated from field: string taker_fee_rate_percent = 5;\n */\n takerFeeRatePercent: string;\n};\n\n/**\n * Describes the message vip.v1.VIPTier.\n * Use `create(VIPTierSchema)` to create a new message.\n */\nexport const VIPTierSchema: GenMessage<VIPTier> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 0);\n\n/**\n * ListVIPTiersRequest requests the complete active VIP tier catalog.\n *\n * @generated from message vip.v1.ListVIPTiersRequest\n */\nexport type ListVIPTiersRequest = Message<\"vip.v1.ListVIPTiersRequest\"> & {\n};\n\n/**\n * Describes the message vip.v1.ListVIPTiersRequest.\n * Use `create(ListVIPTiersRequestSchema)` to create a new message.\n */\nexport const ListVIPTiersRequestSchema: GenMessage<ListVIPTiersRequest> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 1);\n\n/**\n * ListVIPTiersResponse contains one complete, immutable VIP policy version.\n *\n * @generated from message vip.v1.ListVIPTiersResponse\n */\nexport type ListVIPTiersResponse = Message<\"vip.v1.ListVIPTiersResponse\"> & {\n /**\n * Positive identifier of the returned VIP policy version.\n *\n * @generated from field: uint64 policy_version = 1;\n */\n policyVersion: bigint;\n\n /**\n * UTC time at which this policy version became effective.\n *\n * @generated from field: google.protobuf.Timestamp effective_from = 2;\n */\n effectiveFrom?: Timestamp | undefined;\n\n /**\n * Average portfolio value retention threshold in basis points. One basis\n * point is 0.01%; valid values are 1 through 10000.\n *\n * @generated from field: uint32 retention_threshold_bp = 3;\n */\n retentionThresholdBp: number;\n\n /**\n * Complete VIP0 through VIP10 catalog ordered by tier ascending. This is a\n * naturally bounded 11-row snapshot and is not paginated.\n *\n * @generated from field: repeated vip.v1.VIPTier tiers = 4;\n */\n tiers: VIPTier[];\n};\n\n/**\n * Describes the message vip.v1.ListVIPTiersResponse.\n * Use `create(ListVIPTiersResponseSchema)` to create a new message.\n */\nexport const ListVIPTiersResponseSchema: GenMessage<ListVIPTiersResponse> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 2);\n\n/**\n * NextVIPTierThresholds contains the entry thresholds for the tier immediately\n * above the caller's effective tier.\n *\n * @generated from message vip.v1.NextVIPTierThresholds\n */\nexport type NextVIPTierThresholds = Message<\"vip.v1.NextVIPTierThresholds\"> & {\n /**\n * Numeric next tier in the inclusive range 1 through 10.\n *\n * @generated from field: uint32 tier = 1;\n */\n tier: number;\n\n /**\n * Rolling 30-day settled spot volume entry threshold in USD, encoded as a\n * non-negative base-10 decimal string without separators or a currency\n * symbol.\n *\n * @generated from field: string volume_threshold_usd = 2;\n */\n volumeThresholdUsd: string;\n\n /**\n * Rolling 30-day average portfolio value entry threshold in USD, encoded as\n * a positive base-10 decimal string without separators or a currency symbol.\n *\n * @generated from field: string aop_threshold_usd = 3;\n */\n aopThresholdUsd: string;\n};\n\n/**\n * Describes the message vip.v1.NextVIPTierThresholds.\n * Use `create(NextVIPTierThresholdsSchema)` to create a new message.\n */\nexport const NextVIPTierThresholdsSchema: GenMessage<NextVIPTierThresholds> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 3);\n\n/**\n * GetVIPStatusRequest requests VIP status for the authenticated caller's root\n * account. All subaccounts inherit that root status, so this request has no\n * subaccount selector.\n *\n * @generated from message vip.v1.GetVIPStatusRequest\n */\nexport type GetVIPStatusRequest = Message<\"vip.v1.GetVIPStatusRequest\"> & {\n};\n\n/**\n * Describes the message vip.v1.GetVIPStatusRequest.\n * Use `create(GetVIPStatusRequestSchema)` to create a new message.\n */\nexport const GetVIPStatusRequestSchema: GenMessage<GetVIPStatusRequest> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 4);\n\n/**\n * GetVIPStatusResponse contains the authenticated caller-root VIP assignment\n * and the qualification facts available for that assignment.\n *\n * @generated from message vip.v1.GetVIPStatusResponse\n */\nexport type GetVIPStatusResponse = Message<\"vip.v1.GetVIPStatusResponse\"> & {\n /**\n * Effective VIP tier in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 tier = 1;\n */\n tier: number;\n\n /**\n * Tier earned from rolling 30-day settled spot volume, in the inclusive\n * range 0 through 10.\n *\n * @generated from field: uint32 volume_tier = 2;\n */\n volumeTier: number;\n\n /**\n * Tier earned from rolling 30-day average portfolio value, in the inclusive\n * range 0 through 10.\n *\n * @generated from field: uint32 aop_tier = 3;\n */\n aopTier: number;\n\n /**\n * Rolling 30-day settled spot volume in USD, encoded as a non-negative\n * base-10 decimal string without separators or a currency symbol. Omitted\n * when complete qualification metrics are unavailable for the assignment.\n *\n * @generated from field: optional string settled_volume_30d_usd = 4;\n */\n settledVolume30dUsd?: string | undefined;\n\n /**\n * Rolling 30-day average portfolio value in USD, encoded as a non-negative\n * base-10 decimal string without separators or a currency symbol. Omitted\n * when complete qualification metrics are unavailable for the assignment.\n *\n * @generated from field: optional string average_aop_30d_usd = 5;\n */\n averageAop30dUsd?: string | undefined;\n\n /**\n * Positive identifier of the VIP policy used for this assignment.\n *\n * @generated from field: uint64 policy_version = 6;\n */\n policyVersion: bigint;\n\n /**\n * UTC time at which the selected assignment policy became effective.\n *\n * @generated from field: google.protobuf.Timestamp policy_effective_from = 7;\n */\n policyEffectiveFrom?: Timestamp | undefined;\n\n /**\n * UTC time from which the explicit VIP assignment is effective. Omitted\n * while a new account is using the default VIP0 tier.\n *\n * @generated from field: optional google.protobuf.Timestamp effective_from = 8;\n */\n effectiveFrom?: Timestamp | undefined;\n\n /**\n * UTC time at which the explicit assignment was evaluated. Omitted while a\n * new account is using the default VIP0 tier.\n *\n * @generated from field: optional google.protobuf.Timestamp evaluated_at = 9;\n */\n evaluatedAt?: Timestamp | undefined;\n\n /**\n * UTC cutoff of the rolling metrics used for this assignment. Omitted when\n * complete qualification metrics are unavailable.\n *\n * @generated from field: optional google.protobuf.Timestamp metrics_as_of = 10;\n */\n metricsAsOf?: Timestamp | undefined;\n\n /**\n * Entry thresholds for the tier immediately above the effective tier.\n * Omitted when the effective tier is VIP10.\n *\n * @generated from field: optional vip.v1.NextVIPTierThresholds next_tier_thresholds = 11;\n */\n nextTierThresholds?: NextVIPTierThresholds | undefined;\n};\n\n/**\n * Describes the message vip.v1.GetVIPStatusResponse.\n * Use `create(GetVIPStatusResponseSchema)` to create a new message.\n */\nexport const GetVIPStatusResponseSchema: GenMessage<GetVIPStatusResponse> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 5);\n\n/**\n * VIPService serves public VIP policy reference data and the authenticated\n * caller-root qualification status.\n *\n * @generated from service vip.v1.VIPService\n */\nexport const VIPService: GenService<{\n /**\n * List the complete active VIP0 through VIP10 tier catalog in ascending tier\n * order.\n *\n * @generated from rpc vip.v1.VIPService.ListVIPTiers\n */\n listVIPTiers: {\n methodKind: \"unary\";\n input: typeof ListVIPTiersRequestSchema;\n output: typeof ListVIPTiersResponseSchema;\n },\n /**\n * Get VIP qualification status for the authenticated caller's root account.\n *\n * @generated from rpc vip.v1.VIPService.GetVIPStatus\n */\n getVIPStatus: {\n methodKind: \"unary\";\n input: typeof GetVIPStatusRequestSchema;\n output: typeof GetVIPStatusResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_vip_v1_vip, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;AAcA,MAAa,kBACX,uBAAS,ozDAAozD,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AAwD33D,MAAa,gBACX,0BAAY,iBAAiB,CAAC;;;;;AAchC,MAAa,4BACX,0BAAY,iBAAiB,CAAC;;;;;AA2ChC,MAAa,6BACX,0BAAY,iBAAiB,CAAC;;;;;AAsChC,MAAa,8BACX,0BAAY,iBAAiB,CAAC;;;;;AAgBhC,MAAa,4BACX,0BAAY,iBAAiB,CAAC;;;;;AAqGhC,MAAa,6BACX,0BAAY,iBAAiB,CAAC;;;;;;;AAQhC,MAAa,aAuBX,0BAAY,iBAAiB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -53,6 +53,10 @@ import { ArchiveWhiteboardBoardInput, ArchiveWhiteboardBoardResult, CreateWhiteb
|
|
|
53
53
|
import { ZippedAssetSupplyBatch, ZippedAssetSupplyUpdate } from "./services/zipper/zipper.schemas.js";
|
|
54
54
|
import { SubscribeZippedAssetSupplyInput } from "./services/zipper/zipper.js";
|
|
55
55
|
import { BeginMfaChallengeInput, BeginMfaChallengeResult, BeginPasskeyEnrollmentInput, BeginPasskeyEnrollmentResult, BeginTotpEnrollmentInput, BeginTotpEnrollmentResult, ClaimFreshStepUpInput, ClaimFreshStepUpResult, CompleteMfaChallengeResult, ConsumeFreshStepUpInput, DeleteMfaFactorInput, FinishPasskeyChallengeInput, FinishPasskeyEnrollmentInput, FinishPasskeyEnrollmentResult, FinishTotpEnrollmentInput, FinishTotpEnrollmentResult, ListMfaFactorsResult, MfaFactor, MfaSessionInfo, RegenerateRecoveryCodesInput, RegenerateRecoveryCodesResult, ReleaseFreshStepUpInput, UpdateMfaFactorInput, UpdateMfaFactorResult, VerifyRecoveryCodeChallengeInput, VerifyTotpChallengeInput } from "./services/mfa/mfa.schemas.js";
|
|
56
|
+
import { NextVipTierThresholds, VipStatus, VipTier, VipTierCatalog } from "./services/vip/vip.schemas.js";
|
|
57
|
+
import { GetSpotFeeRatesInput, SpotFeeRate } from "./services/fees/fees.schemas.js";
|
|
58
|
+
import { TradingRateLimitClass } from "./services/rate-limits/rate-limits.codecs.js";
|
|
59
|
+
import { RateLimitConfig, TradingRateLimitRule, TradingRateLimits } from "./services/rate-limits/rate-limits.schemas.js";
|
|
56
60
|
import { PolyesterClient, PolyesterClientBaseConfig, PolyesterClientConfig, PolyesterRealtimeAuthConfig } from "./core-client.js";
|
|
57
61
|
import { AuthTokenStorage, AuthTokenStorageSetOptions, CookieAuthTokenStorageOptions, createCookieAuthTokenStorage, createMemoryAuthTokenStorage } from "./services/auth/token-storage.js";
|
|
58
62
|
import { ActiveAccountInfo, AuthHydrationData, AuthLoginMethod, AuthState, ServerSessionSnapshot, SessionData } from "./services/auth/session.types.js";
|
|
@@ -77,6 +81,7 @@ import "./services/balances/balances.types.js";
|
|
|
77
81
|
import "./services/candles/candles.types.js";
|
|
78
82
|
import "./services/chain-analytics/chain-analytics.types.js";
|
|
79
83
|
import "./services/deposit/deposit.types.js";
|
|
84
|
+
import "./services/fees/fees.types.js";
|
|
80
85
|
import "./services/guard-signer/guard-signer.types.js";
|
|
81
86
|
import "./services/heatmap/heatmap.types.js";
|
|
82
87
|
import "./services/internal-transfers/internal-transfers.types.js";
|
|
@@ -90,12 +95,14 @@ import "./services/policies/api-key-policies/api-key-policies.types.js";
|
|
|
90
95
|
import { PolicyAction, PolicyMarketScope } from "./services/policies/shared.js";
|
|
91
96
|
import "./services/policies/policies.types.js";
|
|
92
97
|
import "./services/policies/subaccount-policies/subaccount-policies.types.js";
|
|
98
|
+
import "./services/rate-limits/rate-limits.types.js";
|
|
93
99
|
import "./services/social-verification/social-verification.types.js";
|
|
94
100
|
import "./services/subaccounts/subaccounts.types.js";
|
|
95
101
|
import "./services/trades/trades.types.js";
|
|
96
102
|
import "./services/trading-withdraws/trading-withdraws.types.js";
|
|
97
103
|
import "./services/transfers/transfers.types.js";
|
|
98
104
|
import "./services/triggers/triggers.types.js";
|
|
105
|
+
import "./services/vip/vip.types.js";
|
|
99
106
|
import "./services/whiteboard/whiteboard.types.js";
|
|
100
107
|
import "./services/zipper/zipper.types.js";
|
|
101
|
-
export { type AccountCodeValue, type AccountIdentity, type AccountScope, type AccountScopedInput, type AccountSigner, type AccountSignerAuthEvents, type AccountSignerConfig, type CreateSubaccountResult as AccountSignerCreateSubaccountResult, type AccountSignerFactory, type ActiveAccountInfo, type AddressBook, type AddressBookEntries, type AddressBookEntriesView, type AddressBookEntry, type AddressBookRecentDestinationsView, type AddressBookTag, type AddressBookTagSummary, type AddressBookView, type AddressBookViewInvalidated, AlreadyExistsError, type ApiKey, type ApiKeyEd25519AuthProvider, type ApiKeyIdInput, type ApiKeyPolicy, type ApiKeyPolicyApplyInput, type ApiKeyPolicyCreateInput, type ApiKeyPolicyUpdateInput, type ApiKeyStatus, type ApiKeysCreateInput, type ApiKeysListInput, type ApiKeysUpdateInput, type ArchiveWhiteboardBoardInput, type ArchiveWhiteboardBoardResult, type AssetConfig, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, type BalanceHistoryInput, type BalanceHistoryResponse, type BalanceRange, type BatchCancelOrderInput, type BatchCancelOrderResult, type BatchCancelOrdersInput, type BatchCancelOrdersResult, type BatchCreateOrderResult, type BatchCreateOrdersInput, type BatchCreateOrdersResult, type BatchGuardApprovals, type BatchReplaceAdmissionItem, type BatchReplaceOrdersInput, type BatchReplaceOrdersResult, type BatchSignProtectedActionInput, type BeginMfaChallengeInput, type BeginMfaChallengeResult, type BeginPasskeyEnrollmentInput, type BeginPasskeyEnrollmentResult, type BeginTotpEnrollmentInput, type BeginTotpEnrollmentResult, type CancelAllAfterInput, type CancelAllAfterResult, type CancelAllOrdersInput, type CancelAllOrdersResponse, type CancelOrderInput, type CancelOrderResult, type CancelTriggerInput, type CancelTriggerResult, type Candle, type CandleColumnar, type CandleColumnarInt, type CandleInt, type ChainAnalyticsRange, type ClaimFreshStepUpInput, type ClaimFreshStepUpResult, type ColumnarTimeWindow, type CompleteMfaChallengeResult, ConfigurationError, type ConnectChannelParams, type ConsumeFreshStepUpInput, type CookieAuthTokenStorageOptions, type CopyAddressBookEntryInput, type CreateAddressBookEntryInput, type CreateAddressBookTagInput, type CreateDepositAddressInput, type CreateGuardSignerWalletResult, type CreateInternalTransferInput, type CreateInternalTransferResult, type CreateOrderResult, type CreateOrderbookSubscriptionInput, type CreatePolyesterAccountSignerParams, type CreatePolyesterEnvironmentParams, type CreateServerClientFromCookiesParams, type CreateServerClientFromRequestParams, type CreateSubaccountInput, type CreateSubaccountParams, type CreateSubaccountResult$1 as CreateSubaccountResult, type CreateSubaccountResult$1 as CreateSubaccountServiceResult, type CreateTradingWithdrawResult, type CreateTradingWithdrawToExternalChainInput, type CreateTradingWithdrawToExternalChainServiceInput, type CreateTradingWithdrawToFundingInput, type CreateTradingWithdrawToFundingServiceInput, type CreateTriggerInput, type CreateTriggerResult, type CreateWhiteboardBoardInput, type CreateWhiteboardBoardResult, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type EquityGroupBy, type EquityHistoryInput, type EquityHistoryResponse, type EquitySeries, type EquitySeriesGrouping, type EvmHex, type ExportGuardSignerWalletResult, type FinishPasskeyChallengeInput, type FinishPasskeyEnrollmentInput, type FinishPasskeyEnrollmentResult, type FinishTotpEnrollmentInput, type FinishTotpEnrollmentResult, type GetAddressBookViewInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetWhiteboardBoardInput, type GetWhiteboardBoardResult, type GetZippedAssetSupplyGroupInput, type GetZippedAssetSupplyInput, type GuardApproval, type GuardSignerScopedInput, type GuardSignerStatus, type HeatmapDepthValue, type HeatmapIntervalValue, type HeatmapQuantityModeValue, type HexAddress, InternalServerError, type InternalTransferDestination, type InternalTransferWhitelistEntries, type InternalTransferWhitelistEntry, type InviteSubaccountMemberInput, type JwtAuthProvider, type LadderDetailsOutput, type LedgerBalance, type LedgerTransfer, type LedgerTransferSide, type LifecycleAssetIds, type LifecycleFlowDetail, type LifecycleFlowState, type LifecycleFlowStep, type LifecycleFlowStepActivity, type LifecycleFlowSummary, type LifecycleFlowSummaryProgress, type LifecycleFlowTimelineItem, type LifecycleFlowTxMatch, type LifecycleListOrderBy, type LifecycleListScope, type LifecycleReason, type LifecycleRequestFee, type LifecycleRequestFeeStatus, type LifecycleSort, type LifecycleTxLookupKind, type LifecycleZipperReason, type ListAddressBookEntriesInput, type ListApiKeyPoliciesResponse, type ListDepositAddressesInput, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListSubaccountInvitesInput, type ListTransferCounterpartiesInput, type ListTransferDestinationsInput, type ListTransfersInput, type ListTriggerEventsInput, type ListTriggerEventsResult, type ListTriggersInput, type ListTriggersResult, type ListWhiteboardBoardsInput, type ListWhiteboardBoardsResult, type LoginOptions, type LoginResult, type LoginWithWalletInput, type LoginWithWalletResponse, type MarketOverview, type MarketOverviewOrderBy, type MarketOverviewSort, type MarketOverviewSparkline, type MarketTrade, type Me, MfaEnrollmentRequiredError, type MfaFactor, MfaLastFactorRequiredError, MfaRequiredError, type MfaSessionInfo, MfaVerificationError, type MfaVerificationFailureReason, type MintWhiteboardJoinTokenInput, type MirroredWithdrawWhitelistEntry, type ModifyOrderInput, type ModifyOrderResult, type ModifyTriggerInput, type ModifyTriggerResult, NetworkError, type NewOrderInput, type Nonce, type OpenOrdersInput, type Order, type OrderDetails, type OrderErrorCode, type OrderErrorDetail, type OrderHistoryInput, type OrderIntentInput, type OrderTransfer, type OrderbookData, type OrderbookHeatmapDeltaBucket, type OrderbookHeatmapDeltaChain, type OrderbookHeatmapDeltaLevels, type OrderbookHeatmapKeyframe, type OrderbookHeatmapLevels, type OrderbookHeatmapLiveBucket, type OrderbookHeatmapResponse, type OrderbookLevel, type OrderbookStreamHandlers, type OrderbookSubscription, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, type PairConfig, type PairStatus, PermissionError, type PolicyAction, PolicyInUseError, PolicyLockedError, type PolicyMarketScope, PolicyScopeMismatchError, type PolyesterAccountAbstractionEnvironment, PolyesterBrowserClient, type PolyesterBrowserClientConfig, PolyesterClient, type PolyesterClientBaseConfig, type PolyesterClientConfig, type PolyesterContractsEnvironment, type PolyesterEntryPointConfig, type PolyesterEnvironment, PolyesterError, type PolyesterErrorCode, type PolyesterErrorOptions, type PolyesterMutationOptions, type PolyesterRealtime, type PolyesterRealtimeAuthConfig, type PolyesterRequestOptions, type PolyesterSafeDeploymentConfig, PolyesterServerClient, type PolyesterServerClientConfig, PreconditionFailedError, type PreparedTradingWithdraw, type PreviewOrderResult, type Profile, type RateLimitDetail, RateLimitError, type RateLimitErrorOptions, type RateLimitFailureReason, type RateLimitPolicyClass, type RateLimitRefillModel, type RateLimitScope, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, RevisionConflictError, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetSubaccountMemberMfaRequirementInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, StepUpRequiredError, type StopDetailsOutput, type StopLossInput, type Subaccount, type SubaccountActivityInput, type SubaccountEvent, type SubaccountIdInput, type SubaccountInvite, type SubaccountInviteStatus, type SubaccountMember, type SubaccountPolicy, type SubaccountPolicyApplyInput, type SubaccountPolicyCreateInput, type SubaccountPolicyUpdateInput, type SubaccountRole, type SubaccountScopedInput, type SubaccountStatus, type SubscribeHandlers, type SubscribeZippedAssetSupplyInput, type TakeProfitInput, type Timeframe, TimeoutError, type Trade, type TradingWithdrawSigningConfig, type TradingWithdrawWalletSigner, type TradingWithdrawWalletTypedData, type TrailingDetailsOutput, type TrailingStopInput, type TransferCodeValue, type TransferCounterparties, type TransferCounterparty, type TransferDestination, type TransferDestinations, type TransferSideKind, TransientError, type Transports, type Trigger, type TriggerDetailsOutput, type TriggerEvent, type TwapDetailsOutput, type UnifiedAssetBalancesResponse, type UpdateAddressBookEntryInput, type UpdateAddressBookTagInput, type UpdateMfaFactorInput, type UpdateMfaFactorResult, type UpdateProfileInput, type UpdateSubaccountInput, type UpdateSubaccountMemberRoleInput, type UpdateWhiteboardBoardAclInput, type UpdateWhiteboardBoardAclResult, type UpdateWhiteboardBoardInput, type UpdateWhiteboardBoardResult, type UsernameHistoryEntry, type ValidateWithdrawDestinationInput, type ValidateWithdrawDestinationResult, ValidationError, type VerificationReadyResponse, type VerifyRecoveryCodeChallengeInput, type VerifyTotpChallengeInput, type WhiteboardAccess, type WhiteboardAclEntry, type WhiteboardAclEntryInput, type WhiteboardAclSubjectType, type WhiteboardAudience, type WhiteboardBoard, type WhiteboardBoardDetails, type WhiteboardBoardListItem, type WhiteboardJoinTokenResult, type WhiteboardPermissions, type WhiteboardPresencePayload, type WhiteboardResolvedRole, type WhiteboardSnapshot, type WhiteboardWritableRole, type WithdrawWhitelistView, type ZippedAssetSupplyBatch, type ZippedAssetSupplyGroupResponse, type ZippedAssetSupplyResponse, type ZippedAssetSupplySeries, type ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, getOrderErrorDetail, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isStaleQuoteError, keccak256Hex, mergeLedgerBalances, normalizeErrorMessage, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
|
|
108
|
+
export { type AccountCodeValue, type AccountIdentity, type AccountScope, type AccountScopedInput, type AccountSigner, type AccountSignerAuthEvents, type AccountSignerConfig, type CreateSubaccountResult as AccountSignerCreateSubaccountResult, type AccountSignerFactory, type ActiveAccountInfo, type AddressBook, type AddressBookEntries, type AddressBookEntriesView, type AddressBookEntry, type AddressBookRecentDestinationsView, type AddressBookTag, type AddressBookTagSummary, type AddressBookView, type AddressBookViewInvalidated, AlreadyExistsError, type ApiKey, type ApiKeyEd25519AuthProvider, type ApiKeyIdInput, type ApiKeyPolicy, type ApiKeyPolicyApplyInput, type ApiKeyPolicyCreateInput, type ApiKeyPolicyUpdateInput, type ApiKeyStatus, type ApiKeysCreateInput, type ApiKeysListInput, type ApiKeysUpdateInput, type ArchiveWhiteboardBoardInput, type ArchiveWhiteboardBoardResult, type AssetConfig, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, type BalanceHistoryInput, type BalanceHistoryResponse, type BalanceRange, type BatchCancelOrderInput, type BatchCancelOrderResult, type BatchCancelOrdersInput, type BatchCancelOrdersResult, type BatchCreateOrderResult, type BatchCreateOrdersInput, type BatchCreateOrdersResult, type BatchGuardApprovals, type BatchReplaceAdmissionItem, type BatchReplaceOrdersInput, type BatchReplaceOrdersResult, type BatchSignProtectedActionInput, type BeginMfaChallengeInput, type BeginMfaChallengeResult, type BeginPasskeyEnrollmentInput, type BeginPasskeyEnrollmentResult, type BeginTotpEnrollmentInput, type BeginTotpEnrollmentResult, type CancelAllAfterInput, type CancelAllAfterResult, type CancelAllOrdersInput, type CancelAllOrdersResponse, type CancelOrderInput, type CancelOrderResult, type CancelTriggerInput, type CancelTriggerResult, type Candle, type CandleColumnar, type CandleColumnarInt, type CandleInt, type ChainAnalyticsRange, type ClaimFreshStepUpInput, type ClaimFreshStepUpResult, type ColumnarTimeWindow, type CompleteMfaChallengeResult, ConfigurationError, type ConnectChannelParams, type ConsumeFreshStepUpInput, type CookieAuthTokenStorageOptions, type CopyAddressBookEntryInput, type CreateAddressBookEntryInput, type CreateAddressBookTagInput, type CreateDepositAddressInput, type CreateGuardSignerWalletResult, type CreateInternalTransferInput, type CreateInternalTransferResult, type CreateOrderResult, type CreateOrderbookSubscriptionInput, type CreatePolyesterAccountSignerParams, type CreatePolyesterEnvironmentParams, type CreateServerClientFromCookiesParams, type CreateServerClientFromRequestParams, type CreateSubaccountInput, type CreateSubaccountParams, type CreateSubaccountResult$1 as CreateSubaccountResult, type CreateSubaccountResult$1 as CreateSubaccountServiceResult, type CreateTradingWithdrawResult, type CreateTradingWithdrawToExternalChainInput, type CreateTradingWithdrawToExternalChainServiceInput, type CreateTradingWithdrawToFundingInput, type CreateTradingWithdrawToFundingServiceInput, type CreateTriggerInput, type CreateTriggerResult, type CreateWhiteboardBoardInput, type CreateWhiteboardBoardResult, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type EquityGroupBy, type EquityHistoryInput, type EquityHistoryResponse, type EquitySeries, type EquitySeriesGrouping, type EvmHex, type ExportGuardSignerWalletResult, type FinishPasskeyChallengeInput, type FinishPasskeyEnrollmentInput, type FinishPasskeyEnrollmentResult, type FinishTotpEnrollmentInput, type FinishTotpEnrollmentResult, type GetAddressBookViewInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetSpotFeeRatesInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetWhiteboardBoardInput, type GetWhiteboardBoardResult, type GetZippedAssetSupplyGroupInput, type GetZippedAssetSupplyInput, type GuardApproval, type GuardSignerScopedInput, type GuardSignerStatus, type HeatmapDepthValue, type HeatmapIntervalValue, type HeatmapQuantityModeValue, type HexAddress, InternalServerError, type InternalTransferDestination, type InternalTransferWhitelistEntries, type InternalTransferWhitelistEntry, type InviteSubaccountMemberInput, type JwtAuthProvider, type LadderDetailsOutput, type LedgerBalance, type LedgerTransfer, type LedgerTransferSide, type LifecycleAssetIds, type LifecycleFlowDetail, type LifecycleFlowState, type LifecycleFlowStep, type LifecycleFlowStepActivity, type LifecycleFlowSummary, type LifecycleFlowSummaryProgress, type LifecycleFlowTimelineItem, type LifecycleFlowTxMatch, type LifecycleListOrderBy, type LifecycleListScope, type LifecycleReason, type LifecycleRequestFee, type LifecycleRequestFeeStatus, type LifecycleSort, type LifecycleTxLookupKind, type LifecycleZipperReason, type ListAddressBookEntriesInput, type ListApiKeyPoliciesResponse, type ListDepositAddressesInput, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListSubaccountInvitesInput, type ListTransferCounterpartiesInput, type ListTransferDestinationsInput, type ListTransfersInput, type ListTriggerEventsInput, type ListTriggerEventsResult, type ListTriggersInput, type ListTriggersResult, type ListWhiteboardBoardsInput, type ListWhiteboardBoardsResult, type LoginOptions, type LoginResult, type LoginWithWalletInput, type LoginWithWalletResponse, type MarketOverview, type MarketOverviewOrderBy, type MarketOverviewSort, type MarketOverviewSparkline, type MarketTrade, type Me, MfaEnrollmentRequiredError, type MfaFactor, MfaLastFactorRequiredError, MfaRequiredError, type MfaSessionInfo, MfaVerificationError, type MfaVerificationFailureReason, type MintWhiteboardJoinTokenInput, type MirroredWithdrawWhitelistEntry, type ModifyOrderInput, type ModifyOrderResult, type ModifyTriggerInput, type ModifyTriggerResult, NetworkError, type NewOrderInput, type NextVipTierThresholds, type Nonce, type OpenOrdersInput, type Order, type OrderDetails, type OrderErrorCode, type OrderErrorDetail, type OrderHistoryInput, type OrderIntentInput, type OrderTransfer, type OrderbookData, type OrderbookHeatmapDeltaBucket, type OrderbookHeatmapDeltaChain, type OrderbookHeatmapDeltaLevels, type OrderbookHeatmapKeyframe, type OrderbookHeatmapLevels, type OrderbookHeatmapLiveBucket, type OrderbookHeatmapResponse, type OrderbookLevel, type OrderbookStreamHandlers, type OrderbookSubscription, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, type PairConfig, type PairStatus, PermissionError, type PolicyAction, PolicyInUseError, PolicyLockedError, type PolicyMarketScope, PolicyScopeMismatchError, type PolyesterAccountAbstractionEnvironment, PolyesterBrowserClient, type PolyesterBrowserClientConfig, PolyesterClient, type PolyesterClientBaseConfig, type PolyesterClientConfig, type PolyesterContractsEnvironment, type PolyesterEntryPointConfig, type PolyesterEnvironment, PolyesterError, type PolyesterErrorCode, type PolyesterErrorOptions, type PolyesterMutationOptions, type PolyesterRealtime, type PolyesterRealtimeAuthConfig, type PolyesterRequestOptions, type PolyesterSafeDeploymentConfig, PolyesterServerClient, type PolyesterServerClientConfig, PreconditionFailedError, type PreparedTradingWithdraw, type PreviewOrderResult, type Profile, type RateLimitConfig, type RateLimitDetail, RateLimitError, type RateLimitErrorOptions, type RateLimitFailureReason, type RateLimitPolicyClass, type RateLimitRefillModel, type RateLimitScope, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, RevisionConflictError, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetSubaccountMemberMfaRequirementInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, type SpotFeeRate, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, StepUpRequiredError, type StopDetailsOutput, type StopLossInput, type Subaccount, type SubaccountActivityInput, type SubaccountEvent, type SubaccountIdInput, type SubaccountInvite, type SubaccountInviteStatus, type SubaccountMember, type SubaccountPolicy, type SubaccountPolicyApplyInput, type SubaccountPolicyCreateInput, type SubaccountPolicyUpdateInput, type SubaccountRole, type SubaccountScopedInput, type SubaccountStatus, type SubscribeHandlers, type SubscribeZippedAssetSupplyInput, type TakeProfitInput, type Timeframe, TimeoutError, type Trade, type TradingRateLimitClass, type TradingRateLimitRule, type TradingRateLimits, type TradingWithdrawSigningConfig, type TradingWithdrawWalletSigner, type TradingWithdrawWalletTypedData, type TrailingDetailsOutput, type TrailingStopInput, type TransferCodeValue, type TransferCounterparties, type TransferCounterparty, type TransferDestination, type TransferDestinations, type TransferSideKind, TransientError, type Transports, type Trigger, type TriggerDetailsOutput, type TriggerEvent, type TwapDetailsOutput, type UnifiedAssetBalancesResponse, type UpdateAddressBookEntryInput, type UpdateAddressBookTagInput, type UpdateMfaFactorInput, type UpdateMfaFactorResult, type UpdateProfileInput, type UpdateSubaccountInput, type UpdateSubaccountMemberRoleInput, type UpdateWhiteboardBoardAclInput, type UpdateWhiteboardBoardAclResult, type UpdateWhiteboardBoardInput, type UpdateWhiteboardBoardResult, type UsernameHistoryEntry, type ValidateWithdrawDestinationInput, type ValidateWithdrawDestinationResult, ValidationError, type VerificationReadyResponse, type VerifyRecoveryCodeChallengeInput, type VerifyTotpChallengeInput, type VipStatus, type VipTier, type VipTierCatalog, type WhiteboardAccess, type WhiteboardAclEntry, type WhiteboardAclEntryInput, type WhiteboardAclSubjectType, type WhiteboardAudience, type WhiteboardBoard, type WhiteboardBoardDetails, type WhiteboardBoardListItem, type WhiteboardJoinTokenResult, type WhiteboardPermissions, type WhiteboardPresencePayload, type WhiteboardResolvedRole, type WhiteboardSnapshot, type WhiteboardWritableRole, type WithdrawWhitelistView, type ZippedAssetSupplyBatch, type ZippedAssetSupplyGroupResponse, type ZippedAssetSupplyResponse, type ZippedAssetSupplySeries, type ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, getOrderErrorDetail, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isStaleQuoteError, keccak256Hex, mergeLedgerBalances, normalizeErrorMessage, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
|
|
@@ -11,7 +11,7 @@ type TimestampInit = {
|
|
|
11
11
|
};
|
|
12
12
|
declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
13
13
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
14
|
-
readonly timeframe: v.SchemaWithPipe<readonly [v.EnumSchema<typeof Timeframe$1, undefined>, v.TransformAction<Timeframe$1, DecodedEnum<"1d" | "
|
|
14
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.EnumSchema<typeof Timeframe$1, undefined>, v.TransformAction<Timeframe$1, DecodedEnum<"1d" | "1s" | "1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "12h" | "1w" | "1mo">>]>;
|
|
15
15
|
readonly tsSec: v.BigintSchema<undefined>;
|
|
16
16
|
readonly open: v.BigintSchema<undefined>;
|
|
17
17
|
readonly high: v.BigintSchema<undefined>;
|
|
@@ -21,7 +21,7 @@ declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<read
|
|
|
21
21
|
readonly isClosed: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
22
22
|
}, undefined>, v.TransformAction<{
|
|
23
23
|
symbolId: number;
|
|
24
|
-
timeframe: DecodedEnum<"1d" | "
|
|
24
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "12h" | "1w" | "1mo">;
|
|
25
25
|
tsSec: bigint;
|
|
26
26
|
open: bigint;
|
|
27
27
|
high: bigint;
|
|
@@ -31,7 +31,7 @@ declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<read
|
|
|
31
31
|
isClosed: boolean;
|
|
32
32
|
}, {
|
|
33
33
|
symbolId: number;
|
|
34
|
-
timeframe: DecodedEnum<"1d" | "
|
|
34
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "12h" | "1w" | "1mo">;
|
|
35
35
|
time: number;
|
|
36
36
|
open: string;
|
|
37
37
|
high: string;
|
|
@@ -43,7 +43,7 @@ declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<read
|
|
|
43
43
|
declare const createCandleRowIntSchema: typeof createCandleRowSchema;
|
|
44
44
|
declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
45
45
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
46
|
-
readonly timeframe: v.SchemaWithPipe<readonly [v.EnumSchema<typeof Timeframe$1, undefined>, v.TransformAction<Timeframe$1, DecodedEnum<"1d" | "
|
|
46
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.EnumSchema<typeof Timeframe$1, undefined>, v.TransformAction<Timeframe$1, DecodedEnum<"1d" | "1s" | "1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "12h" | "1w" | "1mo">>]>;
|
|
47
47
|
readonly tsSec: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
48
48
|
readonly open: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
49
49
|
readonly high: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
@@ -59,7 +59,7 @@ declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
59
59
|
readonly nextPageToken: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
60
60
|
}, undefined>, v.TransformAction<{
|
|
61
61
|
symbolId: number;
|
|
62
|
-
timeframe: DecodedEnum<"1d" | "
|
|
62
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "12h" | "1w" | "1mo">;
|
|
63
63
|
tsSec: bigint[];
|
|
64
64
|
open: bigint[];
|
|
65
65
|
high: bigint[];
|
|
@@ -75,7 +75,7 @@ declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
75
75
|
nextPageToken: string;
|
|
76
76
|
}, {
|
|
77
77
|
symbolId: number;
|
|
78
|
-
timeframe: DecodedEnum<"1d" | "
|
|
78
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "12h" | "1w" | "1mo">;
|
|
79
79
|
time: number[];
|
|
80
80
|
open: string[];
|
|
81
81
|
high: string[];
|
|
@@ -94,7 +94,7 @@ declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
94
94
|
}>]>;
|
|
95
95
|
declare function createCandleColumnarIntSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
96
96
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
97
|
-
readonly timeframe: v.SchemaWithPipe<readonly [v.EnumSchema<typeof Timeframe$1, undefined>, v.TransformAction<Timeframe$1, DecodedEnum<"1d" | "
|
|
97
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.EnumSchema<typeof Timeframe$1, undefined>, v.TransformAction<Timeframe$1, DecodedEnum<"1d" | "1s" | "1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "12h" | "1w" | "1mo">>]>;
|
|
98
98
|
readonly tsSec: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
99
99
|
readonly open: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
100
100
|
readonly high: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
@@ -110,7 +110,7 @@ declare function createCandleColumnarIntSchema(scales: SdkScales): v.SchemaWithP
|
|
|
110
110
|
readonly nextPageToken: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
111
111
|
}, undefined>, v.TransformAction<{
|
|
112
112
|
symbolId: number;
|
|
113
|
-
timeframe: DecodedEnum<"1d" | "
|
|
113
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "12h" | "1w" | "1mo">;
|
|
114
114
|
tsSec: bigint[];
|
|
115
115
|
open: bigint[];
|
|
116
116
|
high: bigint[];
|
|
@@ -126,7 +126,7 @@ declare function createCandleColumnarIntSchema(scales: SdkScales): v.SchemaWithP
|
|
|
126
126
|
nextPageToken: string;
|
|
127
127
|
}, {
|
|
128
128
|
symbolId: number;
|
|
129
|
-
timeframe: DecodedEnum<"1d" | "
|
|
129
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "12h" | "1w" | "1mo">;
|
|
130
130
|
tsSec: number[];
|
|
131
131
|
open: string[];
|
|
132
132
|
high: string[];
|
|
@@ -149,7 +149,7 @@ type CandleColumnar = v.InferOutput<ReturnType<typeof createCandleColumnarSchema
|
|
|
149
149
|
type CandleColumnarInt = v.InferOutput<ReturnType<typeof createCandleColumnarIntSchema>>;
|
|
150
150
|
declare function createListCandlesInputSchema(): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
151
151
|
readonly symbolId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>]>;
|
|
152
|
-
readonly timeframe: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["1s", "1m", "5m", "15m", "30m", "1h", "4h", "12h", "1d", "1w", "1mo"], undefined>, v.TransformAction<"1d" | "
|
|
152
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["1s", "1m", "5m", "15m", "30m", "1h", "4h", "12h", "1d", "1w", "1mo"], undefined>, v.TransformAction<"1d" | "1s" | "1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "12h" | "1w" | "1mo", Timeframe$1.SEC_1 | Timeframe$1.MIN_1 | Timeframe$1.MIN_5 | Timeframe$1.MIN_15 | Timeframe$1.MIN_30 | Timeframe$1.HOUR_1 | Timeframe$1.HOUR_4 | Timeframe$1.DAY_1 | Timeframe$1.HOUR_12 | Timeframe$1.WEEK_1 | Timeframe$1.MONTH_1>]>;
|
|
153
153
|
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 10000, undefined>]>, undefined>;
|
|
154
154
|
readonly includeIncomplete: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
155
155
|
readonly includeReference: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PolyesterRequestOptions } from "../../shared/request-options.js";
|
|
2
|
+
import { SubaccountResolver } from "../subaccount-resolver.js";
|
|
3
|
+
import { GetSpotFeeRatesInput, SpotFeeRate } from "./fees.schemas.js";
|
|
4
|
+
import { Transport } from "@connectrpc/connect";
|
|
5
|
+
//#region src/services/fees/fees.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Reads authenticated effective spot trading fee rates.
|
|
8
|
+
*/
|
|
9
|
+
declare class FeesService {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(transport: Transport, resolver?: SubaccountResolver);
|
|
12
|
+
/**
|
|
13
|
+
* Returns effective maker and taker spot fee rates for the resolved account target, optionally filtered by market identifier.
|
|
14
|
+
*/
|
|
15
|
+
getSpotRates(input?: GetSpotFeeRatesInput, options?: PolyesterRequestOptions): Promise<SpotFeeRate[]>;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { FeesService };
|
|
19
|
+
//# sourceMappingURL=fees.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fees.d.ts","names":[],"sources":["../../../src/services/fees/fees.ts"],"mappings":";;;;;;;;cAmBa;;EAIG,YAAA,WAAW,WAAW,WAAW;;;;EAQvC,aACF,QAAO,sBACP,UAAU,0BACX,QAAQ"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { parse } from "../../shared/validation.js";
|
|
2
|
+
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
3
|
+
import { removeUndefined } from "../../utils/remove-undefined.js";
|
|
4
|
+
import { resolveAccountScopedInput } from "../subaccount-resolver.js";
|
|
5
|
+
import { FeeService } from "../../gen/fees/v1/fees_pb.js";
|
|
6
|
+
import { GetSpotFeeRatesInputSchema, SpotFeeRatesSchema } from "./fees.schemas.js";
|
|
7
|
+
import { createClient } from "@connectrpc/connect";
|
|
8
|
+
//#region src/services/fees/fees.ts
|
|
9
|
+
/**
|
|
10
|
+
* Reads authenticated effective spot trading fee rates.
|
|
11
|
+
*/
|
|
12
|
+
var FeesService = class {
|
|
13
|
+
#client;
|
|
14
|
+
#resolver;
|
|
15
|
+
constructor(transport, resolver) {
|
|
16
|
+
this.#client = createClient(FeeService, transport);
|
|
17
|
+
this.#resolver = resolver;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Returns effective maker and taker spot fee rates for the resolved account target, optionally filtered by market identifier.
|
|
21
|
+
*/
|
|
22
|
+
async getSpotRates(input = {}, options) {
|
|
23
|
+
const resolvedInput = resolveAccountScopedInput(input, this.#resolver);
|
|
24
|
+
const validatedInput = parse(GetSpotFeeRatesInputSchema, resolvedInput);
|
|
25
|
+
const res = await this.#client.getSpotFeeRates(removeUndefined(validatedInput), toConnectCallOptions(options));
|
|
26
|
+
return parse(SpotFeeRatesSchema, res.feeRates);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { FeesService };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=fees.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fees.js","names":["#client","Proto.FeeService","#resolver"],"sources":["../../../src/services/fees/fees.ts"],"sourcesContent":["import { createClient, type Client, type Transport } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/fees/v1/fees_pb.js\";\nimport { removeUndefined } from \"../../utils/remove-undefined.js\";\nimport { type SubaccountResolver, resolveAccountScopedInput } from \"../subaccount-resolver.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n GetSpotFeeRatesInputSchema,\n SpotFeeRatesSchema,\n type GetSpotFeeRatesInput,\n type SpotFeeRate,\n} from \"./fees.schemas.js\";\n\n/**\n * Reads authenticated effective spot trading fee rates.\n */\nexport class FeesService {\n #client: Client<typeof Proto.FeeService>;\n #resolver?: SubaccountResolver;\n\n constructor(transport: Transport, resolver?: SubaccountResolver) {\n this.#client = createClient(Proto.FeeService, transport);\n this.#resolver = resolver;\n }\n\n /**\n * Returns effective maker and taker spot fee rates for the resolved account target, optionally filtered by market identifier.\n */\n async getSpotRates(\n input: GetSpotFeeRatesInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<SpotFeeRate[]> {\n const resolvedInput = resolveAccountScopedInput(input, this.#resolver);\n const validatedInput = parse(GetSpotFeeRatesInputSchema, resolvedInput);\n const res = await this.#client.getSpotFeeRates(\n removeUndefined(validatedInput),\n toConnectCallOptions(options),\n );\n return parse(SpotFeeRatesSchema, res.feeRates);\n }\n}\n"],"mappings":";;;;;;;;;;;AAmBA,IAAa,cAAb,MAAyB;CACrB;CACA;CAEA,YAAY,WAAsB,UAA+B;EAC7D,KAAKA,UAAU,aAAaC,YAAkB,SAAS;EACvD,KAAKC,YAAY;CACrB;;;;CAKA,MAAM,aACF,QAA8B,CAAC,GAC/B,SACsB;EACtB,MAAM,gBAAgB,0BAA0B,OAAO,KAAKA,SAAS;EACrE,MAAM,iBAAiB,MAAM,4BAA4B,aAAa;EACtE,MAAM,MAAM,MAAM,KAAKF,QAAQ,gBAC3B,gBAAgB,cAAc,GAC9B,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,oBAAoB,IAAI,QAAQ;CACjD;AACJ"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
//#region src/services/fees/fees.schemas.d.ts
|
|
3
|
+
declare const GetSpotFeeRatesInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
4
|
+
readonly symbolIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>, v.TransformAction<number[], number[]>, v.MaxLengthAction<number[], 100, undefined>]>, readonly []>;
|
|
5
|
+
readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
|
|
6
|
+
readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
7
|
+
}, undefined>], undefined>, undefined>;
|
|
8
|
+
}, undefined>, v.TransformAction<{
|
|
9
|
+
symbolIds: number[];
|
|
10
|
+
account?: "active" | "main" | {
|
|
11
|
+
subaccountId: string;
|
|
12
|
+
} | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
subaccountId: bigint | undefined;
|
|
15
|
+
symbolId: number[];
|
|
16
|
+
}>]>;
|
|
17
|
+
type GetSpotFeeRatesInput = v.InferInput<typeof GetSpotFeeRatesInputSchema>;
|
|
18
|
+
declare const SpotFeeRateSchema: v.ObjectSchema<{
|
|
19
|
+
readonly symbolId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
20
|
+
readonly symbol: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
21
|
+
readonly makerFeeRatePercent: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
22
|
+
readonly takerFeeRatePercent: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
23
|
+
readonly vipTier: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
type SpotFeeRate = v.InferOutput<typeof SpotFeeRateSchema>;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { GetSpotFeeRatesInput, GetSpotFeeRatesInputSchema, SpotFeeRate, SpotFeeRateSchema };
|
|
28
|
+
//# sourceMappingURL=fees.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fees.schemas.d.ts","names":[],"sources":["../../../src/services/fees/fees.schemas.ts"],"mappings":";;cAWa,4BAA0B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;KAkB3B,uBAAuB,EAAE,kBAAkB;cAG1C,mBAAiB,EAAA;;;;;;;KAQlB,cAAc,EAAE,mBAAmB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AccountScopeInputEntries, accountScopeToSubaccountId } from "../../shared/account-scope.js";
|
|
2
|
+
import { VipTierNumberSchema } from "../vip/vip.schemas.js";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
//#region src/services/fees/fees.schemas.ts
|
|
5
|
+
const DecimalStringSchema = v.pipe(v.string(), v.trim(), v.minLength(1));
|
|
6
|
+
const SymbolIdSchema = v.pipe(v.number(), v.integer(), v.minValue(1));
|
|
7
|
+
const GetSpotFeeRatesInputSchema = v.pipe(v.strictObject({
|
|
8
|
+
...AccountScopeInputEntries,
|
|
9
|
+
symbolIds: v.optional(v.pipe(v.array(SymbolIdSchema), v.transform((ids) => [...new Set(ids)]), v.maxLength(100)), [])
|
|
10
|
+
}), v.transform(({ account, symbolIds }) => ({
|
|
11
|
+
subaccountId: accountScopeToSubaccountId(account),
|
|
12
|
+
symbolId: symbolIds
|
|
13
|
+
})));
|
|
14
|
+
const SpotFeeRateSchema = v.object({
|
|
15
|
+
symbolId: SymbolIdSchema,
|
|
16
|
+
symbol: v.pipe(v.string(), v.trim(), v.minLength(1)),
|
|
17
|
+
makerFeeRatePercent: DecimalStringSchema,
|
|
18
|
+
takerFeeRatePercent: DecimalStringSchema,
|
|
19
|
+
vipTier: VipTierNumberSchema
|
|
20
|
+
});
|
|
21
|
+
const SpotFeeRatesSchema = v.array(SpotFeeRateSchema);
|
|
22
|
+
//#endregion
|
|
23
|
+
export { GetSpotFeeRatesInputSchema, SpotFeeRateSchema, SpotFeeRatesSchema };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=fees.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fees.schemas.js","names":[],"sources":["../../../src/services/fees/fees.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport {\n AccountScopeInputEntries,\n accountScopeToSubaccountId,\n} from \"../../shared/account-scope.js\";\nimport { VipTierNumberSchema } from \"../vip/vip.schemas.js\";\n\nconst DecimalStringSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\n\nconst SymbolIdSchema = v.pipe(v.number(), v.integer(), v.minValue(1));\n\nexport const GetSpotFeeRatesInputSchema = v.pipe(\n v.strictObject({\n ...AccountScopeInputEntries,\n symbolIds: v.optional(\n v.pipe(\n v.array(SymbolIdSchema),\n v.transform((ids) => [...new Set(ids)]),\n v.maxLength(100),\n ),\n [],\n ),\n }),\n v.transform(({ account, symbolIds }) => ({\n subaccountId: accountScopeToSubaccountId(account),\n symbolId: symbolIds,\n })),\n);\n\nexport type GetSpotFeeRatesInput = v.InferInput<typeof GetSpotFeeRatesInputSchema>;\nexport type GetSpotFeeRatesRequest = v.InferOutput<typeof GetSpotFeeRatesInputSchema>;\n\nexport const SpotFeeRateSchema = v.object({\n symbolId: SymbolIdSchema,\n symbol: v.pipe(v.string(), v.trim(), v.minLength(1)),\n makerFeeRatePercent: DecimalStringSchema,\n takerFeeRatePercent: DecimalStringSchema,\n vipTier: VipTierNumberSchema,\n});\n\nexport type SpotFeeRate = v.InferOutput<typeof SpotFeeRateSchema>;\n\nexport const SpotFeeRatesSchema = v.array(SpotFeeRateSchema);\n"],"mappings":";;;;AAOA,MAAM,sBAAsB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,CAAC;AAEvE,MAAM,iBAAiB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,QAAQ,GAAG,EAAE,SAAS,CAAC,CAAC;AAEpE,MAAa,6BAA6B,EAAE,KACxC,EAAE,aAAa;CACX,GAAG;CACH,WAAW,EAAE,SACT,EAAE,KACE,EAAE,MAAM,cAAc,GACtB,EAAE,WAAW,QAAQ,CAAC,GAAG,IAAI,IAAI,GAAG,CAAC,CAAC,GACtC,EAAE,UAAU,GAAG,CACnB,GACA,CAAC,CACL;AACJ,CAAC,GACD,EAAE,WAAW,EAAE,SAAS,iBAAiB;CACrC,cAAc,2BAA2B,OAAO;CAChD,UAAU;AACd,EAAE,CACN;AAKA,MAAa,oBAAoB,EAAE,OAAO;CACtC,UAAU;CACV,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,CAAC;CACnD,qBAAqB;CACrB,qBAAqB;CACrB,SAAS;AACb,CAAC;AAID,MAAa,qBAAqB,EAAE,MAAM,iBAAiB"}
|
|
@@ -13,8 +13,8 @@ type TimestampInit = {
|
|
|
13
13
|
};
|
|
14
14
|
declare const GetOrderbookHeatmapInputSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
15
15
|
readonly symbolId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>]>;
|
|
16
|
-
readonly interval: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["1s", "1m", "5m", "1h"], undefined>, "1s">, v.TransformAction<"
|
|
17
|
-
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<5 | 10 | 20 | 1 | 200 | 500 | 50 |
|
|
16
|
+
readonly interval: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["1s", "1m", "5m", "1h"], undefined>, "1s">, v.TransformAction<"1s" | "1m" | "5m" | "1h", HeatmapInterval>]>;
|
|
17
|
+
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<5 | 10 | 20 | 1 | 200 | 500 | 50 | 100 | 1000, HeatmapDepth>]>;
|
|
18
18
|
readonly quantityMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["close", "peak"], undefined>, "close">, v.TransformAction<"close" | "peak", HeatmapQuantityMode>]>;
|
|
19
19
|
readonly limit: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 20000, undefined>]>;
|
|
20
20
|
readonly startTsSec: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, number, undefined>, v.TransformAction<number, bigint>]>, undefined>;
|
|
@@ -122,7 +122,7 @@ declare function convertHeatmapDeltaBucket(bucket: OrderbookHeatmapDeltaBucketRa
|
|
|
122
122
|
type OrderbookHeatmapDeltaBucket = ReturnType<typeof convertHeatmapDeltaBucket>;
|
|
123
123
|
declare const OrderbookHeatmapLiveBucketRawSchema: v.ObjectSchema<{
|
|
124
124
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
125
|
-
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"
|
|
125
|
+
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1s" | "1m" | "5m" | "1h">>]>;
|
|
126
126
|
readonly tsSec: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
127
127
|
readonly isFinal: v.BooleanSchema<undefined>;
|
|
128
128
|
readonly bids: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -142,7 +142,7 @@ declare const OrderbookHeatmapLiveBucketRawSchema: v.ObjectSchema<{
|
|
|
142
142
|
type OrderbookHeatmapLiveBucketRaw = v.InferOutput<typeof OrderbookHeatmapLiveBucketRawSchema>;
|
|
143
143
|
declare function convertHeatmapLiveBucket(bucket: OrderbookHeatmapLiveBucketRaw, scales: SdkScales): {
|
|
144
144
|
symbolId: number;
|
|
145
|
-
interval: DecodedEnum<"
|
|
145
|
+
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
146
146
|
tsSec: number;
|
|
147
147
|
isFinal: boolean;
|
|
148
148
|
bids: {
|
|
@@ -226,8 +226,8 @@ declare function convertHeatmapDeltaChain(chain: OrderbookHeatmapDeltaChainRaw,
|
|
|
226
226
|
type OrderbookHeatmapDeltaChain = ReturnType<typeof convertHeatmapDeltaChain>;
|
|
227
227
|
declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
228
228
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
229
|
-
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"
|
|
230
|
-
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 5 | 10 | 20 | 1 | "unspecified" | 200 | 500 | 50 |
|
|
229
|
+
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1s" | "1m" | "5m" | "1h">>]>;
|
|
230
|
+
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 5 | 10 | 20 | 1 | "unspecified" | 200 | 500 | 50 | 100 | 1000>]>;
|
|
231
231
|
readonly chain: v.OptionalSchema<v.ObjectSchema<{
|
|
232
232
|
readonly baseKeyframe: v.OptionalSchema<v.ObjectSchema<{
|
|
233
233
|
readonly tsSec: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -267,7 +267,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
267
267
|
readonly quantityMode: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"close" | "peak">>]>;
|
|
268
268
|
readonly liveBucket: v.OptionalSchema<v.ObjectSchema<{
|
|
269
269
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
270
|
-
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"
|
|
270
|
+
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1s" | "1m" | "5m" | "1h">>]>;
|
|
271
271
|
readonly tsSec: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
272
272
|
readonly isFinal: v.BooleanSchema<undefined>;
|
|
273
273
|
readonly bids: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -286,8 +286,8 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
286
286
|
}, undefined>, undefined>;
|
|
287
287
|
}, undefined>, v.TransformAction<{
|
|
288
288
|
symbolId: number;
|
|
289
|
-
interval: DecodedEnum<"
|
|
290
|
-
depth: 5 | 10 | 20 | 1 | "unspecified" | 200 | 500 | 50 |
|
|
289
|
+
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
290
|
+
depth: 5 | 10 | 20 | 1 | "unspecified" | 200 | 500 | 50 | 100 | 1000;
|
|
291
291
|
chain?: {
|
|
292
292
|
baseKeyframe?: {
|
|
293
293
|
tsSec: number;
|
|
@@ -327,7 +327,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
327
327
|
quantityMode: DecodedEnum<"close" | "peak">;
|
|
328
328
|
liveBucket?: {
|
|
329
329
|
symbolId: number;
|
|
330
|
-
interval: DecodedEnum<"
|
|
330
|
+
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
331
331
|
tsSec: number;
|
|
332
332
|
isFinal: boolean;
|
|
333
333
|
bids?: {
|
|
@@ -346,8 +346,8 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
346
346
|
} | undefined;
|
|
347
347
|
}, {
|
|
348
348
|
symbolId: number;
|
|
349
|
-
interval: DecodedEnum<"
|
|
350
|
-
depth: 5 | 10 | 20 | 1 | "unspecified" | 200 | 500 | 50 |
|
|
349
|
+
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
350
|
+
depth: 5 | 10 | 20 | 1 | "unspecified" | 200 | 500 | 50 | 100 | 1000;
|
|
351
351
|
chain: {
|
|
352
352
|
baseKeyframe: {
|
|
353
353
|
tsSec: number;
|
|
@@ -387,7 +387,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
387
387
|
quantityMode: DecodedEnum<"close" | "peak">;
|
|
388
388
|
liveBucket: {
|
|
389
389
|
symbolId: number;
|
|
390
|
-
interval: DecodedEnum<"
|
|
390
|
+
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
391
391
|
tsSec: number;
|
|
392
392
|
isFinal: boolean;
|
|
393
393
|
bids: {
|
|
@@ -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.EnumSchema<typeof SparklineInterval, undefined>, v.TransformAction<SparklineInterval, "unspecified" | "
|
|
33
|
+
readonly interval: v.SchemaWithPipe<readonly [v.EnumSchema<typeof SparklineInterval, undefined>, v.TransformAction<SparklineInterval, "unspecified" | "1m" | "1h" | "1w" | "24h">]>;
|
|
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" | "1m" | "1h" | "1w" | "24h";
|
|
54
54
|
closeTicks: bigint[];
|
|
55
55
|
}[];
|
|
56
56
|
indexPriceTicks: bigint;
|
|
@@ -80,7 +80,7 @@ declare const ListMarketOverviewInputSchema: v.ObjectSchema<{
|
|
|
80
80
|
readonly orderBy: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["change_24h_bps", "volume_24h_quote", "last_price", "date_added"], undefined>, "volume_24h_quote">, v.TransformAction<"change_24h_bps" | "volume_24h_quote" | "last_price" | "date_added", MarketOrderBy.ORDER_BY_CHANGE_24H_BPS | MarketOrderBy.ORDER_BY_VOLUME_24H_QUOTE | 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<("1m" | "1h" | "1w" | "24h")[], (SparklineInterval.SPARKLINE_1H | SparklineInterval.SPARKLINE_24H | SparklineInterval.SPARKLINE_1W | SparklineInterval.SPARKLINE_1M)[]>]>;
|
|
84
84
|
}, undefined>;
|
|
85
85
|
type ListMarketOverviewInput = v.InferInput<typeof ListMarketOverviewInputSchema>;
|
|
86
86
|
//#endregion
|
|
@@ -11,7 +11,7 @@ declare const GetOrderbookInputSchema: v.SchemaWithPipe<readonly [v.ObjectSchema
|
|
|
11
11
|
depth: number;
|
|
12
12
|
}, {
|
|
13
13
|
symbol: string;
|
|
14
|
-
depth: 5 | 10 | 20 | 1 | 200 | 500 | 50 |
|
|
14
|
+
depth: 5 | 10 | 20 | 1 | 200 | 500 | 50 | 100 | 1000;
|
|
15
15
|
protoDepth: Depth;
|
|
16
16
|
}>]>;
|
|
17
17
|
type GetOrderbookInput = v.InferInput<typeof GetOrderbookInputSchema>;
|