@monaco-protocol/client-v2 0.0.2-dev.3 → 0.0.2-dev.5
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 +22 -9
- package/dist/apis/MarketsApi.js +32 -12
- 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 +19 -3
- package/dist/apis/WalletsApi.js +53 -0
- package/dist/models/AddMarketOutcomeRequest.d.ts +1 -1
- package/dist/models/AddMarketOutcomeRequest.js +2 -2
- 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 +11 -2
- package/dist/models/CreateOrderRequest.js +4 -2
- 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/Event.d.ts +6 -0
- package/dist/models/Event.js +2 -0
- 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/EventResponse.d.ts +7 -0
- package/dist/models/EventResponse.js +3 -0
- package/dist/models/Market.d.ts +11 -8
- package/dist/models/Market.js +11 -5
- package/dist/models/MarketLiquidity.d.ts +2 -2
- package/dist/models/MarketLiquidity.js +2 -2
- package/dist/models/MarketOutcomeResult.d.ts +38 -0
- package/dist/models/MarketOutcomeResult.js +50 -0
- package/dist/models/MarketOutcomeSummary.d.ts +7 -1
- package/dist/models/MarketOutcomeSummary.js +4 -2
- package/dist/models/MarketResultRequest.d.ts +3 -3
- package/dist/models/MarketResultRequest.js +3 -3
- package/dist/models/MarketSummary.d.ts +11 -2
- package/dist/models/MarketSummary.js +11 -3
- 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/Order.d.ts +2 -2
- package/dist/models/Order.js +2 -2
- package/dist/models/OrderResponse.d.ts +7 -0
- package/dist/models/OrderResponse.js +3 -0
- package/dist/models/OrderSummary.d.ts +2 -2
- package/dist/models/OrderSummary.js +2 -2
- package/dist/models/PageMeta.d.ts +50 -0
- package/dist/models/PageMeta.js +54 -0
- package/dist/models/Pageable.d.ts +44 -0
- package/dist/models/Pageable.js +52 -0
- package/dist/models/PagedEventResponse.d.ts +3 -20
- package/dist/models/PagedEventResponse.js +3 -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/Trade.d.ts +2 -2
- package/dist/models/Trade.js +2 -2
- package/dist/models/TradeSummary.d.ts +44 -0
- package/dist/models/TradeSummary.js +52 -0
- package/dist/models/index.d.ts +11 -2
- package/dist/models/index.js +11 -2
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 Pageable
|
|
16
|
+
*/
|
|
17
|
+
export interface Pageable {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof Pageable
|
|
22
|
+
*/
|
|
23
|
+
page?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof Pageable
|
|
28
|
+
*/
|
|
29
|
+
size?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof Pageable
|
|
34
|
+
*/
|
|
35
|
+
sort?: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the Pageable interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPageable(value: object): value is Pageable;
|
|
41
|
+
export declare function PageableFromJSON(json: any): Pageable;
|
|
42
|
+
export declare function PageableFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pageable;
|
|
43
|
+
export declare function PageableToJSON(json: any): Pageable;
|
|
44
|
+
export declare function PageableToJSONTyped(value?: Pageable | 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.instanceOfPageable = instanceOfPageable;
|
|
17
|
+
exports.PageableFromJSON = PageableFromJSON;
|
|
18
|
+
exports.PageableFromJSONTyped = PageableFromJSONTyped;
|
|
19
|
+
exports.PageableToJSON = PageableToJSON;
|
|
20
|
+
exports.PageableToJSONTyped = PageableToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Pageable interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPageable(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PageableFromJSON(json) {
|
|
28
|
+
return PageableFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PageableFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
36
|
+
'size': json['size'] == null ? undefined : json['size'],
|
|
37
|
+
'sort': json['sort'] == null ? undefined : json['sort'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PageableToJSON(json) {
|
|
41
|
+
return PageableToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PageableToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'page': value['page'],
|
|
49
|
+
'size': value['size'],
|
|
50
|
+
'sort': value['sort'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -14,6 +14,7 @@ import type { Category } from './Category';
|
|
|
14
14
|
import type { Subcategory } from './Subcategory';
|
|
15
15
|
import type { Event } from './Event';
|
|
16
16
|
import type { EventGroup } from './EventGroup';
|
|
17
|
+
import type { EventParticipant } from './EventParticipant';
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
19
20
|
* @export
|
|
@@ -52,28 +53,10 @@ export interface PagedEventResponse {
|
|
|
52
53
|
categories?: Array<Category>;
|
|
53
54
|
/**
|
|
54
55
|
*
|
|
55
|
-
* @type {
|
|
56
|
+
* @type {Array<EventParticipant>}
|
|
56
57
|
* @memberof PagedEventResponse
|
|
57
58
|
*/
|
|
58
|
-
|
|
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;
|
|
59
|
+
participants?: Array<EventParticipant>;
|
|
77
60
|
}
|
|
78
61
|
/**
|
|
79
62
|
* Check if a given object implements the PagedEventResponse interface.
|
|
@@ -23,6 +23,7 @@ const Category_1 = require("./Category");
|
|
|
23
23
|
const Subcategory_1 = require("./Subcategory");
|
|
24
24
|
const Event_1 = require("./Event");
|
|
25
25
|
const EventGroup_1 = require("./EventGroup");
|
|
26
|
+
const EventParticipant_1 = require("./EventParticipant");
|
|
26
27
|
/**
|
|
27
28
|
* Check if a given object implements the PagedEventResponse interface.
|
|
28
29
|
*/
|
|
@@ -42,10 +43,7 @@ function PagedEventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
43
|
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroup_1.EventGroupFromJSON)),
|
|
43
44
|
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(Subcategory_1.SubcategoryFromJSON)),
|
|
44
45
|
'categories': json['categories'] == null ? undefined : (json['categories'].map(Category_1.CategoryFromJSON)),
|
|
45
|
-
'
|
|
46
|
-
'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
|
|
47
|
-
'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
|
|
48
|
-
'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
|
|
46
|
+
'participants': json['participants'] == null ? undefined : (json['participants'].map(EventParticipant_1.EventParticipantFromJSON)),
|
|
49
47
|
};
|
|
50
48
|
}
|
|
51
49
|
function PagedEventResponseToJSON(json) {
|
|
@@ -61,9 +59,6 @@ function PagedEventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
59
|
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroup_1.EventGroupToJSON)),
|
|
62
60
|
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
|
|
63
61
|
'categories': value['categories'] == null ? undefined : (value['categories'].map(Category_1.CategoryToJSON)),
|
|
64
|
-
'
|
|
65
|
-
'resultsPerPage': value['resultsPerPage'],
|
|
66
|
-
'totalObjects': value['totalObjects'],
|
|
67
|
-
'totalPages': value['totalPages'],
|
|
62
|
+
'participants': value['participants'] == null ? undefined : (value['participants'].map(EventParticipant_1.EventParticipantToJSON)),
|
|
68
63
|
};
|
|
69
64
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
*
|
|
@@ -45,28 +46,10 @@ export interface PagedOrderResponse {
|
|
|
45
46
|
events?: Array<EventSummary>;
|
|
46
47
|
/**
|
|
47
48
|
*
|
|
48
|
-
* @type {
|
|
49
|
+
* @type {Array<TradeSummary>}
|
|
49
50
|
* @memberof PagedOrderResponse
|
|
50
51
|
*/
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof PagedOrderResponse
|
|
56
|
-
*/
|
|
57
|
-
resultsPerPage?: number;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof PagedOrderResponse
|
|
62
|
-
*/
|
|
63
|
-
totalObjects?: number;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {number}
|
|
67
|
-
* @memberof PagedOrderResponse
|
|
68
|
-
*/
|
|
69
|
-
totalPages?: number;
|
|
52
|
+
trades?: Array<TradeSummary>;
|
|
70
53
|
}
|
|
71
54
|
/**
|
|
72
55
|
* Check if a given object implements the PagedOrderResponse interface.
|
|
@@ -21,6 +21,7 @@ exports.PagedOrderResponseToJSONTyped = PagedOrderResponseToJSONTyped;
|
|
|
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 PagedOrderResponse interface.
|
|
@@ -40,10 +41,7 @@ function PagedOrderResponseFromJSONTyped(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
|
-
'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
|
|
45
|
-
'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
|
|
46
|
-
'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
|
|
44
|
+
'trades': json['trades'] == null ? undefined : (json['trades'].map(TradeSummary_1.TradeSummaryFromJSON)),
|
|
47
45
|
};
|
|
48
46
|
}
|
|
49
47
|
function PagedOrderResponseToJSON(json) {
|
|
@@ -58,9 +56,6 @@ function PagedOrderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
56
|
'orders': value['orders'] == null ? undefined : (value['orders'].map(Order_1.OrderToJSON)),
|
|
59
57
|
'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
|
|
60
58
|
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
61
|
-
'
|
|
62
|
-
'resultsPerPage': value['resultsPerPage'],
|
|
63
|
-
'totalObjects': value['totalObjects'],
|
|
64
|
-
'totalPages': value['totalPages'],
|
|
59
|
+
'trades': value['trades'] == null ? undefined : (value['trades'].map(TradeSummary_1.TradeSummaryToJSON)),
|
|
65
60
|
};
|
|
66
61
|
}
|
|
@@ -50,30 +50,6 @@ export interface PagedTradeResponse {
|
|
|
50
50
|
* @memberof PagedTradeResponse
|
|
51
51
|
*/
|
|
52
52
|
events?: Array<EventSummary>;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {number}
|
|
56
|
-
* @memberof PagedTradeResponse
|
|
57
|
-
*/
|
|
58
|
-
pageNumber?: number;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {number}
|
|
62
|
-
* @memberof PagedTradeResponse
|
|
63
|
-
*/
|
|
64
|
-
resultsPerPage?: number;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {number}
|
|
68
|
-
* @memberof PagedTradeResponse
|
|
69
|
-
*/
|
|
70
|
-
totalObjects?: number;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {number}
|
|
74
|
-
* @memberof PagedTradeResponse
|
|
75
|
-
*/
|
|
76
|
-
totalPages?: number;
|
|
77
53
|
}
|
|
78
54
|
/**
|
|
79
55
|
* Check if a given object implements the PagedTradeResponse interface.
|
|
@@ -42,10 +42,6 @@ function PagedTradeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'orders': json['orders'] == null ? undefined : (json['orders'].map(OrderSummary_1.OrderSummaryFromJSON)),
|
|
43
43
|
'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
|
|
44
44
|
'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
|
|
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 PagedTradeResponseToJSON(json) {
|
|
@@ -61,9 +57,5 @@ function PagedTradeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
57
|
'orders': value['orders'] == null ? undefined : (value['orders'].map(OrderSummary_1.OrderSummaryToJSON)),
|
|
62
58
|
'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
|
|
63
59
|
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
64
|
-
'pageNumber': value['pageNumber'],
|
|
65
|
-
'resultsPerPage': value['resultsPerPage'],
|
|
66
|
-
'totalObjects': value['totalObjects'],
|
|
67
|
-
'totalPages': value['totalPages'],
|
|
68
60
|
};
|
|
69
61
|
}
|
|
@@ -29,30 +29,6 @@ export interface PagedTransactionResponse {
|
|
|
29
29
|
* @memberof PagedTransactionResponse
|
|
30
30
|
*/
|
|
31
31
|
transactions?: Array<Transaction>;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {number}
|
|
35
|
-
* @memberof PagedTransactionResponse
|
|
36
|
-
*/
|
|
37
|
-
pageNumber?: number;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {number}
|
|
41
|
-
* @memberof PagedTransactionResponse
|
|
42
|
-
*/
|
|
43
|
-
resultsPerPage?: number;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {number}
|
|
47
|
-
* @memberof PagedTransactionResponse
|
|
48
|
-
*/
|
|
49
|
-
totalObjects?: number;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @memberof PagedTransactionResponse
|
|
54
|
-
*/
|
|
55
|
-
totalPages?: number;
|
|
56
32
|
}
|
|
57
33
|
/**
|
|
58
34
|
* Check if a given object implements the PagedTransactionResponse interface.
|
|
@@ -36,10 +36,6 @@ function PagedTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return {
|
|
37
37
|
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
38
38
|
'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(Transaction_1.TransactionFromJSON)),
|
|
39
|
-
'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
|
|
40
|
-
'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
|
|
41
|
-
'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
|
|
42
|
-
'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
|
|
43
39
|
};
|
|
44
40
|
}
|
|
45
41
|
function PagedTransactionResponseToJSON(json) {
|
|
@@ -52,9 +48,5 @@ function PagedTransactionResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
52
48
|
return {
|
|
53
49
|
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
54
50
|
'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(Transaction_1.TransactionToJSON)),
|
|
55
|
-
'pageNumber': value['pageNumber'],
|
|
56
|
-
'resultsPerPage': value['resultsPerPage'],
|
|
57
|
-
'totalObjects': value['totalObjects'],
|
|
58
|
-
'totalPages': value['totalPages'],
|
|
59
51
|
};
|
|
60
52
|
}
|
|
@@ -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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Participant
|
|
16
|
+
*/
|
|
17
|
+
export interface Participant {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Participant
|
|
22
|
+
*/
|
|
23
|
+
code?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Participant
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Participant
|
|
34
|
+
*/
|
|
35
|
+
type?: ParticipantTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof Participant
|
|
40
|
+
*/
|
|
41
|
+
active?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const ParticipantTypeEnum: {
|
|
47
|
+
readonly Individual: "Individual";
|
|
48
|
+
readonly Team: "Team";
|
|
49
|
+
};
|
|
50
|
+
export type ParticipantTypeEnum = typeof ParticipantTypeEnum[keyof typeof ParticipantTypeEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the Participant interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfParticipant(value: object): value is Participant;
|
|
55
|
+
export declare function ParticipantFromJSON(json: any): Participant;
|
|
56
|
+
export declare function ParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Participant;
|
|
57
|
+
export declare function ParticipantToJSON(json: any): Participant;
|
|
58
|
+
export declare function ParticipantToJSONTyped(value?: Participant | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.ParticipantTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfParticipant = instanceOfParticipant;
|
|
18
|
+
exports.ParticipantFromJSON = ParticipantFromJSON;
|
|
19
|
+
exports.ParticipantFromJSONTyped = ParticipantFromJSONTyped;
|
|
20
|
+
exports.ParticipantToJSON = ParticipantToJSON;
|
|
21
|
+
exports.ParticipantToJSONTyped = ParticipantToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ParticipantTypeEnum = {
|
|
26
|
+
Individual: 'Individual',
|
|
27
|
+
Team: 'Team'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the Participant interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfParticipant(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ParticipantFromJSON(json) {
|
|
36
|
+
return ParticipantFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ParticipantFromJSONTyped(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
|
+
'active': json['active'] == null ? undefined : json['active'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ParticipantToJSON(json) {
|
|
50
|
+
return ParticipantToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ParticipantToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'code': value['code'],
|
|
58
|
+
'name': value['name'],
|
|
59
|
+
'type': value['type'],
|
|
60
|
+
'active': value['active'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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 { Participant } from './Participant';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ParticipantsResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface ParticipantsResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof ParticipantsResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<Participant>}
|
|
29
|
+
* @memberof ParticipantsResponse
|
|
30
|
+
*/
|
|
31
|
+
participants?: Array<Participant>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the ParticipantsResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfParticipantsResponse(value: object): value is ParticipantsResponse;
|
|
37
|
+
export declare function ParticipantsResponseFromJSON(json: any): ParticipantsResponse;
|
|
38
|
+
export declare function ParticipantsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParticipantsResponse;
|
|
39
|
+
export declare function ParticipantsResponseToJSON(json: any): ParticipantsResponse;
|
|
40
|
+
export declare function ParticipantsResponseToJSONTyped(value?: ParticipantsResponse | null, ignoreDiscriminator?: boolean): any;
|