@polyester/sdk 0.32.2-devnet-20261102164441 → 0.32.2-devnet-20261102211233
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 +3 -1
- package/dist/gen/auth/v1/address_book_pb.js +1 -1
- package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.js +1 -1
- package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +1 -1
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/mfa_pb.js +1 -1
- package/dist/gen/auth/v1/mfa_pb.js.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +1 -1
- package/dist/gen/auth/v1/policies_pb.js.map +1 -1
- package/dist/gen/auth/v1/profile_pb.js +1 -1
- package/dist/gen/auth/v1/profile_pb.js.map +1 -1
- package/dist/gen/auth/v1/resolve_pb.js +1 -1
- package/dist/gen/auth/v1/resolve_pb.js.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
- package/dist/gen/chain/analytics/v1/analytics_read_pb.js +1 -1
- package/dist/gen/chain/analytics/v1/analytics_read_pb.js.map +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.js +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.js +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.js +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.js.map +1 -1
- package/dist/gen/changelog/v1/changelog_pb.js +1 -1
- package/dist/gen/changelog/v1/changelog_pb.js.map +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.js +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.js.map +1 -1
- package/dist/gen/claims/v1/claims_pb.js +1 -1
- package/dist/gen/claims/v1/claims_pb.js.map +1 -1
- package/dist/gen/fees/v1/fees_pb.js +1 -1
- package/dist/gen/fees/v1/fees_pb.js.map +1 -1
- package/dist/gen/ledger/read/v1/ledger_read_pb.js +1 -1
- package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.js +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.js +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.js.map +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.js +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +1 -1
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +9 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.js +9 -1
- package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
- package/dist/gen/polyester/api/options_pb.d.ts +11 -4
- package/dist/gen/polyester/api/options_pb.d.ts.map +1 -1
- package/dist/gen/polyester/api/options_pb.js +11 -3
- package/dist/gen/polyester/api/options_pb.js.map +1 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.js +1 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -1
- package/dist/gen/rewards/v1/rewards_pb.js +1 -1
- package/dist/gen/rewards/v1/rewards_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/swap/v1/swap_pb.js +1 -1
- package/dist/gen/swap/v1/swap_pb.js.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +9 -0
- package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js +10 -1
- package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
- package/dist/gen/vip/v1/vip_pb.js +1 -1
- package/dist/gen/vip/v1/vip_pb.js.map +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +3 -3
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- 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-output.schemas.d.ts +5 -5
- package/dist/services/orders/orders.codecs.js +1 -0
- package/dist/services/orders/orders.codecs.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +10 -10
- package/dist/services/trades/trades.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +16 -16
- package/dist/services/triggers/triggers.codecs.js +1 -0
- package/dist/services/triggers/triggers.codecs.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +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 { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, 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(\"ChB2aXAvdjEvdmlwLnByb3RvEgZ2aXAudjEitQEKB1ZJUFRpZXISDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASIAoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCAEgAiAEBEiAKFm1ha2VyX2ZlZV9yYXRlX3BlcmNlbnQYBCABKAlCABIgChZ0YWtlcl9mZWVfcmF0ZV9wZXJjZW50GAUgASgJQgBCFAoSX2FvcF90aHJlc2hvbGRfdXNkIhUKE0xpc3RWSVBUaWVyc1JlcXVlc3QiqgEKFExpc3RWSVBUaWVyc1Jlc3BvbnNlEhgKDnBvbGljeV92ZXJzaW9uGAEgASgEQgASNAoOZWZmZWN0aXZlX2Zyb20YAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgASIAoWcmV0ZW50aW9uX3RocmVzaG9sZF9icBgDIAEoDUIAEiAKBXRpZXJzGAQgAygLMg8udmlwLnYxLlZJUFRpZXJCACJkChVOZXh0VklQVGllclRocmVzaG9sZHMSDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASGwoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCACJZChBWSVBNZXRyaWNRdWFsaXR5EikKBnN0YXR1cxgBIAEoDjIXLnZpcC52MS5WSVBNZXRyaWNTdGF0dXNCABIaChBpbmNvbXBsZXRlX2hvdXJzGAIgASgNQgAiFQoTR2V0VklQU3RhdHVzUmVxdWVzdCLQBQoUR2V0VklQU3RhdHVzUmVzcG9uc2USDgoEdGllchgBIAEoDUIAEhUKC3ZvbHVtZV90aWVyGAIgASgNQgASEgoIYW9wX3RpZXIYAyABKA1CABIlChZzZXR0bGVkX3ZvbHVtZV8zMGRfdXNkGAQgASgJQgBIAIgBARIiChNhdmVyYWdlX2FvcF8zMGRfdXNkGAUgASgJQgBIAYgBARIYCg5wb2xpY3lfdmVyc2lvbhgGIAEoBEIAEjsKFXBvbGljeV9lZmZlY3RpdmVfZnJvbRgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCABI3Cg5lZmZlY3RpdmVfZnJvbRgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIAogBARI1CgxldmFsdWF0ZWRfYXQYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSAOIAQESNgoNbWV0cmljc19hc19vZhgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIBIgBARJAChRuZXh0X3RpZXJfdGhyZXNob2xkcxgLIAEoCzIdLnZpcC52MS5OZXh0VklQVGllclRocmVzaG9sZHNIBYgBARI4ChZzZXR0bGVkX3ZvbHVtZV9xdWFsaXR5GAwgASgLMhgudmlwLnYxLlZJUE1ldHJpY1F1YWxpdHkSNQoTYXZlcmFnZV9hb3BfcXVhbGl0eRgNIAEoCzIYLnZpcC52MS5WSVBNZXRyaWNRdWFsaXR5QhkKF19zZXR0bGVkX3ZvbHVtZV8zMGRfdXNkQhYKFF9hdmVyYWdlX2FvcF8zMGRfdXNkQhEKD19lZmZlY3RpdmVfZnJvbUIPCg1fZXZhbHVhdGVkX2F0QhAKDl9tZXRyaWNzX2FzX29mQhcKFV9uZXh0X3RpZXJfdGhyZXNob2xkcypmCg9WSVBNZXRyaWNTdGF0dXMSFgoSTUVUUklDX1VOU1BFQ0lGSUVEEAASDAoIQ09NUExFVEUQARIVChFQUklDRV9VTkFWQUlMQUJMRRACEhYKEklOQ09NUExFVEVfSElTVE9SWRADMqkBCgpWSVBTZXJ2aWNlEk4KDExpc3RWSVBUaWVycxIbLnZpcC52MS5MaXN0VklQVGllcnNSZXF1ZXN0GhwudmlwLnYxLkxpc3RWSVBUaWVyc1Jlc3BvbnNlIgOQAgESSwoMR2V0VklQU3RhdHVzEhsudmlwLnYxLkdldFZJUFN0YXR1c1JlcXVlc3QaHC52aXAudjEuR2V0VklQU3RhdHVzUmVzcG9uc2UiAEI6WjhnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL3ZpcC92MTt2aXB2MWIGcHJvdG8z\", [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 * VIPMetricQuality explains the completeness of one rolling 30-day\n * qualification metric.\n *\n * @generated from message vip.v1.VIPMetricQuality\n */\nexport type VIPMetricQuality = Message<\"vip.v1.VIPMetricQuality\"> & {\n /**\n * Completeness status of the metric.\n *\n * @generated from field: vip.v1.VIPMetricStatus status = 1;\n */\n status: VIPMetricStatus;\n\n /**\n * Number of hourly buckets in the rolling 720-hour window that are missing\n * or incomplete. Zero when status is COMPLETE.\n *\n * @generated from field: uint32 incomplete_hours = 2;\n */\n incompleteHours: number;\n};\n\n/**\n * Describes the message vip.v1.VIPMetricQuality.\n * Use `create(VIPMetricQualitySchema)` to create a new message.\n */\nexport const VIPMetricQualitySchema: GenMessage<VIPMetricQuality> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 4);\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, 5);\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. When\n * settled_volume_quality.status is PRICE_UNAVAILABLE, this is a lower bound\n * that excludes executions without an admissible USD reference price.\n * Omitted when settled_volume_quality is omitted or its status is\n * INCOMPLETE_HISTORY.\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 * unless average_aop_quality.status is COMPLETE.\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 * neither settled_volume_30d_usd nor average_aop_30d_usd is present.\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 * Completeness of the rolling 30-day settled spot volume. An incomplete\n * volume metric can raise the volume tier when its proven lower bound meets\n * a higher threshold, but it never lowers the tier. Omitted when the\n * assignment carries no automatic qualification evidence, such as the\n * default VIP0 tier of a new account.\n *\n * @generated from field: vip.v1.VIPMetricQuality settled_volume_quality = 12;\n */\n settledVolumeQuality?: VIPMetricQuality | undefined;\n\n /**\n * Completeness of the rolling 30-day average portfolio value. An incomplete\n * average portfolio value keeps its previous tier. Omitted when the\n * assignment carries no automatic qualification evidence, such as the\n * default VIP0 tier of a new account.\n *\n * @generated from field: vip.v1.VIPMetricQuality average_aop_quality = 13;\n */\n averageAopQuality?: VIPMetricQuality | 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, 6);\n\n/**\n * VIPMetricStatus describes how complete one rolling 30-day qualification\n * metric is.\n *\n * @generated from enum vip.v1.VIPMetricStatus\n */\nexport enum VIPMetricStatus {\n /**\n * No metric status was specified.\n *\n * @generated from enum value: METRIC_UNSPECIFIED = 0;\n */\n METRIC_UNSPECIFIED = 0,\n\n /**\n * Every hour in the rolling window has complete evidence.\n *\n * @generated from enum value: COMPLETE = 1;\n */\n COMPLETE = 1,\n\n /**\n * Every hour in the rolling window is present, but some hours contain\n * executions or holdings without an admissible USD reference price at the\n * required time. Those contributions are not estimated.\n *\n * @generated from enum value: PRICE_UNAVAILABLE = 2;\n */\n PRICE_UNAVAILABLE = 2,\n\n /**\n * Some hours in the rolling window are missing or contain other incomplete\n * evidence.\n *\n * @generated from enum value: INCOMPLETE_HISTORY = 3;\n */\n INCOMPLETE_HISTORY = 3,\n}\n\n/**\n * Describes the enum vip.v1.VIPMetricStatus.\n */\nexport const VIPMetricStatusSchema: GenEnum<VIPMetricStatus> = /*@__PURE__*/\n enumDesc(file_vip_v1_vip, 0);\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 * This public, caller-independent catalog supports cacheable ConnectRPC GET.\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,gtEAAgtE,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AAwDvxE,MAAa,gBACX,0BAAY,iBAAiB,CAAC;;;;;AAchC,MAAa,4BACX,0BAAY,iBAAiB,CAAC;;;;;AA2ChC,MAAa,6BACX,0BAAY,iBAAiB,CAAC;;;;;AAsChC,MAAa,8BACX,0BAAY,iBAAiB,CAAC;;;;;AA6BhC,MAAa,yBACX,0BAAY,iBAAiB,CAAC;;;;;AAgBhC,MAAa,4BACX,0BAAY,iBAAiB,CAAC;;;;;AA6HhC,MAAa,6BACX,0BAAY,iBAAiB,CAAC;;;;;;;AAQhC,IAAY,kBAAL,yBAAA,iBAAA;;;;;;CAML,gBAAA,gBAAA,wBAAA,KAAA;;;;;;CAOA,gBAAA,gBAAA,cAAA,KAAA;;;;;;;;CASA,gBAAA,gBAAA,uBAAA,KAAA;;;;;;;CAQA,gBAAA,gBAAA,wBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,wBACX,uBAAS,iBAAiB,CAAC;;;;;;;AAQ7B,MAAa,aAwBX,0BAAY,iBAAiB,CAAC"}
|
|
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 { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, 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(\"ChB2aXAvdjEvdmlwLnByb3RvEgZ2aXAudjEitQEKB1ZJUFRpZXISDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASIAoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCAEgAiAEBEiAKFm1ha2VyX2ZlZV9yYXRlX3BlcmNlbnQYBCABKAlCABIgChZ0YWtlcl9mZWVfcmF0ZV9wZXJjZW50GAUgASgJQgBCFAoSX2FvcF90aHJlc2hvbGRfdXNkIhUKE0xpc3RWSVBUaWVyc1JlcXVlc3QiqgEKFExpc3RWSVBUaWVyc1Jlc3BvbnNlEhgKDnBvbGljeV92ZXJzaW9uGAEgASgEQgASNAoOZWZmZWN0aXZlX2Zyb20YAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgASIAoWcmV0ZW50aW9uX3RocmVzaG9sZF9icBgDIAEoDUIAEiAKBXRpZXJzGAQgAygLMg8udmlwLnYxLlZJUFRpZXJCACJkChVOZXh0VklQVGllclRocmVzaG9sZHMSDgoEdGllchgBIAEoDUIAEh4KFHZvbHVtZV90aHJlc2hvbGRfdXNkGAIgASgJQgASGwoRYW9wX3RocmVzaG9sZF91c2QYAyABKAlCACJZChBWSVBNZXRyaWNRdWFsaXR5EikKBnN0YXR1cxgBIAEoDjIXLnZpcC52MS5WSVBNZXRyaWNTdGF0dXNCABIaChBpbmNvbXBsZXRlX2hvdXJzGAIgASgNQgAiFQoTR2V0VklQU3RhdHVzUmVxdWVzdCLQBQoUR2V0VklQU3RhdHVzUmVzcG9uc2USDgoEdGllchgBIAEoDUIAEhUKC3ZvbHVtZV90aWVyGAIgASgNQgASEgoIYW9wX3RpZXIYAyABKA1CABIlChZzZXR0bGVkX3ZvbHVtZV8zMGRfdXNkGAQgASgJQgBIAIgBARIiChNhdmVyYWdlX2FvcF8zMGRfdXNkGAUgASgJQgBIAYgBARIYCg5wb2xpY3lfdmVyc2lvbhgGIAEoBEIAEjsKFXBvbGljeV9lZmZlY3RpdmVfZnJvbRgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCABI3Cg5lZmZlY3RpdmVfZnJvbRgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIAogBARI1CgxldmFsdWF0ZWRfYXQYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSAOIAQESNgoNbWV0cmljc19hc19vZhgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBIBIgBARJAChRuZXh0X3RpZXJfdGhyZXNob2xkcxgLIAEoCzIdLnZpcC52MS5OZXh0VklQVGllclRocmVzaG9sZHNIBYgBARI4ChZzZXR0bGVkX3ZvbHVtZV9xdWFsaXR5GAwgASgLMhgudmlwLnYxLlZJUE1ldHJpY1F1YWxpdHkSNQoTYXZlcmFnZV9hb3BfcXVhbGl0eRgNIAEoCzIYLnZpcC52MS5WSVBNZXRyaWNRdWFsaXR5QhkKF19zZXR0bGVkX3ZvbHVtZV8zMGRfdXNkQhYKFF9hdmVyYWdlX2FvcF8zMGRfdXNkQhEKD19lZmZlY3RpdmVfZnJvbUIPCg1fZXZhbHVhdGVkX2F0QhAKDl9tZXRyaWNzX2FzX29mQhcKFV9uZXh0X3RpZXJfdGhyZXNob2xkcypmCg9WSVBNZXRyaWNTdGF0dXMSFgoSTUVUUklDX1VOU1BFQ0lGSUVEEAASDAoIQ09NUExFVEUQARIVChFQUklDRV9VTkFWQUlMQUJMRRACEhYKEklOQ09NUExFVEVfSElTVE9SWRADMqsBCgpWSVBTZXJ2aWNlEk4KDExpc3RWSVBUaWVycxIbLnZpcC52MS5MaXN0VklQVGllcnNSZXF1ZXN0GhwudmlwLnYxLkxpc3RWSVBUaWVyc1Jlc3BvbnNlIgOQAgESSwoMR2V0VklQU3RhdHVzEhsudmlwLnYxLkdldFZJUFN0YXR1c1JlcXVlc3QaHC52aXAudjEuR2V0VklQU3RhdHVzUmVzcG9uc2UiABoAQjpaOGdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vdmlwL3YxO3ZpcHYxYgZwcm90bzM=\", [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 * VIPMetricQuality explains the completeness of one rolling 30-day\n * qualification metric.\n *\n * @generated from message vip.v1.VIPMetricQuality\n */\nexport type VIPMetricQuality = Message<\"vip.v1.VIPMetricQuality\"> & {\n /**\n * Completeness status of the metric.\n *\n * @generated from field: vip.v1.VIPMetricStatus status = 1;\n */\n status: VIPMetricStatus;\n\n /**\n * Number of hourly buckets in the rolling 720-hour window that are missing\n * or incomplete. Zero when status is COMPLETE.\n *\n * @generated from field: uint32 incomplete_hours = 2;\n */\n incompleteHours: number;\n};\n\n/**\n * Describes the message vip.v1.VIPMetricQuality.\n * Use `create(VIPMetricQualitySchema)` to create a new message.\n */\nexport const VIPMetricQualitySchema: GenMessage<VIPMetricQuality> = /*@__PURE__*/\n messageDesc(file_vip_v1_vip, 4);\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, 5);\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. When\n * settled_volume_quality.status is PRICE_UNAVAILABLE, this is a lower bound\n * that excludes executions without an admissible USD reference price.\n * Omitted when settled_volume_quality is omitted or its status is\n * INCOMPLETE_HISTORY.\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 * unless average_aop_quality.status is COMPLETE.\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 * neither settled_volume_30d_usd nor average_aop_30d_usd is present.\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 * Completeness of the rolling 30-day settled spot volume. An incomplete\n * volume metric can raise the volume tier when its proven lower bound meets\n * a higher threshold, but it never lowers the tier. Omitted when the\n * assignment carries no automatic qualification evidence, such as the\n * default VIP0 tier of a new account.\n *\n * @generated from field: vip.v1.VIPMetricQuality settled_volume_quality = 12;\n */\n settledVolumeQuality?: VIPMetricQuality | undefined;\n\n /**\n * Completeness of the rolling 30-day average portfolio value. An incomplete\n * average portfolio value keeps its previous tier. Omitted when the\n * assignment carries no automatic qualification evidence, such as the\n * default VIP0 tier of a new account.\n *\n * @generated from field: vip.v1.VIPMetricQuality average_aop_quality = 13;\n */\n averageAopQuality?: VIPMetricQuality | 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, 6);\n\n/**\n * VIPMetricStatus describes how complete one rolling 30-day qualification\n * metric is.\n *\n * @generated from enum vip.v1.VIPMetricStatus\n */\nexport enum VIPMetricStatus {\n /**\n * No metric status was specified.\n *\n * @generated from enum value: METRIC_UNSPECIFIED = 0;\n */\n METRIC_UNSPECIFIED = 0,\n\n /**\n * Every hour in the rolling window has complete evidence.\n *\n * @generated from enum value: COMPLETE = 1;\n */\n COMPLETE = 1,\n\n /**\n * Every hour in the rolling window is present, but some hours contain\n * executions or holdings without an admissible USD reference price at the\n * required time. Those contributions are not estimated.\n *\n * @generated from enum value: PRICE_UNAVAILABLE = 2;\n */\n PRICE_UNAVAILABLE = 2,\n\n /**\n * Some hours in the rolling window are missing or contain other incomplete\n * evidence.\n *\n * @generated from enum value: INCOMPLETE_HISTORY = 3;\n */\n INCOMPLETE_HISTORY = 3,\n}\n\n/**\n * Describes the enum vip.v1.VIPMetricStatus.\n */\nexport const VIPMetricStatusSchema: GenEnum<VIPMetricStatus> = /*@__PURE__*/\n enumDesc(file_vip_v1_vip, 0);\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 * This public, caller-independent catalog supports cacheable ConnectRPC GET.\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,otEAAotE,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AAwD3xE,MAAa,gBACX,0BAAY,iBAAiB,CAAC;;;;;AAchC,MAAa,4BACX,0BAAY,iBAAiB,CAAC;;;;;AA2ChC,MAAa,6BACX,0BAAY,iBAAiB,CAAC;;;;;AAsChC,MAAa,8BACX,0BAAY,iBAAiB,CAAC;;;;;AA6BhC,MAAa,yBACX,0BAAY,iBAAiB,CAAC;;;;;AAgBhC,MAAa,4BACX,0BAAY,iBAAiB,CAAC;;;;;AA6HhC,MAAa,6BACX,0BAAY,iBAAiB,CAAC;;;;;;;AAQhC,IAAY,kBAAL,yBAAA,iBAAA;;;;;;CAML,gBAAA,gBAAA,wBAAA,KAAA;;;;;;CAOA,gBAAA,gBAAA,cAAA,KAAA;;;;;;;;CASA,gBAAA,gBAAA,uBAAA,KAAA;;;;;;;CAQA,gBAAA,gBAAA,wBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,wBACX,uBAAS,iBAAiB,CAAC;;;;;;;AAQ7B,MAAa,aAwBX,0BAAY,iBAAiB,CAAC"}
|
|
@@ -297,7 +297,7 @@ declare const AddressBookSchema: v.ObjectSchema<{
|
|
|
297
297
|
rootAccountId: string;
|
|
298
298
|
subaccountId: bigint;
|
|
299
299
|
}, AddressBookAccountScope>]>, undefined>;
|
|
300
|
-
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
300
|
+
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
301
301
|
readonly label: v.StringSchema<undefined>;
|
|
302
302
|
readonly ownerUsername: v.StringSchema<undefined>;
|
|
303
303
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
@@ -1102,7 +1102,7 @@ declare const AddressBookViewSchema: v.ObjectSchema<{
|
|
|
1102
1102
|
rootAccountId: string;
|
|
1103
1103
|
subaccountId: bigint;
|
|
1104
1104
|
}, AddressBookAccountScope>]>, undefined>;
|
|
1105
|
-
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
1105
|
+
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
1106
1106
|
readonly label: v.StringSchema<undefined>;
|
|
1107
1107
|
readonly ownerUsername: v.StringSchema<undefined>;
|
|
1108
1108
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
@@ -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.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1s" | "1m" | "
|
|
14
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "1w" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">>]>;
|
|
15
15
|
readonly tsSec: v.BigintSchema<undefined>;
|
|
16
16
|
readonly open: v.BigintSchema<undefined>;
|
|
17
17
|
readonly high: v.BigintSchema<undefined>;
|
|
@@ -22,7 +22,7 @@ declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<read
|
|
|
22
22
|
readonly isClosed: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
23
23
|
}, undefined>, v.TransformAction<{
|
|
24
24
|
symbolId: number;
|
|
25
|
-
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "
|
|
25
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "1w" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
|
|
26
26
|
tsSec: bigint;
|
|
27
27
|
open: bigint;
|
|
28
28
|
high: bigint;
|
|
@@ -33,7 +33,7 @@ declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<read
|
|
|
33
33
|
isClosed: boolean;
|
|
34
34
|
}, {
|
|
35
35
|
symbolId: number;
|
|
36
|
-
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "
|
|
36
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "1w" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
|
|
37
37
|
time: number;
|
|
38
38
|
open: string;
|
|
39
39
|
high: string;
|
|
@@ -46,7 +46,7 @@ declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<read
|
|
|
46
46
|
declare const createCandleRowIntSchema: typeof createCandleRowSchema;
|
|
47
47
|
declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
48
48
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
49
|
-
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1s" | "1m" | "
|
|
49
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "1w" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">>]>;
|
|
50
50
|
readonly tsSec: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
51
51
|
readonly open: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
52
52
|
readonly high: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
@@ -63,7 +63,7 @@ declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
63
63
|
readonly nextPageToken: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
64
64
|
}, undefined>, v.TransformAction<{
|
|
65
65
|
symbolId: number;
|
|
66
|
-
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "
|
|
66
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "1w" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
|
|
67
67
|
tsSec: bigint[];
|
|
68
68
|
open: bigint[];
|
|
69
69
|
high: bigint[];
|
|
@@ -80,7 +80,7 @@ declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
80
80
|
nextPageToken: string;
|
|
81
81
|
}, {
|
|
82
82
|
symbolId: number;
|
|
83
|
-
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "
|
|
83
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "1w" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
|
|
84
84
|
time: number[];
|
|
85
85
|
open: string[];
|
|
86
86
|
high: string[];
|
|
@@ -100,7 +100,7 @@ declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
100
100
|
}>]>;
|
|
101
101
|
declare function createCandleColumnarIntSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
102
102
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
103
|
-
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1s" | "1m" | "
|
|
103
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "1w" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">>]>;
|
|
104
104
|
readonly tsSec: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
105
105
|
readonly open: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
106
106
|
readonly high: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
@@ -117,7 +117,7 @@ declare function createCandleColumnarIntSchema(scales: SdkScales): v.SchemaWithP
|
|
|
117
117
|
readonly nextPageToken: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
118
118
|
}, undefined>, v.TransformAction<{
|
|
119
119
|
symbolId: number;
|
|
120
|
-
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "
|
|
120
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "1w" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
|
|
121
121
|
tsSec: bigint[];
|
|
122
122
|
open: bigint[];
|
|
123
123
|
high: bigint[];
|
|
@@ -134,7 +134,7 @@ declare function createCandleColumnarIntSchema(scales: SdkScales): v.SchemaWithP
|
|
|
134
134
|
nextPageToken: string;
|
|
135
135
|
}, {
|
|
136
136
|
symbolId: number;
|
|
137
|
-
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "
|
|
137
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "5m" | "1h" | "1w" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo">;
|
|
138
138
|
tsSec: number[];
|
|
139
139
|
open: string[];
|
|
140
140
|
high: string[];
|
|
@@ -158,7 +158,7 @@ type CandleColumnar = v.InferOutput<ReturnType<typeof createCandleColumnarSchema
|
|
|
158
158
|
type CandleColumnarInt = v.InferOutput<ReturnType<typeof createCandleColumnarIntSchema>>;
|
|
159
159
|
declare function createListCandlesInputSchema(): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
160
160
|
readonly symbolId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
161
|
-
readonly timeframe: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["1s", "1m", "3m", "5m", "15m", "30m", "1h", "2h", "4h", "6h", "8h", "12h", "1d", "3d", "1w", "1mo"], undefined>, v.TransformAction<"1d" | "1s" | "1m" | "
|
|
161
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["1s", "1m", "3m", "5m", "15m", "30m", "1h", "2h", "4h", "6h", "8h", "12h", "1d", "3d", "1w", "1mo"], undefined>, v.TransformAction<"1d" | "1s" | "1m" | "5m" | "1h" | "1w" | "3m" | "15m" | "30m" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1mo", Timeframe$1.SEC_1 | Timeframe$1.MIN_1 | Timeframe$1.MIN_3 | Timeframe$1.MIN_5 | Timeframe$1.MIN_15 | Timeframe$1.MIN_30 | Timeframe$1.HOUR_1 | Timeframe$1.HOUR_2 | Timeframe$1.HOUR_4 | Timeframe$1.HOUR_6 | Timeframe$1.HOUR_8 | Timeframe$1.HOUR_12 | Timeframe$1.DAY_1 | Timeframe$1.DAY_3 | Timeframe$1.WEEK_1 | Timeframe$1.MONTH_1>]>;
|
|
162
162
|
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>;
|
|
163
163
|
readonly includeIncomplete: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
164
164
|
readonly includeReference: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
@@ -49,7 +49,7 @@ declare const CheckpointBiggestTradeSchema: v.SchemaWithPipe<readonly [v.ObjectS
|
|
|
49
49
|
side: number;
|
|
50
50
|
at: number;
|
|
51
51
|
}, {
|
|
52
|
-
side: "
|
|
52
|
+
side: "buy" | "sell" | "unspecified";
|
|
53
53
|
symbolId: number;
|
|
54
54
|
symbol: string;
|
|
55
55
|
at: number;
|
|
@@ -229,7 +229,7 @@ declare const CheckpointSchema: v.ObjectSchema<{
|
|
|
229
229
|
side: number;
|
|
230
230
|
at: number;
|
|
231
231
|
}, {
|
|
232
|
-
side: "
|
|
232
|
+
side: "buy" | "sell" | "unspecified";
|
|
233
233
|
symbolId: number;
|
|
234
234
|
symbol: string;
|
|
235
235
|
at: number;
|
|
@@ -421,7 +421,7 @@ declare const CheckpointSchema: v.ObjectSchema<{
|
|
|
421
421
|
readonly seasonResultUsd: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
422
422
|
readonly subaccounts: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.MaxValueAction<bigint, bigint, undefined>, v.TransformAction<any, number>]>;
|
|
423
423
|
/** Values computed from partial evidence; show them with an approximation marker. */
|
|
424
|
-
readonly incomplete: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
424
|
+
readonly incomplete: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "tools" | "deposits" | "withdrawals" | "volume" | "top_pairs" | "order_types" | "time_in_force" | "order_status" | "median_limit_rest" | "internal_transfers" | "daily_claim_amounts" | "portfolio_value" | "trading_balances" | "funding_balances" | "transfers" | "season_result">]>, undefined>, readonly []>;
|
|
425
425
|
}, undefined>;
|
|
426
426
|
/**
|
|
427
427
|
* One frozen season recap of a root account and all of its subaccounts. An absent USD value
|
|
@@ -14,7 +14,7 @@ type TimestampInit = {
|
|
|
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>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
16
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<1 | 5 | 10 | 20 | 100 | 500 |
|
|
17
|
+
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<1 | 5 | 10 | 20 | 100 | 500 | 1000 | 50 | 200, 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>;
|
|
@@ -227,7 +227,7 @@ 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
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, 1 |
|
|
230
|
+
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 | 1000 | 50 | 200>]>;
|
|
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>]>;
|
|
@@ -287,7 +287,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
287
287
|
}, undefined>, v.TransformAction<{
|
|
288
288
|
symbolId: number;
|
|
289
289
|
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
290
|
-
depth: 1 |
|
|
290
|
+
depth: 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 | 1000 | 50 | 200;
|
|
291
291
|
chain?: {
|
|
292
292
|
baseKeyframe?: {
|
|
293
293
|
tsSec: number;
|
|
@@ -347,7 +347,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
347
347
|
}, {
|
|
348
348
|
symbolId: number;
|
|
349
349
|
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
350
|
-
depth: 1 |
|
|
350
|
+
depth: 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 | 1000 | 50 | 200;
|
|
351
351
|
chain: {
|
|
352
352
|
baseKeyframe: {
|
|
353
353
|
tsSec: number;
|
|
@@ -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" | "
|
|
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" | "
|
|
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" | "
|
|
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 |
|
|
13
|
+
depth: 1 | 5 | 10 | 20 | 100 | 500 | 1000 | 50 | 200;
|
|
14
14
|
protoDepth: Depth;
|
|
15
15
|
}>]>;
|
|
16
16
|
type GetOrderbookInput = v.InferInput<typeof GetOrderbookInputSchema>;
|
|
@@ -316,12 +316,12 @@ declare function createOrderSchema(scales: SdkScales): v.SchemaWithPipe<readonly
|
|
|
316
316
|
} | undefined;
|
|
317
317
|
oco: boolean;
|
|
318
318
|
} | undefined;
|
|
319
|
-
cancelReason?: "unspecified" | "system" | "user_request" | "ioc_remainder" | "market_remainder" | "stp_expire_maker" | "stp_expire_taker" | "stp_expire_both" | "replaced" | "gtd_expired" | "qty_at_or_below_filled" | "pair_drain" | "attached_risk_refused" | "cancel_all_after" | "account_repair" | "twap_rollover" | "strategy_cancel" | undefined;
|
|
319
|
+
cancelReason?: "unspecified" | "system" | "user_request" | "ioc_remainder" | "market_remainder" | "stp_expire_maker" | "stp_expire_taker" | "stp_expire_both" | "replaced" | "gtd_expired" | "qty_at_or_below_filled" | "pair_drain" | "attached_risk_refused" | "cancel_all_after" | "account_repair" | "twap_rollover" | "strategy_cancel" | "market_halted" | undefined;
|
|
320
320
|
rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "SUBACCOUNT_INACTIVE" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "POLICY_MAX_OPEN_ORDERS" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "SUBACCOUNT_READ_FORBIDDEN" | "POLICY_SPOT_READ_DENY" | "API_KEY_SPOT_READ_DENY" | "CANCEL_REQUEST_EXPIRED" | "MAX_QTY" | "MAX_NOTIONAL" | "QTY_AT_OR_BELOW_FILLED" | "GATEWAY_MISCONFIGURED" | "INVALID_ORDER_ID" | "CHILD_QTY_RAISE_NOT_ALLOWED" | "ATTACHED_RISK_NOT_SUPPORTED" | "SETTLEMENT_BACKLOGGED" | "PRICE_LEVEL_QUANTITY_LIMIT" | "MARKET_QUOTE_STALE" | "MARKET_QUOTE_UNHEALTHY" | "INVALID_TIME_IN_FORCE" | "QUICKSWAP_NOT_PERMITTED" | "DUPLICATE_ORDER_ID" | "MAX_OPEN_ORDERS_TOTAL" | "STP_MODE_NOT_ALLOWED" | "PAIR_BACKLOGGED" | "PRICE_LEVELS_EXHAUSTED" | "CLIENT_ORDER_IDS_EXHAUSTED" | "ORDER_ID_CONFLICT" | "INVALID_SIDE" | "INVALID_ORDER_TYPE" | "INVALID_STP_MODE" | "INVALID_ORDER_FLAGS" | "BATCH_OTHER_ITEM_INVALID" | "REPLACE_ONTO_OWN_ID" | "INVALID_CLIENT_ORDER_ID" | "ORDER_SEQUENCE_EXHAUSTED" | "INVALID_HANDLING_MODE" | "FEE_SCHEDULE_UNAVAILABLE" | "POLICY_UNAVAILABLE" | "CANCEL_ALL_AFTER_TIMEOUT_INVALID" | "CANCEL_SCOPE_TOO_LARGE" | "RATE_LIMIT_POLICY_UNAVAILABLE" | "SYSTEM_RATE_LIMITED" | "ORDER_MODIFY_IN_PROGRESS" | "ORDER_PLACEMENT_PENDING" | "INVALID_MODIFY_BEHAVIOR" | "BATCH_REPLACE_ONLY_REQUIRED" | "BATCH_SINGLE_SYMBOL_REQUIRED" | "REQUEST_RECEIPTS_EXHAUSTED" | "INTENT_ID_INVALID" | "DRY_RUN_INVALID" | "CANCEL_ALL_AFTER_SCOPE_CONFLICT" | "NEW_ACCOUNT_CAPACITY_REACHED" | "TRIGGER_CHILD_PRICE_NOT_MODIFIABLE" | "TRIGGER_GENERATIONS_EXHAUSTED" | "TRIGGER_CONTROL_SHARE_EXHAUSTED" | "TRIGGER_CONTROLS_BUSY" | "TRIGGER_TYPE_NOT_SUPPORTED" | "INVALID_TRIGGER_TYPE" | "TRIGGER_DIRECTION_INVALID" | "TRIGGER_QTY_INVALID" | "TRIGGER_BUY_REQUIRES_LIMIT" | "ACCOUNT_ROUTING_INVALID" | "TRIGGER_LIMIT_EXCEEDED" | "TRIGGER_CONTROL_IN_PROGRESS" | "TRIGGER_PATCH_EMPTY" | "CLIENT_TRIGGER_ID_INVALID" | "TRIGGER_ACTIVATION_PRICE_INVALID" | "SLIPPAGE_TICKS_INVALID" | "SLIPPAGE_BPS_INVALID" | "TRIGGER_CONTROL_OUTCOME_UNKNOWN" | "TRIGGER_CAPACITY_REACHED" | "RESERVATION_CAPACITY_REACHED" | "CLIENT_ORDER_ID_CAPACITY_REACHED" | "ACCOUNT_RESERVATION_LIMIT_REACHED" | "INVALID_TRIGGER_CONTROL" | "TRIGGER_PATCH_NOT_ALLOWED" | "TRIGGER_PATCH_FIELD_UNKNOWN" | "TRIGGER_PATCH_VALUE_UNMASKED" | "TRIGGER_PATCH_PRICE_MODE_INVALID" | "ACCOUNT_ORDERS_SUSPENDED" | "TRAILING_SIDE_NOT_SUPPORTED" | "TRAILING_CHILD_NOT_MARKET" | "TWAP_DURATION_INVALID" | "LIMIT_CHILD_SLIPPAGE_SET" | "SLIPPAGE_BOUNDS_CONFLICT" | "TWAP_INTERVAL_INVALID" | "LADDER_LEVEL_REJECTED" | "LADDER_RANGE_TOO_NARROW" | "LADDER_LEVELS_INVALID" | "ORDER_LIMITS_UNAVAILABLE" | "ORDER_TYPE_NOT_ALLOWED_IN_AUCTION" | "POST_ONLY_NOT_ALLOWED_IN_AUCTION" | "QUICKSWAP_FEE_DETAILS_INCOMPLETE" | "QUICKSWAP_MARKET_NOT_PRICED" | "QUICKSWAP_BROKER_FEE_TERMS_MISMATCH" | "QUICKSWAP_FEE_RECIPIENT_IS_PAYER" | "QUICKSWAP_BROKER_FEE_TERMS_UNAVAILABLE" | "QUICKSWAP_BROKER_ACCOUNT_UNAVAILABLE" | "QUICKSWAP_ACCOUNT_OWNER_UNKNOWN" | "QUICKSWAP_DISABLED" | "QUICKSWAP_ATTACHED_RISK_NOT_ALLOWED" | "QUICKSWAP_ORDER_NOT_MODIFIABLE" | "QUICKSWAP_FEE_TOTAL_TOO_HIGH" | "QUICKSWAP_BROKER_FEE_TERMS_INVALID" | "QUICKSWAP_BROKER_INVALID" | "QUICKSWAP_FEE_SCHEDULE_INVALID" | "QUICKSWAP_MARKET_FEE_INVALID" | "QUICKSWAP_SETUP_INVALID" | "QUICKSWAP_CAPACITY_REACHED" | "ATTACHED_EXIT_WORKING" | "MARKET_TRIGGER_LIMIT_EXCEEDED" | "MARKET_TWAP_LIMIT_EXCEEDED" | "MARKET_LADDER_LIMIT_EXCEEDED" | "CHILD_QTY_EXCEEDS_REMAINING" | "ORDER_CANCEL_OUTCOME_UNKNOWN" | "ORDER_MODIFY_OUTCOME_UNKNOWN" | "ORDER_REPAIRING" | "ACCOUNT_REPAIRING" | "TRIGGER_WOULD_TRIGGER_IMMEDIATELY" | "ORDER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_SYMBOL_MISMATCH" | "MAX_OPEN_ORDERS_PER_PAIR" | "ATTACHED_LEGS_EXCEEDED" | "FEE_ASSET_INVALID" | "FEE_CEILING_INVALID" | "UNSUPPORTED_FIELD_SET" | "TRIGGER_FIRE_LIMIT_REACHED" | "CONDITION_FLAGS_INVALID" | "CONDITION_PARAMETER_SET" | "TWAP_CAPACITY_REACHED" | "CHILD_ORDER_INCONSISTENT" | undefined;
|
|
321
321
|
symbolId: number;
|
|
322
322
|
clientOrderId: string;
|
|
323
323
|
status: "unspecified" | "canceled" | "pending" | "pending_cancel" | "working" | "filled" | "rejected" | "partial";
|
|
324
|
-
side: "
|
|
324
|
+
side: "buy" | "sell" | "unspecified";
|
|
325
325
|
orderType: "unspecified" | "limit" | "market";
|
|
326
326
|
timeInForce: "unspecified" | "GTC" | "IOC" | "FOK" | "GTD";
|
|
327
327
|
selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both";
|
|
@@ -696,12 +696,12 @@ declare function createOrderDetailsSchema(scales: SdkScales): v.ObjectSchema<{
|
|
|
696
696
|
} | undefined;
|
|
697
697
|
oco: boolean;
|
|
698
698
|
} | undefined;
|
|
699
|
-
cancelReason?: "unspecified" | "system" | "user_request" | "ioc_remainder" | "market_remainder" | "stp_expire_maker" | "stp_expire_taker" | "stp_expire_both" | "replaced" | "gtd_expired" | "qty_at_or_below_filled" | "pair_drain" | "attached_risk_refused" | "cancel_all_after" | "account_repair" | "twap_rollover" | "strategy_cancel" | undefined;
|
|
699
|
+
cancelReason?: "unspecified" | "system" | "user_request" | "ioc_remainder" | "market_remainder" | "stp_expire_maker" | "stp_expire_taker" | "stp_expire_both" | "replaced" | "gtd_expired" | "qty_at_or_below_filled" | "pair_drain" | "attached_risk_refused" | "cancel_all_after" | "account_repair" | "twap_rollover" | "strategy_cancel" | "market_halted" | undefined;
|
|
700
700
|
rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "SUBACCOUNT_INACTIVE" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "POLICY_MAX_OPEN_ORDERS" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "SUBACCOUNT_READ_FORBIDDEN" | "POLICY_SPOT_READ_DENY" | "API_KEY_SPOT_READ_DENY" | "CANCEL_REQUEST_EXPIRED" | "MAX_QTY" | "MAX_NOTIONAL" | "QTY_AT_OR_BELOW_FILLED" | "GATEWAY_MISCONFIGURED" | "INVALID_ORDER_ID" | "CHILD_QTY_RAISE_NOT_ALLOWED" | "ATTACHED_RISK_NOT_SUPPORTED" | "SETTLEMENT_BACKLOGGED" | "PRICE_LEVEL_QUANTITY_LIMIT" | "MARKET_QUOTE_STALE" | "MARKET_QUOTE_UNHEALTHY" | "INVALID_TIME_IN_FORCE" | "QUICKSWAP_NOT_PERMITTED" | "DUPLICATE_ORDER_ID" | "MAX_OPEN_ORDERS_TOTAL" | "STP_MODE_NOT_ALLOWED" | "PAIR_BACKLOGGED" | "PRICE_LEVELS_EXHAUSTED" | "CLIENT_ORDER_IDS_EXHAUSTED" | "ORDER_ID_CONFLICT" | "INVALID_SIDE" | "INVALID_ORDER_TYPE" | "INVALID_STP_MODE" | "INVALID_ORDER_FLAGS" | "BATCH_OTHER_ITEM_INVALID" | "REPLACE_ONTO_OWN_ID" | "INVALID_CLIENT_ORDER_ID" | "ORDER_SEQUENCE_EXHAUSTED" | "INVALID_HANDLING_MODE" | "FEE_SCHEDULE_UNAVAILABLE" | "POLICY_UNAVAILABLE" | "CANCEL_ALL_AFTER_TIMEOUT_INVALID" | "CANCEL_SCOPE_TOO_LARGE" | "RATE_LIMIT_POLICY_UNAVAILABLE" | "SYSTEM_RATE_LIMITED" | "ORDER_MODIFY_IN_PROGRESS" | "ORDER_PLACEMENT_PENDING" | "INVALID_MODIFY_BEHAVIOR" | "BATCH_REPLACE_ONLY_REQUIRED" | "BATCH_SINGLE_SYMBOL_REQUIRED" | "REQUEST_RECEIPTS_EXHAUSTED" | "INTENT_ID_INVALID" | "DRY_RUN_INVALID" | "CANCEL_ALL_AFTER_SCOPE_CONFLICT" | "NEW_ACCOUNT_CAPACITY_REACHED" | "TRIGGER_CHILD_PRICE_NOT_MODIFIABLE" | "TRIGGER_GENERATIONS_EXHAUSTED" | "TRIGGER_CONTROL_SHARE_EXHAUSTED" | "TRIGGER_CONTROLS_BUSY" | "TRIGGER_TYPE_NOT_SUPPORTED" | "INVALID_TRIGGER_TYPE" | "TRIGGER_DIRECTION_INVALID" | "TRIGGER_QTY_INVALID" | "TRIGGER_BUY_REQUIRES_LIMIT" | "ACCOUNT_ROUTING_INVALID" | "TRIGGER_LIMIT_EXCEEDED" | "TRIGGER_CONTROL_IN_PROGRESS" | "TRIGGER_PATCH_EMPTY" | "CLIENT_TRIGGER_ID_INVALID" | "TRIGGER_ACTIVATION_PRICE_INVALID" | "SLIPPAGE_TICKS_INVALID" | "SLIPPAGE_BPS_INVALID" | "TRIGGER_CONTROL_OUTCOME_UNKNOWN" | "TRIGGER_CAPACITY_REACHED" | "RESERVATION_CAPACITY_REACHED" | "CLIENT_ORDER_ID_CAPACITY_REACHED" | "ACCOUNT_RESERVATION_LIMIT_REACHED" | "INVALID_TRIGGER_CONTROL" | "TRIGGER_PATCH_NOT_ALLOWED" | "TRIGGER_PATCH_FIELD_UNKNOWN" | "TRIGGER_PATCH_VALUE_UNMASKED" | "TRIGGER_PATCH_PRICE_MODE_INVALID" | "ACCOUNT_ORDERS_SUSPENDED" | "TRAILING_SIDE_NOT_SUPPORTED" | "TRAILING_CHILD_NOT_MARKET" | "TWAP_DURATION_INVALID" | "LIMIT_CHILD_SLIPPAGE_SET" | "SLIPPAGE_BOUNDS_CONFLICT" | "TWAP_INTERVAL_INVALID" | "LADDER_LEVEL_REJECTED" | "LADDER_RANGE_TOO_NARROW" | "LADDER_LEVELS_INVALID" | "ORDER_LIMITS_UNAVAILABLE" | "ORDER_TYPE_NOT_ALLOWED_IN_AUCTION" | "POST_ONLY_NOT_ALLOWED_IN_AUCTION" | "QUICKSWAP_FEE_DETAILS_INCOMPLETE" | "QUICKSWAP_MARKET_NOT_PRICED" | "QUICKSWAP_BROKER_FEE_TERMS_MISMATCH" | "QUICKSWAP_FEE_RECIPIENT_IS_PAYER" | "QUICKSWAP_BROKER_FEE_TERMS_UNAVAILABLE" | "QUICKSWAP_BROKER_ACCOUNT_UNAVAILABLE" | "QUICKSWAP_ACCOUNT_OWNER_UNKNOWN" | "QUICKSWAP_DISABLED" | "QUICKSWAP_ATTACHED_RISK_NOT_ALLOWED" | "QUICKSWAP_ORDER_NOT_MODIFIABLE" | "QUICKSWAP_FEE_TOTAL_TOO_HIGH" | "QUICKSWAP_BROKER_FEE_TERMS_INVALID" | "QUICKSWAP_BROKER_INVALID" | "QUICKSWAP_FEE_SCHEDULE_INVALID" | "QUICKSWAP_MARKET_FEE_INVALID" | "QUICKSWAP_SETUP_INVALID" | "QUICKSWAP_CAPACITY_REACHED" | "ATTACHED_EXIT_WORKING" | "MARKET_TRIGGER_LIMIT_EXCEEDED" | "MARKET_TWAP_LIMIT_EXCEEDED" | "MARKET_LADDER_LIMIT_EXCEEDED" | "CHILD_QTY_EXCEEDS_REMAINING" | "ORDER_CANCEL_OUTCOME_UNKNOWN" | "ORDER_MODIFY_OUTCOME_UNKNOWN" | "ORDER_REPAIRING" | "ACCOUNT_REPAIRING" | "TRIGGER_WOULD_TRIGGER_IMMEDIATELY" | "ORDER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_SYMBOL_MISMATCH" | "MAX_OPEN_ORDERS_PER_PAIR" | "ATTACHED_LEGS_EXCEEDED" | "FEE_ASSET_INVALID" | "FEE_CEILING_INVALID" | "UNSUPPORTED_FIELD_SET" | "TRIGGER_FIRE_LIMIT_REACHED" | "CONDITION_FLAGS_INVALID" | "CONDITION_PARAMETER_SET" | "TWAP_CAPACITY_REACHED" | "CHILD_ORDER_INCONSISTENT" | undefined;
|
|
701
701
|
symbolId: number;
|
|
702
702
|
clientOrderId: string;
|
|
703
703
|
status: "unspecified" | "canceled" | "pending" | "pending_cancel" | "working" | "filled" | "rejected" | "partial";
|
|
704
|
-
side: "
|
|
704
|
+
side: "buy" | "sell" | "unspecified";
|
|
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: "
|
|
783
|
+
sideLabel: "buy" | "sell" | "unspecified";
|
|
784
784
|
liquidityLabel: "maker" | "taker";
|
|
785
785
|
feeAsset: "unspecified" | "quote" | "base";
|
|
786
786
|
qty: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orders.codecs.js","names":[],"sources":["../../../src/services/orders/orders.codecs.ts"],"sourcesContent":["import * as ProtoRead from \"../../gen/orders/v1/orders_read_pb.js\";\nimport * as ProtoWrite from \"../../gen/orders/v1/orders_pb.js\";\nimport type { InputToProto, ProtoToOutput } from \"../../utils/types.js\";\nexport {\n FEE_ASSET_VALUES,\n FeeAssetCodec,\n type FeeAssetValue,\n ORDER_SIDE_VALUES,\n ORDER_TYPE_VALUES,\n OrderSideCodec,\n type OrderSideValue,\n OrderTypeCodec,\n type OrderTypeValue,\n SELF_TRADE_PREVENTION_MODE_VALUES,\n SelfTradePreventionModeCodec,\n type SelfTradePreventionModeValue,\n TIME_IN_FORCE_OUTPUT_VALUES,\n TIME_IN_FORCE_VALUES,\n TimeInForceCodec,\n type TimeInForceOutputValue,\n type TimeInForceValue,\n TRIGGER_PRICE_SOURCE_VALUES,\n TriggerPriceSourceCodec,\n type TriggerPriceSourceValue,\n} from \"./order-enums.codecs.js\";\n\nexport const ORDER_STATUS_FILTER_VALUES = [\"FILLED\", \"CANCELED\", \"REJECTED\"] as const;\nexport type OrderStatusFilterValue = (typeof ORDER_STATUS_FILTER_VALUES)[number];\n\nexport const ORDER_STATUS_VALUES = [\n \"pending\",\n \"pending_cancel\",\n \"working\",\n \"filled\",\n \"canceled\",\n \"rejected\",\n] as const;\nexport type OrderStatusValue = (typeof ORDER_STATUS_VALUES)[number];\n\nexport const ORDER_ORIGIN_SCOPE_VALUES = [\n \"direct\",\n \"attached_risk\",\n \"standalone_trigger\",\n \"system\",\n] as const;\nexport type OrderOriginScope = (typeof ORDER_ORIGIN_SCOPE_VALUES)[number];\n\nexport const ORDER_CANCEL_REASON_VALUES = [\n \"user_request\",\n \"ioc_remainder\",\n \"market_remainder\",\n \"stp_expire_maker\",\n \"stp_expire_taker\",\n \"stp_expire_both\",\n \"replaced\",\n \"gtd_expired\",\n \"qty_at_or_below_filled\",\n \"pair_drain\",\n \"attached_risk_refused\",\n \"cancel_all_after\",\n \"account_repair\",\n \"twap_rollover\",\n \"strategy_cancel\",\n \"system\",\n] as const;\nexport type OrderCancelReasonValue = (typeof ORDER_CANCEL_REASON_VALUES)[number];\n\nexport const OrderCancelReasonCodec = {\n protoToOutput: {\n [ProtoRead.CancelReason.UNSPECIFIED]: \"unspecified\",\n [ProtoRead.CancelReason.USER_REQUEST]: \"user_request\",\n [ProtoRead.CancelReason.IOC_REMAINDER]: \"ioc_remainder\",\n [ProtoRead.CancelReason.MARKET_REMAINDER]: \"market_remainder\",\n [ProtoRead.CancelReason.STP_EXPIRE_MAKER]: \"stp_expire_maker\",\n [ProtoRead.CancelReason.STP_EXPIRE_TAKER]: \"stp_expire_taker\",\n [ProtoRead.CancelReason.STP_EXPIRE_BOTH]: \"stp_expire_both\",\n [ProtoRead.CancelReason.REPLACED]: \"replaced\",\n [ProtoRead.CancelReason.GTD_EXPIRED]: \"gtd_expired\",\n [ProtoRead.CancelReason.QTY_AT_OR_BELOW_FILLED]: \"qty_at_or_below_filled\",\n [ProtoRead.CancelReason.PAIR_DRAIN]: \"pair_drain\",\n [ProtoRead.CancelReason.ATTACHED_RISK_REFUSED]: \"attached_risk_refused\",\n [ProtoRead.CancelReason.CANCEL_ALL_AFTER]: \"cancel_all_after\",\n [ProtoRead.CancelReason.ACCOUNT_REPAIR]: \"account_repair\",\n [ProtoRead.CancelReason.TWAP_ROLLOVER]: \"twap_rollover\",\n [ProtoRead.CancelReason.STRATEGY_CANCEL]: \"strategy_cancel\",\n [ProtoRead.CancelReason.SYSTEM]: \"system\",\n } satisfies ProtoToOutput<ProtoRead.CancelReason, OrderCancelReasonValue>,\n} as const;\n\nexport const ORDER_TRIGGER_TYPE_VALUES = [\n \"unspecified\",\n \"stop_loss\",\n \"take_profit\",\n \"trailing_stop\",\n \"twap\",\n \"ladder\",\n] as const;\nexport type OrderTriggerType = (typeof ORDER_TRIGGER_TYPE_VALUES)[number];\n\nexport const ATTACHED_RISK_LEG_STATUS_VALUES = [\n \"not_configured\",\n \"created\",\n \"armed\",\n \"running\",\n \"completed\",\n \"canceled\",\n \"failed\",\n \"paused\",\n] as const;\nexport type AttachedRiskLegStatusValue = (typeof ATTACHED_RISK_LEG_STATUS_VALUES)[number];\n\nexport const MODIFY_BEHAVIOR_VALUES = [\"AMEND_OR_REPLACE\", \"AMEND_ONLY\", \"REPLACE_ONLY\"] as const;\nexport type ModifyBehaviorValue = (typeof MODIFY_BEHAVIOR_VALUES)[number];\n\nexport const MODIFY_ACTION_VALUES = [\"AMENDED\", \"REPLACED\"] as const;\nexport type ModifyActionValue = (typeof MODIFY_ACTION_VALUES)[number];\n\nexport const BATCH_REPLACE_ADMISSION_STATUS_VALUES = [\n \"admitted\",\n \"partially_admitted\",\n \"rejected\",\n] as const;\nexport type BatchReplaceAdmissionStatusValue =\n (typeof BATCH_REPLACE_ADMISSION_STATUS_VALUES)[number];\n\nexport const BATCH_REPLACE_ITEM_ADMISSION_STATUS_VALUES = [\"admitted\", \"rejected\"] as const;\nexport type BatchReplaceItemAdmissionStatusValue =\n (typeof BATCH_REPLACE_ITEM_ADMISSION_STATUS_VALUES)[number];\n\nexport const BATCH_REPLACE_PHASE_VALUES = [\"admitted\", \"working\", \"rejected\", \"terminal\"] as const;\nexport type BatchReplacePhaseValue = (typeof BATCH_REPLACE_PHASE_VALUES)[number];\n\nexport const CancelOrderStatusCodec = {\n protoToOutput: {\n [ProtoWrite.CancelOrderResponse_Status.STATUS_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.CancelOrderResponse_Status.ACCEPTED]: \"accepted\",\n } satisfies ProtoToOutput<ProtoWrite.CancelOrderResponse_Status, \"accepted\">,\n} as const;\n\nexport const CancelAllOrdersStatusCodec = {\n protoToOutput: {\n [ProtoWrite.CancelAllOrdersResponse_Status.STATUS_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.CancelAllOrdersResponse_Status.SUBMITTED]: \"submitted\",\n [ProtoWrite.CancelAllOrdersResponse_Status.DRY_RUN]: \"dry_run\",\n } satisfies ProtoToOutput<ProtoWrite.CancelAllOrdersResponse_Status, \"submitted\" | \"dry_run\">,\n} as const;\n\nexport const CancelAllListingStatusCodec = {\n protoToOutput: {\n [ProtoWrite.CancelAllOrdersResponse_ListingStatus.LISTING_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.CancelAllOrdersResponse_ListingStatus.INCLUDED]: \"included\",\n [ProtoWrite.CancelAllOrdersResponse_ListingStatus.NOT_RETAINED_READ_OPEN_ORDERS]:\n \"not_retained_read_open_orders\",\n } satisfies ProtoToOutput<\n ProtoWrite.CancelAllOrdersResponse_ListingStatus,\n \"included\" | \"not_retained_read_open_orders\"\n >,\n} as const;\n\nexport const CancelAllAfterStatusCodec = {\n protoToOutput: {\n [ProtoWrite.CancelAllAfterResponse_Status.STATUS_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.CancelAllAfterResponse_Status.ARMED]: \"armed\",\n [ProtoWrite.CancelAllAfterResponse_Status.DISABLED]: \"disabled\",\n } satisfies ProtoToOutput<ProtoWrite.CancelAllAfterResponse_Status, \"armed\" | \"disabled\">,\n} as const;\n\nexport const BatchCancelOrderStatusCodec = {\n protoToOutput: {\n [ProtoWrite.BatchCancelResultItem_Status.STATUS_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.BatchCancelResultItem_Status.ACCEPTED]: \"accepted\",\n [ProtoWrite.BatchCancelResultItem_Status.REJECTED]: \"rejected\",\n } satisfies ProtoToOutput<ProtoWrite.BatchCancelResultItem_Status, \"accepted\" | \"rejected\">,\n} as const;\n\nexport const OrderStatusFilterCodec = {\n inputToProto: {\n FILLED: ProtoRead.OrderStatus.FILLED,\n CANCELED: ProtoRead.OrderStatus.CANCELED,\n REJECTED: ProtoRead.OrderStatus.REJECTED,\n } satisfies InputToProto<OrderStatusFilterValue, ProtoRead.OrderStatus>,\n} as const;\n\nexport const OrderStatusCodec = {\n protoToOutput: {\n [ProtoRead.OrderStatus.ORDER_STATUS_UNSPECIFIED]: \"unspecified\",\n [ProtoRead.OrderStatus.PENDING]: \"pending\",\n [ProtoRead.OrderStatus.PENDING_CANCEL]: \"pending_cancel\",\n [ProtoRead.OrderStatus.WORKING]: \"working\",\n [ProtoRead.OrderStatus.FILLED]: \"filled\",\n [ProtoRead.OrderStatus.CANCELED]: \"canceled\",\n [ProtoRead.OrderStatus.REJECTED]: \"rejected\",\n } satisfies ProtoToOutput<ProtoRead.OrderStatus, OrderStatusValue>,\n} as const;\n\nexport const OrderOriginScopeCodec = {\n protoToOutput: {\n [ProtoRead.OrderOriginScope.ORDER_ORIGIN_SCOPE_UNSPECIFIED]: \"unspecified\",\n [ProtoRead.OrderOriginScope.DIRECT]: \"direct\",\n [ProtoRead.OrderOriginScope.ATTACHED_RISK]: \"attached_risk\",\n [ProtoRead.OrderOriginScope.STANDALONE_TRIGGER]: \"standalone_trigger\",\n [ProtoRead.OrderOriginScope.SYSTEM]: \"system\",\n } satisfies ProtoToOutput<ProtoRead.OrderOriginScope, OrderOriginScope>,\n} as const;\n\nexport const OrderTriggerTypeCodec = {\n protoToOutput: {\n [ProtoRead.OrderTriggerType.ORDER_TRIGGER_TYPE_UNSPECIFIED]: \"unspecified\",\n [ProtoRead.OrderTriggerType.STOP_LOSS]: \"stop_loss\",\n [ProtoRead.OrderTriggerType.TAKE_PROFIT]: \"take_profit\",\n [ProtoRead.OrderTriggerType.TRAILING_STOP]: \"trailing_stop\",\n [ProtoRead.OrderTriggerType.TWAP]: \"twap\",\n [ProtoRead.OrderTriggerType.LADDER]: \"ladder\",\n } satisfies Record<ProtoRead.OrderTriggerType, OrderTriggerType>,\n} as const;\n\nexport const AttachedRiskLegStatusCodec = {\n protoToOutput: {\n [ProtoRead.AttachedRiskLegState_Status.STATUS_UNSPECIFIED]: \"unspecified\",\n [ProtoRead.AttachedRiskLegState_Status.NOT_CONFIGURED]: \"not_configured\",\n [ProtoRead.AttachedRiskLegState_Status.CREATED]: \"created\",\n [ProtoRead.AttachedRiskLegState_Status.ARMED]: \"armed\",\n [ProtoRead.AttachedRiskLegState_Status.RUNNING]: \"running\",\n [ProtoRead.AttachedRiskLegState_Status.COMPLETED]: \"completed\",\n [ProtoRead.AttachedRiskLegState_Status.CANCELED]: \"canceled\",\n [ProtoRead.AttachedRiskLegState_Status.FAILED]: \"failed\",\n [ProtoRead.AttachedRiskLegState_Status.PAUSED]: \"paused\",\n } satisfies ProtoToOutput<ProtoRead.AttachedRiskLegState_Status, AttachedRiskLegStatusValue>,\n} as const;\n\nexport const ModifyBehaviorCodec = {\n inputToProto: {\n AMEND_OR_REPLACE: ProtoWrite.ModifyBehavior.AMEND_OR_REPLACE,\n AMEND_ONLY: ProtoWrite.ModifyBehavior.AMEND_ONLY,\n REPLACE_ONLY: ProtoWrite.ModifyBehavior.REPLACE_ONLY,\n } satisfies InputToProto<ModifyBehaviorValue, ProtoWrite.ModifyBehavior>,\n} as const;\n\nexport const ModifyActionCodec = {\n protoToOutput: {\n [ProtoWrite.ModifyActionTaken.MODIFY_ACTION_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.ModifyActionTaken.AMENDED]: \"AMENDED\",\n [ProtoWrite.ModifyActionTaken.REPLACED]: \"REPLACED\",\n } satisfies ProtoToOutput<ProtoWrite.ModifyActionTaken, ModifyActionValue>,\n} as const;\n\nexport const BatchReplaceAdmissionStatusCodec = {\n protoToOutput: {\n [ProtoWrite.BatchReplaceAdmissionStatus.UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.BatchReplaceAdmissionStatus.ADMITTED]: \"admitted\",\n [ProtoWrite.BatchReplaceAdmissionStatus.PARTIALLY_ADMITTED]: \"partially_admitted\",\n [ProtoWrite.BatchReplaceAdmissionStatus.REJECTED]: \"rejected\",\n } satisfies ProtoToOutput<\n ProtoWrite.BatchReplaceAdmissionStatus,\n BatchReplaceAdmissionStatusValue\n >,\n} as const;\n\nexport const BatchReplaceItemAdmissionStatusCodec = {\n protoToOutput: {\n [ProtoWrite.BatchReplaceItemAdmissionStatus.UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.BatchReplaceItemAdmissionStatus.ADMITTED]: \"admitted\",\n [ProtoWrite.BatchReplaceItemAdmissionStatus.REJECTED]: \"rejected\",\n } satisfies ProtoToOutput<\n ProtoWrite.BatchReplaceItemAdmissionStatus,\n BatchReplaceItemAdmissionStatusValue\n >,\n} as const;\n\nexport const BatchReplacePhaseCodec = {\n protoToOutput: {\n [ProtoRead.BatchReplacePhase.UNSPECIFIED]: \"unspecified\",\n [ProtoRead.BatchReplacePhase.ADMITTED]: \"admitted\",\n [ProtoRead.BatchReplacePhase.WORKING]: \"working\",\n [ProtoRead.BatchReplacePhase.REJECTED]: \"rejected\",\n [ProtoRead.BatchReplacePhase.TERMINAL]: \"terminal\",\n } satisfies ProtoToOutput<ProtoRead.BatchReplacePhase, BatchReplacePhaseValue>,\n} as const;\n"],"mappings":";;;;AA0BA,MAAa,6BAA6B;CAAC;CAAU;CAAY;AAAU;AAyC3E,MAAa,yBAAyB,EAClC,eAAe;EAC2B,IAAA;EACC,IAAA;EACC,IAAA;EACG,IAAA;EACA,IAAA;EACA,IAAA;EACD,IAAA;EACP,IAAA;EACG,IAAA;EACW,IAAA;EACZ,KAAA;EACW,KAAA;EACL,KAAA;EACF,KAAA;EACD,KAAA;EACE,KAAA;EACT,KAAA;AACrC,EACJ;AAwBA,MAAa,yBAAyB;CAAC;CAAoB;CAAc;AAAc;AAqBvF,MAAa,yBAAyB,EAClC,eAAe;EACiD,IAAA;EACV,IAAA;AACtD,EACJ;AAEA,MAAa,6BAA6B,EACtC,eAAe;EACqD,IAAA;EACT,IAAA;EACF,IAAA;AACzD,EACJ;AAEA,MAAa,8BAA8B,EACvC,eAAe;EAC6D,IAAA;EACX,IAAA;EAEzD,IAAA;AACR,EAIJ;AAEA,MAAa,4BAA4B,EACrC,eAAe;EACoD,IAAA;EACb,IAAA;EACG,IAAA;AACzD,EACJ;AAEA,MAAa,8BAA8B,EACvC,eAAe;EACmD,IAAA;EACV,IAAA;EACA,IAAA;AACxD,EACJ;AAEA,MAAa,yBAAyB,EAClC,cAAc;CACV,QAAA;CACA,UAAA;CACA,UAAA;AACJ,EACJ;AAEA,MAAa,mBAAmB,EAC5B,eAAe;EACuC,IAAA;EACjB,IAAA;EACO,IAAA;EACP,IAAA;EACD,IAAA;EACE,IAAA;EACA,IAAA;AACtC,EACJ;AAEA,MAAa,wBAAwB,EACjC,eAAe;EACkD,IAAA;EACxB,IAAA;EACO,IAAA;EACK,IAAA;EACZ,IAAA;AACzC,EACJ;AAEA,MAAa,wBAAwB,EACjC,eAAe;EACkD,IAAA;EACrB,IAAA;EACE,IAAA;EACE,IAAA;EACT,IAAA;EACE,IAAA;AACzC,EACJ;AAEA,MAAa,6BAA6B,EACtC,eAAe;EACiD,IAAA;EACJ,IAAA;EACP,IAAA;EACF,IAAA;EACE,IAAA;EACE,IAAA;EACD,IAAA;EACF,IAAA;EACA,IAAA;AACpD,EACJ;AAEA,MAAa,sBAAsB,EAC/B,cAAc;CACV,kBAAA;CACA,YAAA;CACA,cAAA;AACJ,EACJ;AAEA,MAAa,oBAAoB,EAC7B,eAAe;EAC+C,IAAA;EAClB,IAAA;EACC,IAAA;AAC7C,EACJ;AAEA,MAAa,mCAAmC,EAC5C,eAAe;EAC2C,IAAA;EACH,IAAA;EACU,IAAA;EACV,IAAA;AACvD,EAIJ;AAEA,MAAa,uCAAuC,EAChD,eAAe;EAC+C,IAAA;EACH,IAAA;EACA,IAAA;AAC3D,EAIJ;AAEA,MAAa,yBAAyB,EAClC,eAAe;EACgC,IAAA;EACH,IAAA;EACD,IAAA;EACC,IAAA;EACA,IAAA;AAC5C,EACJ"}
|
|
1
|
+
{"version":3,"file":"orders.codecs.js","names":[],"sources":["../../../src/services/orders/orders.codecs.ts"],"sourcesContent":["import * as ProtoRead from \"../../gen/orders/v1/orders_read_pb.js\";\nimport * as ProtoWrite from \"../../gen/orders/v1/orders_pb.js\";\nimport type { InputToProto, ProtoToOutput } from \"../../utils/types.js\";\nexport {\n FEE_ASSET_VALUES,\n FeeAssetCodec,\n type FeeAssetValue,\n ORDER_SIDE_VALUES,\n ORDER_TYPE_VALUES,\n OrderSideCodec,\n type OrderSideValue,\n OrderTypeCodec,\n type OrderTypeValue,\n SELF_TRADE_PREVENTION_MODE_VALUES,\n SelfTradePreventionModeCodec,\n type SelfTradePreventionModeValue,\n TIME_IN_FORCE_OUTPUT_VALUES,\n TIME_IN_FORCE_VALUES,\n TimeInForceCodec,\n type TimeInForceOutputValue,\n type TimeInForceValue,\n TRIGGER_PRICE_SOURCE_VALUES,\n TriggerPriceSourceCodec,\n type TriggerPriceSourceValue,\n} from \"./order-enums.codecs.js\";\n\nexport const ORDER_STATUS_FILTER_VALUES = [\"FILLED\", \"CANCELED\", \"REJECTED\"] as const;\nexport type OrderStatusFilterValue = (typeof ORDER_STATUS_FILTER_VALUES)[number];\n\nexport const ORDER_STATUS_VALUES = [\n \"pending\",\n \"pending_cancel\",\n \"working\",\n \"filled\",\n \"canceled\",\n \"rejected\",\n] as const;\nexport type OrderStatusValue = (typeof ORDER_STATUS_VALUES)[number];\n\nexport const ORDER_ORIGIN_SCOPE_VALUES = [\n \"direct\",\n \"attached_risk\",\n \"standalone_trigger\",\n \"system\",\n] as const;\nexport type OrderOriginScope = (typeof ORDER_ORIGIN_SCOPE_VALUES)[number];\n\nexport const ORDER_CANCEL_REASON_VALUES = [\n \"user_request\",\n \"ioc_remainder\",\n \"market_remainder\",\n \"stp_expire_maker\",\n \"stp_expire_taker\",\n \"stp_expire_both\",\n \"replaced\",\n \"gtd_expired\",\n \"qty_at_or_below_filled\",\n \"pair_drain\",\n \"attached_risk_refused\",\n \"cancel_all_after\",\n \"account_repair\",\n \"twap_rollover\",\n \"strategy_cancel\",\n \"market_halted\",\n \"system\",\n] as const;\nexport type OrderCancelReasonValue = (typeof ORDER_CANCEL_REASON_VALUES)[number];\n\nexport const OrderCancelReasonCodec = {\n protoToOutput: {\n [ProtoRead.CancelReason.UNSPECIFIED]: \"unspecified\",\n [ProtoRead.CancelReason.USER_REQUEST]: \"user_request\",\n [ProtoRead.CancelReason.IOC_REMAINDER]: \"ioc_remainder\",\n [ProtoRead.CancelReason.MARKET_REMAINDER]: \"market_remainder\",\n [ProtoRead.CancelReason.STP_EXPIRE_MAKER]: \"stp_expire_maker\",\n [ProtoRead.CancelReason.STP_EXPIRE_TAKER]: \"stp_expire_taker\",\n [ProtoRead.CancelReason.STP_EXPIRE_BOTH]: \"stp_expire_both\",\n [ProtoRead.CancelReason.REPLACED]: \"replaced\",\n [ProtoRead.CancelReason.GTD_EXPIRED]: \"gtd_expired\",\n [ProtoRead.CancelReason.QTY_AT_OR_BELOW_FILLED]: \"qty_at_or_below_filled\",\n [ProtoRead.CancelReason.PAIR_DRAIN]: \"pair_drain\",\n [ProtoRead.CancelReason.ATTACHED_RISK_REFUSED]: \"attached_risk_refused\",\n [ProtoRead.CancelReason.CANCEL_ALL_AFTER]: \"cancel_all_after\",\n [ProtoRead.CancelReason.ACCOUNT_REPAIR]: \"account_repair\",\n [ProtoRead.CancelReason.TWAP_ROLLOVER]: \"twap_rollover\",\n [ProtoRead.CancelReason.STRATEGY_CANCEL]: \"strategy_cancel\",\n [ProtoRead.CancelReason.MARKET_HALTED]: \"market_halted\",\n [ProtoRead.CancelReason.SYSTEM]: \"system\",\n } satisfies ProtoToOutput<ProtoRead.CancelReason, OrderCancelReasonValue>,\n} as const;\n\nexport const ORDER_TRIGGER_TYPE_VALUES = [\n \"unspecified\",\n \"stop_loss\",\n \"take_profit\",\n \"trailing_stop\",\n \"twap\",\n \"ladder\",\n] as const;\nexport type OrderTriggerType = (typeof ORDER_TRIGGER_TYPE_VALUES)[number];\n\nexport const ATTACHED_RISK_LEG_STATUS_VALUES = [\n \"not_configured\",\n \"created\",\n \"armed\",\n \"running\",\n \"completed\",\n \"canceled\",\n \"failed\",\n \"paused\",\n] as const;\nexport type AttachedRiskLegStatusValue = (typeof ATTACHED_RISK_LEG_STATUS_VALUES)[number];\n\nexport const MODIFY_BEHAVIOR_VALUES = [\"AMEND_OR_REPLACE\", \"AMEND_ONLY\", \"REPLACE_ONLY\"] as const;\nexport type ModifyBehaviorValue = (typeof MODIFY_BEHAVIOR_VALUES)[number];\n\nexport const MODIFY_ACTION_VALUES = [\"AMENDED\", \"REPLACED\"] as const;\nexport type ModifyActionValue = (typeof MODIFY_ACTION_VALUES)[number];\n\nexport const BATCH_REPLACE_ADMISSION_STATUS_VALUES = [\n \"admitted\",\n \"partially_admitted\",\n \"rejected\",\n] as const;\nexport type BatchReplaceAdmissionStatusValue =\n (typeof BATCH_REPLACE_ADMISSION_STATUS_VALUES)[number];\n\nexport const BATCH_REPLACE_ITEM_ADMISSION_STATUS_VALUES = [\"admitted\", \"rejected\"] as const;\nexport type BatchReplaceItemAdmissionStatusValue =\n (typeof BATCH_REPLACE_ITEM_ADMISSION_STATUS_VALUES)[number];\n\nexport const BATCH_REPLACE_PHASE_VALUES = [\"admitted\", \"working\", \"rejected\", \"terminal\"] as const;\nexport type BatchReplacePhaseValue = (typeof BATCH_REPLACE_PHASE_VALUES)[number];\n\nexport const CancelOrderStatusCodec = {\n protoToOutput: {\n [ProtoWrite.CancelOrderResponse_Status.STATUS_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.CancelOrderResponse_Status.ACCEPTED]: \"accepted\",\n } satisfies ProtoToOutput<ProtoWrite.CancelOrderResponse_Status, \"accepted\">,\n} as const;\n\nexport const CancelAllOrdersStatusCodec = {\n protoToOutput: {\n [ProtoWrite.CancelAllOrdersResponse_Status.STATUS_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.CancelAllOrdersResponse_Status.SUBMITTED]: \"submitted\",\n [ProtoWrite.CancelAllOrdersResponse_Status.DRY_RUN]: \"dry_run\",\n } satisfies ProtoToOutput<ProtoWrite.CancelAllOrdersResponse_Status, \"submitted\" | \"dry_run\">,\n} as const;\n\nexport const CancelAllListingStatusCodec = {\n protoToOutput: {\n [ProtoWrite.CancelAllOrdersResponse_ListingStatus.LISTING_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.CancelAllOrdersResponse_ListingStatus.INCLUDED]: \"included\",\n [ProtoWrite.CancelAllOrdersResponse_ListingStatus.NOT_RETAINED_READ_OPEN_ORDERS]:\n \"not_retained_read_open_orders\",\n } satisfies ProtoToOutput<\n ProtoWrite.CancelAllOrdersResponse_ListingStatus,\n \"included\" | \"not_retained_read_open_orders\"\n >,\n} as const;\n\nexport const CancelAllAfterStatusCodec = {\n protoToOutput: {\n [ProtoWrite.CancelAllAfterResponse_Status.STATUS_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.CancelAllAfterResponse_Status.ARMED]: \"armed\",\n [ProtoWrite.CancelAllAfterResponse_Status.DISABLED]: \"disabled\",\n } satisfies ProtoToOutput<ProtoWrite.CancelAllAfterResponse_Status, \"armed\" | \"disabled\">,\n} as const;\n\nexport const BatchCancelOrderStatusCodec = {\n protoToOutput: {\n [ProtoWrite.BatchCancelResultItem_Status.STATUS_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.BatchCancelResultItem_Status.ACCEPTED]: \"accepted\",\n [ProtoWrite.BatchCancelResultItem_Status.REJECTED]: \"rejected\",\n } satisfies ProtoToOutput<ProtoWrite.BatchCancelResultItem_Status, \"accepted\" | \"rejected\">,\n} as const;\n\nexport const OrderStatusFilterCodec = {\n inputToProto: {\n FILLED: ProtoRead.OrderStatus.FILLED,\n CANCELED: ProtoRead.OrderStatus.CANCELED,\n REJECTED: ProtoRead.OrderStatus.REJECTED,\n } satisfies InputToProto<OrderStatusFilterValue, ProtoRead.OrderStatus>,\n} as const;\n\nexport const OrderStatusCodec = {\n protoToOutput: {\n [ProtoRead.OrderStatus.ORDER_STATUS_UNSPECIFIED]: \"unspecified\",\n [ProtoRead.OrderStatus.PENDING]: \"pending\",\n [ProtoRead.OrderStatus.PENDING_CANCEL]: \"pending_cancel\",\n [ProtoRead.OrderStatus.WORKING]: \"working\",\n [ProtoRead.OrderStatus.FILLED]: \"filled\",\n [ProtoRead.OrderStatus.CANCELED]: \"canceled\",\n [ProtoRead.OrderStatus.REJECTED]: \"rejected\",\n } satisfies ProtoToOutput<ProtoRead.OrderStatus, OrderStatusValue>,\n} as const;\n\nexport const OrderOriginScopeCodec = {\n protoToOutput: {\n [ProtoRead.OrderOriginScope.ORDER_ORIGIN_SCOPE_UNSPECIFIED]: \"unspecified\",\n [ProtoRead.OrderOriginScope.DIRECT]: \"direct\",\n [ProtoRead.OrderOriginScope.ATTACHED_RISK]: \"attached_risk\",\n [ProtoRead.OrderOriginScope.STANDALONE_TRIGGER]: \"standalone_trigger\",\n [ProtoRead.OrderOriginScope.SYSTEM]: \"system\",\n } satisfies ProtoToOutput<ProtoRead.OrderOriginScope, OrderOriginScope>,\n} as const;\n\nexport const OrderTriggerTypeCodec = {\n protoToOutput: {\n [ProtoRead.OrderTriggerType.ORDER_TRIGGER_TYPE_UNSPECIFIED]: \"unspecified\",\n [ProtoRead.OrderTriggerType.STOP_LOSS]: \"stop_loss\",\n [ProtoRead.OrderTriggerType.TAKE_PROFIT]: \"take_profit\",\n [ProtoRead.OrderTriggerType.TRAILING_STOP]: \"trailing_stop\",\n [ProtoRead.OrderTriggerType.TWAP]: \"twap\",\n [ProtoRead.OrderTriggerType.LADDER]: \"ladder\",\n } satisfies Record<ProtoRead.OrderTriggerType, OrderTriggerType>,\n} as const;\n\nexport const AttachedRiskLegStatusCodec = {\n protoToOutput: {\n [ProtoRead.AttachedRiskLegState_Status.STATUS_UNSPECIFIED]: \"unspecified\",\n [ProtoRead.AttachedRiskLegState_Status.NOT_CONFIGURED]: \"not_configured\",\n [ProtoRead.AttachedRiskLegState_Status.CREATED]: \"created\",\n [ProtoRead.AttachedRiskLegState_Status.ARMED]: \"armed\",\n [ProtoRead.AttachedRiskLegState_Status.RUNNING]: \"running\",\n [ProtoRead.AttachedRiskLegState_Status.COMPLETED]: \"completed\",\n [ProtoRead.AttachedRiskLegState_Status.CANCELED]: \"canceled\",\n [ProtoRead.AttachedRiskLegState_Status.FAILED]: \"failed\",\n [ProtoRead.AttachedRiskLegState_Status.PAUSED]: \"paused\",\n } satisfies ProtoToOutput<ProtoRead.AttachedRiskLegState_Status, AttachedRiskLegStatusValue>,\n} as const;\n\nexport const ModifyBehaviorCodec = {\n inputToProto: {\n AMEND_OR_REPLACE: ProtoWrite.ModifyBehavior.AMEND_OR_REPLACE,\n AMEND_ONLY: ProtoWrite.ModifyBehavior.AMEND_ONLY,\n REPLACE_ONLY: ProtoWrite.ModifyBehavior.REPLACE_ONLY,\n } satisfies InputToProto<ModifyBehaviorValue, ProtoWrite.ModifyBehavior>,\n} as const;\n\nexport const ModifyActionCodec = {\n protoToOutput: {\n [ProtoWrite.ModifyActionTaken.MODIFY_ACTION_UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.ModifyActionTaken.AMENDED]: \"AMENDED\",\n [ProtoWrite.ModifyActionTaken.REPLACED]: \"REPLACED\",\n } satisfies ProtoToOutput<ProtoWrite.ModifyActionTaken, ModifyActionValue>,\n} as const;\n\nexport const BatchReplaceAdmissionStatusCodec = {\n protoToOutput: {\n [ProtoWrite.BatchReplaceAdmissionStatus.UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.BatchReplaceAdmissionStatus.ADMITTED]: \"admitted\",\n [ProtoWrite.BatchReplaceAdmissionStatus.PARTIALLY_ADMITTED]: \"partially_admitted\",\n [ProtoWrite.BatchReplaceAdmissionStatus.REJECTED]: \"rejected\",\n } satisfies ProtoToOutput<\n ProtoWrite.BatchReplaceAdmissionStatus,\n BatchReplaceAdmissionStatusValue\n >,\n} as const;\n\nexport const BatchReplaceItemAdmissionStatusCodec = {\n protoToOutput: {\n [ProtoWrite.BatchReplaceItemAdmissionStatus.UNSPECIFIED]: \"unspecified\",\n [ProtoWrite.BatchReplaceItemAdmissionStatus.ADMITTED]: \"admitted\",\n [ProtoWrite.BatchReplaceItemAdmissionStatus.REJECTED]: \"rejected\",\n } satisfies ProtoToOutput<\n ProtoWrite.BatchReplaceItemAdmissionStatus,\n BatchReplaceItemAdmissionStatusValue\n >,\n} as const;\n\nexport const BatchReplacePhaseCodec = {\n protoToOutput: {\n [ProtoRead.BatchReplacePhase.UNSPECIFIED]: \"unspecified\",\n [ProtoRead.BatchReplacePhase.ADMITTED]: \"admitted\",\n [ProtoRead.BatchReplacePhase.WORKING]: \"working\",\n [ProtoRead.BatchReplacePhase.REJECTED]: \"rejected\",\n [ProtoRead.BatchReplacePhase.TERMINAL]: \"terminal\",\n } satisfies ProtoToOutput<ProtoRead.BatchReplacePhase, BatchReplacePhaseValue>,\n} as const;\n"],"mappings":";;;;AA0BA,MAAa,6BAA6B;CAAC;CAAU;CAAY;AAAU;AA0C3E,MAAa,yBAAyB,EAClC,eAAe;EAC2B,IAAA;EACC,IAAA;EACC,IAAA;EACG,IAAA;EACA,IAAA;EACA,IAAA;EACD,IAAA;EACP,IAAA;EACG,IAAA;EACW,IAAA;EACZ,KAAA;EACW,KAAA;EACL,KAAA;EACF,KAAA;EACD,KAAA;EACE,KAAA;EACF,KAAA;EACP,KAAA;AACrC,EACJ;AAwBA,MAAa,yBAAyB;CAAC;CAAoB;CAAc;AAAc;AAqBvF,MAAa,yBAAyB,EAClC,eAAe;EACiD,IAAA;EACV,IAAA;AACtD,EACJ;AAEA,MAAa,6BAA6B,EACtC,eAAe;EACqD,IAAA;EACT,IAAA;EACF,IAAA;AACzD,EACJ;AAEA,MAAa,8BAA8B,EACvC,eAAe;EAC6D,IAAA;EACX,IAAA;EAEzD,IAAA;AACR,EAIJ;AAEA,MAAa,4BAA4B,EACrC,eAAe;EACoD,IAAA;EACb,IAAA;EACG,IAAA;AACzD,EACJ;AAEA,MAAa,8BAA8B,EACvC,eAAe;EACmD,IAAA;EACV,IAAA;EACA,IAAA;AACxD,EACJ;AAEA,MAAa,yBAAyB,EAClC,cAAc;CACV,QAAA;CACA,UAAA;CACA,UAAA;AACJ,EACJ;AAEA,MAAa,mBAAmB,EAC5B,eAAe;EACuC,IAAA;EACjB,IAAA;EACO,IAAA;EACP,IAAA;EACD,IAAA;EACE,IAAA;EACA,IAAA;AACtC,EACJ;AAEA,MAAa,wBAAwB,EACjC,eAAe;EACkD,IAAA;EACxB,IAAA;EACO,IAAA;EACK,IAAA;EACZ,IAAA;AACzC,EACJ;AAEA,MAAa,wBAAwB,EACjC,eAAe;EACkD,IAAA;EACrB,IAAA;EACE,IAAA;EACE,IAAA;EACT,IAAA;EACE,IAAA;AACzC,EACJ;AAEA,MAAa,6BAA6B,EACtC,eAAe;EACiD,IAAA;EACJ,IAAA;EACP,IAAA;EACF,IAAA;EACE,IAAA;EACE,IAAA;EACD,IAAA;EACF,IAAA;EACA,IAAA;AACpD,EACJ;AAEA,MAAa,sBAAsB,EAC/B,cAAc;CACV,kBAAA;CACA,YAAA;CACA,cAAA;AACJ,EACJ;AAEA,MAAa,oBAAoB,EAC7B,eAAe;EAC+C,IAAA;EAClB,IAAA;EACC,IAAA;AAC7C,EACJ;AAEA,MAAa,mCAAmC,EAC5C,eAAe;EAC2C,IAAA;EACH,IAAA;EACU,IAAA;EACV,IAAA;AACvD,EAIJ;AAEA,MAAa,uCAAuC,EAChD,eAAe;EAC+C,IAAA;EACH,IAAA;EACA,IAAA;AAC3D,EAIJ;AAEA,MAAa,yBAAyB,EAClC,eAAe;EACgC,IAAA;EACH,IAAA;EACD,IAAA;EACC,IAAA;EACA,IAAA;AAC5C,EACJ"}
|
|
@@ -13,7 +13,7 @@ declare const SubaccountPermissionDefinitionSchema: v.ObjectSchema<{
|
|
|
13
13
|
}, undefined>;
|
|
14
14
|
type SubaccountPermissionDefinition = v.InferOutput<typeof SubaccountPermissionDefinitionSchema>;
|
|
15
15
|
declare const SubaccountRoleDefinitionSchema: v.ObjectSchema<{
|
|
16
|
-
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
16
|
+
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
17
17
|
readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
18
18
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
19
19
|
readonly assignable: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
@@ -28,7 +28,7 @@ declare const SubaccountRoleCatalogSchema: v.ObjectSchema<{
|
|
|
28
28
|
readonly policyAction: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "swap" | "trade-spot" | "internal-transfer" | "external-withdraw" | "read-balances" | "read-spot" | "read-internal-transfers" | "read-address-book" | "manage-address-book" | "read-auto-withdraw" | "manage-auto-withdraw">]>;
|
|
29
29
|
}, undefined>, undefined>, readonly []>;
|
|
30
30
|
readonly roles: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
31
|
-
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
31
|
+
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
32
32
|
readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
33
33
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
34
34
|
readonly assignable: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
@@ -37,7 +37,7 @@ declare const SubaccountRoleCatalogSchema: v.ObjectSchema<{
|
|
|
37
37
|
}, undefined>;
|
|
38
38
|
type SubaccountRoleCatalog = v.InferOutput<typeof SubaccountRoleCatalogSchema>;
|
|
39
39
|
declare const EffectiveSubaccountPermissionsSchema: v.ObjectSchema<{
|
|
40
|
-
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
40
|
+
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
41
41
|
readonly permissions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "internal_transfer" | "read_subaccount" | "update_subaccount" | "read_balances" | "read_spot" | "trade_spot" | "read_internal_transfers" | "external_withdraw" | "read_address_book" | "manage_address_book" | "read_members" | "manage_members" | "read_invites" | "manage_invites" | "read_api_keys" | "manage_api_keys" | "read_subaccount_policy" | "manage_subaccount_policy" | "read_activity" | "read_activity_security_details" | "manage_member_mfa_requirement" | "create_deposit_address" | "read_deposit_addresses" | "read_guard_signer_status" | "manage_guard_signer" | "read_auto_withdraw" | "manage_auto_withdraw" | "swap">]>, undefined>, readonly []>;
|
|
42
42
|
readonly subaccountPolicyId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
43
43
|
}, undefined>;
|
|
@@ -158,7 +158,7 @@ declare const ProtoSubaccountStatusSchema: v.SchemaWithPipe<readonly [v.NumberSc
|
|
|
158
158
|
type SubaccountStatus = v.InferOutput<typeof ProtoSubaccountStatusSchema>;
|
|
159
159
|
declare const SubaccountSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
160
160
|
readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
161
|
-
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
161
|
+
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
162
162
|
readonly label: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
163
163
|
readonly icon: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
164
164
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -177,7 +177,7 @@ declare const SubaccountSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
177
177
|
readonly revision: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
178
178
|
}, undefined>, v.TransformAction<{
|
|
179
179
|
id: string;
|
|
180
|
-
role: "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
180
|
+
role: "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer";
|
|
181
181
|
label: string;
|
|
182
182
|
icon: string;
|
|
183
183
|
color: string;
|
|
@@ -198,7 +198,7 @@ declare const SubaccountSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
198
198
|
updatedAt: number | undefined;
|
|
199
199
|
updatedAtNs: string | undefined;
|
|
200
200
|
id: string;
|
|
201
|
-
role: "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
201
|
+
role: "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer";
|
|
202
202
|
label: string;
|
|
203
203
|
icon: string;
|
|
204
204
|
color: string;
|
|
@@ -215,7 +215,7 @@ declare const SubaccountSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
215
215
|
type Subaccount = v.InferOutput<typeof SubaccountSchema>;
|
|
216
216
|
declare const SubaccountMemberSchema: v.ObjectSchema<{
|
|
217
217
|
readonly accountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
218
|
-
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
218
|
+
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
219
219
|
readonly username: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
220
220
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
221
221
|
readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
@@ -227,7 +227,7 @@ declare const SubaccountInviteSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
227
227
|
readonly subaccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
228
228
|
readonly granteeAccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
229
229
|
readonly inviterAccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
230
|
-
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
230
|
+
readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
231
231
|
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "cancelled" | "pending" | "accepted" | "declined">]>;
|
|
232
232
|
readonly createdAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
233
233
|
readonly seconds: v.BigintSchema<undefined>;
|
|
@@ -254,7 +254,7 @@ declare const SubaccountInviteSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
254
254
|
subaccountId: string;
|
|
255
255
|
granteeAccountId: string;
|
|
256
256
|
inviterAccountId: string;
|
|
257
|
-
role: "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
257
|
+
role: "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer";
|
|
258
258
|
status: "unspecified" | "cancelled" | "pending" | "accepted" | "declined";
|
|
259
259
|
createdAt?: number | undefined;
|
|
260
260
|
respondedAt?: number | undefined;
|
|
@@ -272,7 +272,7 @@ declare const SubaccountInviteSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
272
272
|
id: string;
|
|
273
273
|
granteeAccountId: string;
|
|
274
274
|
inviterAccountId: string;
|
|
275
|
-
role: "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
275
|
+
role: "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer";
|
|
276
276
|
status: "unspecified" | "cancelled" | "pending" | "accepted" | "declined";
|
|
277
277
|
createdAt?: number | undefined;
|
|
278
278
|
respondedAt?: number | 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: "
|
|
65
|
+
sideLabel: "buy" | "sell" | "unspecified";
|
|
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.
|
|
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.MaxValueIssue<number, 1000> | v.NeverIssue | 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.MaxValueIssue<number, 1000> | v.NeverIssue> | 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.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;
|