@monaco-protocol/client-v2 0.0.2-dev.12 → 0.0.2-dev.14
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/apis/MarketPricesApi.d.ts +1 -0
- package/dist/apis/MarketPricesApi.js +3 -0
- package/dist/apis/MarketsApi.d.ts +8 -3
- package/dist/apis/MarketsApi.js +16 -1
- package/dist/apis/TradesApi.d.ts +2 -0
- package/dist/apis/TradesApi.js +6 -0
- package/dist/apis/WalletsApi.d.ts +17 -17
- package/dist/apis/WalletsApi.js +44 -44
- package/dist/models/CreateMarketRequest.d.ts +8 -2
- package/dist/models/CreateMarketRequest.js +2 -0
- package/dist/models/CreateOrderRequest.d.ts +5 -0
- package/dist/models/Currency.d.ts +2 -2
- package/dist/models/MarketLiquidities.d.ts +12 -0
- package/dist/models/MarketLiquidities.js +4 -0
- package/dist/models/Order.d.ts +19 -0
- package/dist/models/Order.js +10 -1
- package/dist/models/PagedMarketResponse.d.ts +82 -0
- package/dist/models/PagedMarketResponse.js +70 -0
- package/dist/models/PagedWalletResponse.d.ts +40 -0
- package/dist/models/PagedWalletResponse.js +52 -0
- package/dist/models/TradeSummary.d.ts +3 -2
- package/dist/models/TradeSummary.js +3 -2
- package/dist/models/Wallet.d.ts +2 -4
- package/dist/models/Wallet.js +2 -3
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
|
@@ -75,6 +75,9 @@ class MarketPricesApi extends runtime.BaseAPI {
|
|
|
75
75
|
if (requestParameters['marketIds'] != null) {
|
|
76
76
|
queryParameters['marketIds'] = requestParameters['marketIds'];
|
|
77
77
|
}
|
|
78
|
+
if (requestParameters['includeEmpty'] != null) {
|
|
79
|
+
queryParameters['includeEmpty'] = requestParameters['includeEmpty'];
|
|
80
|
+
}
|
|
78
81
|
const headerParameters = {};
|
|
79
82
|
if (requestParameters['authorization'] != null) {
|
|
80
83
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AddMarketOutcomeRequest, CreateMarketRequest, MarketLiquidityResponse, MarketResponse, MarketResultRequest, MarketUpdateResponse, PagedMarketPositionResponse, PagedOrderResponse, ToggleActionRequest, UpdateDateRequest, UpdateNameRequest } from '../models/index';
|
|
13
|
+
import type { AddMarketOutcomeRequest, CreateMarketRequest, MarketLiquidityResponse, MarketResponse, MarketResultRequest, MarketUpdateResponse, PagedMarketPositionResponse, PagedMarketResponse, PagedOrderResponse, ToggleActionRequest, UpdateDateRequest, UpdateNameRequest } from '../models/index';
|
|
14
14
|
export interface AddMarketOutcomeOperationRequest {
|
|
15
15
|
authorization: string;
|
|
16
16
|
id: string;
|
|
@@ -43,6 +43,7 @@ export interface GetMarketPositions1Request {
|
|
|
43
43
|
export interface GetMarketPricesRequest {
|
|
44
44
|
authorization: string;
|
|
45
45
|
id: string;
|
|
46
|
+
includeEmpty?: boolean;
|
|
46
47
|
}
|
|
47
48
|
export interface GetMarketsRequest {
|
|
48
49
|
authorization: string;
|
|
@@ -50,11 +51,15 @@ export interface GetMarketsRequest {
|
|
|
50
51
|
ownerAppIds?: Set<string>;
|
|
51
52
|
eventIds?: Set<string>;
|
|
52
53
|
marketTypeIds?: Set<string>;
|
|
54
|
+
currencyIds?: Set<string>;
|
|
53
55
|
statuses?: Set<GetMarketsStatusesEnum>;
|
|
54
56
|
inPlayStatuses?: Set<GetMarketsInPlayStatusesEnum>;
|
|
55
57
|
fromDateTime?: Date;
|
|
56
58
|
toDateTime?: Date;
|
|
57
59
|
published?: boolean;
|
|
60
|
+
page?: number;
|
|
61
|
+
size?: number;
|
|
62
|
+
sort?: Array<string>;
|
|
58
63
|
}
|
|
59
64
|
export interface LockMarketRequest {
|
|
60
65
|
authorization: string;
|
|
@@ -157,11 +162,11 @@ export declare class MarketsApi extends runtime.BaseAPI {
|
|
|
157
162
|
/**
|
|
158
163
|
* Returns a paginated list of markets based on the provided filter and ordering criteria. This can get specific known markets (by market ID), or markets based on other criteria such as event ID(s) and/or market type and status etc.
|
|
159
164
|
*/
|
|
160
|
-
getMarketsRaw(requestParameters: GetMarketsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
165
|
+
getMarketsRaw(requestParameters: GetMarketsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedMarketResponse>>;
|
|
161
166
|
/**
|
|
162
167
|
* Returns a paginated list of markets based on the provided filter and ordering criteria. This can get specific known markets (by market ID), or markets based on other criteria such as event ID(s) and/or market type and status etc.
|
|
163
168
|
*/
|
|
164
|
-
getMarkets(requestParameters: GetMarketsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
169
|
+
getMarkets(requestParameters: GetMarketsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedMarketResponse>;
|
|
165
170
|
/**
|
|
166
171
|
* Lock market
|
|
167
172
|
*/
|
package/dist/apis/MarketsApi.js
CHANGED
|
@@ -241,6 +241,9 @@ class MarketsApi extends runtime.BaseAPI {
|
|
|
241
241
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getMarketPrices().');
|
|
242
242
|
}
|
|
243
243
|
const queryParameters = {};
|
|
244
|
+
if (requestParameters['includeEmpty'] != null) {
|
|
245
|
+
queryParameters['includeEmpty'] = requestParameters['includeEmpty'];
|
|
246
|
+
}
|
|
244
247
|
const headerParameters = {};
|
|
245
248
|
if (requestParameters['authorization'] != null) {
|
|
246
249
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
@@ -284,6 +287,9 @@ class MarketsApi extends runtime.BaseAPI {
|
|
|
284
287
|
if (requestParameters['marketTypeIds'] != null) {
|
|
285
288
|
queryParameters['marketTypeIds'] = requestParameters['marketTypeIds'];
|
|
286
289
|
}
|
|
290
|
+
if (requestParameters['currencyIds'] != null) {
|
|
291
|
+
queryParameters['currencyIds'] = requestParameters['currencyIds'];
|
|
292
|
+
}
|
|
287
293
|
if (requestParameters['statuses'] != null) {
|
|
288
294
|
queryParameters['statuses'] = requestParameters['statuses'];
|
|
289
295
|
}
|
|
@@ -299,6 +305,15 @@ class MarketsApi extends runtime.BaseAPI {
|
|
|
299
305
|
if (requestParameters['published'] != null) {
|
|
300
306
|
queryParameters['published'] = requestParameters['published'];
|
|
301
307
|
}
|
|
308
|
+
if (requestParameters['page'] != null) {
|
|
309
|
+
queryParameters['page'] = requestParameters['page'];
|
|
310
|
+
}
|
|
311
|
+
if (requestParameters['size'] != null) {
|
|
312
|
+
queryParameters['size'] = requestParameters['size'];
|
|
313
|
+
}
|
|
314
|
+
if (requestParameters['sort'] != null) {
|
|
315
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
316
|
+
}
|
|
302
317
|
const headerParameters = {};
|
|
303
318
|
if (requestParameters['authorization'] != null) {
|
|
304
319
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
@@ -309,7 +324,7 @@ class MarketsApi extends runtime.BaseAPI {
|
|
|
309
324
|
headers: headerParameters,
|
|
310
325
|
query: queryParameters,
|
|
311
326
|
}, initOverrides);
|
|
312
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
327
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PagedMarketResponseFromJSON)(jsonValue));
|
|
313
328
|
});
|
|
314
329
|
}
|
|
315
330
|
/**
|
package/dist/apis/TradesApi.d.ts
CHANGED
package/dist/apis/TradesApi.js
CHANGED
|
@@ -81,6 +81,12 @@ class TradesApi extends runtime.BaseAPI {
|
|
|
81
81
|
if (requestParameters['orderIds'] != null) {
|
|
82
82
|
queryParameters['orderIds'] = requestParameters['orderIds'];
|
|
83
83
|
}
|
|
84
|
+
if (requestParameters['fromCreatedAt'] != null) {
|
|
85
|
+
queryParameters['fromCreatedAt'] = requestParameters['fromCreatedAt'].toISOString();
|
|
86
|
+
}
|
|
87
|
+
if (requestParameters['toCreatedAt'] != null) {
|
|
88
|
+
queryParameters['toCreatedAt'] = requestParameters['toCreatedAt'].toISOString();
|
|
89
|
+
}
|
|
84
90
|
if (requestParameters['page'] != null) {
|
|
85
91
|
queryParameters['page'] = requestParameters['page'];
|
|
86
92
|
}
|
|
@@ -20,13 +20,6 @@ export interface CreditWalletRequest {
|
|
|
20
20
|
walletId: string;
|
|
21
21
|
currencyId: string;
|
|
22
22
|
}
|
|
23
|
-
export interface FetchWalletsRequest {
|
|
24
|
-
authorization: string;
|
|
25
|
-
walletFilter?: Array<string>;
|
|
26
|
-
page?: number;
|
|
27
|
-
size?: number;
|
|
28
|
-
sort?: Array<string>;
|
|
29
|
-
}
|
|
30
23
|
export interface GetMarketPositionsRequest {
|
|
31
24
|
authorization: string;
|
|
32
25
|
id: string;
|
|
@@ -43,6 +36,13 @@ export interface GetWalletTransactionsRequest {
|
|
|
43
36
|
size?: number;
|
|
44
37
|
sort?: Array<string>;
|
|
45
38
|
}
|
|
39
|
+
export interface GetWalletsRequest {
|
|
40
|
+
authorization: string;
|
|
41
|
+
walletIds?: Array<string>;
|
|
42
|
+
page?: number;
|
|
43
|
+
size?: number;
|
|
44
|
+
sort?: Array<string>;
|
|
45
|
+
}
|
|
46
46
|
export interface WalletWithdrawRequest {
|
|
47
47
|
authorization: string;
|
|
48
48
|
id: string;
|
|
@@ -69,16 +69,6 @@ export declare class WalletsApi extends runtime.BaseAPI {
|
|
|
69
69
|
* Credit wallet with 1000 units of a given currency
|
|
70
70
|
*/
|
|
71
71
|
creditWallet(requestParameters: CreditWalletRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransferResponse>;
|
|
72
|
-
/**
|
|
73
|
-
* Fetch a list of wallets for the current user, filtered by the provided walletFilter param
|
|
74
|
-
* Fetch a list of wallets
|
|
75
|
-
*/
|
|
76
|
-
fetchWalletsRaw(requestParameters: FetchWalletsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
77
|
-
/**
|
|
78
|
-
* Fetch a list of wallets for the current user, filtered by the provided walletFilter param
|
|
79
|
-
* Fetch a list of wallets
|
|
80
|
-
*/
|
|
81
|
-
fetchWallets(requestParameters: FetchWalletsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
82
72
|
/**
|
|
83
73
|
* Fetch a list of market positions for the specified wallet, filtered by market ids
|
|
84
74
|
* Get Market Positions
|
|
@@ -109,6 +99,16 @@ export declare class WalletsApi extends runtime.BaseAPI {
|
|
|
109
99
|
* Fetch a list of transactions
|
|
110
100
|
*/
|
|
111
101
|
getWalletTransactions(requestParameters: GetWalletTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedTransactionResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* Fetch a list of wallets for the current user, filtered by the provided walletFilter param
|
|
104
|
+
* Fetch a list of wallets
|
|
105
|
+
*/
|
|
106
|
+
getWalletsRaw(requestParameters: GetWalletsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
107
|
+
/**
|
|
108
|
+
* Fetch a list of wallets for the current user, filtered by the provided walletFilter param
|
|
109
|
+
* Fetch a list of wallets
|
|
110
|
+
*/
|
|
111
|
+
getWallets(requestParameters: GetWalletsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
112
112
|
/**
|
|
113
113
|
* Withdraw Funds for the current user\'s wallet
|
|
114
114
|
* Withdraw Funds
|
package/dist/apis/WalletsApi.js
CHANGED
|
@@ -110,50 +110,6 @@ class WalletsApi extends runtime.BaseAPI {
|
|
|
110
110
|
return yield response.value();
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
-
/**
|
|
114
|
-
* Fetch a list of wallets for the current user, filtered by the provided walletFilter param
|
|
115
|
-
* Fetch a list of wallets
|
|
116
|
-
*/
|
|
117
|
-
fetchWalletsRaw(requestParameters, initOverrides) {
|
|
118
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
-
if (requestParameters['authorization'] == null) {
|
|
120
|
-
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling fetchWallets().');
|
|
121
|
-
}
|
|
122
|
-
const queryParameters = {};
|
|
123
|
-
if (requestParameters['walletFilter'] != null) {
|
|
124
|
-
queryParameters['walletFilter'] = requestParameters['walletFilter'];
|
|
125
|
-
}
|
|
126
|
-
if (requestParameters['page'] != null) {
|
|
127
|
-
queryParameters['page'] = requestParameters['page'];
|
|
128
|
-
}
|
|
129
|
-
if (requestParameters['size'] != null) {
|
|
130
|
-
queryParameters['size'] = requestParameters['size'];
|
|
131
|
-
}
|
|
132
|
-
if (requestParameters['sort'] != null) {
|
|
133
|
-
queryParameters['sort'] = requestParameters['sort'];
|
|
134
|
-
}
|
|
135
|
-
const headerParameters = {};
|
|
136
|
-
if (requestParameters['authorization'] != null) {
|
|
137
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
138
|
-
}
|
|
139
|
-
const response = yield this.request({
|
|
140
|
-
path: `/wallets`,
|
|
141
|
-
method: 'GET',
|
|
142
|
-
headers: headerParameters,
|
|
143
|
-
query: queryParameters,
|
|
144
|
-
}, initOverrides);
|
|
145
|
-
return new runtime.VoidApiResponse(response);
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Fetch a list of wallets for the current user, filtered by the provided walletFilter param
|
|
150
|
-
* Fetch a list of wallets
|
|
151
|
-
*/
|
|
152
|
-
fetchWallets(requestParameters, initOverrides) {
|
|
153
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
-
yield this.fetchWalletsRaw(requestParameters, initOverrides);
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
113
|
/**
|
|
158
114
|
* Fetch a list of market positions for the specified wallet, filtered by market ids
|
|
159
115
|
* Get Market Positions
|
|
@@ -277,6 +233,50 @@ class WalletsApi extends runtime.BaseAPI {
|
|
|
277
233
|
return yield response.value();
|
|
278
234
|
});
|
|
279
235
|
}
|
|
236
|
+
/**
|
|
237
|
+
* Fetch a list of wallets for the current user, filtered by the provided walletFilter param
|
|
238
|
+
* Fetch a list of wallets
|
|
239
|
+
*/
|
|
240
|
+
getWalletsRaw(requestParameters, initOverrides) {
|
|
241
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
242
|
+
if (requestParameters['authorization'] == null) {
|
|
243
|
+
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getWallets().');
|
|
244
|
+
}
|
|
245
|
+
const queryParameters = {};
|
|
246
|
+
if (requestParameters['walletIds'] != null) {
|
|
247
|
+
queryParameters['walletIds'] = requestParameters['walletIds'];
|
|
248
|
+
}
|
|
249
|
+
if (requestParameters['page'] != null) {
|
|
250
|
+
queryParameters['page'] = requestParameters['page'];
|
|
251
|
+
}
|
|
252
|
+
if (requestParameters['size'] != null) {
|
|
253
|
+
queryParameters['size'] = requestParameters['size'];
|
|
254
|
+
}
|
|
255
|
+
if (requestParameters['sort'] != null) {
|
|
256
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
257
|
+
}
|
|
258
|
+
const headerParameters = {};
|
|
259
|
+
if (requestParameters['authorization'] != null) {
|
|
260
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
261
|
+
}
|
|
262
|
+
const response = yield this.request({
|
|
263
|
+
path: `/wallets`,
|
|
264
|
+
method: 'GET',
|
|
265
|
+
headers: headerParameters,
|
|
266
|
+
query: queryParameters,
|
|
267
|
+
}, initOverrides);
|
|
268
|
+
return new runtime.VoidApiResponse(response);
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Fetch a list of wallets for the current user, filtered by the provided walletFilter param
|
|
273
|
+
* Fetch a list of wallets
|
|
274
|
+
*/
|
|
275
|
+
getWallets(requestParameters, initOverrides) {
|
|
276
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
277
|
+
yield this.getWalletsRaw(requestParameters, initOverrides);
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
280
|
/**
|
|
281
281
|
* Withdraw Funds for the current user\'s wallet
|
|
282
282
|
* Withdraw Funds
|
|
@@ -47,10 +47,10 @@ export interface CreateMarketRequest {
|
|
|
47
47
|
marketDiscriminator?: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {string}
|
|
51
51
|
* @memberof CreateMarketRequest
|
|
52
52
|
*/
|
|
53
|
-
currencyId?:
|
|
53
|
+
currencyId?: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {boolean}
|
|
@@ -63,6 +63,12 @@ export interface CreateMarketRequest {
|
|
|
63
63
|
* @memberof CreateMarketRequest
|
|
64
64
|
*/
|
|
65
65
|
inPlayDelay?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof CreateMarketRequest
|
|
70
|
+
*/
|
|
71
|
+
crossMatchingEnabled?: boolean;
|
|
66
72
|
/**
|
|
67
73
|
*
|
|
68
74
|
* @type {Date}
|
|
@@ -55,6 +55,7 @@ function CreateMarketRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'currencyId': json['currencyId'] == null ? undefined : json['currencyId'],
|
|
56
56
|
'inPlayEnabled': json['inPlayEnabled'] == null ? undefined : json['inPlayEnabled'],
|
|
57
57
|
'inPlayDelay': json['inPlayDelay'] == null ? undefined : json['inPlayDelay'],
|
|
58
|
+
'crossMatchingEnabled': json['crossMatchingEnabled'] == null ? undefined : json['crossMatchingEnabled'],
|
|
58
59
|
'lockAt': json['lockAt'] == null ? undefined : (new Date(json['lockAt'])),
|
|
59
60
|
'marketLockAction': json['marketLockAction'] == null ? undefined : json['marketLockAction'],
|
|
60
61
|
'eventStartAction': json['eventStartAction'] == null ? undefined : json['eventStartAction'],
|
|
@@ -77,6 +78,7 @@ function CreateMarketRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
78
|
'currencyId': value['currencyId'],
|
|
78
79
|
'inPlayEnabled': value['inPlayEnabled'],
|
|
79
80
|
'inPlayDelay': value['inPlayDelay'],
|
|
81
|
+
'crossMatchingEnabled': value['crossMatchingEnabled'],
|
|
80
82
|
'lockAt': value['lockAt'] == null ? undefined : ((value['lockAt']).toISOString()),
|
|
81
83
|
'marketLockAction': value['marketLockAction'],
|
|
82
84
|
'eventStartAction': value['eventStartAction'],
|
|
@@ -58,6 +58,11 @@ export interface CreateOrderRequest {
|
|
|
58
58
|
*/
|
|
59
59
|
keepWhenInPlay?: boolean;
|
|
60
60
|
/**
|
|
61
|
+
* Optional - How any unmatched portion of an order is treated:
|
|
62
|
+
* <ul>
|
|
63
|
+
* <li>RetainUnmatched - unmatched portion persists as an offer (default)</li>
|
|
64
|
+
* <li>CancelUnmatched - unmatched portion is cancelled</li>
|
|
65
|
+
* </ul>
|
|
61
66
|
*
|
|
62
67
|
* @type {string}
|
|
63
68
|
* @memberof CreateOrderRequest
|
|
@@ -22,6 +22,18 @@ export interface MarketLiquidities {
|
|
|
22
22
|
* @memberof MarketLiquidities
|
|
23
23
|
*/
|
|
24
24
|
marketId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof MarketLiquidities
|
|
29
|
+
*/
|
|
30
|
+
liquidity?: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof MarketLiquidities
|
|
35
|
+
*/
|
|
36
|
+
traded?: number;
|
|
25
37
|
/**
|
|
26
38
|
*
|
|
27
39
|
* @type {Array<MarketLiquidity>}
|
|
@@ -34,6 +34,8 @@ function MarketLiquiditiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
36
|
'marketId': json['marketId'] == null ? undefined : json['marketId'],
|
|
37
|
+
'liquidity': json['liquidity'] == null ? undefined : json['liquidity'],
|
|
38
|
+
'traded': json['traded'] == null ? undefined : json['traded'],
|
|
37
39
|
'prices': json['prices'] == null ? undefined : (json['prices'].map(MarketLiquidity_1.MarketLiquidityFromJSON)),
|
|
38
40
|
};
|
|
39
41
|
}
|
|
@@ -46,6 +48,8 @@ function MarketLiquiditiesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
48
|
}
|
|
47
49
|
return {
|
|
48
50
|
'marketId': value['marketId'],
|
|
51
|
+
'liquidity': value['liquidity'],
|
|
52
|
+
'traded': value['traded'],
|
|
49
53
|
'prices': value['prices'] == null ? undefined : (value['prices'].map(MarketLiquidity_1.MarketLiquidityToJSON)),
|
|
50
54
|
};
|
|
51
55
|
}
|
package/dist/models/Order.d.ts
CHANGED
|
@@ -122,6 +122,17 @@ export interface Order {
|
|
|
122
122
|
* @memberof Order
|
|
123
123
|
*/
|
|
124
124
|
status?: OrderStatusEnum;
|
|
125
|
+
/**
|
|
126
|
+
* Optional - How any unmatched portion of an order is treated:
|
|
127
|
+
* <ul>
|
|
128
|
+
* <li>RetainUnmatched - unmatched portion persists as an offer (default)</li>
|
|
129
|
+
* <li>CancelUnmatched - unmatched portion is cancelled</li>
|
|
130
|
+
* </ul>
|
|
131
|
+
*
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof Order
|
|
134
|
+
*/
|
|
135
|
+
matchBehavior?: OrderMatchBehaviorEnum;
|
|
125
136
|
}
|
|
126
137
|
/**
|
|
127
138
|
* @export
|
|
@@ -144,6 +155,14 @@ export declare const OrderStatusEnum: {
|
|
|
144
155
|
readonly Voided: "Voided";
|
|
145
156
|
};
|
|
146
157
|
export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];
|
|
158
|
+
/**
|
|
159
|
+
* @export
|
|
160
|
+
*/
|
|
161
|
+
export declare const OrderMatchBehaviorEnum: {
|
|
162
|
+
readonly RetainUnmatched: "RetainUnmatched";
|
|
163
|
+
readonly CancelUnmatched: "CancelUnmatched";
|
|
164
|
+
};
|
|
165
|
+
export type OrderMatchBehaviorEnum = typeof OrderMatchBehaviorEnum[keyof typeof OrderMatchBehaviorEnum];
|
|
147
166
|
/**
|
|
148
167
|
* Check if a given object implements the Order interface.
|
|
149
168
|
*/
|
package/dist/models/Order.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.OrderStatusEnum = exports.OrderSideEnum = void 0;
|
|
16
|
+
exports.OrderMatchBehaviorEnum = exports.OrderStatusEnum = exports.OrderSideEnum = void 0;
|
|
17
17
|
exports.instanceOfOrder = instanceOfOrder;
|
|
18
18
|
exports.OrderFromJSON = OrderFromJSON;
|
|
19
19
|
exports.OrderFromJSONTyped = OrderFromJSONTyped;
|
|
@@ -39,6 +39,13 @@ exports.OrderStatusEnum = {
|
|
|
39
39
|
Lost: 'Lost',
|
|
40
40
|
Voided: 'Voided'
|
|
41
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
exports.OrderMatchBehaviorEnum = {
|
|
46
|
+
RetainUnmatched: 'RetainUnmatched',
|
|
47
|
+
CancelUnmatched: 'CancelUnmatched'
|
|
48
|
+
};
|
|
42
49
|
/**
|
|
43
50
|
* Check if a given object implements the Order interface.
|
|
44
51
|
*/
|
|
@@ -69,6 +76,7 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
76
|
'commissionRateId': json['commissionRateId'] == null ? undefined : json['commissionRateId'],
|
|
70
77
|
'reference': json['reference'] == null ? undefined : json['reference'],
|
|
71
78
|
'status': json['status'] == null ? undefined : json['status'],
|
|
79
|
+
'matchBehavior': json['matchBehavior'] == null ? undefined : json['matchBehavior'],
|
|
72
80
|
};
|
|
73
81
|
}
|
|
74
82
|
function OrderToJSON(json) {
|
|
@@ -95,5 +103,6 @@ function OrderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
95
103
|
'commissionRateId': value['commissionRateId'],
|
|
96
104
|
'reference': value['reference'],
|
|
97
105
|
'status': value['status'],
|
|
106
|
+
'matchBehavior': value['matchBehavior'],
|
|
98
107
|
};
|
|
99
108
|
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { MarketOutcomeSummary } from './MarketOutcomeSummary';
|
|
13
|
+
import type { Meta } from './Meta';
|
|
14
|
+
import type { CategorySummary } from './CategorySummary';
|
|
15
|
+
import type { EventSummary } from './EventSummary';
|
|
16
|
+
import type { SubcategorySummary } from './SubcategorySummary';
|
|
17
|
+
import type { Market } from './Market';
|
|
18
|
+
import type { MarketTypeSummary } from './MarketTypeSummary';
|
|
19
|
+
import type { EventGroupSummary } from './EventGroupSummary';
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface PagedMarketResponse
|
|
24
|
+
*/
|
|
25
|
+
export interface PagedMarketResponse {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Meta}
|
|
29
|
+
* @memberof PagedMarketResponse
|
|
30
|
+
*/
|
|
31
|
+
meta?: Meta;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<Market>}
|
|
35
|
+
* @memberof PagedMarketResponse
|
|
36
|
+
*/
|
|
37
|
+
markets?: Array<Market>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<MarketTypeSummary>}
|
|
41
|
+
* @memberof PagedMarketResponse
|
|
42
|
+
*/
|
|
43
|
+
marketTypes?: Array<MarketTypeSummary>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<MarketOutcomeSummary>}
|
|
47
|
+
* @memberof PagedMarketResponse
|
|
48
|
+
*/
|
|
49
|
+
marketOutcomes?: Array<MarketOutcomeSummary>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<EventSummary>}
|
|
53
|
+
* @memberof PagedMarketResponse
|
|
54
|
+
*/
|
|
55
|
+
events?: Array<EventSummary>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<EventGroupSummary>}
|
|
59
|
+
* @memberof PagedMarketResponse
|
|
60
|
+
*/
|
|
61
|
+
eventGroups?: Array<EventGroupSummary>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<SubcategorySummary>}
|
|
65
|
+
* @memberof PagedMarketResponse
|
|
66
|
+
*/
|
|
67
|
+
subcategories?: Array<SubcategorySummary>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<CategorySummary>}
|
|
71
|
+
* @memberof PagedMarketResponse
|
|
72
|
+
*/
|
|
73
|
+
categories?: Array<CategorySummary>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the PagedMarketResponse interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfPagedMarketResponse(value: object): value is PagedMarketResponse;
|
|
79
|
+
export declare function PagedMarketResponseFromJSON(json: any): PagedMarketResponse;
|
|
80
|
+
export declare function PagedMarketResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagedMarketResponse;
|
|
81
|
+
export declare function PagedMarketResponseToJSON(json: any): PagedMarketResponse;
|
|
82
|
+
export declare function PagedMarketResponseToJSONTyped(value?: PagedMarketResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Monaco API
|
|
6
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPagedMarketResponse = instanceOfPagedMarketResponse;
|
|
17
|
+
exports.PagedMarketResponseFromJSON = PagedMarketResponseFromJSON;
|
|
18
|
+
exports.PagedMarketResponseFromJSONTyped = PagedMarketResponseFromJSONTyped;
|
|
19
|
+
exports.PagedMarketResponseToJSON = PagedMarketResponseToJSON;
|
|
20
|
+
exports.PagedMarketResponseToJSONTyped = PagedMarketResponseToJSONTyped;
|
|
21
|
+
const MarketOutcomeSummary_1 = require("./MarketOutcomeSummary");
|
|
22
|
+
const Meta_1 = require("./Meta");
|
|
23
|
+
const CategorySummary_1 = require("./CategorySummary");
|
|
24
|
+
const EventSummary_1 = require("./EventSummary");
|
|
25
|
+
const SubcategorySummary_1 = require("./SubcategorySummary");
|
|
26
|
+
const Market_1 = require("./Market");
|
|
27
|
+
const MarketTypeSummary_1 = require("./MarketTypeSummary");
|
|
28
|
+
const EventGroupSummary_1 = require("./EventGroupSummary");
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the PagedMarketResponse interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfPagedMarketResponse(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function PagedMarketResponseFromJSON(json) {
|
|
36
|
+
return PagedMarketResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function PagedMarketResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
44
|
+
'markets': json['markets'] == null ? undefined : (json['markets'].map(Market_1.MarketFromJSON)),
|
|
45
|
+
'marketTypes': json['marketTypes'] == null ? undefined : (json['marketTypes'].map(MarketTypeSummary_1.MarketTypeSummaryFromJSON)),
|
|
46
|
+
'marketOutcomes': json['marketOutcomes'] == null ? undefined : (json['marketOutcomes'].map(MarketOutcomeSummary_1.MarketOutcomeSummaryFromJSON)),
|
|
47
|
+
'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
|
|
48
|
+
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryFromJSON)),
|
|
49
|
+
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
|
|
50
|
+
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function PagedMarketResponseToJSON(json) {
|
|
54
|
+
return PagedMarketResponseToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function PagedMarketResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
62
|
+
'markets': value['markets'] == null ? undefined : (value['markets'].map(Market_1.MarketToJSON)),
|
|
63
|
+
'marketTypes': value['marketTypes'] == null ? undefined : (value['marketTypes'].map(MarketTypeSummary_1.MarketTypeSummaryToJSON)),
|
|
64
|
+
'marketOutcomes': value['marketOutcomes'] == null ? undefined : (value['marketOutcomes'].map(MarketOutcomeSummary_1.MarketOutcomeSummaryToJSON)),
|
|
65
|
+
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
66
|
+
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryToJSON)),
|
|
67
|
+
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
|
|
68
|
+
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Meta } from './Meta';
|
|
13
|
+
import type { Wallet } from './Wallet';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PagedWalletResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PagedWalletResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof PagedWalletResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<Wallet>}
|
|
29
|
+
* @memberof PagedWalletResponse
|
|
30
|
+
*/
|
|
31
|
+
wallets?: Array<Wallet>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PagedWalletResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPagedWalletResponse(value: object): value is PagedWalletResponse;
|
|
37
|
+
export declare function PagedWalletResponseFromJSON(json: any): PagedWalletResponse;
|
|
38
|
+
export declare function PagedWalletResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagedWalletResponse;
|
|
39
|
+
export declare function PagedWalletResponseToJSON(json: any): PagedWalletResponse;
|
|
40
|
+
export declare function PagedWalletResponseToJSONTyped(value?: PagedWalletResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Monaco API
|
|
6
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPagedWalletResponse = instanceOfPagedWalletResponse;
|
|
17
|
+
exports.PagedWalletResponseFromJSON = PagedWalletResponseFromJSON;
|
|
18
|
+
exports.PagedWalletResponseFromJSONTyped = PagedWalletResponseFromJSONTyped;
|
|
19
|
+
exports.PagedWalletResponseToJSON = PagedWalletResponseToJSON;
|
|
20
|
+
exports.PagedWalletResponseToJSONTyped = PagedWalletResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const Wallet_1 = require("./Wallet");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PagedWalletResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPagedWalletResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PagedWalletResponseFromJSON(json) {
|
|
30
|
+
return PagedWalletResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PagedWalletResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
38
|
+
'wallets': json['wallets'] == null ? undefined : (json['wallets'].map(Wallet_1.WalletFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function PagedWalletResponseToJSON(json) {
|
|
42
|
+
return PagedWalletResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PagedWalletResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'wallets': value['wallets'] == null ? undefined : (value['wallets'].map(Wallet_1.WalletToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { DocumentReference } from './DocumentReference';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -17,10 +18,10 @@
|
|
|
17
18
|
export interface TradeSummary {
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
20
|
-
* @type {
|
|
21
|
+
* @type {DocumentReference}
|
|
21
22
|
* @memberof TradeSummary
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
+
order?: DocumentReference;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
* @type {number}
|
|
@@ -18,6 +18,7 @@ exports.TradeSummaryFromJSON = TradeSummaryFromJSON;
|
|
|
18
18
|
exports.TradeSummaryFromJSONTyped = TradeSummaryFromJSONTyped;
|
|
19
19
|
exports.TradeSummaryToJSON = TradeSummaryToJSON;
|
|
20
20
|
exports.TradeSummaryToJSONTyped = TradeSummaryToJSONTyped;
|
|
21
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the TradeSummary interface.
|
|
23
24
|
*/
|
|
@@ -32,7 +33,7 @@ function TradeSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
33
|
return json;
|
|
33
34
|
}
|
|
34
35
|
return {
|
|
35
|
-
'
|
|
36
|
+
'order': json['order'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['order']),
|
|
36
37
|
'price': json['price'] == null ? undefined : json['price'],
|
|
37
38
|
'stake': json['stake'] == null ? undefined : json['stake'],
|
|
38
39
|
};
|
|
@@ -45,7 +46,7 @@ function TradeSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
46
|
return value;
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
48
|
-
'
|
|
49
|
+
'order': (0, DocumentReference_1.DocumentReferenceToJSON)(value['order']),
|
|
49
50
|
'price': value['price'],
|
|
50
51
|
'stake': value['stake'],
|
|
51
52
|
};
|
package/dist/models/Wallet.d.ts
CHANGED
|
@@ -48,12 +48,10 @@ export interface Wallet {
|
|
|
48
48
|
description?: string;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {
|
|
51
|
+
* @type {Array<WalletBalance>}
|
|
52
52
|
* @memberof Wallet
|
|
53
53
|
*/
|
|
54
|
-
balances?:
|
|
55
|
-
[key: string]: WalletBalance;
|
|
56
|
-
};
|
|
54
|
+
balances?: Array<WalletBalance>;
|
|
57
55
|
}
|
|
58
56
|
/**
|
|
59
57
|
* @export
|
package/dist/models/Wallet.js
CHANGED
|
@@ -19,7 +19,6 @@ exports.WalletFromJSON = WalletFromJSON;
|
|
|
19
19
|
exports.WalletFromJSONTyped = WalletFromJSONTyped;
|
|
20
20
|
exports.WalletToJSON = WalletToJSON;
|
|
21
21
|
exports.WalletToJSONTyped = WalletToJSONTyped;
|
|
22
|
-
const runtime_1 = require("../runtime");
|
|
23
22
|
const WalletBalance_1 = require("./WalletBalance");
|
|
24
23
|
/**
|
|
25
24
|
* @export
|
|
@@ -49,7 +48,7 @@ function WalletFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
48
|
'type': json['type'] == null ? undefined : json['type'],
|
|
50
49
|
'reference': json['reference'] == null ? undefined : json['reference'],
|
|
51
50
|
'description': json['description'] == null ? undefined : json['description'],
|
|
52
|
-
'balances': json['balances'] == null ? undefined : (
|
|
51
|
+
'balances': json['balances'] == null ? undefined : (json['balances'].map(WalletBalance_1.WalletBalanceFromJSON)),
|
|
53
52
|
};
|
|
54
53
|
}
|
|
55
54
|
function WalletToJSON(json) {
|
|
@@ -65,6 +64,6 @@ function WalletToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
64
|
'type': value['type'],
|
|
66
65
|
'reference': value['reference'],
|
|
67
66
|
'description': value['description'],
|
|
68
|
-
'balances': value['balances'] == null ? undefined : (
|
|
67
|
+
'balances': value['balances'] == null ? undefined : (value['balances'].map(WalletBalance_1.WalletBalanceToJSON)),
|
|
69
68
|
};
|
|
70
69
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -64,9 +64,11 @@ export * from './OrderSummary';
|
|
|
64
64
|
export * from './PageMeta';
|
|
65
65
|
export * from './PagedEventResponse';
|
|
66
66
|
export * from './PagedMarketPositionResponse';
|
|
67
|
+
export * from './PagedMarketResponse';
|
|
67
68
|
export * from './PagedOrderResponse';
|
|
68
69
|
export * from './PagedTradeResponse';
|
|
69
70
|
export * from './PagedTransactionResponse';
|
|
71
|
+
export * from './PagedWalletResponse';
|
|
70
72
|
export * from './Participant';
|
|
71
73
|
export * from './ParticipantsResponse';
|
|
72
74
|
export * from './Range';
|
package/dist/models/index.js
CHANGED
|
@@ -82,9 +82,11 @@ __exportStar(require("./OrderSummary"), exports);
|
|
|
82
82
|
__exportStar(require("./PageMeta"), exports);
|
|
83
83
|
__exportStar(require("./PagedEventResponse"), exports);
|
|
84
84
|
__exportStar(require("./PagedMarketPositionResponse"), exports);
|
|
85
|
+
__exportStar(require("./PagedMarketResponse"), exports);
|
|
85
86
|
__exportStar(require("./PagedOrderResponse"), exports);
|
|
86
87
|
__exportStar(require("./PagedTradeResponse"), exports);
|
|
87
88
|
__exportStar(require("./PagedTransactionResponse"), exports);
|
|
89
|
+
__exportStar(require("./PagedWalletResponse"), exports);
|
|
88
90
|
__exportStar(require("./Participant"), exports);
|
|
89
91
|
__exportStar(require("./ParticipantsResponse"), exports);
|
|
90
92
|
__exportStar(require("./Range"), exports);
|