@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
|
@@ -32,8 +32,8 @@ function DocumentReferenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
-
'ref': json['
|
|
36
|
-
'ids': json['
|
|
35
|
+
'ref': json['_ref'] == null ? undefined : json['_ref'],
|
|
36
|
+
'ids': json['_ids'] == null ? undefined : json['_ids'],
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
function DocumentReferenceToJSON(json) {
|
|
@@ -44,7 +44,7 @@ function DocumentReferenceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
44
|
return value;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
-
'
|
|
48
|
-
'
|
|
47
|
+
'_ref': value['ref'],
|
|
48
|
+
'_ids': value['ids'],
|
|
49
49
|
};
|
|
50
50
|
}
|
|
@@ -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 EventParticipant
|
|
16
|
+
*/
|
|
17
|
+
export interface EventParticipant {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EventParticipant
|
|
22
|
+
*/
|
|
23
|
+
code?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EventParticipant
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EventParticipant
|
|
34
|
+
*/
|
|
35
|
+
type?: EventParticipantTypeEnum;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const EventParticipantTypeEnum: {
|
|
41
|
+
readonly Individual: "Individual";
|
|
42
|
+
readonly Team: "Team";
|
|
43
|
+
};
|
|
44
|
+
export type EventParticipantTypeEnum = typeof EventParticipantTypeEnum[keyof typeof EventParticipantTypeEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the EventParticipant interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfEventParticipant(value: object): value is EventParticipant;
|
|
49
|
+
export declare function EventParticipantFromJSON(json: any): EventParticipant;
|
|
50
|
+
export declare function EventParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventParticipant;
|
|
51
|
+
export declare function EventParticipantToJSON(json: any): EventParticipant;
|
|
52
|
+
export declare function EventParticipantToJSONTyped(value?: EventParticipant | 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.EventParticipantTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfEventParticipant = instanceOfEventParticipant;
|
|
18
|
+
exports.EventParticipantFromJSON = EventParticipantFromJSON;
|
|
19
|
+
exports.EventParticipantFromJSONTyped = EventParticipantFromJSONTyped;
|
|
20
|
+
exports.EventParticipantToJSON = EventParticipantToJSON;
|
|
21
|
+
exports.EventParticipantToJSONTyped = EventParticipantToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.EventParticipantTypeEnum = {
|
|
26
|
+
Individual: 'Individual',
|
|
27
|
+
Team: 'Team'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the EventParticipant interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfEventParticipant(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function EventParticipantFromJSON(json) {
|
|
36
|
+
return EventParticipantFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function EventParticipantFromJSONTyped(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 EventParticipantToJSON(json) {
|
|
49
|
+
return EventParticipantToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function EventParticipantToJSONTyped(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,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 { EventParticipant } from './EventParticipant';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface EventParticipantsResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface EventParticipantsResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof EventParticipantsResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<EventParticipant>}
|
|
29
|
+
* @memberof EventParticipantsResponse
|
|
30
|
+
*/
|
|
31
|
+
participants?: Array<EventParticipant>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the EventParticipantsResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfEventParticipantsResponse(value: object): value is EventParticipantsResponse;
|
|
37
|
+
export declare function EventParticipantsResponseFromJSON(json: any): EventParticipantsResponse;
|
|
38
|
+
export declare function EventParticipantsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventParticipantsResponse;
|
|
39
|
+
export declare function EventParticipantsResponseToJSON(json: any): EventParticipantsResponse;
|
|
40
|
+
export declare function EventParticipantsResponseToJSONTyped(value?: EventParticipantsResponse | 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.instanceOfEventParticipantsResponse = instanceOfEventParticipantsResponse;
|
|
17
|
+
exports.EventParticipantsResponseFromJSON = EventParticipantsResponseFromJSON;
|
|
18
|
+
exports.EventParticipantsResponseFromJSONTyped = EventParticipantsResponseFromJSONTyped;
|
|
19
|
+
exports.EventParticipantsResponseToJSON = EventParticipantsResponseToJSON;
|
|
20
|
+
exports.EventParticipantsResponseToJSONTyped = EventParticipantsResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const EventParticipant_1 = require("./EventParticipant");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the EventParticipantsResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfEventParticipantsResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function EventParticipantsResponseFromJSON(json) {
|
|
30
|
+
return EventParticipantsResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function EventParticipantsResponseFromJSONTyped(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
|
+
'participants': json['participants'] == null ? undefined : (json['participants'].map(EventParticipant_1.EventParticipantFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function EventParticipantsResponseToJSON(json) {
|
|
42
|
+
return EventParticipantsResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function EventParticipantsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'participants': value['participants'] == null ? undefined : (value['participants'].map(EventParticipant_1.EventParticipantToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/Meta.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { PageMeta } from './PageMeta';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -20,14 +21,46 @@ export interface Meta {
|
|
|
20
21
|
* @type {string}
|
|
21
22
|
* @memberof Meta
|
|
22
23
|
*/
|
|
23
|
-
primaryDocument?:
|
|
24
|
+
primaryDocument?: MetaPrimaryDocumentEnum;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
* @type {number}
|
|
27
28
|
* @memberof Meta
|
|
28
29
|
*/
|
|
29
30
|
count?: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {PageMeta}
|
|
34
|
+
* @memberof Meta
|
|
35
|
+
*/
|
|
36
|
+
page?: PageMeta;
|
|
30
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const MetaPrimaryDocumentEnum: {
|
|
42
|
+
readonly ApiKeys: "apiKeys";
|
|
43
|
+
readonly Apps: "apps";
|
|
44
|
+
readonly Categories: "categories";
|
|
45
|
+
readonly CommissionRates: "commissionRates";
|
|
46
|
+
readonly Currencies: "currencies";
|
|
47
|
+
readonly Events: "events";
|
|
48
|
+
readonly EventGroups: "eventGroups";
|
|
49
|
+
readonly Markets: "markets";
|
|
50
|
+
readonly MarketOutcomes: "marketOutcomes";
|
|
51
|
+
readonly MarketPositions: "marketPositions";
|
|
52
|
+
readonly MarketTypes: "marketTypes";
|
|
53
|
+
readonly Orders: "orders";
|
|
54
|
+
readonly Participants: "participants";
|
|
55
|
+
readonly Prices: "prices";
|
|
56
|
+
readonly Sessions: "sessions";
|
|
57
|
+
readonly Statuses: "statuses";
|
|
58
|
+
readonly Subcategories: "subcategories";
|
|
59
|
+
readonly Trades: "trades";
|
|
60
|
+
readonly Transactions: "transactions";
|
|
61
|
+
readonly Wallets: "wallets";
|
|
62
|
+
};
|
|
63
|
+
export type MetaPrimaryDocumentEnum = typeof MetaPrimaryDocumentEnum[keyof typeof MetaPrimaryDocumentEnum];
|
|
31
64
|
/**
|
|
32
65
|
* Check if a given object implements the Meta interface.
|
|
33
66
|
*/
|
package/dist/models/Meta.js
CHANGED
|
@@ -13,11 +13,38 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MetaPrimaryDocumentEnum = void 0;
|
|
16
17
|
exports.instanceOfMeta = instanceOfMeta;
|
|
17
18
|
exports.MetaFromJSON = MetaFromJSON;
|
|
18
19
|
exports.MetaFromJSONTyped = MetaFromJSONTyped;
|
|
19
20
|
exports.MetaToJSON = MetaToJSON;
|
|
20
21
|
exports.MetaToJSONTyped = MetaToJSONTyped;
|
|
22
|
+
const PageMeta_1 = require("./PageMeta");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.MetaPrimaryDocumentEnum = {
|
|
27
|
+
ApiKeys: 'apiKeys',
|
|
28
|
+
Apps: 'apps',
|
|
29
|
+
Categories: 'categories',
|
|
30
|
+
CommissionRates: 'commissionRates',
|
|
31
|
+
Currencies: 'currencies',
|
|
32
|
+
Events: 'events',
|
|
33
|
+
EventGroups: 'eventGroups',
|
|
34
|
+
Markets: 'markets',
|
|
35
|
+
MarketOutcomes: 'marketOutcomes',
|
|
36
|
+
MarketPositions: 'marketPositions',
|
|
37
|
+
MarketTypes: 'marketTypes',
|
|
38
|
+
Orders: 'orders',
|
|
39
|
+
Participants: 'participants',
|
|
40
|
+
Prices: 'prices',
|
|
41
|
+
Sessions: 'sessions',
|
|
42
|
+
Statuses: 'statuses',
|
|
43
|
+
Subcategories: 'subcategories',
|
|
44
|
+
Trades: 'trades',
|
|
45
|
+
Transactions: 'transactions',
|
|
46
|
+
Wallets: 'wallets'
|
|
47
|
+
};
|
|
21
48
|
/**
|
|
22
49
|
* Check if a given object implements the Meta interface.
|
|
23
50
|
*/
|
|
@@ -34,6 +61,7 @@ function MetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
61
|
return {
|
|
35
62
|
'primaryDocument': json['_primary_document'] == null ? undefined : json['_primary_document'],
|
|
36
63
|
'count': json['_count'] == null ? undefined : json['_count'],
|
|
64
|
+
'page': json['_page'] == null ? undefined : (0, PageMeta_1.PageMetaFromJSON)(json['_page']),
|
|
37
65
|
};
|
|
38
66
|
}
|
|
39
67
|
function MetaToJSON(json) {
|
|
@@ -46,5 +74,6 @@ function MetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
74
|
return {
|
|
47
75
|
'_primary_document': value['primaryDocument'],
|
|
48
76
|
'_count': value['count'],
|
|
77
|
+
'_page': (0, PageMeta_1.PageMetaToJSON)(value['page']),
|
|
49
78
|
};
|
|
50
79
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 ModifyParticipantsRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ModifyParticipantsRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof ModifyParticipantsRequest
|
|
22
|
+
*/
|
|
23
|
+
participantCodes?: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ModifyParticipantsRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfModifyParticipantsRequest(value: object): value is ModifyParticipantsRequest;
|
|
29
|
+
export declare function ModifyParticipantsRequestFromJSON(json: any): ModifyParticipantsRequest;
|
|
30
|
+
export declare function ModifyParticipantsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModifyParticipantsRequest;
|
|
31
|
+
export declare function ModifyParticipantsRequestToJSON(json: any): ModifyParticipantsRequest;
|
|
32
|
+
export declare function ModifyParticipantsRequestToJSONTyped(value?: ModifyParticipantsRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfModifyParticipantsRequest = instanceOfModifyParticipantsRequest;
|
|
17
|
+
exports.ModifyParticipantsRequestFromJSON = ModifyParticipantsRequestFromJSON;
|
|
18
|
+
exports.ModifyParticipantsRequestFromJSONTyped = ModifyParticipantsRequestFromJSONTyped;
|
|
19
|
+
exports.ModifyParticipantsRequestToJSON = ModifyParticipantsRequestToJSON;
|
|
20
|
+
exports.ModifyParticipantsRequestToJSONTyped = ModifyParticipantsRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ModifyParticipantsRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfModifyParticipantsRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ModifyParticipantsRequestFromJSON(json) {
|
|
28
|
+
return ModifyParticipantsRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ModifyParticipantsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'participantCodes': json['participantCodes'] == null ? undefined : json['participantCodes'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function ModifyParticipantsRequestToJSON(json) {
|
|
39
|
+
return ModifyParticipantsRequestToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ModifyParticipantsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'participantCodes': value['participantCodes'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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,6 +44,12 @@ export interface OrderResponse {
|
|
|
43
44
|
* @memberof OrderResponse
|
|
44
45
|
*/
|
|
45
46
|
events?: Array<EventSummary>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<TradeSummary>}
|
|
50
|
+
* @memberof OrderResponse
|
|
51
|
+
*/
|
|
52
|
+
trades?: Array<TradeSummary>;
|
|
46
53
|
}
|
|
47
54
|
/**
|
|
48
55
|
* Check if a given object implements the OrderResponse interface.
|
|
@@ -21,6 +21,7 @@ exports.OrderResponseToJSONTyped = OrderResponseToJSONTyped;
|
|
|
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 OrderResponse interface.
|
|
@@ -40,6 +41,7 @@ function OrderResponseFromJSONTyped(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)),
|
|
44
|
+
'trades': json['trades'] == null ? undefined : (json['trades'].map(TradeSummary_1.TradeSummaryFromJSON)),
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
47
|
function OrderResponseToJSON(json) {
|
|
@@ -54,5 +56,6 @@ function OrderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
56
|
'orders': value['orders'] == null ? undefined : (value['orders'].map(Order_1.OrderToJSON)),
|
|
55
57
|
'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
|
|
56
58
|
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
59
|
+
'trades': value['trades'] == null ? undefined : (value['trades'].map(TradeSummary_1.TradeSummaryToJSON)),
|
|
57
60
|
};
|
|
58
61
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 PageMeta
|
|
16
|
+
*/
|
|
17
|
+
export interface PageMeta {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PageMeta
|
|
22
|
+
*/
|
|
23
|
+
pageNumber?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PageMeta
|
|
28
|
+
*/
|
|
29
|
+
pageSize?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PageMeta
|
|
34
|
+
*/
|
|
35
|
+
totalElements?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PageMeta
|
|
40
|
+
*/
|
|
41
|
+
totalPages?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PageMeta interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPageMeta(value: object): value is PageMeta;
|
|
47
|
+
export declare function PageMetaFromJSON(json: any): PageMeta;
|
|
48
|
+
export declare function PageMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageMeta;
|
|
49
|
+
export declare function PageMetaToJSON(json: any): PageMeta;
|
|
50
|
+
export declare function PageMetaToJSONTyped(value?: PageMeta | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfPageMeta = instanceOfPageMeta;
|
|
17
|
+
exports.PageMetaFromJSON = PageMetaFromJSON;
|
|
18
|
+
exports.PageMetaFromJSONTyped = PageMetaFromJSONTyped;
|
|
19
|
+
exports.PageMetaToJSON = PageMetaToJSON;
|
|
20
|
+
exports.PageMetaToJSONTyped = PageMetaToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PageMeta interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPageMeta(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PageMetaFromJSON(json) {
|
|
28
|
+
return PageMetaFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PageMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'pageNumber': json['_pageNumber'] == null ? undefined : json['_pageNumber'],
|
|
36
|
+
'pageSize': json['_pageSize'] == null ? undefined : json['_pageSize'],
|
|
37
|
+
'totalElements': json['_totalElements'] == null ? undefined : json['_totalElements'],
|
|
38
|
+
'totalPages': json['_totalPages'] == null ? undefined : json['_totalPages'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function PageMetaToJSON(json) {
|
|
42
|
+
return PageMetaToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PageMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_pageNumber': value['pageNumber'],
|
|
50
|
+
'_pageSize': value['pageSize'],
|
|
51
|
+
'_totalElements': value['totalElements'],
|
|
52
|
+
'_totalPages': value['totalPages'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -50,30 +50,6 @@ export interface PagedEventResponse {
|
|
|
50
50
|
* @memberof PagedEventResponse
|
|
51
51
|
*/
|
|
52
52
|
categories?: Array<Category>;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {number}
|
|
56
|
-
* @memberof PagedEventResponse
|
|
57
|
-
*/
|
|
58
|
-
pageNumber?: number;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {number}
|
|
62
|
-
* @memberof PagedEventResponse
|
|
63
|
-
*/
|
|
64
|
-
resultsPerPage?: number;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {number}
|
|
68
|
-
* @memberof PagedEventResponse
|
|
69
|
-
*/
|
|
70
|
-
totalObjects?: number;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {number}
|
|
74
|
-
* @memberof PagedEventResponse
|
|
75
|
-
*/
|
|
76
|
-
totalPages?: number;
|
|
77
53
|
}
|
|
78
54
|
/**
|
|
79
55
|
* Check if a given object implements the PagedEventResponse interface.
|
|
@@ -42,10 +42,6 @@ function PagedEventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroup_1.EventGroupFromJSON)),
|
|
43
43
|
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(Subcategory_1.SubcategoryFromJSON)),
|
|
44
44
|
'categories': json['categories'] == null ? undefined : (json['categories'].map(Category_1.CategoryFromJSON)),
|
|
45
|
-
'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
|
|
46
|
-
'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
|
|
47
|
-
'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
|
|
48
|
-
'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
|
|
49
45
|
};
|
|
50
46
|
}
|
|
51
47
|
function PagedEventResponseToJSON(json) {
|
|
@@ -61,9 +57,5 @@ function PagedEventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
57
|
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroup_1.EventGroupToJSON)),
|
|
62
58
|
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
|
|
63
59
|
'categories': value['categories'] == null ? undefined : (value['categories'].map(Category_1.CategoryToJSON)),
|
|
64
|
-
'pageNumber': value['pageNumber'],
|
|
65
|
-
'resultsPerPage': value['resultsPerPage'],
|
|
66
|
-
'totalObjects': value['totalObjects'],
|
|
67
|
-
'totalPages': value['totalPages'],
|
|
68
60
|
};
|
|
69
61
|
}
|
|
@@ -36,30 +36,6 @@ export interface PagedMarketPositionResponse {
|
|
|
36
36
|
* @memberof PagedMarketPositionResponse
|
|
37
37
|
*/
|
|
38
38
|
markets?: Array<MarketSummary>;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {number}
|
|
42
|
-
* @memberof PagedMarketPositionResponse
|
|
43
|
-
*/
|
|
44
|
-
pageNumber?: number;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {number}
|
|
48
|
-
* @memberof PagedMarketPositionResponse
|
|
49
|
-
*/
|
|
50
|
-
resultsPerPage?: number;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {number}
|
|
54
|
-
* @memberof PagedMarketPositionResponse
|
|
55
|
-
*/
|
|
56
|
-
totalObjects?: number;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {number}
|
|
60
|
-
* @memberof PagedMarketPositionResponse
|
|
61
|
-
*/
|
|
62
|
-
totalPages?: number;
|
|
63
39
|
}
|
|
64
40
|
/**
|
|
65
41
|
* Check if a given object implements the PagedMarketPositionResponse interface.
|
|
@@ -38,10 +38,6 @@ function PagedMarketPositionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
39
39
|
'positions': json['positions'] == null ? undefined : (json['positions'].map(MarketPosition_1.MarketPositionFromJSON)),
|
|
40
40
|
'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
|
|
41
|
-
'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
|
|
42
|
-
'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
|
|
43
|
-
'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
|
|
44
|
-
'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
|
|
45
41
|
};
|
|
46
42
|
}
|
|
47
43
|
function PagedMarketPositionResponseToJSON(json) {
|
|
@@ -55,9 +51,5 @@ function PagedMarketPositionResponseToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
55
51
|
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
56
52
|
'positions': value['positions'] == null ? undefined : (value['positions'].map(MarketPosition_1.MarketPositionToJSON)),
|
|
57
53
|
'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
|
|
58
|
-
'pageNumber': value['pageNumber'],
|
|
59
|
-
'resultsPerPage': value['resultsPerPage'],
|
|
60
|
-
'totalObjects': value['totalObjects'],
|
|
61
|
-
'totalPages': value['totalPages'],
|
|
62
54
|
};
|
|
63
55
|
}
|