@reyaxyz/api-v2-sdk 0.301.4 → 0.301.6
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/index.js.map +1 -1
- package/dist/rest/apis/MarketDataApi.js +99 -1
- package/dist/rest/apis/MarketDataApi.js.map +1 -1
- package/dist/rest/apis/OrderEntryApi.js +47 -1
- package/dist/rest/apis/OrderEntryApi.js.map +1 -1
- package/dist/rest/apis/ReferenceDataApi.js +42 -1
- package/dist/rest/apis/ReferenceDataApi.js.map +1 -1
- package/dist/rest/apis/SpecsApi.js +1 -1
- package/dist/rest/apis/SpecsApi.js.map +1 -1
- package/dist/rest/apis/WalletDataApi.js +1 -1
- package/dist/rest/apis/WalletDataApi.js.map +1 -1
- package/dist/rest/models/index.js +32 -2
- package/dist/rest/models/index.js.map +1 -1
- package/dist/rest/runtime.js +1 -1
- package/dist/rest/runtime.js.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/rest/apis/MarketDataApi.d.ts +30 -2
- package/dist/types/rest/apis/MarketDataApi.d.ts.map +1 -1
- package/dist/types/rest/apis/OrderEntryApi.d.ts +15 -2
- package/dist/types/rest/apis/OrderEntryApi.d.ts.map +1 -1
- package/dist/types/rest/apis/ReferenceDataApi.d.ts +10 -2
- package/dist/types/rest/apis/ReferenceDataApi.d.ts.map +1 -1
- package/dist/types/rest/apis/SpecsApi.d.ts +1 -1
- package/dist/types/rest/apis/WalletDataApi.d.ts +1 -1
- package/dist/types/rest/models/index.d.ts +373 -98
- package/dist/types/rest/models/index.d.ts.map +1 -1
- package/dist/types/rest/runtime.d.ts +1 -1
- package/dist/types/websocket/types.d.ts +61 -0
- package/dist/types/websocket/types.d.ts.map +1 -1
- package/dist/websocket/types.js.map +1 -1
- package/package.json +2 -2
- package/rest/apis/MarketDataApi.ts +85 -1
- package/rest/apis/OrderEntryApi.ts +38 -1
- package/rest/apis/ReferenceDataApi.ts +28 -1
- package/rest/apis/SpecsApi.ts +1 -1
- package/rest/apis/WalletDataApi.ts +1 -1
- package/rest/models/index.ts +381 -99
- package/rest/runtime.ts +1 -1
- package/websocket/types.ts +70 -0
package/rest/runtime.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reya DEX Trading API v2
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0
|
|
7
|
+
* The version of the OpenAPI document: 2.1.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/websocket/types.ts
CHANGED
|
@@ -14,8 +14,34 @@ export const WebSocketServers = {
|
|
|
14
14
|
test: 'wss://websocket-testnet.reya.xyz'
|
|
15
15
|
} as const;
|
|
16
16
|
|
|
17
|
+
export interface AccountBalance {
|
|
18
|
+
accountId: number;
|
|
19
|
+
asset: string;
|
|
20
|
+
realBalance: string;
|
|
21
|
+
balanceDeprecated: string;
|
|
22
|
+
additionalProperties?: Map<string, any>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface AccountBalanceUpdatePayload {
|
|
26
|
+
type: ChannelDataMessageType;
|
|
27
|
+
timestamp: number;
|
|
28
|
+
channel: string;
|
|
29
|
+
data: AccountBalance[];
|
|
30
|
+
}
|
|
31
|
+
|
|
17
32
|
export type ChannelDataMessageType = "channel_data";
|
|
18
33
|
|
|
34
|
+
export interface Depth {
|
|
35
|
+
symbol: string;
|
|
36
|
+
type: DepthType;
|
|
37
|
+
bids: Level[];
|
|
38
|
+
asks: Level[];
|
|
39
|
+
updatedAt: number;
|
|
40
|
+
additionalProperties?: Map<string, any>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type DepthType = "SNAPSHOT" | "UPDATE";
|
|
44
|
+
|
|
19
45
|
export interface ErrorMessagePayload {
|
|
20
46
|
type: ErrorMessageType;
|
|
21
47
|
message: string;
|
|
@@ -26,6 +52,19 @@ export type ErrorMessageType = "error";
|
|
|
26
52
|
|
|
27
53
|
export type ExecutionType = "ORDER_MATCH" | "LIQUIDATION" | "ADL";
|
|
28
54
|
|
|
55
|
+
export interface Level {
|
|
56
|
+
px: string;
|
|
57
|
+
qty: string;
|
|
58
|
+
additionalProperties?: Map<string, any>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface MarketDepthUpdatePayload {
|
|
62
|
+
type: ChannelDataMessageType;
|
|
63
|
+
timestamp: number;
|
|
64
|
+
channel: string;
|
|
65
|
+
data: Depth;
|
|
66
|
+
}
|
|
67
|
+
|
|
29
68
|
export interface MarketPerpExecutionUpdatePayload {
|
|
30
69
|
type: ChannelDataMessageType;
|
|
31
70
|
timestamp: number;
|
|
@@ -33,6 +72,13 @@ export interface MarketPerpExecutionUpdatePayload {
|
|
|
33
72
|
data: PerpExecution[];
|
|
34
73
|
}
|
|
35
74
|
|
|
75
|
+
export interface MarketSpotExecutionUpdatePayload {
|
|
76
|
+
type: ChannelDataMessageType;
|
|
77
|
+
timestamp: number;
|
|
78
|
+
channel: string;
|
|
79
|
+
data: SpotExecution[];
|
|
80
|
+
}
|
|
81
|
+
|
|
36
82
|
export interface MarketSummary {
|
|
37
83
|
symbol: string;
|
|
38
84
|
updatedAt: number;
|
|
@@ -74,6 +120,7 @@ export interface Order {
|
|
|
74
120
|
orderId: string;
|
|
75
121
|
qty?: string;
|
|
76
122
|
execQty?: string;
|
|
123
|
+
cumQty?: string;
|
|
77
124
|
side: Side;
|
|
78
125
|
limitPx: string;
|
|
79
126
|
orderType: OrderType;
|
|
@@ -170,6 +217,22 @@ export interface PricesUpdatePayload {
|
|
|
170
217
|
|
|
171
218
|
export type Side = "B" | "A";
|
|
172
219
|
|
|
220
|
+
export interface SpotExecution {
|
|
221
|
+
exchangeId?: number;
|
|
222
|
+
symbol: string;
|
|
223
|
+
accountId: number;
|
|
224
|
+
makerAccountId: number;
|
|
225
|
+
orderId?: string;
|
|
226
|
+
makerOrderId?: string;
|
|
227
|
+
side: Side;
|
|
228
|
+
qty: string;
|
|
229
|
+
price: string;
|
|
230
|
+
fee: string;
|
|
231
|
+
type: ExecutionType;
|
|
232
|
+
timestamp: number;
|
|
233
|
+
additionalProperties?: Map<string, any>;
|
|
234
|
+
}
|
|
235
|
+
|
|
173
236
|
export interface SubscribeMessagePayload {
|
|
174
237
|
type: SubscribeMessageType;
|
|
175
238
|
channel: string;
|
|
@@ -210,3 +273,10 @@ export interface WalletPerpExecutionUpdatePayload {
|
|
|
210
273
|
data: PerpExecution[];
|
|
211
274
|
}
|
|
212
275
|
|
|
276
|
+
export interface WalletSpotExecutionUpdatePayload {
|
|
277
|
+
type: ChannelDataMessageType;
|
|
278
|
+
timestamp: number;
|
|
279
|
+
channel: string;
|
|
280
|
+
data: SpotExecution[];
|
|
281
|
+
}
|
|
282
|
+
|