@n1xyz/nord-ts 0.7.2 → 0.7.4
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/dist/actions.d.ts +31 -20
- package/dist/client/Nord.d.ts +20 -3
- package/dist/client/NordAdmin.d.ts +16 -21
- package/dist/client/NordUser.d.ts +24 -24
- package/dist/gen/nord_pb.d.ts +474 -355
- package/dist/gen/openapi.d.ts +182 -83
- package/dist/index.browser.js +331 -305
- package/dist/index.common.js +334 -308
- package/dist/types.d.ts +10 -8
- package/package.json +1 -1
- package/dist/gen/core_pb.d.ts +0 -120
- package/dist/gen/src/components/rfq/rfq_pb.d.ts +0 -791
package/dist/gen/openapi.d.ts
CHANGED
|
@@ -147,6 +147,65 @@ export interface paths {
|
|
|
147
147
|
patch?: never;
|
|
148
148
|
trace?: never;
|
|
149
149
|
};
|
|
150
|
+
"/health/{service}": {
|
|
151
|
+
parameters: {
|
|
152
|
+
query?: never;
|
|
153
|
+
header?: never;
|
|
154
|
+
path?: never;
|
|
155
|
+
cookie?: never;
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* @description UNSTABLE: operational health endpoint for a single subservice.
|
|
159
|
+
*
|
|
160
|
+
* Returns 503 only when the named subservice is degraded, so monitors can
|
|
161
|
+
* alert per subservice. Do not use as a liveness probe.
|
|
162
|
+
*/
|
|
163
|
+
get: {
|
|
164
|
+
parameters: {
|
|
165
|
+
query?: never;
|
|
166
|
+
header?: never;
|
|
167
|
+
path: {
|
|
168
|
+
/** @description One of: execution, history, replica, settlement, oracle. */
|
|
169
|
+
service: string;
|
|
170
|
+
};
|
|
171
|
+
cookie?: never;
|
|
172
|
+
};
|
|
173
|
+
requestBody?: never;
|
|
174
|
+
responses: {
|
|
175
|
+
200: {
|
|
176
|
+
headers: {
|
|
177
|
+
[name: string]: unknown;
|
|
178
|
+
};
|
|
179
|
+
content: {
|
|
180
|
+
"application/json": null;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
404: {
|
|
184
|
+
headers: {
|
|
185
|
+
[name: string]: unknown;
|
|
186
|
+
};
|
|
187
|
+
content: {
|
|
188
|
+
"application/json": null;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
503: {
|
|
192
|
+
headers: {
|
|
193
|
+
[name: string]: unknown;
|
|
194
|
+
};
|
|
195
|
+
content: {
|
|
196
|
+
"application/json": null;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
put?: never;
|
|
202
|
+
post?: never;
|
|
203
|
+
delete?: never;
|
|
204
|
+
options?: never;
|
|
205
|
+
head?: never;
|
|
206
|
+
patch?: never;
|
|
207
|
+
trace?: never;
|
|
208
|
+
};
|
|
150
209
|
"/info": {
|
|
151
210
|
parameters: {
|
|
152
211
|
query?: never;
|
|
@@ -1247,6 +1306,68 @@ export interface paths {
|
|
|
1247
1306
|
patch?: never;
|
|
1248
1307
|
trace?: never;
|
|
1249
1308
|
};
|
|
1309
|
+
"/account/{account_id}/position/summary": {
|
|
1310
|
+
parameters: {
|
|
1311
|
+
query?: never;
|
|
1312
|
+
header?: never;
|
|
1313
|
+
path?: never;
|
|
1314
|
+
cookie?: never;
|
|
1315
|
+
};
|
|
1316
|
+
/**
|
|
1317
|
+
* @description fetch per-market realized trading pnl and funding pnl for an account.
|
|
1318
|
+
*
|
|
1319
|
+
* funding pnl includes since-change, since-open, and all-time values at the
|
|
1320
|
+
* returned cumulative-materializer progress.
|
|
1321
|
+
*/
|
|
1322
|
+
get: {
|
|
1323
|
+
parameters: {
|
|
1324
|
+
query?: {
|
|
1325
|
+
/** @description Optional market filter by market id. */
|
|
1326
|
+
marketId?: number;
|
|
1327
|
+
};
|
|
1328
|
+
header?: never;
|
|
1329
|
+
path: {
|
|
1330
|
+
/** @description account for which to retrieve the position summary. */
|
|
1331
|
+
account_id: components["schemas"]["AccountId"];
|
|
1332
|
+
};
|
|
1333
|
+
cookie?: never;
|
|
1334
|
+
};
|
|
1335
|
+
requestBody?: never;
|
|
1336
|
+
responses: {
|
|
1337
|
+
200: {
|
|
1338
|
+
headers: {
|
|
1339
|
+
[name: string]: unknown;
|
|
1340
|
+
};
|
|
1341
|
+
content: {
|
|
1342
|
+
"application/json": components["schemas"]["AccountPositionSummaryResult"];
|
|
1343
|
+
};
|
|
1344
|
+
};
|
|
1345
|
+
400: {
|
|
1346
|
+
headers: {
|
|
1347
|
+
[name: string]: unknown;
|
|
1348
|
+
};
|
|
1349
|
+
content: {
|
|
1350
|
+
"application/json": components["schemas"]["BadRequest"];
|
|
1351
|
+
};
|
|
1352
|
+
};
|
|
1353
|
+
404: {
|
|
1354
|
+
headers: {
|
|
1355
|
+
[name: string]: unknown;
|
|
1356
|
+
};
|
|
1357
|
+
content: {
|
|
1358
|
+
"application/json": components["schemas"]["UserNotFound"];
|
|
1359
|
+
};
|
|
1360
|
+
};
|
|
1361
|
+
};
|
|
1362
|
+
};
|
|
1363
|
+
put?: never;
|
|
1364
|
+
post?: never;
|
|
1365
|
+
delete?: never;
|
|
1366
|
+
options?: never;
|
|
1367
|
+
head?: never;
|
|
1368
|
+
patch?: never;
|
|
1369
|
+
trace?: never;
|
|
1370
|
+
};
|
|
1250
1371
|
"/account/{account_id}/history/funding": {
|
|
1251
1372
|
parameters: {
|
|
1252
1373
|
query?: never;
|
|
@@ -2667,49 +2788,6 @@ export interface paths {
|
|
|
2667
2788
|
patch?: never;
|
|
2668
2789
|
trace?: never;
|
|
2669
2790
|
};
|
|
2670
|
-
"/account/claim-vault/history/transfer": {
|
|
2671
|
-
parameters: {
|
|
2672
|
-
query?: never;
|
|
2673
|
-
header?: never;
|
|
2674
|
-
path?: never;
|
|
2675
|
-
cookie?: never;
|
|
2676
|
-
};
|
|
2677
|
-
get: {
|
|
2678
|
-
parameters: {
|
|
2679
|
-
query?: {
|
|
2680
|
-
/** @description start with this timestamp (RFC3339); defaults to UNIX epoch start */
|
|
2681
|
-
since?: string;
|
|
2682
|
-
/** @description end with this timestamp (RFC3339); defaults to current date-time */
|
|
2683
|
-
until?: string;
|
|
2684
|
-
/** @description fetch results starting with this page; query starts with first entry if page isn't specified */
|
|
2685
|
-
startInclusive?: number;
|
|
2686
|
-
/** @description Query returns up to 50 trades in one go. */
|
|
2687
|
-
pageSize?: number;
|
|
2688
|
-
};
|
|
2689
|
-
header?: never;
|
|
2690
|
-
path?: never;
|
|
2691
|
-
cookie?: never;
|
|
2692
|
-
};
|
|
2693
|
-
requestBody?: never;
|
|
2694
|
-
responses: {
|
|
2695
|
-
200: {
|
|
2696
|
-
headers: {
|
|
2697
|
-
[name: string]: unknown;
|
|
2698
|
-
};
|
|
2699
|
-
content: {
|
|
2700
|
-
"application/json": components["schemas"]["PageResult_for_uint64_and_TransferRow"];
|
|
2701
|
-
};
|
|
2702
|
-
};
|
|
2703
|
-
};
|
|
2704
|
-
};
|
|
2705
|
-
put?: never;
|
|
2706
|
-
post?: never;
|
|
2707
|
-
delete?: never;
|
|
2708
|
-
options?: never;
|
|
2709
|
-
head?: never;
|
|
2710
|
-
patch?: never;
|
|
2711
|
-
trace?: never;
|
|
2712
|
-
};
|
|
2713
2791
|
"/account/{account_id}/history/liquidation": {
|
|
2714
2792
|
parameters: {
|
|
2715
2793
|
query?: never;
|
|
@@ -2787,41 +2865,7 @@ export interface paths {
|
|
|
2787
2865
|
[name: string]: unknown;
|
|
2788
2866
|
};
|
|
2789
2867
|
content: {
|
|
2790
|
-
"application/json": components["schemas"]["
|
|
2791
|
-
};
|
|
2792
|
-
};
|
|
2793
|
-
};
|
|
2794
|
-
};
|
|
2795
|
-
put?: never;
|
|
2796
|
-
post?: never;
|
|
2797
|
-
delete?: never;
|
|
2798
|
-
options?: never;
|
|
2799
|
-
head?: never;
|
|
2800
|
-
patch?: never;
|
|
2801
|
-
trace?: never;
|
|
2802
|
-
};
|
|
2803
|
-
"/account/claim-vault": {
|
|
2804
|
-
parameters: {
|
|
2805
|
-
query?: never;
|
|
2806
|
-
header?: never;
|
|
2807
|
-
path?: never;
|
|
2808
|
-
cookie?: never;
|
|
2809
|
-
};
|
|
2810
|
-
get: {
|
|
2811
|
-
parameters: {
|
|
2812
|
-
query?: never;
|
|
2813
|
-
header?: never;
|
|
2814
|
-
path?: never;
|
|
2815
|
-
cookie?: never;
|
|
2816
|
-
};
|
|
2817
|
-
requestBody?: never;
|
|
2818
|
-
responses: {
|
|
2819
|
-
200: {
|
|
2820
|
-
headers: {
|
|
2821
|
-
[name: string]: unknown;
|
|
2822
|
-
};
|
|
2823
|
-
content: {
|
|
2824
|
-
"application/json": components["schemas"]["Balance"][];
|
|
2868
|
+
"application/json": components["schemas"]["SystemBalances"];
|
|
2825
2869
|
};
|
|
2826
2870
|
};
|
|
2827
2871
|
};
|
|
@@ -4333,12 +4377,16 @@ export interface components {
|
|
|
4333
4377
|
mmf: number;
|
|
4334
4378
|
/** Format: double */
|
|
4335
4379
|
cmf: number;
|
|
4380
|
+
mode: components["schemas"]["MarketMode"];
|
|
4381
|
+
regime: components["schemas"]["MarketRegime"];
|
|
4336
4382
|
};
|
|
4337
4383
|
/**
|
|
4338
4384
|
* Format: uint32
|
|
4339
4385
|
* @description 31 bit token id
|
|
4340
4386
|
*/
|
|
4341
4387
|
TokenId: number;
|
|
4388
|
+
MarketMode: "clob" | "rfq";
|
|
4389
|
+
MarketRegime: "normal" | "postOnly" | "tradeOnly";
|
|
4342
4390
|
TokenInfo: {
|
|
4343
4391
|
tokenId: components["schemas"]["TokenId"];
|
|
4344
4392
|
symbol: string;
|
|
@@ -4637,8 +4685,6 @@ export interface components {
|
|
|
4637
4685
|
marketSymbol: string;
|
|
4638
4686
|
tokenSymbol: string;
|
|
4639
4687
|
};
|
|
4640
|
-
/** @enum {string} */
|
|
4641
|
-
MarketMode: "cLOB" | "rFQ";
|
|
4642
4688
|
Side: "ask" | "bid";
|
|
4643
4689
|
FillMode: "Limit" | "PostOnly" | "ImmediateOrCancel" | "FillOrKill";
|
|
4644
4690
|
/** @enum {string} */
|
|
@@ -5101,6 +5147,52 @@ export interface components {
|
|
|
5101
5147
|
/** Format: double */
|
|
5102
5148
|
settledFundingPnl: number;
|
|
5103
5149
|
};
|
|
5150
|
+
GetAccountPositionSummaryQuery: {
|
|
5151
|
+
/**
|
|
5152
|
+
* @description Optional market filter by market id.
|
|
5153
|
+
* @default null
|
|
5154
|
+
*/
|
|
5155
|
+
marketId: number | null;
|
|
5156
|
+
};
|
|
5157
|
+
AccountPositionSummaryResult: {
|
|
5158
|
+
items: components["schemas"]["AccountPositionSummaryInfo"][];
|
|
5159
|
+
/** @description latest timestamp processed by the cumulative pnl materializer. */
|
|
5160
|
+
lastUpdatedAtTimestamp: string;
|
|
5161
|
+
/**
|
|
5162
|
+
* Format: uint64
|
|
5163
|
+
* @description latest action processed by the cumulative pnl materializer.
|
|
5164
|
+
*/
|
|
5165
|
+
lastUpdatedAtActionId: number;
|
|
5166
|
+
};
|
|
5167
|
+
AccountPositionSummaryInfo: {
|
|
5168
|
+
marketId: number;
|
|
5169
|
+
/**
|
|
5170
|
+
* Format: double
|
|
5171
|
+
* @description all-time realized trading pnl. this does not include funding.
|
|
5172
|
+
*/
|
|
5173
|
+
tradingPnl: number;
|
|
5174
|
+
fundingPnl: components["schemas"]["AccountPositionFundingPnl"];
|
|
5175
|
+
};
|
|
5176
|
+
AccountPositionFundingPnl: {
|
|
5177
|
+
/**
|
|
5178
|
+
* Format: double
|
|
5179
|
+
* @description unsettled funding since the last position size change at the returned progress.
|
|
5180
|
+
* omitted when no position is open in the market.
|
|
5181
|
+
*/
|
|
5182
|
+
sinceChange?: number | null;
|
|
5183
|
+
/**
|
|
5184
|
+
* Format: double
|
|
5185
|
+
* @description funding for the current open or flipped lifecycle at the returned progress.
|
|
5186
|
+
* omitted when no position is open in the market.
|
|
5187
|
+
*/
|
|
5188
|
+
sinceOpen?: number | null;
|
|
5189
|
+
/**
|
|
5190
|
+
* Format: double
|
|
5191
|
+
* @description funding for the full account and market history at the returned progress.
|
|
5192
|
+
* omitted when the account has no position history in the market.
|
|
5193
|
+
*/
|
|
5194
|
+
allTime?: number | null;
|
|
5195
|
+
};
|
|
5104
5196
|
GetAccountFundingHistoryQuery: {
|
|
5105
5197
|
/**
|
|
5106
5198
|
* @description start with this timestamp (RFC3339); defaults to UNIX epoch start
|
|
@@ -5674,9 +5766,9 @@ export interface components {
|
|
|
5674
5766
|
* one transfer; reserved for future multi-transfer scenarios (atomics, liquidations).
|
|
5675
5767
|
*/
|
|
5676
5768
|
idx: number;
|
|
5677
|
-
/** @description `None` when the origin is
|
|
5769
|
+
/** @description `None` when the origin is a sys account. */
|
|
5678
5770
|
fromAccountId?: components["schemas"]["AccountId"] | null;
|
|
5679
|
-
/** @description `None` when the destination is
|
|
5771
|
+
/** @description `None` when the destination is a sys account. */
|
|
5680
5772
|
toAccountId?: components["schemas"]["AccountId"] | null;
|
|
5681
5773
|
specialAccount?: components["schemas"]["SpecialAccount"] | null;
|
|
5682
5774
|
tokenId: components["schemas"]["TokenId"];
|
|
@@ -5885,6 +5977,12 @@ export interface components {
|
|
|
5885
5977
|
postPn: number;
|
|
5886
5978
|
};
|
|
5887
5979
|
LiquidationKind: "place_order" | "cancel_order" | "bankruptcy_or_take";
|
|
5980
|
+
SystemBalances: {
|
|
5981
|
+
/** Format: uint64 */
|
|
5982
|
+
actionId: number;
|
|
5983
|
+
feeVault: components["schemas"]["Balance"][];
|
|
5984
|
+
claimVault: components["schemas"]["Balance"][];
|
|
5985
|
+
};
|
|
5888
5986
|
/** @description Produced for each position taken from maker(liquidatee) by maker(backstop account) */
|
|
5889
5987
|
TakeAllInfo: {
|
|
5890
5988
|
time: string;
|
|
@@ -6074,7 +6172,8 @@ export interface components {
|
|
|
6074
6172
|
short_name?: string | null;
|
|
6075
6173
|
/**
|
|
6076
6174
|
* Format: double
|
|
6077
|
-
* @description Delta between current bid and ask prices
|
|
6175
|
+
* @description Delta between current bid and ask prices.
|
|
6176
|
+
* Always non for RFQ.
|
|
6078
6177
|
*/
|
|
6079
6178
|
spread?: number | null;
|
|
6080
6179
|
/** Format: double */
|