@monaco-protocol/client-v2 0.0.57 → 0.0.59-dev.0
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/PricesApi.d.ts +58 -0
- package/dist/apis/PricesApi.js +101 -0
- package/dist/apis/WalletsApi.d.ts +14 -3
- package/dist/apis/WalletsApi.js +16 -4
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/BatchCreateOrderRequest.d.ts +33 -0
- package/dist/models/BatchCreateOrderRequest.js +49 -0
- package/dist/models/BatchOrderResponse.d.ts +82 -0
- package/dist/models/BatchOrderResponse.js +70 -0
- package/dist/models/BatchOrderResponseOrdersInner.d.ts +23 -0
- package/dist/models/BatchOrderResponseOrdersInner.js +51 -0
- package/dist/models/ModelError.d.ts +51 -0
- package/dist/models/ModelError.js +50 -0
- package/dist/models/PagedMarketWithPricesResponse.d.ts +89 -0
- package/dist/models/PagedMarketWithPricesResponse.js +73 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { PagedMarketWithPricesResponse } from '../models/index';
|
|
14
|
+
export interface GetPricesRequest {
|
|
15
|
+
authorization: string;
|
|
16
|
+
eventStarting?: GetPricesEventStartingEnum;
|
|
17
|
+
fromDateTime?: Date;
|
|
18
|
+
toDateTime?: Date;
|
|
19
|
+
marketStatuses?: Set<GetPricesMarketStatusesEnum>;
|
|
20
|
+
marketIds?: Set<string>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare class PricesApi extends runtime.BaseAPI {
|
|
26
|
+
/**
|
|
27
|
+
* Fetch market prices, filtered by either provided market ids, or event start time - with optional filtering on market status. Paginated by number of markets.
|
|
28
|
+
*/
|
|
29
|
+
getPricesRaw(requestParameters: GetPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedMarketWithPricesResponse>>;
|
|
30
|
+
/**
|
|
31
|
+
* Fetch market prices, filtered by either provided market ids, or event start time - with optional filtering on market status. Paginated by number of markets.
|
|
32
|
+
*/
|
|
33
|
+
getPrices(requestParameters: GetPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedMarketWithPricesResponse>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
export declare const GetPricesEventStartingEnum: {
|
|
39
|
+
readonly Live: "Live";
|
|
40
|
+
readonly Today: "Today";
|
|
41
|
+
readonly Later: "Later";
|
|
42
|
+
readonly Range: "Range";
|
|
43
|
+
};
|
|
44
|
+
export type GetPricesEventStartingEnum = typeof GetPricesEventStartingEnum[keyof typeof GetPricesEventStartingEnum];
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const GetPricesMarketStatusesEnum: {
|
|
49
|
+
readonly Initializing: "Initializing";
|
|
50
|
+
readonly Open: "Open";
|
|
51
|
+
readonly Locked: "Locked";
|
|
52
|
+
readonly Settling: "Settling";
|
|
53
|
+
readonly Settled: "Settled";
|
|
54
|
+
readonly Voiding: "Voiding";
|
|
55
|
+
readonly Voided: "Voided";
|
|
56
|
+
readonly Closed: "Closed";
|
|
57
|
+
};
|
|
58
|
+
export type GetPricesMarketStatusesEnum = typeof GetPricesMarketStatusesEnum[keyof typeof GetPricesMarketStatusesEnum];
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.GetPricesMarketStatusesEnum = exports.GetPricesEventStartingEnum = exports.PricesApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class PricesApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Fetch market prices, filtered by either provided market ids, or event start time - with optional filtering on market status. Paginated by number of markets.
|
|
34
|
+
*/
|
|
35
|
+
getPricesRaw(requestParameters, initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['authorization'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getPrices().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
if (requestParameters['eventStarting'] != null) {
|
|
42
|
+
queryParameters['eventStarting'] = requestParameters['eventStarting'];
|
|
43
|
+
}
|
|
44
|
+
if (requestParameters['fromDateTime'] != null) {
|
|
45
|
+
queryParameters['fromDateTime'] = requestParameters['fromDateTime'].toISOString();
|
|
46
|
+
}
|
|
47
|
+
if (requestParameters['toDateTime'] != null) {
|
|
48
|
+
queryParameters['toDateTime'] = requestParameters['toDateTime'].toISOString();
|
|
49
|
+
}
|
|
50
|
+
if (requestParameters['marketStatuses'] != null) {
|
|
51
|
+
queryParameters['marketStatuses'] = requestParameters['marketStatuses'];
|
|
52
|
+
}
|
|
53
|
+
if (requestParameters['marketIds'] != null) {
|
|
54
|
+
queryParameters['marketIds'] = requestParameters['marketIds'];
|
|
55
|
+
}
|
|
56
|
+
const headerParameters = {};
|
|
57
|
+
if (requestParameters['authorization'] != null) {
|
|
58
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
59
|
+
}
|
|
60
|
+
const response = yield this.request({
|
|
61
|
+
path: `/prices`,
|
|
62
|
+
method: 'GET',
|
|
63
|
+
headers: headerParameters,
|
|
64
|
+
query: queryParameters,
|
|
65
|
+
}, initOverrides);
|
|
66
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PagedMarketWithPricesResponseFromJSON)(jsonValue));
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Fetch market prices, filtered by either provided market ids, or event start time - with optional filtering on market status. Paginated by number of markets.
|
|
71
|
+
*/
|
|
72
|
+
getPrices(requestParameters, initOverrides) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
const response = yield this.getPricesRaw(requestParameters, initOverrides);
|
|
75
|
+
return yield response.value();
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.PricesApi = PricesApi;
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
exports.GetPricesEventStartingEnum = {
|
|
84
|
+
Live: 'Live',
|
|
85
|
+
Today: 'Today',
|
|
86
|
+
Later: 'Later',
|
|
87
|
+
Range: 'Range'
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
exports.GetPricesMarketStatusesEnum = {
|
|
93
|
+
Initializing: 'Initializing',
|
|
94
|
+
Open: 'Open',
|
|
95
|
+
Locked: 'Locked',
|
|
96
|
+
Settling: 'Settling',
|
|
97
|
+
Settled: 'Settled',
|
|
98
|
+
Voiding: 'Voiding',
|
|
99
|
+
Voided: 'Voided',
|
|
100
|
+
Closed: 'Closed'
|
|
101
|
+
};
|
|
@@ -47,7 +47,8 @@ export interface GetWalletTransactionsRequest {
|
|
|
47
47
|
}
|
|
48
48
|
export interface GetWalletsRequest {
|
|
49
49
|
authorization: string;
|
|
50
|
-
walletIds?:
|
|
50
|
+
walletIds?: Set<string>;
|
|
51
|
+
types?: Set<GetWalletsTypesEnum>;
|
|
51
52
|
page?: number;
|
|
52
53
|
size?: number;
|
|
53
54
|
sort?: Array<string>;
|
|
@@ -119,12 +120,12 @@ export declare class WalletsApi extends runtime.BaseAPI {
|
|
|
119
120
|
*/
|
|
120
121
|
getWalletTransactions(requestParameters: GetWalletTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedTransactionResponse>;
|
|
121
122
|
/**
|
|
122
|
-
* Fetch a
|
|
123
|
+
* Fetch a page of wallets for the current application
|
|
123
124
|
* Fetch a list of wallets
|
|
124
125
|
*/
|
|
125
126
|
getWalletsRaw(requestParameters: GetWalletsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedWalletResponse>>;
|
|
126
127
|
/**
|
|
127
|
-
* Fetch a
|
|
128
|
+
* Fetch a page of wallets for the current application
|
|
128
129
|
* Fetch a list of wallets
|
|
129
130
|
*/
|
|
130
131
|
getWallets(requestParameters: GetWalletsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedWalletResponse>;
|
|
@@ -139,3 +140,13 @@ export declare class WalletsApi extends runtime.BaseAPI {
|
|
|
139
140
|
*/
|
|
140
141
|
walletWithdraw(requestParameters: WalletWithdrawRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
141
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* @export
|
|
145
|
+
*/
|
|
146
|
+
export declare const GetWalletsTypesEnum: {
|
|
147
|
+
readonly Commission: "Commission";
|
|
148
|
+
readonly MarketEscrow: "MarketEscrow";
|
|
149
|
+
readonly System: "System";
|
|
150
|
+
readonly User: "User";
|
|
151
|
+
};
|
|
152
|
+
export type GetWalletsTypesEnum = typeof GetWalletsTypesEnum[keyof typeof GetWalletsTypesEnum];
|
package/dist/apis/WalletsApi.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.WalletsApi = void 0;
|
|
25
|
+
exports.GetWalletsTypesEnum = exports.WalletsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
@@ -189,7 +189,7 @@ class WalletsApi extends runtime.BaseAPI {
|
|
|
189
189
|
}
|
|
190
190
|
const response = yield this.request({
|
|
191
191
|
path: `/wallets/{id}/metrics`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
192
|
-
method: '
|
|
192
|
+
method: 'GET',
|
|
193
193
|
headers: headerParameters,
|
|
194
194
|
query: queryParameters,
|
|
195
195
|
}, initOverrides);
|
|
@@ -294,7 +294,7 @@ class WalletsApi extends runtime.BaseAPI {
|
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
296
|
/**
|
|
297
|
-
* Fetch a
|
|
297
|
+
* Fetch a page of wallets for the current application
|
|
298
298
|
* Fetch a list of wallets
|
|
299
299
|
*/
|
|
300
300
|
getWalletsRaw(requestParameters, initOverrides) {
|
|
@@ -306,6 +306,9 @@ class WalletsApi extends runtime.BaseAPI {
|
|
|
306
306
|
if (requestParameters['walletIds'] != null) {
|
|
307
307
|
queryParameters['walletIds'] = requestParameters['walletIds'];
|
|
308
308
|
}
|
|
309
|
+
if (requestParameters['types'] != null) {
|
|
310
|
+
queryParameters['types'] = requestParameters['types'];
|
|
311
|
+
}
|
|
309
312
|
if (requestParameters['page'] != null) {
|
|
310
313
|
queryParameters['page'] = requestParameters['page'];
|
|
311
314
|
}
|
|
@@ -329,7 +332,7 @@ class WalletsApi extends runtime.BaseAPI {
|
|
|
329
332
|
});
|
|
330
333
|
}
|
|
331
334
|
/**
|
|
332
|
-
* Fetch a
|
|
335
|
+
* Fetch a page of wallets for the current application
|
|
333
336
|
* Fetch a list of wallets
|
|
334
337
|
*/
|
|
335
338
|
getWallets(requestParameters, initOverrides) {
|
|
@@ -375,3 +378,12 @@ class WalletsApi extends runtime.BaseAPI {
|
|
|
375
378
|
}
|
|
376
379
|
}
|
|
377
380
|
exports.WalletsApi = WalletsApi;
|
|
381
|
+
/**
|
|
382
|
+
* @export
|
|
383
|
+
*/
|
|
384
|
+
exports.GetWalletsTypesEnum = {
|
|
385
|
+
Commission: 'Commission',
|
|
386
|
+
MarketEscrow: 'MarketEscrow',
|
|
387
|
+
System: 'System',
|
|
388
|
+
User: 'User'
|
|
389
|
+
};
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './MarketPricesApi';
|
|
|
10
10
|
export * from './MarketTypesApi';
|
|
11
11
|
export * from './MarketsApi';
|
|
12
12
|
export * from './OrdersApi';
|
|
13
|
+
export * from './PricesApi';
|
|
13
14
|
export * from './SessionManagementApi';
|
|
14
15
|
export * from './StatusApi';
|
|
15
16
|
export * from './TradesApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -28,6 +28,7 @@ __exportStar(require("./MarketPricesApi"), exports);
|
|
|
28
28
|
__exportStar(require("./MarketTypesApi"), exports);
|
|
29
29
|
__exportStar(require("./MarketsApi"), exports);
|
|
30
30
|
__exportStar(require("./OrdersApi"), exports);
|
|
31
|
+
__exportStar(require("./PricesApi"), exports);
|
|
31
32
|
__exportStar(require("./SessionManagementApi"), exports);
|
|
32
33
|
__exportStar(require("./StatusApi"), exports);
|
|
33
34
|
__exportStar(require("./TradesApi"), exports);
|
|
@@ -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 { CreateOrderRequest } from './CreateOrderRequest';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BatchCreateOrderRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface BatchCreateOrderRequest {
|
|
19
|
+
/**
|
|
20
|
+
* list of individual order requests
|
|
21
|
+
* @type {Array<CreateOrderRequest>}
|
|
22
|
+
* @memberof BatchCreateOrderRequest
|
|
23
|
+
*/
|
|
24
|
+
requests?: Array<CreateOrderRequest>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the BatchCreateOrderRequest interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfBatchCreateOrderRequest(value: object): value is BatchCreateOrderRequest;
|
|
30
|
+
export declare function BatchCreateOrderRequestFromJSON(json: any): BatchCreateOrderRequest;
|
|
31
|
+
export declare function BatchCreateOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchCreateOrderRequest;
|
|
32
|
+
export declare function BatchCreateOrderRequestToJSON(json: any): BatchCreateOrderRequest;
|
|
33
|
+
export declare function BatchCreateOrderRequestToJSONTyped(value?: BatchCreateOrderRequest | 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.instanceOfBatchCreateOrderRequest = instanceOfBatchCreateOrderRequest;
|
|
17
|
+
exports.BatchCreateOrderRequestFromJSON = BatchCreateOrderRequestFromJSON;
|
|
18
|
+
exports.BatchCreateOrderRequestFromJSONTyped = BatchCreateOrderRequestFromJSONTyped;
|
|
19
|
+
exports.BatchCreateOrderRequestToJSON = BatchCreateOrderRequestToJSON;
|
|
20
|
+
exports.BatchCreateOrderRequestToJSONTyped = BatchCreateOrderRequestToJSONTyped;
|
|
21
|
+
const CreateOrderRequest_1 = require("./CreateOrderRequest");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the BatchCreateOrderRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfBatchCreateOrderRequest(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function BatchCreateOrderRequestFromJSON(json) {
|
|
29
|
+
return BatchCreateOrderRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function BatchCreateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'requests': json['requests'] == null ? undefined : (json['requests'].map(CreateOrderRequest_1.CreateOrderRequestFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function BatchCreateOrderRequestToJSON(json) {
|
|
40
|
+
return BatchCreateOrderRequestToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function BatchCreateOrderRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'requests': value['requests'] == null ? undefined : (value['requests'].map(CreateOrderRequest_1.CreateOrderRequestToJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -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 { Meta } from './Meta';
|
|
13
|
+
import type { MarketSummary } from './MarketSummary';
|
|
14
|
+
import type { TradeSummary } from './TradeSummary';
|
|
15
|
+
import type { CategorySummary } from './CategorySummary';
|
|
16
|
+
import type { BatchOrderResponseOrdersInner } from './BatchOrderResponseOrdersInner';
|
|
17
|
+
import type { EventSummary } from './EventSummary';
|
|
18
|
+
import type { SubcategorySummary } from './SubcategorySummary';
|
|
19
|
+
import type { EventGroupSummary } from './EventGroupSummary';
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface BatchOrderResponse
|
|
24
|
+
*/
|
|
25
|
+
export interface BatchOrderResponse {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Meta}
|
|
29
|
+
* @memberof BatchOrderResponse
|
|
30
|
+
*/
|
|
31
|
+
meta?: Meta;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<BatchOrderResponseOrdersInner>}
|
|
35
|
+
* @memberof BatchOrderResponse
|
|
36
|
+
*/
|
|
37
|
+
orders?: Array<BatchOrderResponseOrdersInner>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<MarketSummary>}
|
|
41
|
+
* @memberof BatchOrderResponse
|
|
42
|
+
*/
|
|
43
|
+
markets?: Array<MarketSummary>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<EventSummary>}
|
|
47
|
+
* @memberof BatchOrderResponse
|
|
48
|
+
*/
|
|
49
|
+
events?: Array<EventSummary>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<TradeSummary>}
|
|
53
|
+
* @memberof BatchOrderResponse
|
|
54
|
+
*/
|
|
55
|
+
trades?: Array<TradeSummary>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<EventGroupSummary>}
|
|
59
|
+
* @memberof BatchOrderResponse
|
|
60
|
+
*/
|
|
61
|
+
eventGroups?: Array<EventGroupSummary>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<SubcategorySummary>}
|
|
65
|
+
* @memberof BatchOrderResponse
|
|
66
|
+
*/
|
|
67
|
+
subcategories?: Array<SubcategorySummary>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<CategorySummary>}
|
|
71
|
+
* @memberof BatchOrderResponse
|
|
72
|
+
*/
|
|
73
|
+
categories?: Array<CategorySummary>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the BatchOrderResponse interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfBatchOrderResponse(value: object): value is BatchOrderResponse;
|
|
79
|
+
export declare function BatchOrderResponseFromJSON(json: any): BatchOrderResponse;
|
|
80
|
+
export declare function BatchOrderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchOrderResponse;
|
|
81
|
+
export declare function BatchOrderResponseToJSON(json: any): BatchOrderResponse;
|
|
82
|
+
export declare function BatchOrderResponseToJSONTyped(value?: BatchOrderResponse | 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.instanceOfBatchOrderResponse = instanceOfBatchOrderResponse;
|
|
17
|
+
exports.BatchOrderResponseFromJSON = BatchOrderResponseFromJSON;
|
|
18
|
+
exports.BatchOrderResponseFromJSONTyped = BatchOrderResponseFromJSONTyped;
|
|
19
|
+
exports.BatchOrderResponseToJSON = BatchOrderResponseToJSON;
|
|
20
|
+
exports.BatchOrderResponseToJSONTyped = BatchOrderResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const MarketSummary_1 = require("./MarketSummary");
|
|
23
|
+
const TradeSummary_1 = require("./TradeSummary");
|
|
24
|
+
const CategorySummary_1 = require("./CategorySummary");
|
|
25
|
+
const BatchOrderResponseOrdersInner_1 = require("./BatchOrderResponseOrdersInner");
|
|
26
|
+
const EventSummary_1 = require("./EventSummary");
|
|
27
|
+
const SubcategorySummary_1 = require("./SubcategorySummary");
|
|
28
|
+
const EventGroupSummary_1 = require("./EventGroupSummary");
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the BatchOrderResponse interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfBatchOrderResponse(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function BatchOrderResponseFromJSON(json) {
|
|
36
|
+
return BatchOrderResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function BatchOrderResponseFromJSONTyped(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
|
+
'orders': json['orders'] == null ? undefined : (json['orders'].map(BatchOrderResponseOrdersInner_1.BatchOrderResponseOrdersInnerFromJSON)),
|
|
45
|
+
'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
|
|
46
|
+
'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
|
|
47
|
+
'trades': json['trades'] == null ? undefined : (json['trades'].map(TradeSummary_1.TradeSummaryFromJSON)),
|
|
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 BatchOrderResponseToJSON(json) {
|
|
54
|
+
return BatchOrderResponseToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function BatchOrderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
62
|
+
'orders': value['orders'] == null ? undefined : (value['orders'].map(BatchOrderResponseOrdersInner_1.BatchOrderResponseOrdersInnerToJSON)),
|
|
63
|
+
'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
|
|
64
|
+
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
65
|
+
'trades': value['trades'] == null ? undefined : (value['trades'].map(TradeSummary_1.TradeSummaryToJSON)),
|
|
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,23 @@
|
|
|
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 { ModelError } from './ModelError';
|
|
13
|
+
import type { Order } from './Order';
|
|
14
|
+
/**
|
|
15
|
+
* @type BatchOrderResponseOrdersInner
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export type BatchOrderResponseOrdersInner = ModelError | Order;
|
|
20
|
+
export declare function BatchOrderResponseOrdersInnerFromJSON(json: any): BatchOrderResponseOrdersInner;
|
|
21
|
+
export declare function BatchOrderResponseOrdersInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchOrderResponseOrdersInner;
|
|
22
|
+
export declare function BatchOrderResponseOrdersInnerToJSON(json: any): any;
|
|
23
|
+
export declare function BatchOrderResponseOrdersInnerToJSONTyped(value?: BatchOrderResponseOrdersInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.BatchOrderResponseOrdersInnerFromJSON = BatchOrderResponseOrdersInnerFromJSON;
|
|
17
|
+
exports.BatchOrderResponseOrdersInnerFromJSONTyped = BatchOrderResponseOrdersInnerFromJSONTyped;
|
|
18
|
+
exports.BatchOrderResponseOrdersInnerToJSON = BatchOrderResponseOrdersInnerToJSON;
|
|
19
|
+
exports.BatchOrderResponseOrdersInnerToJSONTyped = BatchOrderResponseOrdersInnerToJSONTyped;
|
|
20
|
+
const ModelError_1 = require("./ModelError");
|
|
21
|
+
const Order_1 = require("./Order");
|
|
22
|
+
function BatchOrderResponseOrdersInnerFromJSON(json) {
|
|
23
|
+
return BatchOrderResponseOrdersInnerFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
function BatchOrderResponseOrdersInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
if ((0, ModelError_1.instanceOfModelError)(json)) {
|
|
30
|
+
return (0, ModelError_1.ModelErrorFromJSONTyped)(json, true);
|
|
31
|
+
}
|
|
32
|
+
if ((0, Order_1.instanceOfOrder)(json)) {
|
|
33
|
+
return (0, Order_1.OrderFromJSONTyped)(json, true);
|
|
34
|
+
}
|
|
35
|
+
return {};
|
|
36
|
+
}
|
|
37
|
+
function BatchOrderResponseOrdersInnerToJSON(json) {
|
|
38
|
+
return BatchOrderResponseOrdersInnerToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function BatchOrderResponseOrdersInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
if ((0, ModelError_1.instanceOfModelError)(value)) {
|
|
45
|
+
return (0, ModelError_1.ModelErrorToJSON)(value);
|
|
46
|
+
}
|
|
47
|
+
if ((0, Order_1.instanceOfOrder)(value)) {
|
|
48
|
+
return (0, Order_1.OrderToJSON)(value);
|
|
49
|
+
}
|
|
50
|
+
return {};
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* Order operation error
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ModelError
|
|
16
|
+
*/
|
|
17
|
+
export interface ModelError {
|
|
18
|
+
/**
|
|
19
|
+
* Order operation error code describing type of an error. Possible values:
|
|
20
|
+
* MARKET_NOT_FOUND,
|
|
21
|
+
* INVALID_MARKET_STATUS,
|
|
22
|
+
* SUSPENDED_MARKET,
|
|
23
|
+
* MARKET_OUTCOME_NOT_FOUND,
|
|
24
|
+
* COMMISSION_RATE_NOT_FOUND,
|
|
25
|
+
* WALLET_NOT_FOUND,
|
|
26
|
+
* WALLET_INSUFFICIENT_CREDIT,
|
|
27
|
+
* WALLET_ACCOUNT_NOT_FOUND,
|
|
28
|
+
* WALLET_ACCOUNT_INSUFFICIENT_CREDIT,
|
|
29
|
+
* MARKET_POSITION_NOT_FOUND,
|
|
30
|
+
* ORDER_ALREADY_EXISTS,
|
|
31
|
+
* INTERRUPTED
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ModelError
|
|
35
|
+
*/
|
|
36
|
+
errorCode?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Order operation error detailed message
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ModelError
|
|
41
|
+
*/
|
|
42
|
+
errorMessage?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ModelError interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfModelError(value: object): value is ModelError;
|
|
48
|
+
export declare function ModelErrorFromJSON(json: any): ModelError;
|
|
49
|
+
export declare function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError;
|
|
50
|
+
export declare function ModelErrorToJSON(json: any): ModelError;
|
|
51
|
+
export declare function ModelErrorToJSONTyped(value?: ModelError | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfModelError = instanceOfModelError;
|
|
17
|
+
exports.ModelErrorFromJSON = ModelErrorFromJSON;
|
|
18
|
+
exports.ModelErrorFromJSONTyped = ModelErrorFromJSONTyped;
|
|
19
|
+
exports.ModelErrorToJSON = ModelErrorToJSON;
|
|
20
|
+
exports.ModelErrorToJSONTyped = ModelErrorToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ModelError interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfModelError(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ModelErrorFromJSON(json) {
|
|
28
|
+
return ModelErrorFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
|
|
36
|
+
'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ModelErrorToJSON(json) {
|
|
40
|
+
return ModelErrorToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ModelErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'errorCode': value['errorCode'],
|
|
48
|
+
'errorMessage': value['errorMessage'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 { MarketLiquidities } from './MarketLiquidities';
|
|
19
|
+
import type { MarketTypeSummary } from './MarketTypeSummary';
|
|
20
|
+
import type { EventGroupSummary } from './EventGroupSummary';
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
* @interface PagedMarketWithPricesResponse
|
|
25
|
+
*/
|
|
26
|
+
export interface PagedMarketWithPricesResponse {
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Meta}
|
|
30
|
+
* @memberof PagedMarketWithPricesResponse
|
|
31
|
+
*/
|
|
32
|
+
meta?: Meta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Array<Market>}
|
|
36
|
+
* @memberof PagedMarketWithPricesResponse
|
|
37
|
+
*/
|
|
38
|
+
markets?: Array<Market>;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Array<MarketTypeSummary>}
|
|
42
|
+
* @memberof PagedMarketWithPricesResponse
|
|
43
|
+
*/
|
|
44
|
+
marketTypes?: Array<MarketTypeSummary>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {Array<MarketOutcomeSummary>}
|
|
48
|
+
* @memberof PagedMarketWithPricesResponse
|
|
49
|
+
*/
|
|
50
|
+
marketOutcomes?: Array<MarketOutcomeSummary>;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<EventSummary>}
|
|
54
|
+
* @memberof PagedMarketWithPricesResponse
|
|
55
|
+
*/
|
|
56
|
+
events?: Array<EventSummary>;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<EventGroupSummary>}
|
|
60
|
+
* @memberof PagedMarketWithPricesResponse
|
|
61
|
+
*/
|
|
62
|
+
eventGroups?: Array<EventGroupSummary>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {Array<SubcategorySummary>}
|
|
66
|
+
* @memberof PagedMarketWithPricesResponse
|
|
67
|
+
*/
|
|
68
|
+
subcategories?: Array<SubcategorySummary>;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {Array<CategorySummary>}
|
|
72
|
+
* @memberof PagedMarketWithPricesResponse
|
|
73
|
+
*/
|
|
74
|
+
categories?: Array<CategorySummary>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Array<MarketLiquidities>}
|
|
78
|
+
* @memberof PagedMarketWithPricesResponse
|
|
79
|
+
*/
|
|
80
|
+
prices?: Array<MarketLiquidities>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the PagedMarketWithPricesResponse interface.
|
|
84
|
+
*/
|
|
85
|
+
export declare function instanceOfPagedMarketWithPricesResponse(value: object): value is PagedMarketWithPricesResponse;
|
|
86
|
+
export declare function PagedMarketWithPricesResponseFromJSON(json: any): PagedMarketWithPricesResponse;
|
|
87
|
+
export declare function PagedMarketWithPricesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagedMarketWithPricesResponse;
|
|
88
|
+
export declare function PagedMarketWithPricesResponseToJSON(json: any): PagedMarketWithPricesResponse;
|
|
89
|
+
export declare function PagedMarketWithPricesResponseToJSONTyped(value?: PagedMarketWithPricesResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
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.instanceOfPagedMarketWithPricesResponse = instanceOfPagedMarketWithPricesResponse;
|
|
17
|
+
exports.PagedMarketWithPricesResponseFromJSON = PagedMarketWithPricesResponseFromJSON;
|
|
18
|
+
exports.PagedMarketWithPricesResponseFromJSONTyped = PagedMarketWithPricesResponseFromJSONTyped;
|
|
19
|
+
exports.PagedMarketWithPricesResponseToJSON = PagedMarketWithPricesResponseToJSON;
|
|
20
|
+
exports.PagedMarketWithPricesResponseToJSONTyped = PagedMarketWithPricesResponseToJSONTyped;
|
|
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 MarketLiquidities_1 = require("./MarketLiquidities");
|
|
28
|
+
const MarketTypeSummary_1 = require("./MarketTypeSummary");
|
|
29
|
+
const EventGroupSummary_1 = require("./EventGroupSummary");
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PagedMarketWithPricesResponse interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfPagedMarketWithPricesResponse(value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function PagedMarketWithPricesResponseFromJSON(json) {
|
|
37
|
+
return PagedMarketWithPricesResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function PagedMarketWithPricesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
45
|
+
'markets': json['markets'] == null ? undefined : (json['markets'].map(Market_1.MarketFromJSON)),
|
|
46
|
+
'marketTypes': json['marketTypes'] == null ? undefined : (json['marketTypes'].map(MarketTypeSummary_1.MarketTypeSummaryFromJSON)),
|
|
47
|
+
'marketOutcomes': json['marketOutcomes'] == null ? undefined : (json['marketOutcomes'].map(MarketOutcomeSummary_1.MarketOutcomeSummaryFromJSON)),
|
|
48
|
+
'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
|
|
49
|
+
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryFromJSON)),
|
|
50
|
+
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
|
|
51
|
+
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
|
|
52
|
+
'prices': json['prices'] == null ? undefined : (json['prices'].map(MarketLiquidities_1.MarketLiquiditiesFromJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function PagedMarketWithPricesResponseToJSON(json) {
|
|
56
|
+
return PagedMarketWithPricesResponseToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function PagedMarketWithPricesResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
64
|
+
'markets': value['markets'] == null ? undefined : (value['markets'].map(Market_1.MarketToJSON)),
|
|
65
|
+
'marketTypes': value['marketTypes'] == null ? undefined : (value['marketTypes'].map(MarketTypeSummary_1.MarketTypeSummaryToJSON)),
|
|
66
|
+
'marketOutcomes': value['marketOutcomes'] == null ? undefined : (value['marketOutcomes'].map(MarketOutcomeSummary_1.MarketOutcomeSummaryToJSON)),
|
|
67
|
+
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
68
|
+
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryToJSON)),
|
|
69
|
+
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
|
|
70
|
+
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
|
|
71
|
+
'prices': value['prices'] == null ? undefined : (value['prices'].map(MarketLiquidities_1.MarketLiquiditiesToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export * from './PageMeta';
|
|
|
65
65
|
export * from './PagedEventResponse';
|
|
66
66
|
export * from './PagedMarketPositionResponse';
|
|
67
67
|
export * from './PagedMarketResponse';
|
|
68
|
+
export * from './PagedMarketWithPricesResponse';
|
|
68
69
|
export * from './PagedOrderResponse';
|
|
69
70
|
export * from './PagedTradeResponse';
|
|
70
71
|
export * from './PagedTransactionResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -83,6 +83,7 @@ __exportStar(require("./PageMeta"), exports);
|
|
|
83
83
|
__exportStar(require("./PagedEventResponse"), exports);
|
|
84
84
|
__exportStar(require("./PagedMarketPositionResponse"), exports);
|
|
85
85
|
__exportStar(require("./PagedMarketResponse"), exports);
|
|
86
|
+
__exportStar(require("./PagedMarketWithPricesResponse"), exports);
|
|
86
87
|
__exportStar(require("./PagedOrderResponse"), exports);
|
|
87
88
|
__exportStar(require("./PagedTradeResponse"), exports);
|
|
88
89
|
__exportStar(require("./PagedTransactionResponse"), exports);
|