@monaco-protocol/client-v2 0.0.2-dev.3 → 0.0.2-dev.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/apis/APIKeyManagementApi.d.ts +3 -3
- package/dist/apis/APIKeyManagementApi.js +5 -5
- package/dist/apis/AppManagementApi.d.ts +6 -6
- package/dist/apis/AppManagementApi.js +9 -9
- package/dist/apis/CurrenciesApi.d.ts +3 -3
- package/dist/apis/CurrenciesApi.js +5 -5
- package/dist/apis/EventCategoriesApi.d.ts +9 -9
- package/dist/apis/EventCategoriesApi.js +14 -14
- package/dist/apis/EventGroupsApi.d.ts +11 -11
- package/dist/apis/EventGroupsApi.js +16 -16
- package/dist/apis/EventSubcategoriesApi.d.ts +67 -16
- package/dist/apis/EventSubcategoriesApi.js +170 -20
- package/dist/apis/EventsApi.d.ts +42 -2
- package/dist/apis/EventsApi.js +118 -0
- package/dist/apis/MarketPricesApi.d.ts +3 -3
- package/dist/apis/MarketPricesApi.js +5 -5
- package/dist/apis/MarketsApi.d.ts +7 -3
- package/dist/apis/MarketsApi.js +14 -2
- package/dist/apis/OrdersApi.d.ts +9 -5
- package/dist/apis/OrdersApi.js +14 -2
- package/dist/apis/SessionManagementApi.d.ts +10 -10
- package/dist/apis/SessionManagementApi.js +12 -12
- package/dist/apis/TradesApi.d.ts +4 -2
- package/dist/apis/TradesApi.js +6 -0
- package/dist/apis/WalletsApi.d.ts +7 -3
- package/dist/apis/WalletsApi.js +12 -0
- package/dist/models/AddParticipantRequest.d.ts +52 -0
- package/dist/models/AddParticipantRequest.js +60 -0
- package/dist/models/AddParticipantsRequest.d.ts +33 -0
- package/dist/models/AddParticipantsRequest.js +49 -0
- package/dist/models/ChunkOrderResponse.d.ts +8 -1
- package/dist/models/ChunkOrderResponse.js +5 -2
- package/dist/models/CreateEventRequest.d.ts +5 -5
- package/dist/models/CreateEventRequest.js +16 -6
- package/dist/models/CreateOrderRequest.d.ts +9 -0
- package/dist/models/CreateOrderRequest.js +2 -0
- package/dist/models/CreateSessionRequest.d.ts +2 -2
- package/dist/models/CreateSessionRequest.js +6 -2
- package/dist/models/DocumentReference.js +4 -4
- package/dist/models/EventParticipant.d.ts +52 -0
- package/dist/models/EventParticipant.js +60 -0
- package/dist/models/EventParticipantsResponse.d.ts +40 -0
- package/dist/models/EventParticipantsResponse.js +52 -0
- package/dist/models/Meta.d.ts +34 -1
- package/dist/models/Meta.js +29 -0
- package/dist/models/ModifyParticipantsRequest.d.ts +32 -0
- package/dist/models/ModifyParticipantsRequest.js +48 -0
- package/dist/models/OrderResponse.d.ts +7 -0
- package/dist/models/OrderResponse.js +3 -0
- package/dist/models/PageMeta.d.ts +50 -0
- package/dist/models/PageMeta.js +54 -0
- package/dist/models/PagedEventResponse.d.ts +0 -24
- package/dist/models/PagedEventResponse.js +0 -8
- package/dist/models/PagedMarketPositionResponse.d.ts +0 -24
- package/dist/models/PagedMarketPositionResponse.js +0 -8
- package/dist/models/PagedOrderResponse.d.ts +3 -20
- package/dist/models/PagedOrderResponse.js +3 -8
- package/dist/models/PagedTradeResponse.d.ts +0 -24
- package/dist/models/PagedTradeResponse.js +0 -8
- package/dist/models/PagedTransactionResponse.d.ts +0 -24
- package/dist/models/PagedTransactionResponse.js +0 -8
- package/dist/models/Participant.d.ts +58 -0
- package/dist/models/Participant.js +62 -0
- package/dist/models/ParticipantsResponse.d.ts +40 -0
- package/dist/models/ParticipantsResponse.js +52 -0
- package/dist/models/TradeSummary.d.ts +44 -0
- package/dist/models/TradeSummary.js +52 -0
- package/dist/models/index.d.ts +9 -1
- package/dist/models/index.js +9 -1
- package/package.json +1 -1
package/dist/apis/OrdersApi.js
CHANGED
|
@@ -64,7 +64,7 @@ class OrdersApi extends runtime.BaseAPI {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* Cancel orders by event and/or market
|
|
67
|
+
* Cancel orders owned by the caller by event and/or market; skips invalid markets/orders
|
|
68
68
|
*/
|
|
69
69
|
cancelOrdersRaw(requestParameters, initOverrides) {
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -95,7 +95,7 @@ class OrdersApi extends runtime.BaseAPI {
|
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
|
-
* Cancel orders by event and/or market
|
|
98
|
+
* Cancel orders owned by the caller by event and/or market; skips invalid markets/orders
|
|
99
99
|
*/
|
|
100
100
|
cancelOrders(requestParameters, initOverrides) {
|
|
101
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -215,6 +215,12 @@ class OrdersApi extends runtime.BaseAPI {
|
|
|
215
215
|
if (requestParameters['page'] != null) {
|
|
216
216
|
queryParameters['page'] = requestParameters['page'];
|
|
217
217
|
}
|
|
218
|
+
if (requestParameters['size'] != null) {
|
|
219
|
+
queryParameters['size'] = requestParameters['size'];
|
|
220
|
+
}
|
|
221
|
+
if (requestParameters['sort'] != null) {
|
|
222
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
223
|
+
}
|
|
218
224
|
const headerParameters = {};
|
|
219
225
|
if (requestParameters['authorization'] != null) {
|
|
220
226
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
@@ -252,6 +258,12 @@ class OrdersApi extends runtime.BaseAPI {
|
|
|
252
258
|
if (requestParameters['page'] != null) {
|
|
253
259
|
queryParameters['page'] = requestParameters['page'];
|
|
254
260
|
}
|
|
261
|
+
if (requestParameters['size'] != null) {
|
|
262
|
+
queryParameters['size'] = requestParameters['size'];
|
|
263
|
+
}
|
|
264
|
+
if (requestParameters['sort'] != null) {
|
|
265
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
266
|
+
}
|
|
255
267
|
const headerParameters = {};
|
|
256
268
|
if (requestParameters['authorization'] != null) {
|
|
257
269
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { CreateSessionRequest, RefreshSessionRequest, SessionResponse } from '../models/index';
|
|
14
|
-
export interface
|
|
14
|
+
export interface CreateSessionOperationRequest {
|
|
15
15
|
createSessionRequest: CreateSessionRequest;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface RefreshSessionOperationRequest {
|
|
18
18
|
refreshSessionRequest: RefreshSessionRequest;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
@@ -22,19 +22,19 @@ export interface RefreshRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare class SessionManagementApi extends runtime.BaseAPI {
|
|
24
24
|
/**
|
|
25
|
-
* Create session for a given
|
|
25
|
+
* Create session for a given credentials
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
createSessionRaw(requestParameters: CreateSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SessionResponse>>;
|
|
28
28
|
/**
|
|
29
|
-
* Create session for a given
|
|
29
|
+
* Create session for a given credentials
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
createSession(requestParameters: CreateSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SessionResponse>;
|
|
32
32
|
/**
|
|
33
|
-
* Refresh session for a given
|
|
33
|
+
* Refresh session for a given token
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
refreshSessionRaw(requestParameters: RefreshSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SessionResponse>>;
|
|
36
36
|
/**
|
|
37
|
-
* Refresh session for a given
|
|
37
|
+
* Refresh session for a given token
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
refreshSession(requestParameters: RefreshSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SessionResponse>;
|
|
40
40
|
}
|
|
@@ -30,12 +30,12 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class SessionManagementApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
* Create session for a given
|
|
33
|
+
* Create session for a given credentials
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
createSessionRaw(requestParameters, initOverrides) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
37
|
if (requestParameters['createSessionRequest'] == null) {
|
|
38
|
-
throw new runtime.RequiredError('createSessionRequest', 'Required parameter "createSessionRequest" was null or undefined when calling
|
|
38
|
+
throw new runtime.RequiredError('createSessionRequest', 'Required parameter "createSessionRequest" was null or undefined when calling createSession().');
|
|
39
39
|
}
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
@@ -51,21 +51,21 @@ class SessionManagementApi extends runtime.BaseAPI {
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
* Create session for a given
|
|
54
|
+
* Create session for a given credentials
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
createSession(requestParameters, initOverrides) {
|
|
57
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
const response = yield this.
|
|
58
|
+
const response = yield this.createSessionRaw(requestParameters, initOverrides);
|
|
59
59
|
return yield response.value();
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
* Refresh session for a given
|
|
63
|
+
* Refresh session for a given token
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
refreshSessionRaw(requestParameters, initOverrides) {
|
|
66
66
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
67
|
if (requestParameters['refreshSessionRequest'] == null) {
|
|
68
|
-
throw new runtime.RequiredError('refreshSessionRequest', 'Required parameter "refreshSessionRequest" was null or undefined when calling
|
|
68
|
+
throw new runtime.RequiredError('refreshSessionRequest', 'Required parameter "refreshSessionRequest" was null or undefined when calling refreshSession().');
|
|
69
69
|
}
|
|
70
70
|
const queryParameters = {};
|
|
71
71
|
const headerParameters = {};
|
|
@@ -81,11 +81,11 @@ class SessionManagementApi extends runtime.BaseAPI {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
|
-
* Refresh session for a given
|
|
84
|
+
* Refresh session for a given token
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
refreshSession(requestParameters, initOverrides) {
|
|
87
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
const response = yield this.
|
|
88
|
+
const response = yield this.refreshSessionRaw(requestParameters, initOverrides);
|
|
89
89
|
return yield response.value();
|
|
90
90
|
});
|
|
91
91
|
}
|
package/dist/apis/TradesApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
13
|
+
import type { PagedTradeResponse, TradeResponse } from '../models/index';
|
|
14
14
|
export interface GetTradeRequest {
|
|
15
15
|
authorization: string;
|
|
16
16
|
id: string;
|
|
@@ -20,7 +20,9 @@ export interface GetTradesRequest {
|
|
|
20
20
|
marketIds?: Array<string>;
|
|
21
21
|
walletIds?: Array<string>;
|
|
22
22
|
orderIds?: Array<string>;
|
|
23
|
-
page?:
|
|
23
|
+
page?: number;
|
|
24
|
+
size?: number;
|
|
25
|
+
sort?: Array<string>;
|
|
24
26
|
}
|
|
25
27
|
/**
|
|
26
28
|
*
|
package/dist/apis/TradesApi.js
CHANGED
|
@@ -84,6 +84,12 @@ class TradesApi extends runtime.BaseAPI {
|
|
|
84
84
|
if (requestParameters['page'] != null) {
|
|
85
85
|
queryParameters['page'] = requestParameters['page'];
|
|
86
86
|
}
|
|
87
|
+
if (requestParameters['size'] != null) {
|
|
88
|
+
queryParameters['size'] = requestParameters['size'];
|
|
89
|
+
}
|
|
90
|
+
if (requestParameters['sort'] != null) {
|
|
91
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
92
|
+
}
|
|
87
93
|
const headerParameters = {};
|
|
88
94
|
if (requestParameters['authorization'] != null) {
|
|
89
95
|
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 { CreateWalletRequest,
|
|
13
|
+
import type { CreateWalletRequest, PagedTransactionResponse, TransferResponse, WalletResponse } from '../models/index';
|
|
14
14
|
export interface CreateWalletOperationRequest {
|
|
15
15
|
authorization: string;
|
|
16
16
|
createWalletRequest: CreateWalletRequest;
|
|
@@ -23,7 +23,9 @@ export interface CreditWalletRequest {
|
|
|
23
23
|
export interface FetchWalletsRequest {
|
|
24
24
|
authorization: string;
|
|
25
25
|
walletFilter?: Array<string>;
|
|
26
|
-
page?:
|
|
26
|
+
page?: number;
|
|
27
|
+
size?: number;
|
|
28
|
+
sort?: Array<string>;
|
|
27
29
|
}
|
|
28
30
|
export interface GetWalletRequest {
|
|
29
31
|
authorization: string;
|
|
@@ -32,7 +34,9 @@ export interface GetWalletRequest {
|
|
|
32
34
|
export interface GetWalletTransactionsRequest {
|
|
33
35
|
authorization: string;
|
|
34
36
|
id: string;
|
|
35
|
-
page?:
|
|
37
|
+
page?: number;
|
|
38
|
+
size?: number;
|
|
39
|
+
sort?: Array<string>;
|
|
36
40
|
}
|
|
37
41
|
export interface WalletWithdrawRequest {
|
|
38
42
|
authorization: string;
|
package/dist/apis/WalletsApi.js
CHANGED
|
@@ -126,6 +126,12 @@ class WalletsApi extends runtime.BaseAPI {
|
|
|
126
126
|
if (requestParameters['page'] != null) {
|
|
127
127
|
queryParameters['page'] = requestParameters['page'];
|
|
128
128
|
}
|
|
129
|
+
if (requestParameters['size'] != null) {
|
|
130
|
+
queryParameters['size'] = requestParameters['size'];
|
|
131
|
+
}
|
|
132
|
+
if (requestParameters['sort'] != null) {
|
|
133
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
134
|
+
}
|
|
129
135
|
const headerParameters = {};
|
|
130
136
|
if (requestParameters['authorization'] != null) {
|
|
131
137
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
@@ -200,6 +206,12 @@ class WalletsApi extends runtime.BaseAPI {
|
|
|
200
206
|
if (requestParameters['page'] != null) {
|
|
201
207
|
queryParameters['page'] = requestParameters['page'];
|
|
202
208
|
}
|
|
209
|
+
if (requestParameters['size'] != null) {
|
|
210
|
+
queryParameters['size'] = requestParameters['size'];
|
|
211
|
+
}
|
|
212
|
+
if (requestParameters['sort'] != null) {
|
|
213
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
214
|
+
}
|
|
203
215
|
const headerParameters = {};
|
|
204
216
|
if (requestParameters['authorization'] != null) {
|
|
205
217
|
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AddParticipantRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AddParticipantRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AddParticipantRequest
|
|
22
|
+
*/
|
|
23
|
+
code?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AddParticipantRequest
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AddParticipantRequest
|
|
34
|
+
*/
|
|
35
|
+
type?: AddParticipantRequestTypeEnum;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const AddParticipantRequestTypeEnum: {
|
|
41
|
+
readonly Individual: "Individual";
|
|
42
|
+
readonly Team: "Team";
|
|
43
|
+
};
|
|
44
|
+
export type AddParticipantRequestTypeEnum = typeof AddParticipantRequestTypeEnum[keyof typeof AddParticipantRequestTypeEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the AddParticipantRequest interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfAddParticipantRequest(value: object): value is AddParticipantRequest;
|
|
49
|
+
export declare function AddParticipantRequestFromJSON(json: any): AddParticipantRequest;
|
|
50
|
+
export declare function AddParticipantRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddParticipantRequest;
|
|
51
|
+
export declare function AddParticipantRequestToJSON(json: any): AddParticipantRequest;
|
|
52
|
+
export declare function AddParticipantRequestToJSONTyped(value?: AddParticipantRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.AddParticipantRequestTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfAddParticipantRequest = instanceOfAddParticipantRequest;
|
|
18
|
+
exports.AddParticipantRequestFromJSON = AddParticipantRequestFromJSON;
|
|
19
|
+
exports.AddParticipantRequestFromJSONTyped = AddParticipantRequestFromJSONTyped;
|
|
20
|
+
exports.AddParticipantRequestToJSON = AddParticipantRequestToJSON;
|
|
21
|
+
exports.AddParticipantRequestToJSONTyped = AddParticipantRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AddParticipantRequestTypeEnum = {
|
|
26
|
+
Individual: 'Individual',
|
|
27
|
+
Team: 'Team'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AddParticipantRequest interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfAddParticipantRequest(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function AddParticipantRequestFromJSON(json) {
|
|
36
|
+
return AddParticipantRequestFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AddParticipantRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
44
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
45
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function AddParticipantRequestToJSON(json) {
|
|
49
|
+
return AddParticipantRequestToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function AddParticipantRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'code': value['code'],
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
'type': value['type'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { AddParticipantRequest } from './AddParticipantRequest';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AddParticipantsRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface AddParticipantsRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AddParticipantRequest>}
|
|
22
|
+
* @memberof AddParticipantsRequest
|
|
23
|
+
*/
|
|
24
|
+
participants?: Array<AddParticipantRequest>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AddParticipantsRequest interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAddParticipantsRequest(value: object): value is AddParticipantsRequest;
|
|
30
|
+
export declare function AddParticipantsRequestFromJSON(json: any): AddParticipantsRequest;
|
|
31
|
+
export declare function AddParticipantsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddParticipantsRequest;
|
|
32
|
+
export declare function AddParticipantsRequestToJSON(json: any): AddParticipantsRequest;
|
|
33
|
+
export declare function AddParticipantsRequestToJSONTyped(value?: AddParticipantsRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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.instanceOfAddParticipantsRequest = instanceOfAddParticipantsRequest;
|
|
17
|
+
exports.AddParticipantsRequestFromJSON = AddParticipantsRequestFromJSON;
|
|
18
|
+
exports.AddParticipantsRequestFromJSONTyped = AddParticipantsRequestFromJSONTyped;
|
|
19
|
+
exports.AddParticipantsRequestToJSON = AddParticipantsRequestToJSON;
|
|
20
|
+
exports.AddParticipantsRequestToJSONTyped = AddParticipantsRequestToJSONTyped;
|
|
21
|
+
const AddParticipantRequest_1 = require("./AddParticipantRequest");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AddParticipantsRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAddParticipantsRequest(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function AddParticipantsRequestFromJSON(json) {
|
|
29
|
+
return AddParticipantsRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function AddParticipantsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'participants': json['participants'] == null ? undefined : (json['participants'].map(AddParticipantRequest_1.AddParticipantRequestFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AddParticipantsRequestToJSON(json) {
|
|
40
|
+
return AddParticipantsRequestToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AddParticipantsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'participants': value['participants'] == null ? undefined : (value['participants'].map(AddParticipantRequest_1.AddParticipantRequestToJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { Order } from './Order';
|
|
13
13
|
import type { Meta } from './Meta';
|
|
14
14
|
import type { MarketSummary } from './MarketSummary';
|
|
15
|
+
import type { TradeSummary } from './TradeSummary';
|
|
15
16
|
import type { EventSummary } from './EventSummary';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
@@ -43,12 +44,18 @@ export interface ChunkOrderResponse {
|
|
|
43
44
|
* @memberof ChunkOrderResponse
|
|
44
45
|
*/
|
|
45
46
|
events?: Array<EventSummary>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<TradeSummary>}
|
|
50
|
+
* @memberof ChunkOrderResponse
|
|
51
|
+
*/
|
|
52
|
+
trades?: Array<TradeSummary>;
|
|
46
53
|
/**
|
|
47
54
|
*
|
|
48
55
|
* @type {number}
|
|
49
56
|
* @memberof ChunkOrderResponse
|
|
50
57
|
*/
|
|
51
|
-
|
|
58
|
+
totalElements?: number;
|
|
52
59
|
}
|
|
53
60
|
/**
|
|
54
61
|
* Check if a given object implements the ChunkOrderResponse interface.
|
|
@@ -21,6 +21,7 @@ exports.ChunkOrderResponseToJSONTyped = ChunkOrderResponseToJSONTyped;
|
|
|
21
21
|
const Order_1 = require("./Order");
|
|
22
22
|
const Meta_1 = require("./Meta");
|
|
23
23
|
const MarketSummary_1 = require("./MarketSummary");
|
|
24
|
+
const TradeSummary_1 = require("./TradeSummary");
|
|
24
25
|
const EventSummary_1 = require("./EventSummary");
|
|
25
26
|
/**
|
|
26
27
|
* Check if a given object implements the ChunkOrderResponse interface.
|
|
@@ -40,7 +41,8 @@ function ChunkOrderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
'orders': json['orders'] == null ? undefined : (json['orders'].map(Order_1.OrderFromJSON)),
|
|
41
42
|
'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
|
|
42
43
|
'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
|
|
43
|
-
'
|
|
44
|
+
'trades': json['trades'] == null ? undefined : (json['trades'].map(TradeSummary_1.TradeSummaryFromJSON)),
|
|
45
|
+
'totalElements': json['totalElements'] == null ? undefined : json['totalElements'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
function ChunkOrderResponseToJSON(json) {
|
|
@@ -55,6 +57,7 @@ function ChunkOrderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
57
|
'orders': value['orders'] == null ? undefined : (value['orders'].map(Order_1.OrderToJSON)),
|
|
56
58
|
'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
|
|
57
59
|
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
58
|
-
'
|
|
60
|
+
'trades': value['trades'] == null ? undefined : (value['trades'].map(TradeSummary_1.TradeSummaryToJSON)),
|
|
61
|
+
'totalElements': value['totalElements'],
|
|
59
62
|
};
|
|
60
63
|
}
|
|
@@ -20,31 +20,31 @@ export interface CreateEventRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateEventRequest
|
|
22
22
|
*/
|
|
23
|
-
eventGroupId
|
|
23
|
+
eventGroupId: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateEventRequest
|
|
28
28
|
*/
|
|
29
|
-
name
|
|
29
|
+
name: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateEventRequest
|
|
34
34
|
*/
|
|
35
|
-
code
|
|
35
|
+
code: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {boolean}
|
|
39
39
|
* @memberof CreateEventRequest
|
|
40
40
|
*/
|
|
41
|
-
active
|
|
41
|
+
active: boolean;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {Date}
|
|
45
45
|
* @memberof CreateEventRequest
|
|
46
46
|
*/
|
|
47
|
-
expectedStartTime
|
|
47
|
+
expectedStartTime: Date;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Check if a given object implements the CreateEventRequest interface.
|
|
@@ -22,6 +22,16 @@ exports.CreateEventRequestToJSONTyped = CreateEventRequestToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the CreateEventRequest interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfCreateEventRequest(value) {
|
|
25
|
+
if (!('eventGroupId' in value) || value['eventGroupId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('expectedStartTime' in value) || value['expectedStartTime'] === undefined)
|
|
34
|
+
return false;
|
|
25
35
|
return true;
|
|
26
36
|
}
|
|
27
37
|
function CreateEventRequestFromJSON(json) {
|
|
@@ -32,11 +42,11 @@ function CreateEventRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
42
|
return json;
|
|
33
43
|
}
|
|
34
44
|
return {
|
|
35
|
-
'eventGroupId': json['eventGroupId']
|
|
36
|
-
'name': json['name']
|
|
37
|
-
'code': json['code']
|
|
38
|
-
'active': json['active']
|
|
39
|
-
'expectedStartTime':
|
|
45
|
+
'eventGroupId': json['eventGroupId'],
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'code': json['code'],
|
|
48
|
+
'active': json['active'],
|
|
49
|
+
'expectedStartTime': (new Date(json['expectedStartTime'])),
|
|
40
50
|
};
|
|
41
51
|
}
|
|
42
52
|
function CreateEventRequestToJSON(json) {
|
|
@@ -51,6 +61,6 @@ function CreateEventRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
61
|
'name': value['name'],
|
|
52
62
|
'code': value['code'],
|
|
53
63
|
'active': value['active'],
|
|
54
|
-
'expectedStartTime':
|
|
64
|
+
'expectedStartTime': ((value['expectedStartTime']).toISOString()),
|
|
55
65
|
};
|
|
56
66
|
}
|
|
@@ -69,6 +69,15 @@ export interface CreateOrderRequest {
|
|
|
69
69
|
* @memberof CreateOrderRequest
|
|
70
70
|
*/
|
|
71
71
|
reference?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Optional - to use a different commission rate for this order than your app's
|
|
74
|
+
* default commission rate. If omitted or set to null, the app's default
|
|
75
|
+
* commission rate will be used (if it has one).
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof CreateOrderRequest
|
|
79
|
+
*/
|
|
80
|
+
commissionRateId?: string;
|
|
72
81
|
}
|
|
73
82
|
/**
|
|
74
83
|
* @export
|
|
@@ -56,6 +56,7 @@ function CreateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'keepWhenInPlay': json['keepWhenInPlay'] == null ? undefined : json['keepWhenInPlay'],
|
|
57
57
|
'matchBehavior': json['matchBehavior'] == null ? undefined : json['matchBehavior'],
|
|
58
58
|
'reference': json['reference'] == null ? undefined : json['reference'],
|
|
59
|
+
'commissionRateId': json['commissionRateId'] == null ? undefined : json['commissionRateId'],
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
62
|
function CreateOrderRequestToJSON(json) {
|
|
@@ -75,5 +76,6 @@ function CreateOrderRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
76
|
'keepWhenInPlay': value['keepWhenInPlay'],
|
|
76
77
|
'matchBehavior': value['matchBehavior'],
|
|
77
78
|
'reference': value['reference'],
|
|
79
|
+
'commissionRateId': value['commissionRateId'],
|
|
78
80
|
};
|
|
79
81
|
}
|
|
@@ -20,13 +20,13 @@ export interface CreateSessionRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateSessionRequest
|
|
22
22
|
*/
|
|
23
|
-
appId
|
|
23
|
+
appId: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateSessionRequest
|
|
28
28
|
*/
|
|
29
|
-
apiKey
|
|
29
|
+
apiKey: string;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the CreateSessionRequest interface.
|
|
@@ -22,6 +22,10 @@ exports.CreateSessionRequestToJSONTyped = CreateSessionRequestToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the CreateSessionRequest interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfCreateSessionRequest(value) {
|
|
25
|
+
if (!('appId' in value) || value['appId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('apiKey' in value) || value['apiKey'] === undefined)
|
|
28
|
+
return false;
|
|
25
29
|
return true;
|
|
26
30
|
}
|
|
27
31
|
function CreateSessionRequestFromJSON(json) {
|
|
@@ -32,8 +36,8 @@ function CreateSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
36
|
return json;
|
|
33
37
|
}
|
|
34
38
|
return {
|
|
35
|
-
'appId': json['appId']
|
|
36
|
-
'apiKey': json['apiKey']
|
|
39
|
+
'appId': json['appId'],
|
|
40
|
+
'apiKey': json['apiKey'],
|
|
37
41
|
};
|
|
38
42
|
}
|
|
39
43
|
function CreateSessionRequestToJSON(json) {
|