@monaco-protocol/client-v2 0.0.69 → 0.0.73-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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchCreateOrderRequest, BatchOrderResponse, ChunkOrderResponse, CreateOrderRequest, OrderResponse, PagedOrderResponse, TradeResponse } from '../models/index';
13
+ import type { BatchCancelOrdersRequest, BatchCreateOrderRequest, BatchOrderResponse, ChunkOrderResponse, CreateOrderRequest, OrderResponse, PagedOrderResponse, TradeResponse } from '../models/index';
14
14
  export interface OrdersApiCancelOrderRequest {
15
15
  authorization: string;
16
16
  id: string;
@@ -21,6 +21,7 @@ export interface OrdersApiCancelOrdersRequest {
21
21
  eventIds?: Array<string>;
22
22
  marketIds?: Array<string>;
23
23
  orderIds?: Array<string>;
24
+ batchCancelOrdersRequest?: BatchCancelOrdersRequest;
24
25
  }
25
26
  export interface OrdersApiCreateOrderOperationRequest {
26
27
  authorization: string;
@@ -85,6 +85,7 @@ class OrdersApi extends runtime.BaseAPI {
85
85
  queryParameters['orderIds'] = requestParameters['orderIds'];
86
86
  }
87
87
  const headerParameters = {};
88
+ headerParameters['Content-Type'] = 'application/json';
88
89
  if (requestParameters['authorization'] != null) {
89
90
  headerParameters['authorization'] = String(requestParameters['authorization']);
90
91
  }
@@ -93,6 +94,7 @@ class OrdersApi extends runtime.BaseAPI {
93
94
  method: 'POST',
94
95
  headers: headerParameters,
95
96
  query: queryParameters,
97
+ body: (0, index_1.BatchCancelOrdersRequestToJSON)(requestParameters['batchCancelOrdersRequest']),
96
98
  }, initOverrides);
97
99
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChunkOrderResponseFromJSON)(jsonValue));
98
100
  });
@@ -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 BatchCancelOrdersRequest
16
+ */
17
+ export interface BatchCancelOrdersRequest {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof BatchCancelOrdersRequest
22
+ */
23
+ walletIds?: Array<string>;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof BatchCancelOrdersRequest
28
+ */
29
+ eventIds?: Array<string>;
30
+ /**
31
+ *
32
+ * @type {Array<string>}
33
+ * @memberof BatchCancelOrdersRequest
34
+ */
35
+ marketIds?: Array<string>;
36
+ /**
37
+ *
38
+ * @type {Array<string>}
39
+ * @memberof BatchCancelOrdersRequest
40
+ */
41
+ orderIds?: Array<string>;
42
+ }
43
+ /**
44
+ * Check if a given object implements the BatchCancelOrdersRequest interface.
45
+ */
46
+ export declare function instanceOfBatchCancelOrdersRequest(value: object): value is BatchCancelOrdersRequest;
47
+ export declare function BatchCancelOrdersRequestFromJSON(json: any): BatchCancelOrdersRequest;
48
+ export declare function BatchCancelOrdersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchCancelOrdersRequest;
49
+ export declare function BatchCancelOrdersRequestToJSON(json: any): BatchCancelOrdersRequest;
50
+ export declare function BatchCancelOrdersRequestToJSONTyped(value?: BatchCancelOrdersRequest | 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.instanceOfBatchCancelOrdersRequest = instanceOfBatchCancelOrdersRequest;
17
+ exports.BatchCancelOrdersRequestFromJSON = BatchCancelOrdersRequestFromJSON;
18
+ exports.BatchCancelOrdersRequestFromJSONTyped = BatchCancelOrdersRequestFromJSONTyped;
19
+ exports.BatchCancelOrdersRequestToJSON = BatchCancelOrdersRequestToJSON;
20
+ exports.BatchCancelOrdersRequestToJSONTyped = BatchCancelOrdersRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BatchCancelOrdersRequest interface.
23
+ */
24
+ function instanceOfBatchCancelOrdersRequest(value) {
25
+ return true;
26
+ }
27
+ function BatchCancelOrdersRequestFromJSON(json) {
28
+ return BatchCancelOrdersRequestFromJSONTyped(json, false);
29
+ }
30
+ function BatchCancelOrdersRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'walletIds': json['walletIds'] == null ? undefined : json['walletIds'],
36
+ 'eventIds': json['eventIds'] == null ? undefined : json['eventIds'],
37
+ 'marketIds': json['marketIds'] == null ? undefined : json['marketIds'],
38
+ 'orderIds': json['orderIds'] == null ? undefined : json['orderIds'],
39
+ };
40
+ }
41
+ function BatchCancelOrdersRequestToJSON(json) {
42
+ return BatchCancelOrdersRequestToJSONTyped(json, false);
43
+ }
44
+ function BatchCancelOrdersRequestToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'walletIds': value['walletIds'],
50
+ 'eventIds': value['eventIds'],
51
+ 'marketIds': value['marketIds'],
52
+ 'orderIds': value['orderIds'],
53
+ };
54
+ }
@@ -88,6 +88,12 @@ export interface Event {
88
88
  * @memberof Event
89
89
  */
90
90
  participants?: DocumentReference;
91
+ /**
92
+ *
93
+ * @type {DocumentReference}
94
+ * @memberof Event
95
+ */
96
+ externalReferences?: DocumentReference;
91
97
  }
92
98
  /**
93
99
  * Check if a given object implements the Event interface.
@@ -45,6 +45,7 @@ function EventFromJSONTyped(json, ignoreDiscriminator) {
45
45
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
46
46
  'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
47
47
  'participants': json['participants'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['participants']),
48
+ 'externalReferences': json['externalReferences'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['externalReferences']),
48
49
  };
49
50
  }
50
51
  function EventToJSON(json) {
@@ -67,5 +68,6 @@ function EventToJSONTyped(value, ignoreDiscriminator = false) {
67
68
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
68
69
  'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
69
70
  'participants': (0, DocumentReference_1.DocumentReferenceToJSON)(value['participants']),
71
+ 'externalReferences': (0, DocumentReference_1.DocumentReferenceToJSON)(value['externalReferences']),
70
72
  };
71
73
  }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { Meta } from './Meta';
13
13
  import type { Category } from './Category';
14
+ import type { ExternalReference } from './ExternalReference';
14
15
  import type { Subcategory } from './Subcategory';
15
16
  import type { Event } from './Event';
16
17
  import type { EventGroup } from './EventGroup';
@@ -57,6 +58,12 @@ export interface EventResponse {
57
58
  * @memberof EventResponse
58
59
  */
59
60
  participants?: Array<EventParticipant>;
61
+ /**
62
+ *
63
+ * @type {Array<ExternalReference>}
64
+ * @memberof EventResponse
65
+ */
66
+ externalReferences?: Array<ExternalReference>;
60
67
  }
61
68
  /**
62
69
  * Check if a given object implements the EventResponse interface.
@@ -20,6 +20,7 @@ exports.EventResponseToJSON = EventResponseToJSON;
20
20
  exports.EventResponseToJSONTyped = EventResponseToJSONTyped;
21
21
  const Meta_1 = require("./Meta");
22
22
  const Category_1 = require("./Category");
23
+ const ExternalReference_1 = require("./ExternalReference");
23
24
  const Subcategory_1 = require("./Subcategory");
24
25
  const Event_1 = require("./Event");
25
26
  const EventGroup_1 = require("./EventGroup");
@@ -44,6 +45,7 @@ function EventResponseFromJSONTyped(json, ignoreDiscriminator) {
44
45
  'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(Subcategory_1.SubcategoryFromJSON)),
45
46
  'categories': json['categories'] == null ? undefined : (json['categories'].map(Category_1.CategoryFromJSON)),
46
47
  'participants': json['participants'] == null ? undefined : (json['participants'].map(EventParticipant_1.EventParticipantFromJSON)),
48
+ 'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
47
49
  };
48
50
  }
49
51
  function EventResponseToJSON(json) {
@@ -60,5 +62,6 @@ function EventResponseToJSONTyped(value, ignoreDiscriminator = false) {
60
62
  'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
61
63
  'categories': value['categories'] == null ? undefined : (value['categories'].map(Category_1.CategoryToJSON)),
62
64
  'participants': value['participants'] == null ? undefined : (value['participants'].map(EventParticipant_1.EventParticipantToJSON)),
65
+ 'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
63
66
  };
64
67
  }
@@ -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 ExternalReference
16
+ */
17
+ export interface ExternalReference {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ExternalReference
22
+ */
23
+ id?: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ExternalReference
28
+ */
29
+ source?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ExternalReference
34
+ */
35
+ externalReference?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ExternalReference interface.
39
+ */
40
+ export declare function instanceOfExternalReference(value: object): value is ExternalReference;
41
+ export declare function ExternalReferenceFromJSON(json: any): ExternalReference;
42
+ export declare function ExternalReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalReference;
43
+ export declare function ExternalReferenceToJSON(json: any): ExternalReference;
44
+ export declare function ExternalReferenceToJSONTyped(value?: ExternalReference | 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.instanceOfExternalReference = instanceOfExternalReference;
17
+ exports.ExternalReferenceFromJSON = ExternalReferenceFromJSON;
18
+ exports.ExternalReferenceFromJSONTyped = ExternalReferenceFromJSONTyped;
19
+ exports.ExternalReferenceToJSON = ExternalReferenceToJSON;
20
+ exports.ExternalReferenceToJSONTyped = ExternalReferenceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ExternalReference interface.
23
+ */
24
+ function instanceOfExternalReference(value) {
25
+ return true;
26
+ }
27
+ function ExternalReferenceFromJSON(json) {
28
+ return ExternalReferenceFromJSONTyped(json, false);
29
+ }
30
+ function ExternalReferenceFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': json['id'] == null ? undefined : json['id'],
36
+ 'source': json['source'] == null ? undefined : json['source'],
37
+ 'externalReference': json['externalReference'] == null ? undefined : json['externalReference'],
38
+ };
39
+ }
40
+ function ExternalReferenceToJSON(json) {
41
+ return ExternalReferenceToJSONTyped(json, false);
42
+ }
43
+ function ExternalReferenceToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'id': value['id'],
49
+ 'source': value['source'],
50
+ 'externalReference': value['externalReference'],
51
+ };
52
+ }
@@ -130,6 +130,12 @@ export interface Market {
130
130
  * @memberof Market
131
131
  */
132
132
  marketOutcomes?: DocumentReference;
133
+ /**
134
+ *
135
+ * @type {DocumentReference}
136
+ * @memberof Market
137
+ */
138
+ externalReferences?: DocumentReference;
133
139
  /**
134
140
  *
135
141
  * @type {Date}
@@ -88,6 +88,7 @@ function MarketFromJSONTyped(json, ignoreDiscriminator) {
88
88
  'eventStartAction': json['eventStartAction'] == null ? undefined : json['eventStartAction'],
89
89
  'status': json['status'] == null ? undefined : json['status'],
90
90
  'marketOutcomes': json['marketOutcomes'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['marketOutcomes']),
91
+ 'externalReferences': json['externalReferences'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['externalReferences']),
91
92
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
92
93
  'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
93
94
  };
@@ -119,6 +120,7 @@ function MarketToJSONTyped(value, ignoreDiscriminator = false) {
119
120
  'eventStartAction': value['eventStartAction'],
120
121
  'status': value['status'],
121
122
  'marketOutcomes': (0, DocumentReference_1.DocumentReferenceToJSON)(value['marketOutcomes']),
123
+ 'externalReferences': (0, DocumentReference_1.DocumentReferenceToJSON)(value['externalReferences']),
122
124
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
123
125
  'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
124
126
  };
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { MarketOutcomeSummary } from './MarketOutcomeSummary';
13
13
  import type { Meta } from './Meta';
14
+ import type { ExternalReference } from './ExternalReference';
14
15
  import type { CategorySummary } from './CategorySummary';
15
16
  import type { EventSummary } from './EventSummary';
16
17
  import type { SubcategorySummary } from './SubcategorySummary';
@@ -71,6 +72,12 @@ export interface MarketResponse {
71
72
  * @memberof MarketResponse
72
73
  */
73
74
  categories?: Array<CategorySummary>;
75
+ /**
76
+ *
77
+ * @type {Array<ExternalReference>}
78
+ * @memberof MarketResponse
79
+ */
80
+ externalReferences?: Array<ExternalReference>;
74
81
  }
75
82
  /**
76
83
  * Check if a given object implements the MarketResponse interface.
@@ -20,6 +20,7 @@ exports.MarketResponseToJSON = MarketResponseToJSON;
20
20
  exports.MarketResponseToJSONTyped = MarketResponseToJSONTyped;
21
21
  const MarketOutcomeSummary_1 = require("./MarketOutcomeSummary");
22
22
  const Meta_1 = require("./Meta");
23
+ const ExternalReference_1 = require("./ExternalReference");
23
24
  const CategorySummary_1 = require("./CategorySummary");
24
25
  const EventSummary_1 = require("./EventSummary");
25
26
  const SubcategorySummary_1 = require("./SubcategorySummary");
@@ -48,6 +49,7 @@ function MarketResponseFromJSONTyped(json, ignoreDiscriminator) {
48
49
  'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryFromJSON)),
49
50
  'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
50
51
  'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
52
+ 'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
51
53
  };
52
54
  }
53
55
  function MarketResponseToJSON(json) {
@@ -66,5 +68,6 @@ function MarketResponseToJSONTyped(value, ignoreDiscriminator = false) {
66
68
  'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryToJSON)),
67
69
  'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
68
70
  'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
71
+ 'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
69
72
  };
70
73
  }
@@ -48,6 +48,7 @@ export declare const MetaPrimaryDocumentEnum: {
48
48
  readonly DepositRequests: "depositRequests";
49
49
  readonly Events: "events";
50
50
  readonly EventGroups: "eventGroups";
51
+ readonly ExternalReferences: "externalReferences";
51
52
  readonly ExternalReferenceSources: "externalReferenceSources";
52
53
  readonly Heartbeats: "heartbeats";
53
54
  readonly Markets: "markets";
@@ -33,6 +33,7 @@ exports.MetaPrimaryDocumentEnum = {
33
33
  DepositRequests: 'depositRequests',
34
34
  Events: 'events',
35
35
  EventGroups: 'eventGroups',
36
+ ExternalReferences: 'externalReferences',
36
37
  ExternalReferenceSources: 'externalReferenceSources',
37
38
  Heartbeats: 'heartbeats',
38
39
  Markets: 'markets',
@@ -52,6 +52,12 @@ export interface Order {
52
52
  * @memberof Order
53
53
  */
54
54
  outcomeId?: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof Order
59
+ */
60
+ outcomeTitle?: string;
55
61
  /**
56
62
  *
57
63
  * @type {number}
@@ -66,6 +66,7 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
66
66
  'walletId': json['walletId'] == null ? undefined : json['walletId'],
67
67
  'side': json['side'] == null ? undefined : json['side'],
68
68
  'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
69
+ 'outcomeTitle': json['outcomeTitle'] == null ? undefined : json['outcomeTitle'],
69
70
  'price': json['price'] == null ? undefined : json['price'],
70
71
  'stake': json['stake'] == null ? undefined : json['stake'],
71
72
  'stakeUnmatched': json['stakeUnmatched'] == null ? undefined : json['stakeUnmatched'],
@@ -93,6 +94,7 @@ function OrderToJSONTyped(value, ignoreDiscriminator = false) {
93
94
  'walletId': value['walletId'],
94
95
  'side': value['side'],
95
96
  'outcomeId': value['outcomeId'],
97
+ 'outcomeTitle': value['outcomeTitle'],
96
98
  'price': value['price'],
97
99
  'stake': value['stake'],
98
100
  'stakeUnmatched': value['stakeUnmatched'],
@@ -40,6 +40,12 @@ export interface OrderSummary {
40
40
  * @memberof OrderSummary
41
41
  */
42
42
  outcomeId?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof OrderSummary
47
+ */
48
+ outcomeTitle?: string;
43
49
  /**
44
50
  *
45
51
  * @type {number}
@@ -57,6 +57,7 @@ function OrderSummaryFromJSONTyped(json, ignoreDiscriminator) {
57
57
  'market': json['market'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['market']),
58
58
  'side': json['side'] == null ? undefined : json['side'],
59
59
  'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
60
+ 'outcomeTitle': json['outcomeTitle'] == null ? undefined : json['outcomeTitle'],
60
61
  'price': json['price'] == null ? undefined : json['price'],
61
62
  'stake': json['stake'] == null ? undefined : json['stake'],
62
63
  'stakeUnmatched': json['stakeUnmatched'] == null ? undefined : json['stakeUnmatched'],
@@ -77,6 +78,7 @@ function OrderSummaryToJSONTyped(value, ignoreDiscriminator = false) {
77
78
  'market': (0, DocumentReference_1.DocumentReferenceToJSON)(value['market']),
78
79
  'side': value['side'],
79
80
  'outcomeId': value['outcomeId'],
81
+ 'outcomeTitle': value['outcomeTitle'],
80
82
  'price': value['price'],
81
83
  'stake': value['stake'],
82
84
  'stakeUnmatched': value['stakeUnmatched'],
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { Meta } from './Meta';
13
13
  import type { Category } from './Category';
14
+ import type { ExternalReference } from './ExternalReference';
14
15
  import type { Subcategory } from './Subcategory';
15
16
  import type { Event } from './Event';
16
17
  import type { EventGroup } from './EventGroup';
@@ -57,6 +58,12 @@ export interface PagedEventResponse {
57
58
  * @memberof PagedEventResponse
58
59
  */
59
60
  participants?: Array<EventParticipant>;
61
+ /**
62
+ *
63
+ * @type {Array<ExternalReference>}
64
+ * @memberof PagedEventResponse
65
+ */
66
+ externalReferences?: Array<ExternalReference>;
60
67
  }
61
68
  /**
62
69
  * Check if a given object implements the PagedEventResponse interface.
@@ -20,6 +20,7 @@ exports.PagedEventResponseToJSON = PagedEventResponseToJSON;
20
20
  exports.PagedEventResponseToJSONTyped = PagedEventResponseToJSONTyped;
21
21
  const Meta_1 = require("./Meta");
22
22
  const Category_1 = require("./Category");
23
+ const ExternalReference_1 = require("./ExternalReference");
23
24
  const Subcategory_1 = require("./Subcategory");
24
25
  const Event_1 = require("./Event");
25
26
  const EventGroup_1 = require("./EventGroup");
@@ -44,6 +45,7 @@ function PagedEventResponseFromJSONTyped(json, ignoreDiscriminator) {
44
45
  'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(Subcategory_1.SubcategoryFromJSON)),
45
46
  'categories': json['categories'] == null ? undefined : (json['categories'].map(Category_1.CategoryFromJSON)),
46
47
  'participants': json['participants'] == null ? undefined : (json['participants'].map(EventParticipant_1.EventParticipantFromJSON)),
48
+ 'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
47
49
  };
48
50
  }
49
51
  function PagedEventResponseToJSON(json) {
@@ -60,5 +62,6 @@ function PagedEventResponseToJSONTyped(value, ignoreDiscriminator = false) {
60
62
  'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
61
63
  'categories': value['categories'] == null ? undefined : (value['categories'].map(Category_1.CategoryToJSON)),
62
64
  'participants': value['participants'] == null ? undefined : (value['participants'].map(EventParticipant_1.EventParticipantToJSON)),
65
+ 'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
63
66
  };
64
67
  }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { MarketOutcomeSummary } from './MarketOutcomeSummary';
13
13
  import type { Meta } from './Meta';
14
+ import type { ExternalReference } from './ExternalReference';
14
15
  import type { CategorySummary } from './CategorySummary';
15
16
  import type { EventSummary } from './EventSummary';
16
17
  import type { SubcategorySummary } from './SubcategorySummary';
@@ -71,6 +72,12 @@ export interface PagedMarketResponse {
71
72
  * @memberof PagedMarketResponse
72
73
  */
73
74
  categories?: Array<CategorySummary>;
75
+ /**
76
+ *
77
+ * @type {Array<ExternalReference>}
78
+ * @memberof PagedMarketResponse
79
+ */
80
+ externalReferences?: Array<ExternalReference>;
74
81
  }
75
82
  /**
76
83
  * Check if a given object implements the PagedMarketResponse interface.
@@ -20,6 +20,7 @@ exports.PagedMarketResponseToJSON = PagedMarketResponseToJSON;
20
20
  exports.PagedMarketResponseToJSONTyped = PagedMarketResponseToJSONTyped;
21
21
  const MarketOutcomeSummary_1 = require("./MarketOutcomeSummary");
22
22
  const Meta_1 = require("./Meta");
23
+ const ExternalReference_1 = require("./ExternalReference");
23
24
  const CategorySummary_1 = require("./CategorySummary");
24
25
  const EventSummary_1 = require("./EventSummary");
25
26
  const SubcategorySummary_1 = require("./SubcategorySummary");
@@ -48,6 +49,7 @@ function PagedMarketResponseFromJSONTyped(json, ignoreDiscriminator) {
48
49
  'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryFromJSON)),
49
50
  'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
50
51
  'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
52
+ 'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
51
53
  };
52
54
  }
53
55
  function PagedMarketResponseToJSON(json) {
@@ -66,5 +68,6 @@ function PagedMarketResponseToJSONTyped(value, ignoreDiscriminator = false) {
66
68
  'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryToJSON)),
67
69
  'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
68
70
  'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
71
+ 'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
69
72
  };
70
73
  }
@@ -64,6 +64,12 @@ export interface Trade {
64
64
  * @memberof Trade
65
65
  */
66
66
  stake?: number;
67
+ /**
68
+ *
69
+ * @type {number}
70
+ * @memberof Trade
71
+ */
72
+ profitLoss?: number;
67
73
  /**
68
74
  *
69
75
  * @type {Date}
@@ -49,6 +49,7 @@ function TradeFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
50
50
  'price': json['price'] == null ? undefined : json['price'],
51
51
  'stake': json['stake'] == null ? undefined : json['stake'],
52
+ 'profitLoss': json['profitLoss'] == null ? undefined : json['profitLoss'],
52
53
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
53
54
  'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
54
55
  };
@@ -69,6 +70,7 @@ function TradeToJSONTyped(value, ignoreDiscriminator = false) {
69
70
  'outcomeId': value['outcomeId'],
70
71
  'price': value['price'],
71
72
  'stake': value['stake'],
73
+ 'profitLoss': value['profitLoss'],
72
74
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
73
75
  'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
74
76
  };
@@ -40,6 +40,12 @@ export interface TradeSummary {
40
40
  * @memberof TradeSummary
41
41
  */
42
42
  stake?: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof TradeSummary
47
+ */
48
+ profitLoss?: number;
43
49
  /**
44
50
  *
45
51
  * @type {Date}
@@ -37,6 +37,7 @@ function TradeSummaryFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'id': json['id'] == null ? undefined : json['id'],
38
38
  'price': json['price'] == null ? undefined : json['price'],
39
39
  'stake': json['stake'] == null ? undefined : json['stake'],
40
+ 'profitLoss': json['profitLoss'] == null ? undefined : json['profitLoss'],
40
41
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
41
42
  };
42
43
  }
@@ -52,6 +53,7 @@ function TradeSummaryToJSONTyped(value, ignoreDiscriminator = false) {
52
53
  'id': value['id'],
53
54
  'price': value['price'],
54
55
  'stake': value['stake'],
56
+ 'profitLoss': value['profitLoss'],
55
57
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
56
58
  };
57
59
  }
@@ -7,6 +7,7 @@ export * from './App';
7
7
  export * from './AppResponse';
8
8
  export * from './AppStatus';
9
9
  export * from './AppStatusResponse';
10
+ export * from './BatchCancelOrdersRequest';
10
11
  export * from './BatchCreateOrderRequest';
11
12
  export * from './BatchOrderResponse';
12
13
  export * from './BatchOrderResponseOrdersInner';
@@ -44,6 +45,7 @@ export * from './EventParticipantsResponse';
44
45
  export * from './EventResponse';
45
46
  export * from './EventSummary';
46
47
  export * from './EventUpdateResponse';
48
+ export * from './ExternalReference';
47
49
  export * from './ExternalReferenceSource';
48
50
  export * from './ExternalReferenceSourcesResponse';
49
51
  export * from './Heartbeat';
@@ -25,6 +25,7 @@ __exportStar(require("./App"), exports);
25
25
  __exportStar(require("./AppResponse"), exports);
26
26
  __exportStar(require("./AppStatus"), exports);
27
27
  __exportStar(require("./AppStatusResponse"), exports);
28
+ __exportStar(require("./BatchCancelOrdersRequest"), exports);
28
29
  __exportStar(require("./BatchCreateOrderRequest"), exports);
29
30
  __exportStar(require("./BatchOrderResponse"), exports);
30
31
  __exportStar(require("./BatchOrderResponseOrdersInner"), exports);
@@ -62,6 +63,7 @@ __exportStar(require("./EventParticipantsResponse"), exports);
62
63
  __exportStar(require("./EventResponse"), exports);
63
64
  __exportStar(require("./EventSummary"), exports);
64
65
  __exportStar(require("./EventUpdateResponse"), exports);
66
+ __exportStar(require("./ExternalReference"), exports);
65
67
  __exportStar(require("./ExternalReferenceSource"), exports);
66
68
  __exportStar(require("./ExternalReferenceSourcesResponse"), exports);
67
69
  __exportStar(require("./Heartbeat"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monaco-protocol/client-v2",
3
- "version": "0.0.69",
3
+ "version": "0.0.73-dev.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [