@polyester/sdk 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/core-client.d.ts +9 -0
- package/dist/core-client.d.ts.map +1 -1
- package/dist/core-client.js +21 -0
- package/dist/core-client.js.map +1 -1
- package/dist/gen/fees/v1/fees_pb.d.ts +124 -0
- package/dist/gen/fees/v1/fees_pb.d.ts.map +1 -0
- package/dist/gen/fees/v1/fees_pb.js +39 -0
- package/dist/gen/fees/v1/fees_pb.js.map +1 -0
- package/dist/gen/index.d.ts +4 -1
- package/dist/gen/index.js +4 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +223 -0
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts.map +1 -0
- package/dist/gen/ratelimit/v1/ratelimit_pb.js +86 -0
- package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -0
- package/dist/gen/vip/v1/vip_pb.d.ts +277 -0
- package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -0
- package/dist/gen/vip/v1/vip_pb.js +60 -0
- package/dist/gen/vip/v1/vip_pb.js.map +1 -0
- package/dist/index.d.ts +8 -1
- package/dist/services/fees/fees.d.ts +19 -0
- package/dist/services/fees/fees.d.ts.map +1 -0
- package/dist/services/fees/fees.js +32 -0
- package/dist/services/fees/fees.js.map +1 -0
- package/dist/services/fees/fees.schemas.d.ts +28 -0
- package/dist/services/fees/fees.schemas.d.ts.map +1 -0
- package/dist/services/fees/fees.schemas.js +25 -0
- package/dist/services/fees/fees.schemas.js.map +1 -0
- package/dist/services/fees/fees.types.d.ts +2 -0
- package/dist/services/fees/index.d.ts +3 -0
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +14 -14
- package/dist/services/orders/orders-output.schemas.d.ts +6 -6
- package/dist/services/rate-limits/index.d.ts +4 -0
- package/dist/services/rate-limits/rate-limits.codecs.d.ts +6 -0
- package/dist/services/rate-limits/rate-limits.codecs.d.ts.map +1 -0
- package/dist/services/rate-limits/rate-limits.codecs.js +11 -0
- package/dist/services/rate-limits/rate-limits.codecs.js.map +1 -0
- package/dist/services/rate-limits/rate-limits.d.ts +24 -0
- package/dist/services/rate-limits/rate-limits.d.ts.map +1 -0
- package/dist/services/rate-limits/rate-limits.js +40 -0
- package/dist/services/rate-limits/rate-limits.js.map +1 -0
- package/dist/services/rate-limits/rate-limits.schemas.d.ts +58 -0
- package/dist/services/rate-limits/rate-limits.schemas.d.ts.map +1 -0
- package/dist/services/rate-limits/rate-limits.schemas.js +30 -0
- package/dist/services/rate-limits/rate-limits.schemas.js.map +1 -0
- package/dist/services/rate-limits/rate-limits.types.d.ts +3 -0
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +5 -5
- package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +13 -13
- package/dist/services/vip/index.d.ts +3 -0
- package/dist/services/vip/vip.d.ts +22 -0
- package/dist/services/vip/vip.d.ts.map +1 -0
- package/dist/services/vip/vip.js +35 -0
- package/dist/services/vip/vip.js.map +1 -0
- package/dist/services/vip/vip.schemas.d.ts +90 -0
- package/dist/services/vip/vip.schemas.d.ts.map +1 -0
- package/dist/services/vip/vip.schemas.js +47 -0
- package/dist/services/vip/vip.schemas.js.map +1 -0
- package/dist/services/vip/vip.types.d.ts +2 -0
- package/dist/wired-services.d.ts.map +1 -1
- package/dist/wired-services.js +6 -0
- package/dist/wired-services.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { Message } from "@bufbuild/protobuf";
|
|
2
|
+
import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
3
|
+
import { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
+
declare namespace ratelimit_pb_d_exports {
|
|
5
|
+
export { GetRateLimitConfigRequest, GetRateLimitConfigRequestSchema, GetRateLimitConfigResponse, GetRateLimitConfigResponseSchema, GetTradingRateLimitsRequest, GetTradingRateLimitsRequestSchema, GetTradingRateLimitsResponse, GetTradingRateLimitsResponseSchema, RateLimitService, TradingRateLimitClass, TradingRateLimitClassSchema, TradingRateLimitRule, TradingRateLimitRuleSchema, file_ratelimit_v1_ratelimit };
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file ratelimit/v1/ratelimit.proto.
|
|
9
|
+
*/
|
|
10
|
+
declare const file_ratelimit_v1_ratelimit: GenFile;
|
|
11
|
+
/**
|
|
12
|
+
* TradingRateLimitRule describes one weighted placement or cancellation quota
|
|
13
|
+
* for one VIP tier.
|
|
14
|
+
*
|
|
15
|
+
* @generated from message ratelimit.v1.TradingRateLimitRule
|
|
16
|
+
*/
|
|
17
|
+
type TradingRateLimitRule = Message<"ratelimit.v1.TradingRateLimitRule"> & {
|
|
18
|
+
/**
|
|
19
|
+
* Trading operation family governed by this rule. Public responses contain
|
|
20
|
+
* TRADING_RATE_LIMIT_CLASS_PLACE or TRADING_RATE_LIMIT_CLASS_CANCEL.
|
|
21
|
+
*
|
|
22
|
+
* @generated from field: ratelimit.v1.TradingRateLimitClass policy_class = 1;
|
|
23
|
+
*/
|
|
24
|
+
policyClass: TradingRateLimitClass;
|
|
25
|
+
/**
|
|
26
|
+
* VIP tier for this rule, in the inclusive range 0 through 10.
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: uint32 tier = 2;
|
|
29
|
+
*/
|
|
30
|
+
tier: number;
|
|
31
|
+
/**
|
|
32
|
+
* Weighted request capacity available during each policy period. One
|
|
33
|
+
* operation consumes the weight assigned to that operation.
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: uint64 quota_weight = 3;
|
|
36
|
+
*/
|
|
37
|
+
quotaWeight: bigint;
|
|
38
|
+
/**
|
|
39
|
+
* Policy period duration in milliseconds.
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: uint64 period_ms = 4;
|
|
42
|
+
*/
|
|
43
|
+
periodMs: bigint;
|
|
44
|
+
/**
|
|
45
|
+
* Maximum weighted capacity that may be consumed in a burst.
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: uint64 burst_weight = 5;
|
|
48
|
+
*/
|
|
49
|
+
burstWeight: bigint;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Describes the message ratelimit.v1.TradingRateLimitRule.
|
|
53
|
+
* Use `create(TradingRateLimitRuleSchema)` to create a new message.
|
|
54
|
+
*/
|
|
55
|
+
declare const TradingRateLimitRuleSchema: GenMessage<TradingRateLimitRule>;
|
|
56
|
+
/**
|
|
57
|
+
* GetRateLimitConfigRequest requests the complete active public trading
|
|
58
|
+
* rate-limit catalog.
|
|
59
|
+
*
|
|
60
|
+
* @generated from message ratelimit.v1.GetRateLimitConfigRequest
|
|
61
|
+
*/
|
|
62
|
+
type GetRateLimitConfigRequest = Message<"ratelimit.v1.GetRateLimitConfigRequest"> & {};
|
|
63
|
+
/**
|
|
64
|
+
* Describes the message ratelimit.v1.GetRateLimitConfigRequest.
|
|
65
|
+
* Use `create(GetRateLimitConfigRequestSchema)` to create a new message.
|
|
66
|
+
*/
|
|
67
|
+
declare const GetRateLimitConfigRequestSchema: GenMessage<GetRateLimitConfigRequest>;
|
|
68
|
+
/**
|
|
69
|
+
* GetRateLimitConfigResponse contains all placement and cancellation rules for
|
|
70
|
+
* one complete policy version.
|
|
71
|
+
*
|
|
72
|
+
* @generated from message ratelimit.v1.GetRateLimitConfigResponse
|
|
73
|
+
*/
|
|
74
|
+
type GetRateLimitConfigResponse = Message<"ratelimit.v1.GetRateLimitConfigResponse"> & {
|
|
75
|
+
/**
|
|
76
|
+
* Positive identifier of the returned rate-limit policy version.
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: uint64 policy_version = 1;
|
|
79
|
+
*/
|
|
80
|
+
policyVersion: bigint;
|
|
81
|
+
/**
|
|
82
|
+
* UTC time at which this policy version became effective.
|
|
83
|
+
*
|
|
84
|
+
* @generated from field: google.protobuf.Timestamp effective_from = 2;
|
|
85
|
+
*/
|
|
86
|
+
effectiveFrom?: Timestamp | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Complete placement and cancellation catalog. Rules are ordered by policy
|
|
89
|
+
* class, then by tier ascending. The list contains one rule per class for
|
|
90
|
+
* each VIP0 through VIP10 tier and is not paginated.
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: repeated ratelimit.v1.TradingRateLimitRule rules = 3;
|
|
93
|
+
*/
|
|
94
|
+
rules: TradingRateLimitRule[];
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Describes the message ratelimit.v1.GetRateLimitConfigResponse.
|
|
98
|
+
* Use `create(GetRateLimitConfigResponseSchema)` to create a new message.
|
|
99
|
+
*/
|
|
100
|
+
declare const GetRateLimitConfigResponseSchema: GenMessage<GetRateLimitConfigResponse>;
|
|
101
|
+
/**
|
|
102
|
+
* GetTradingRateLimitsRequest requests the effective trading limits for one
|
|
103
|
+
* account target.
|
|
104
|
+
*
|
|
105
|
+
* @generated from message ratelimit.v1.GetTradingRateLimitsRequest
|
|
106
|
+
*/
|
|
107
|
+
type GetTradingRateLimitsRequest = Message<"ratelimit.v1.GetTradingRateLimitsRequest"> & {
|
|
108
|
+
/**
|
|
109
|
+
* Optional subaccount public identifier. When omitted, the authenticated
|
|
110
|
+
* caller's root account is used.
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: optional fixed64 subaccount_id = 1;
|
|
113
|
+
*/
|
|
114
|
+
subaccountId?: bigint | undefined;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Describes the message ratelimit.v1.GetTradingRateLimitsRequest.
|
|
118
|
+
* Use `create(GetTradingRateLimitsRequestSchema)` to create a new message.
|
|
119
|
+
*/
|
|
120
|
+
declare const GetTradingRateLimitsRequestSchema: GenMessage<GetTradingRateLimitsRequest>;
|
|
121
|
+
/**
|
|
122
|
+
* GetTradingRateLimitsResponse contains every placement and cancellation
|
|
123
|
+
* policy enforced for the selected account target and caller.
|
|
124
|
+
*
|
|
125
|
+
* @generated from message ratelimit.v1.GetTradingRateLimitsResponse
|
|
126
|
+
*/
|
|
127
|
+
type GetTradingRateLimitsResponse = Message<"ratelimit.v1.GetTradingRateLimitsResponse"> & {
|
|
128
|
+
/**
|
|
129
|
+
* Positive identifier of the rate-limit policy version used for the
|
|
130
|
+
* returned rules.
|
|
131
|
+
*
|
|
132
|
+
* @generated from field: uint64 policy_version = 1;
|
|
133
|
+
*/
|
|
134
|
+
policyVersion: bigint;
|
|
135
|
+
/**
|
|
136
|
+
* UTC time at which this policy version became effective.
|
|
137
|
+
*
|
|
138
|
+
* @generated from field: google.protobuf.Timestamp effective_from = 2;
|
|
139
|
+
*/
|
|
140
|
+
effectiveFrom?: Timestamp | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* Account-scoped placement and cancellation rules for the selected account,
|
|
143
|
+
* ordered with placement first and cancellation second.
|
|
144
|
+
*
|
|
145
|
+
* @generated from field: repeated ratelimit.v1.TradingRateLimitRule rules = 3;
|
|
146
|
+
*/
|
|
147
|
+
rules: TradingRateLimitRule[];
|
|
148
|
+
/**
|
|
149
|
+
* API-key-scoped placement and cancellation rules, ordered with placement
|
|
150
|
+
* first and cancellation second. Present only when the caller authenticated
|
|
151
|
+
* with an API key. Both this scope and the account scope are enforced.
|
|
152
|
+
*
|
|
153
|
+
* @generated from field: repeated ratelimit.v1.TradingRateLimitRule api_key_rules = 4;
|
|
154
|
+
*/
|
|
155
|
+
apiKeyRules: TradingRateLimitRule[];
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Describes the message ratelimit.v1.GetTradingRateLimitsResponse.
|
|
159
|
+
* Use `create(GetTradingRateLimitsResponseSchema)` to create a new message.
|
|
160
|
+
*/
|
|
161
|
+
declare const GetTradingRateLimitsResponseSchema: GenMessage<GetTradingRateLimitsResponse>;
|
|
162
|
+
/**
|
|
163
|
+
* TradingRateLimitClass identifies a public trading operation family.
|
|
164
|
+
*
|
|
165
|
+
* @generated from enum ratelimit.v1.TradingRateLimitClass
|
|
166
|
+
*/
|
|
167
|
+
declare enum TradingRateLimitClass {
|
|
168
|
+
/**
|
|
169
|
+
* No trading operation family was provided.
|
|
170
|
+
*
|
|
171
|
+
* @generated from enum value: TRADING_RATE_LIMIT_CLASS_UNSPECIFIED = 0;
|
|
172
|
+
*/
|
|
173
|
+
UNSPECIFIED = 0,
|
|
174
|
+
/**
|
|
175
|
+
* New-order placement and order modification.
|
|
176
|
+
*
|
|
177
|
+
* @generated from enum value: TRADING_RATE_LIMIT_CLASS_PLACE = 1;
|
|
178
|
+
*/
|
|
179
|
+
PLACE = 1,
|
|
180
|
+
/**
|
|
181
|
+
* Order and trigger cancellation.
|
|
182
|
+
*
|
|
183
|
+
* @generated from enum value: TRADING_RATE_LIMIT_CLASS_CANCEL = 2;
|
|
184
|
+
*/
|
|
185
|
+
CANCEL = 2
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Describes the enum ratelimit.v1.TradingRateLimitClass.
|
|
189
|
+
*/
|
|
190
|
+
declare const TradingRateLimitClassSchema: GenEnum<TradingRateLimitClass>;
|
|
191
|
+
/**
|
|
192
|
+
* RateLimitService serves public trading quota reference data and authenticated
|
|
193
|
+
* effective trading limits.
|
|
194
|
+
*
|
|
195
|
+
* @generated from service ratelimit.v1.RateLimitService
|
|
196
|
+
*/
|
|
197
|
+
declare const RateLimitService: GenService<{
|
|
198
|
+
/**
|
|
199
|
+
* Get the complete active placement and cancellation quota catalog for
|
|
200
|
+
* VIP0 through VIP10.
|
|
201
|
+
*
|
|
202
|
+
* @generated from rpc ratelimit.v1.RateLimitService.GetRateLimitConfig
|
|
203
|
+
*/
|
|
204
|
+
getRateLimitConfig: {
|
|
205
|
+
methodKind: "unary";
|
|
206
|
+
input: typeof GetRateLimitConfigRequestSchema;
|
|
207
|
+
output: typeof GetRateLimitConfigResponseSchema;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Get the effective placement and cancellation limits for the authenticated
|
|
211
|
+
* caller's root account or selected subaccount.
|
|
212
|
+
*
|
|
213
|
+
* @generated from rpc ratelimit.v1.RateLimitService.GetTradingRateLimits
|
|
214
|
+
*/
|
|
215
|
+
getTradingRateLimits: {
|
|
216
|
+
methodKind: "unary";
|
|
217
|
+
input: typeof GetTradingRateLimitsRequestSchema;
|
|
218
|
+
output: typeof GetTradingRateLimitsResponseSchema;
|
|
219
|
+
};
|
|
220
|
+
}>;
|
|
221
|
+
//#endregion
|
|
222
|
+
export { GetRateLimitConfigRequest, GetRateLimitConfigRequestSchema, GetRateLimitConfigResponse, GetRateLimitConfigResponseSchema, GetTradingRateLimitsRequest, GetTradingRateLimitsRequestSchema, GetTradingRateLimitsResponse, GetTradingRateLimitsResponseSchema, RateLimitService, TradingRateLimitClass, TradingRateLimitClassSchema, TradingRateLimitRule, TradingRateLimitRuleSchema, file_ratelimit_v1_ratelimit, ratelimit_pb_d_exports };
|
|
223
|
+
//# sourceMappingURL=ratelimit_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ratelimit_pb.d.ts","names":[],"sources":["../../../../src/gen/ratelimit/v1/ratelimit_pb.ts"],"mappings":";;;;;;;;;cAca,6BAA6B;;;;;;;KAS9B,uBAAuB;;;;;;;EAOjC,aAAa;;;;;;EAOb;;;;;;;EAQA;;;;;;EAOA;;;;;;EAOA;;;;;;cAOW,4BAA4B,WAAW;;;;;;;KASxC,4BAA4B;;;;;cAO3B,iCAAiC,WAAW;;;;;;;KAS7C,6BAA6B;;;;;;EAMvC;;;;;;EAOA,gBAAgB;;;;;;;;EAShB,OAAO;;;;;;cAOI,kCAAkC,WAAW;;;;;;;KAS9C,8BAA8B;;;;;;;EAOxC;;;;;;cAOW,mCAAmC,WAAW;;;;;;;KAS/C,+BAA+B;;;;;;;EAOzC;;;;;;EAOA,gBAAgB;;;;;;;EAQhB,OAAO;;;;;;;;EASP,aAAa;;;;;;cAOF,oCAAoC,WAAW;;;;;;aAQhD;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,6BAA6B,QAAQ;;;;;;;cASrC,kBAAkB;;;;;;;EAO7B;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;EAQjB;IACE;IACA,cAAc;IACd,eAAe"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { file_polyester_api_options } from "../../polyester/api/options_pb.js";
|
|
3
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
4
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
|
+
//#region src/gen/ratelimit/v1/ratelimit_pb.ts
|
|
6
|
+
var ratelimit_pb_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
GetRateLimitConfigRequestSchema: () => GetRateLimitConfigRequestSchema,
|
|
8
|
+
GetRateLimitConfigResponseSchema: () => GetRateLimitConfigResponseSchema,
|
|
9
|
+
GetTradingRateLimitsRequestSchema: () => GetTradingRateLimitsRequestSchema,
|
|
10
|
+
GetTradingRateLimitsResponseSchema: () => GetTradingRateLimitsResponseSchema,
|
|
11
|
+
RateLimitService: () => RateLimitService,
|
|
12
|
+
TradingRateLimitClass: () => TradingRateLimitClass,
|
|
13
|
+
TradingRateLimitClassSchema: () => TradingRateLimitClassSchema,
|
|
14
|
+
TradingRateLimitRuleSchema: () => TradingRateLimitRuleSchema,
|
|
15
|
+
file_ratelimit_v1_ratelimit: () => file_ratelimit_v1_ratelimit
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Describes the file ratelimit/v1/ratelimit.proto.
|
|
19
|
+
*/
|
|
20
|
+
const file_ratelimit_v1_ratelimit = /*@__PURE__*/ fileDesc("ChxyYXRlbGltaXQvdjEvcmF0ZWxpbWl0LnByb3RvEgxyYXRlbGltaXQudjEiqAEKFFRyYWRpbmdSYXRlTGltaXRSdWxlEjsKDHBvbGljeV9jbGFzcxgBIAEoDjIjLnJhdGVsaW1pdC52MS5UcmFkaW5nUmF0ZUxpbWl0Q2xhc3NCABIOCgR0aWVyGAIgASgNQgASFgoMcXVvdGFfd2VpZ2h0GAMgASgEQgASEwoJcGVyaW9kX21zGAQgASgEQgASFgoMYnVyc3Rfd2VpZ2h0GAUgASgEQgAiGwoZR2V0UmF0ZUxpbWl0Q29uZmlnUmVxdWVzdCKhAQoaR2V0UmF0ZUxpbWl0Q29uZmlnUmVzcG9uc2USGAoOcG9saWN5X3ZlcnNpb24YASABKARCABI0Cg5lZmZlY3RpdmVfZnJvbRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCABIzCgVydWxlcxgDIAMoCzIiLnJhdGVsaW1pdC52MS5UcmFkaW5nUmF0ZUxpbWl0UnVsZUIAIk0KG0dldFRyYWRpbmdSYXRlTGltaXRzUmVxdWVzdBIcCg1zdWJhY2NvdW50X2lkGAEgASgGQgBIAIgBAUIQCg5fc3ViYWNjb3VudF9pZCLgAQocR2V0VHJhZGluZ1JhdGVMaW1pdHNSZXNwb25zZRIYCg5wb2xpY3lfdmVyc2lvbhgBIAEoBEIAEjQKDmVmZmVjdGl2ZV9mcm9tGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIAEjMKBXJ1bGVzGAMgAygLMiIucmF0ZWxpbWl0LnYxLlRyYWRpbmdSYXRlTGltaXRSdWxlQgASOwoNYXBpX2tleV9ydWxlcxgEIAMoCzIiLnJhdGVsaW1pdC52MS5UcmFkaW5nUmF0ZUxpbWl0UnVsZUIAKooBChVUcmFkaW5nUmF0ZUxpbWl0Q2xhc3MSKAokVFJBRElOR19SQVRFX0xJTUlUX0NMQVNTX1VOU1BFQ0lGSUVEEAASIgoeVFJBRElOR19SQVRFX0xJTUlUX0NMQVNTX1BMQUNFEAESIwofVFJBRElOR19SQVRFX0xJTUlUX0NMQVNTX0NBTkNFTBACMu4BChBSYXRlTGltaXRTZXJ2aWNlEmkKEkdldFJhdGVMaW1pdENvbmZpZxInLnJhdGVsaW1pdC52MS5HZXRSYXRlTGltaXRDb25maWdSZXF1ZXN0GigucmF0ZWxpbWl0LnYxLkdldFJhdGVMaW1pdENvbmZpZ1Jlc3BvbnNlIgASbwoUR2V0VHJhZGluZ1JhdGVMaW1pdHMSKS5yYXRlbGltaXQudjEuR2V0VHJhZGluZ1JhdGVMaW1pdHNSZXF1ZXN0GioucmF0ZWxpbWl0LnYxLkdldFRyYWRpbmdSYXRlTGltaXRzUmVzcG9uc2UiAEJGWkRnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL3JhdGVsaW1pdC92MTtyYXRlbGltaXR2MWIGcHJvdG8z", [file_google_protobuf_timestamp, file_polyester_api_options]);
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message ratelimit.v1.TradingRateLimitRule.
|
|
23
|
+
* Use `create(TradingRateLimitRuleSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
const TradingRateLimitRuleSchema = /*@__PURE__*/ messageDesc(file_ratelimit_v1_ratelimit, 0);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message ratelimit.v1.GetRateLimitConfigRequest.
|
|
28
|
+
* Use `create(GetRateLimitConfigRequestSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
const GetRateLimitConfigRequestSchema = /*@__PURE__*/ messageDesc(file_ratelimit_v1_ratelimit, 1);
|
|
31
|
+
/**
|
|
32
|
+
* Describes the message ratelimit.v1.GetRateLimitConfigResponse.
|
|
33
|
+
* Use `create(GetRateLimitConfigResponseSchema)` to create a new message.
|
|
34
|
+
*/
|
|
35
|
+
const GetRateLimitConfigResponseSchema = /*@__PURE__*/ messageDesc(file_ratelimit_v1_ratelimit, 2);
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message ratelimit.v1.GetTradingRateLimitsRequest.
|
|
38
|
+
* Use `create(GetTradingRateLimitsRequestSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
const GetTradingRateLimitsRequestSchema = /*@__PURE__*/ messageDesc(file_ratelimit_v1_ratelimit, 3);
|
|
41
|
+
/**
|
|
42
|
+
* Describes the message ratelimit.v1.GetTradingRateLimitsResponse.
|
|
43
|
+
* Use `create(GetTradingRateLimitsResponseSchema)` to create a new message.
|
|
44
|
+
*/
|
|
45
|
+
const GetTradingRateLimitsResponseSchema = /*@__PURE__*/ messageDesc(file_ratelimit_v1_ratelimit, 4);
|
|
46
|
+
/**
|
|
47
|
+
* TradingRateLimitClass identifies a public trading operation family.
|
|
48
|
+
*
|
|
49
|
+
* @generated from enum ratelimit.v1.TradingRateLimitClass
|
|
50
|
+
*/
|
|
51
|
+
let TradingRateLimitClass = /* @__PURE__ */ function(TradingRateLimitClass) {
|
|
52
|
+
/**
|
|
53
|
+
* No trading operation family was provided.
|
|
54
|
+
*
|
|
55
|
+
* @generated from enum value: TRADING_RATE_LIMIT_CLASS_UNSPECIFIED = 0;
|
|
56
|
+
*/
|
|
57
|
+
TradingRateLimitClass[TradingRateLimitClass["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
58
|
+
/**
|
|
59
|
+
* New-order placement and order modification.
|
|
60
|
+
*
|
|
61
|
+
* @generated from enum value: TRADING_RATE_LIMIT_CLASS_PLACE = 1;
|
|
62
|
+
*/
|
|
63
|
+
TradingRateLimitClass[TradingRateLimitClass["PLACE"] = 1] = "PLACE";
|
|
64
|
+
/**
|
|
65
|
+
* Order and trigger cancellation.
|
|
66
|
+
*
|
|
67
|
+
* @generated from enum value: TRADING_RATE_LIMIT_CLASS_CANCEL = 2;
|
|
68
|
+
*/
|
|
69
|
+
TradingRateLimitClass[TradingRateLimitClass["CANCEL"] = 2] = "CANCEL";
|
|
70
|
+
return TradingRateLimitClass;
|
|
71
|
+
}({});
|
|
72
|
+
/**
|
|
73
|
+
* Describes the enum ratelimit.v1.TradingRateLimitClass.
|
|
74
|
+
*/
|
|
75
|
+
const TradingRateLimitClassSchema = /*@__PURE__*/ enumDesc(file_ratelimit_v1_ratelimit, 0);
|
|
76
|
+
/**
|
|
77
|
+
* RateLimitService serves public trading quota reference data and authenticated
|
|
78
|
+
* effective trading limits.
|
|
79
|
+
*
|
|
80
|
+
* @generated from service ratelimit.v1.RateLimitService
|
|
81
|
+
*/
|
|
82
|
+
const RateLimitService = /*@__PURE__*/ serviceDesc(file_ratelimit_v1_ratelimit, 0);
|
|
83
|
+
//#endregion
|
|
84
|
+
export { GetRateLimitConfigRequestSchema, GetRateLimitConfigResponseSchema, GetTradingRateLimitsRequestSchema, GetTradingRateLimitsResponseSchema, RateLimitService, TradingRateLimitClass, TradingRateLimitClassSchema, TradingRateLimitRuleSchema, file_ratelimit_v1_ratelimit, ratelimit_pb_exports };
|
|
85
|
+
|
|
86
|
+
//# sourceMappingURL=ratelimit_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ratelimit_pb.js","names":[],"sources":["../../../../src/gen/ratelimit/v1/ratelimit_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file ratelimit/v1/ratelimit.proto (package ratelimit.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 ratelimit/v1/ratelimit.proto.\n */\nexport const file_ratelimit_v1_ratelimit: GenFile = /*@__PURE__*/\n fileDesc(\"ChxyYXRlbGltaXQvdjEvcmF0ZWxpbWl0LnByb3RvEgxyYXRlbGltaXQudjEiqAEKFFRyYWRpbmdSYXRlTGltaXRSdWxlEjsKDHBvbGljeV9jbGFzcxgBIAEoDjIjLnJhdGVsaW1pdC52MS5UcmFkaW5nUmF0ZUxpbWl0Q2xhc3NCABIOCgR0aWVyGAIgASgNQgASFgoMcXVvdGFfd2VpZ2h0GAMgASgEQgASEwoJcGVyaW9kX21zGAQgASgEQgASFgoMYnVyc3Rfd2VpZ2h0GAUgASgEQgAiGwoZR2V0UmF0ZUxpbWl0Q29uZmlnUmVxdWVzdCKhAQoaR2V0UmF0ZUxpbWl0Q29uZmlnUmVzcG9uc2USGAoOcG9saWN5X3ZlcnNpb24YASABKARCABI0Cg5lZmZlY3RpdmVfZnJvbRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCABIzCgVydWxlcxgDIAMoCzIiLnJhdGVsaW1pdC52MS5UcmFkaW5nUmF0ZUxpbWl0UnVsZUIAIk0KG0dldFRyYWRpbmdSYXRlTGltaXRzUmVxdWVzdBIcCg1zdWJhY2NvdW50X2lkGAEgASgGQgBIAIgBAUIQCg5fc3ViYWNjb3VudF9pZCLgAQocR2V0VHJhZGluZ1JhdGVMaW1pdHNSZXNwb25zZRIYCg5wb2xpY3lfdmVyc2lvbhgBIAEoBEIAEjQKDmVmZmVjdGl2ZV9mcm9tGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIAEjMKBXJ1bGVzGAMgAygLMiIucmF0ZWxpbWl0LnYxLlRyYWRpbmdSYXRlTGltaXRSdWxlQgASOwoNYXBpX2tleV9ydWxlcxgEIAMoCzIiLnJhdGVsaW1pdC52MS5UcmFkaW5nUmF0ZUxpbWl0UnVsZUIAKooBChVUcmFkaW5nUmF0ZUxpbWl0Q2xhc3MSKAokVFJBRElOR19SQVRFX0xJTUlUX0NMQVNTX1VOU1BFQ0lGSUVEEAASIgoeVFJBRElOR19SQVRFX0xJTUlUX0NMQVNTX1BMQUNFEAESIwofVFJBRElOR19SQVRFX0xJTUlUX0NMQVNTX0NBTkNFTBACMu4BChBSYXRlTGltaXRTZXJ2aWNlEmkKEkdldFJhdGVMaW1pdENvbmZpZxInLnJhdGVsaW1pdC52MS5HZXRSYXRlTGltaXRDb25maWdSZXF1ZXN0GigucmF0ZWxpbWl0LnYxLkdldFJhdGVMaW1pdENvbmZpZ1Jlc3BvbnNlIgASbwoUR2V0VHJhZGluZ1JhdGVMaW1pdHMSKS5yYXRlbGltaXQudjEuR2V0VHJhZGluZ1JhdGVMaW1pdHNSZXF1ZXN0GioucmF0ZWxpbWl0LnYxLkdldFRyYWRpbmdSYXRlTGltaXRzUmVzcG9uc2UiAEJGWkRnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL3JhdGVsaW1pdC92MTtyYXRlbGltaXR2MWIGcHJvdG8z\", [file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * TradingRateLimitRule describes one weighted placement or cancellation quota\n * for one VIP tier.\n *\n * @generated from message ratelimit.v1.TradingRateLimitRule\n */\nexport type TradingRateLimitRule = Message<\"ratelimit.v1.TradingRateLimitRule\"> & {\n /**\n * Trading operation family governed by this rule. Public responses contain\n * TRADING_RATE_LIMIT_CLASS_PLACE or TRADING_RATE_LIMIT_CLASS_CANCEL.\n *\n * @generated from field: ratelimit.v1.TradingRateLimitClass policy_class = 1;\n */\n policyClass: TradingRateLimitClass;\n\n /**\n * VIP tier for this rule, in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 tier = 2;\n */\n tier: number;\n\n /**\n * Weighted request capacity available during each policy period. One\n * operation consumes the weight assigned to that operation.\n *\n * @generated from field: uint64 quota_weight = 3;\n */\n quotaWeight: bigint;\n\n /**\n * Policy period duration in milliseconds.\n *\n * @generated from field: uint64 period_ms = 4;\n */\n periodMs: bigint;\n\n /**\n * Maximum weighted capacity that may be consumed in a burst.\n *\n * @generated from field: uint64 burst_weight = 5;\n */\n burstWeight: bigint;\n};\n\n/**\n * Describes the message ratelimit.v1.TradingRateLimitRule.\n * Use `create(TradingRateLimitRuleSchema)` to create a new message.\n */\nexport const TradingRateLimitRuleSchema: GenMessage<TradingRateLimitRule> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 0);\n\n/**\n * GetRateLimitConfigRequest requests the complete active public trading\n * rate-limit catalog.\n *\n * @generated from message ratelimit.v1.GetRateLimitConfigRequest\n */\nexport type GetRateLimitConfigRequest = Message<\"ratelimit.v1.GetRateLimitConfigRequest\"> & {\n};\n\n/**\n * Describes the message ratelimit.v1.GetRateLimitConfigRequest.\n * Use `create(GetRateLimitConfigRequestSchema)` to create a new message.\n */\nexport const GetRateLimitConfigRequestSchema: GenMessage<GetRateLimitConfigRequest> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 1);\n\n/**\n * GetRateLimitConfigResponse contains all placement and cancellation rules for\n * one complete policy version.\n *\n * @generated from message ratelimit.v1.GetRateLimitConfigResponse\n */\nexport type GetRateLimitConfigResponse = Message<\"ratelimit.v1.GetRateLimitConfigResponse\"> & {\n /**\n * Positive identifier of the returned rate-limit 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 * Complete placement and cancellation catalog. Rules are ordered by policy\n * class, then by tier ascending. The list contains one rule per class for\n * each VIP0 through VIP10 tier and is not paginated.\n *\n * @generated from field: repeated ratelimit.v1.TradingRateLimitRule rules = 3;\n */\n rules: TradingRateLimitRule[];\n};\n\n/**\n * Describes the message ratelimit.v1.GetRateLimitConfigResponse.\n * Use `create(GetRateLimitConfigResponseSchema)` to create a new message.\n */\nexport const GetRateLimitConfigResponseSchema: GenMessage<GetRateLimitConfigResponse> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 2);\n\n/**\n * GetTradingRateLimitsRequest requests the effective trading limits for one\n * account target.\n *\n * @generated from message ratelimit.v1.GetTradingRateLimitsRequest\n */\nexport type GetTradingRateLimitsRequest = Message<\"ratelimit.v1.GetTradingRateLimitsRequest\"> & {\n /**\n * Optional subaccount public identifier. When omitted, the authenticated\n * caller's root account is used.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n};\n\n/**\n * Describes the message ratelimit.v1.GetTradingRateLimitsRequest.\n * Use `create(GetTradingRateLimitsRequestSchema)` to create a new message.\n */\nexport const GetTradingRateLimitsRequestSchema: GenMessage<GetTradingRateLimitsRequest> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 3);\n\n/**\n * GetTradingRateLimitsResponse contains every placement and cancellation\n * policy enforced for the selected account target and caller.\n *\n * @generated from message ratelimit.v1.GetTradingRateLimitsResponse\n */\nexport type GetTradingRateLimitsResponse = Message<\"ratelimit.v1.GetTradingRateLimitsResponse\"> & {\n /**\n * Positive identifier of the rate-limit policy version used for the\n * returned rules.\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 * Account-scoped placement and cancellation rules for the selected account,\n * ordered with placement first and cancellation second.\n *\n * @generated from field: repeated ratelimit.v1.TradingRateLimitRule rules = 3;\n */\n rules: TradingRateLimitRule[];\n\n /**\n * API-key-scoped placement and cancellation rules, ordered with placement\n * first and cancellation second. Present only when the caller authenticated\n * with an API key. Both this scope and the account scope are enforced.\n *\n * @generated from field: repeated ratelimit.v1.TradingRateLimitRule api_key_rules = 4;\n */\n apiKeyRules: TradingRateLimitRule[];\n};\n\n/**\n * Describes the message ratelimit.v1.GetTradingRateLimitsResponse.\n * Use `create(GetTradingRateLimitsResponseSchema)` to create a new message.\n */\nexport const GetTradingRateLimitsResponseSchema: GenMessage<GetTradingRateLimitsResponse> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 4);\n\n/**\n * TradingRateLimitClass identifies a public trading operation family.\n *\n * @generated from enum ratelimit.v1.TradingRateLimitClass\n */\nexport enum TradingRateLimitClass {\n /**\n * No trading operation family was provided.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * New-order placement and order modification.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_PLACE = 1;\n */\n PLACE = 1,\n\n /**\n * Order and trigger cancellation.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_CANCEL = 2;\n */\n CANCEL = 2,\n}\n\n/**\n * Describes the enum ratelimit.v1.TradingRateLimitClass.\n */\nexport const TradingRateLimitClassSchema: GenEnum<TradingRateLimitClass> = /*@__PURE__*/\n enumDesc(file_ratelimit_v1_ratelimit, 0);\n\n/**\n * RateLimitService serves public trading quota reference data and authenticated\n * effective trading limits.\n *\n * @generated from service ratelimit.v1.RateLimitService\n */\nexport const RateLimitService: GenService<{\n /**\n * Get the complete active placement and cancellation quota catalog for\n * VIP0 through VIP10.\n *\n * @generated from rpc ratelimit.v1.RateLimitService.GetRateLimitConfig\n */\n getRateLimitConfig: {\n methodKind: \"unary\";\n input: typeof GetRateLimitConfigRequestSchema;\n output: typeof GetRateLimitConfigResponseSchema;\n },\n /**\n * Get the effective placement and cancellation limits for the authenticated\n * caller's root account or selected subaccount.\n *\n * @generated from rpc ratelimit.v1.RateLimitService.GetTradingRateLimits\n */\n getTradingRateLimits: {\n methodKind: \"unary\";\n input: typeof GetTradingRateLimitsRequestSchema;\n output: typeof GetTradingRateLimitsResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_ratelimit_v1_ratelimit, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAcA,MAAa,8BACX,uBAAS,oiDAAoiD,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AAmD3mD,MAAa,6BACX,0BAAY,6BAA6B,CAAC;;;;;AAe5C,MAAa,kCACX,0BAAY,6BAA6B,CAAC;;;;;AAqC5C,MAAa,mCACX,0BAAY,6BAA6B,CAAC;;;;;AAsB5C,MAAa,oCACX,0BAAY,6BAA6B,CAAC;;;;;AA8C5C,MAAa,qCACX,0BAAY,6BAA6B,CAAC;;;;;;AAO5C,IAAY,wBAAL,yBAAA,uBAAA;;;;;;CAML,sBAAA,sBAAA,iBAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,WAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,YAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,8BACX,uBAAS,6BAA6B,CAAC;;;;;;;AAQzC,MAAa,mBAwBX,0BAAY,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { Message } from "@bufbuild/protobuf";
|
|
2
|
+
import { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
3
|
+
import { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
+
declare namespace vip_pb_d_exports {
|
|
5
|
+
export { GetVIPStatusRequest, GetVIPStatusRequestSchema, GetVIPStatusResponse, GetVIPStatusResponseSchema, ListVIPTiersRequest, ListVIPTiersRequestSchema, ListVIPTiersResponse, ListVIPTiersResponseSchema, NextVIPTierThresholds, NextVIPTierThresholdsSchema, VIPService, VIPTier, VIPTierSchema, file_vip_v1_vip };
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file vip/v1/vip.proto.
|
|
9
|
+
*/
|
|
10
|
+
declare const file_vip_v1_vip: GenFile;
|
|
11
|
+
/**
|
|
12
|
+
* VIPTier describes one row in a complete VIP0 through VIP10 policy catalog.
|
|
13
|
+
*
|
|
14
|
+
* @generated from message vip.v1.VIPTier
|
|
15
|
+
*/
|
|
16
|
+
type VIPTier = Message<"vip.v1.VIPTier"> & {
|
|
17
|
+
/**
|
|
18
|
+
* Numeric VIP tier in the inclusive range 0 through 10.
|
|
19
|
+
*
|
|
20
|
+
* @generated from field: uint32 tier = 1;
|
|
21
|
+
*/
|
|
22
|
+
tier: number;
|
|
23
|
+
/**
|
|
24
|
+
* Rolling 30-day settled spot volume entry threshold in USD, encoded as a
|
|
25
|
+
* non-negative base-10 decimal string without separators or a currency
|
|
26
|
+
* symbol.
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: string volume_threshold_usd = 2;
|
|
29
|
+
*/
|
|
30
|
+
volumeThresholdUsd: string;
|
|
31
|
+
/**
|
|
32
|
+
* Rolling 30-day average portfolio value entry threshold in USD, encoded as
|
|
33
|
+
* a positive base-10 decimal string without separators or a currency symbol.
|
|
34
|
+
* Omitted for VIP0, which has no average portfolio value entry threshold.
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: optional string aop_threshold_usd = 3;
|
|
37
|
+
*/
|
|
38
|
+
aopThresholdUsd?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Absolute maker fee rate before symbol-specific adjustments, encoded as a
|
|
41
|
+
* base-10 percentage string without a percent sign. Values are between
|
|
42
|
+
* -100 and 100 inclusive.
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: string maker_fee_rate_percent = 4;
|
|
45
|
+
*/
|
|
46
|
+
makerFeeRatePercent: string;
|
|
47
|
+
/**
|
|
48
|
+
* Absolute taker fee rate before symbol-specific adjustments, encoded as a
|
|
49
|
+
* non-negative base-10 percentage string without a percent sign. Values are
|
|
50
|
+
* between 0 and 100 inclusive.
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: string taker_fee_rate_percent = 5;
|
|
53
|
+
*/
|
|
54
|
+
takerFeeRatePercent: string;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message vip.v1.VIPTier.
|
|
58
|
+
* Use `create(VIPTierSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
declare const VIPTierSchema: GenMessage<VIPTier>;
|
|
61
|
+
/**
|
|
62
|
+
* ListVIPTiersRequest requests the complete active VIP tier catalog.
|
|
63
|
+
*
|
|
64
|
+
* @generated from message vip.v1.ListVIPTiersRequest
|
|
65
|
+
*/
|
|
66
|
+
type ListVIPTiersRequest = Message<"vip.v1.ListVIPTiersRequest"> & {};
|
|
67
|
+
/**
|
|
68
|
+
* Describes the message vip.v1.ListVIPTiersRequest.
|
|
69
|
+
* Use `create(ListVIPTiersRequestSchema)` to create a new message.
|
|
70
|
+
*/
|
|
71
|
+
declare const ListVIPTiersRequestSchema: GenMessage<ListVIPTiersRequest>;
|
|
72
|
+
/**
|
|
73
|
+
* ListVIPTiersResponse contains one complete, immutable VIP policy version.
|
|
74
|
+
*
|
|
75
|
+
* @generated from message vip.v1.ListVIPTiersResponse
|
|
76
|
+
*/
|
|
77
|
+
type ListVIPTiersResponse = Message<"vip.v1.ListVIPTiersResponse"> & {
|
|
78
|
+
/**
|
|
79
|
+
* Positive identifier of the returned VIP policy version.
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: uint64 policy_version = 1;
|
|
82
|
+
*/
|
|
83
|
+
policyVersion: bigint;
|
|
84
|
+
/**
|
|
85
|
+
* UTC time at which this policy version became effective.
|
|
86
|
+
*
|
|
87
|
+
* @generated from field: google.protobuf.Timestamp effective_from = 2;
|
|
88
|
+
*/
|
|
89
|
+
effectiveFrom?: Timestamp | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Average portfolio value retention threshold in basis points. One basis
|
|
92
|
+
* point is 0.01%; valid values are 1 through 10000.
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: uint32 retention_threshold_bp = 3;
|
|
95
|
+
*/
|
|
96
|
+
retentionThresholdBp: number;
|
|
97
|
+
/**
|
|
98
|
+
* Complete VIP0 through VIP10 catalog ordered by tier ascending. This is a
|
|
99
|
+
* naturally bounded 11-row snapshot and is not paginated.
|
|
100
|
+
*
|
|
101
|
+
* @generated from field: repeated vip.v1.VIPTier tiers = 4;
|
|
102
|
+
*/
|
|
103
|
+
tiers: VIPTier[];
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Describes the message vip.v1.ListVIPTiersResponse.
|
|
107
|
+
* Use `create(ListVIPTiersResponseSchema)` to create a new message.
|
|
108
|
+
*/
|
|
109
|
+
declare const ListVIPTiersResponseSchema: GenMessage<ListVIPTiersResponse>;
|
|
110
|
+
/**
|
|
111
|
+
* NextVIPTierThresholds contains the entry thresholds for the tier immediately
|
|
112
|
+
* above the caller's effective tier.
|
|
113
|
+
*
|
|
114
|
+
* @generated from message vip.v1.NextVIPTierThresholds
|
|
115
|
+
*/
|
|
116
|
+
type NextVIPTierThresholds = Message<"vip.v1.NextVIPTierThresholds"> & {
|
|
117
|
+
/**
|
|
118
|
+
* Numeric next tier in the inclusive range 1 through 10.
|
|
119
|
+
*
|
|
120
|
+
* @generated from field: uint32 tier = 1;
|
|
121
|
+
*/
|
|
122
|
+
tier: number;
|
|
123
|
+
/**
|
|
124
|
+
* Rolling 30-day settled spot volume entry threshold in USD, encoded as a
|
|
125
|
+
* non-negative base-10 decimal string without separators or a currency
|
|
126
|
+
* symbol.
|
|
127
|
+
*
|
|
128
|
+
* @generated from field: string volume_threshold_usd = 2;
|
|
129
|
+
*/
|
|
130
|
+
volumeThresholdUsd: string;
|
|
131
|
+
/**
|
|
132
|
+
* Rolling 30-day average portfolio value entry threshold in USD, encoded as
|
|
133
|
+
* a positive base-10 decimal string without separators or a currency symbol.
|
|
134
|
+
*
|
|
135
|
+
* @generated from field: string aop_threshold_usd = 3;
|
|
136
|
+
*/
|
|
137
|
+
aopThresholdUsd: string;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Describes the message vip.v1.NextVIPTierThresholds.
|
|
141
|
+
* Use `create(NextVIPTierThresholdsSchema)` to create a new message.
|
|
142
|
+
*/
|
|
143
|
+
declare const NextVIPTierThresholdsSchema: GenMessage<NextVIPTierThresholds>;
|
|
144
|
+
/**
|
|
145
|
+
* GetVIPStatusRequest requests VIP status for the authenticated caller's root
|
|
146
|
+
* account. All subaccounts inherit that root status, so this request has no
|
|
147
|
+
* subaccount selector.
|
|
148
|
+
*
|
|
149
|
+
* @generated from message vip.v1.GetVIPStatusRequest
|
|
150
|
+
*/
|
|
151
|
+
type GetVIPStatusRequest = Message<"vip.v1.GetVIPStatusRequest"> & {};
|
|
152
|
+
/**
|
|
153
|
+
* Describes the message vip.v1.GetVIPStatusRequest.
|
|
154
|
+
* Use `create(GetVIPStatusRequestSchema)` to create a new message.
|
|
155
|
+
*/
|
|
156
|
+
declare const GetVIPStatusRequestSchema: GenMessage<GetVIPStatusRequest>;
|
|
157
|
+
/**
|
|
158
|
+
* GetVIPStatusResponse contains the authenticated caller-root VIP assignment
|
|
159
|
+
* and the qualification facts available for that assignment.
|
|
160
|
+
*
|
|
161
|
+
* @generated from message vip.v1.GetVIPStatusResponse
|
|
162
|
+
*/
|
|
163
|
+
type GetVIPStatusResponse = Message<"vip.v1.GetVIPStatusResponse"> & {
|
|
164
|
+
/**
|
|
165
|
+
* Effective VIP tier in the inclusive range 0 through 10.
|
|
166
|
+
*
|
|
167
|
+
* @generated from field: uint32 tier = 1;
|
|
168
|
+
*/
|
|
169
|
+
tier: number;
|
|
170
|
+
/**
|
|
171
|
+
* Tier earned from rolling 30-day settled spot volume, in the inclusive
|
|
172
|
+
* range 0 through 10.
|
|
173
|
+
*
|
|
174
|
+
* @generated from field: uint32 volume_tier = 2;
|
|
175
|
+
*/
|
|
176
|
+
volumeTier: number;
|
|
177
|
+
/**
|
|
178
|
+
* Tier earned from rolling 30-day average portfolio value, in the inclusive
|
|
179
|
+
* range 0 through 10.
|
|
180
|
+
*
|
|
181
|
+
* @generated from field: uint32 aop_tier = 3;
|
|
182
|
+
*/
|
|
183
|
+
aopTier: number;
|
|
184
|
+
/**
|
|
185
|
+
* Rolling 30-day settled spot volume in USD, encoded as a non-negative
|
|
186
|
+
* base-10 decimal string without separators or a currency symbol. Omitted
|
|
187
|
+
* when complete qualification metrics are unavailable for the assignment.
|
|
188
|
+
*
|
|
189
|
+
* @generated from field: optional string settled_volume_30d_usd = 4;
|
|
190
|
+
*/
|
|
191
|
+
settledVolume30dUsd?: string | undefined;
|
|
192
|
+
/**
|
|
193
|
+
* Rolling 30-day average portfolio value in USD, encoded as a non-negative
|
|
194
|
+
* base-10 decimal string without separators or a currency symbol. Omitted
|
|
195
|
+
* when complete qualification metrics are unavailable for the assignment.
|
|
196
|
+
*
|
|
197
|
+
* @generated from field: optional string average_aop_30d_usd = 5;
|
|
198
|
+
*/
|
|
199
|
+
averageAop30dUsd?: string | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* Positive identifier of the VIP policy used for this assignment.
|
|
202
|
+
*
|
|
203
|
+
* @generated from field: uint64 policy_version = 6;
|
|
204
|
+
*/
|
|
205
|
+
policyVersion: bigint;
|
|
206
|
+
/**
|
|
207
|
+
* UTC time at which the selected assignment policy became effective.
|
|
208
|
+
*
|
|
209
|
+
* @generated from field: google.protobuf.Timestamp policy_effective_from = 7;
|
|
210
|
+
*/
|
|
211
|
+
policyEffectiveFrom?: Timestamp | undefined;
|
|
212
|
+
/**
|
|
213
|
+
* UTC time from which the explicit VIP assignment is effective. Omitted
|
|
214
|
+
* while a new account is using the default VIP0 tier.
|
|
215
|
+
*
|
|
216
|
+
* @generated from field: optional google.protobuf.Timestamp effective_from = 8;
|
|
217
|
+
*/
|
|
218
|
+
effectiveFrom?: Timestamp | undefined;
|
|
219
|
+
/**
|
|
220
|
+
* UTC time at which the explicit assignment was evaluated. Omitted while a
|
|
221
|
+
* new account is using the default VIP0 tier.
|
|
222
|
+
*
|
|
223
|
+
* @generated from field: optional google.protobuf.Timestamp evaluated_at = 9;
|
|
224
|
+
*/
|
|
225
|
+
evaluatedAt?: Timestamp | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* UTC cutoff of the rolling metrics used for this assignment. Omitted when
|
|
228
|
+
* complete qualification metrics are unavailable.
|
|
229
|
+
*
|
|
230
|
+
* @generated from field: optional google.protobuf.Timestamp metrics_as_of = 10;
|
|
231
|
+
*/
|
|
232
|
+
metricsAsOf?: Timestamp | undefined;
|
|
233
|
+
/**
|
|
234
|
+
* Entry thresholds for the tier immediately above the effective tier.
|
|
235
|
+
* Omitted when the effective tier is VIP10.
|
|
236
|
+
*
|
|
237
|
+
* @generated from field: optional vip.v1.NextVIPTierThresholds next_tier_thresholds = 11;
|
|
238
|
+
*/
|
|
239
|
+
nextTierThresholds?: NextVIPTierThresholds | undefined;
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* Describes the message vip.v1.GetVIPStatusResponse.
|
|
243
|
+
* Use `create(GetVIPStatusResponseSchema)` to create a new message.
|
|
244
|
+
*/
|
|
245
|
+
declare const GetVIPStatusResponseSchema: GenMessage<GetVIPStatusResponse>;
|
|
246
|
+
/**
|
|
247
|
+
* VIPService serves public VIP policy reference data and the authenticated
|
|
248
|
+
* caller-root qualification status.
|
|
249
|
+
*
|
|
250
|
+
* @generated from service vip.v1.VIPService
|
|
251
|
+
*/
|
|
252
|
+
declare const VIPService: GenService<{
|
|
253
|
+
/**
|
|
254
|
+
* List the complete active VIP0 through VIP10 tier catalog in ascending tier
|
|
255
|
+
* order.
|
|
256
|
+
*
|
|
257
|
+
* @generated from rpc vip.v1.VIPService.ListVIPTiers
|
|
258
|
+
*/
|
|
259
|
+
listVIPTiers: {
|
|
260
|
+
methodKind: "unary";
|
|
261
|
+
input: typeof ListVIPTiersRequestSchema;
|
|
262
|
+
output: typeof ListVIPTiersResponseSchema;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* Get VIP qualification status for the authenticated caller's root account.
|
|
266
|
+
*
|
|
267
|
+
* @generated from rpc vip.v1.VIPService.GetVIPStatus
|
|
268
|
+
*/
|
|
269
|
+
getVIPStatus: {
|
|
270
|
+
methodKind: "unary";
|
|
271
|
+
input: typeof GetVIPStatusRequestSchema;
|
|
272
|
+
output: typeof GetVIPStatusResponseSchema;
|
|
273
|
+
};
|
|
274
|
+
}>;
|
|
275
|
+
//#endregion
|
|
276
|
+
export { GetVIPStatusRequest, GetVIPStatusRequestSchema, GetVIPStatusResponse, GetVIPStatusResponseSchema, ListVIPTiersRequest, ListVIPTiersRequestSchema, ListVIPTiersResponse, ListVIPTiersResponseSchema, NextVIPTierThresholds, NextVIPTierThresholdsSchema, VIPService, VIPTier, VIPTierSchema, file_vip_v1_vip, vip_pb_d_exports };
|
|
277
|
+
//# sourceMappingURL=vip_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vip_pb.d.ts","names":[],"sources":["../../../../src/gen/vip/v1/vip_pb.ts"],"mappings":";;;;;;;;;cAca,iBAAiB;;;;;;KAQlB,UAAU;;;;;;EAMpB;;;;;;;;EASA;;;;;;;;EASA;;;;;;;;EASA;;;;;;;;EASA;;;;;;cAOW,eAAe,WAAW;;;;;;KAQ3B,sBAAsB;;;;;cAOrB,2BAA2B,WAAW;;;;;;KAQvC,uBAAuB;;;;;;EAMjC;;;;;;EAOA,gBAAgB;;;;;;;EAQhB;;;;;;;EAQA,OAAO;;;;;;cAOI,4BAA4B,WAAW;;;;;;;KASxC,wBAAwB;;;;;;EAMlC;;;;;;;;EASA;;;;;;;EAQA;;;;;;cAOW,6BAA6B,WAAW;;;;;;;;KAUzC,sBAAsB;;;;;cAOrB,2BAA2B,WAAW;;;;;;;KASvC,uBAAuB;;;;;;EAMjC;;;;;;;EAQA;;;;;;;EAQA;;;;;;;;EASA;;;;;;;;EASA;;;;;;EAOA;;;;;;EAOA,sBAAsB;;;;;;;EAQtB,gBAAgB;;;;;;;EAQhB,cAAc;;;;;;;EAQd,cAAc;;;;;;;EAQd,qBAAqB;;;;;;cAOV,4BAA4B,WAAW;;;;;;;cASvC,YAAY;;;;;;;EAOvB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe"}
|