@monaco-protocol/client-v2 0.0.2-dev.0 → 0.0.2-dev.10

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.
Files changed (145) hide show
  1. package/README.md +32 -26
  2. package/dist/apis/{MonacoAPIAPIKeyManagementApi.d.ts → APIKeyManagementApi.d.ts} +4 -4
  3. package/dist/apis/{MonacoAPIAPIKeyManagementApi.js → APIKeyManagementApi.js} +8 -8
  4. package/dist/apis/{MonacoAPIAppManagementApi.d.ts → AppManagementApi.d.ts} +7 -7
  5. package/dist/apis/{MonacoAPIAppManagementApi.js → AppManagementApi.js} +12 -12
  6. package/dist/apis/{MonacoAPICurrenciesApi.d.ts → CurrenciesApi.d.ts} +5 -5
  7. package/dist/apis/{MonacoAPICurrenciesApi.js → CurrenciesApi.js} +8 -8
  8. package/dist/apis/EventCategoriesApi.d.ts +53 -0
  9. package/dist/apis/{MonacoAPIEventCategoriesApi.js → EventCategoriesApi.js} +17 -17
  10. package/dist/apis/EventGroupsApi.d.ts +54 -0
  11. package/dist/apis/{MonacoAPIEventGroupsApi.js → EventGroupsApi.js} +19 -19
  12. package/dist/apis/EventSubcategoriesApi.d.ts +105 -0
  13. package/dist/apis/EventSubcategoriesApi.js +287 -0
  14. package/dist/apis/EventsApi.d.ts +175 -0
  15. package/dist/apis/EventsApi.js +477 -0
  16. package/dist/apis/HeartbeatManagementApi.d.ts +52 -0
  17. package/dist/apis/{MonacoAPIEventSubcategoriesApi.js → HeartbeatManagementApi.js} +35 -41
  18. package/dist/apis/MarketPricesApi.d.ts +41 -0
  19. package/dist/apis/MarketPricesApi.js +101 -0
  20. package/dist/apis/{MonacoAPIMarketTypesApi.d.ts → MarketTypesApi.d.ts} +1 -1
  21. package/dist/apis/{MonacoAPIMarketTypesApi.js → MarketTypesApi.js} +3 -3
  22. package/dist/apis/{MonacoAPIMarketsApi.d.ts → MarketsApi.d.ts} +79 -25
  23. package/dist/apis/{MonacoAPIMarketsApi.js → MarketsApi.js} +158 -16
  24. package/dist/apis/{MonacoAPIOrdersApi.d.ts → OrdersApi.d.ts} +53 -19
  25. package/dist/apis/{MonacoAPIOrdersApi.js → OrdersApi.js} +110 -11
  26. package/dist/apis/SessionManagementApi.d.ts +40 -0
  27. package/dist/apis/{MonacoAPISessionManagementApi.js → SessionManagementApi.js} +15 -15
  28. package/dist/apis/{MonacoAPIAPIStatusApi.d.ts → StatusApi.d.ts} +1 -1
  29. package/dist/apis/{MonacoAPIAPIStatusApi.js → StatusApi.js} +3 -3
  30. package/dist/apis/{MonacoAPITradesApi.d.ts → TradesApi.d.ts} +9 -6
  31. package/dist/apis/{MonacoAPITradesApi.js → TradesApi.js} +15 -3
  32. package/dist/apis/{MonacoAPIWalletsApi.d.ts → WalletsApi.d.ts} +24 -5
  33. package/dist/apis/{MonacoAPIWalletsApi.js → WalletsApi.js} +57 -3
  34. package/dist/apis/index.d.ts +16 -14
  35. package/dist/apis/index.js +16 -14
  36. package/dist/models/AddMarketOutcomeRequest.d.ts +1 -1
  37. package/dist/models/AddMarketOutcomeRequest.js +2 -2
  38. package/dist/models/AddParticipantRequest.d.ts +52 -0
  39. package/dist/models/AddParticipantRequest.js +60 -0
  40. package/dist/models/AddParticipantsRequest.d.ts +33 -0
  41. package/dist/models/AddParticipantsRequest.js +49 -0
  42. package/dist/models/ChunkOrderResponse.d.ts +67 -0
  43. package/dist/models/ChunkOrderResponse.js +63 -0
  44. package/dist/models/CommissionRate.d.ts +2 -2
  45. package/dist/models/CreateEventRequest.d.ts +5 -5
  46. package/dist/models/CreateEventRequest.js +16 -6
  47. package/dist/models/CreateMarketRequest.d.ts +2 -2
  48. package/dist/models/CreateOrderRequest.d.ts +13 -4
  49. package/dist/models/CreateOrderRequest.js +4 -2
  50. package/dist/models/CreateSessionRequest.d.ts +2 -2
  51. package/dist/models/CreateSessionRequest.js +6 -2
  52. package/dist/models/CreateWalletRequest.d.ts +0 -16
  53. package/dist/models/CreateWalletRequest.js +0 -12
  54. package/dist/models/Currency.d.ts +2 -2
  55. package/dist/models/DocumentReference.js +4 -4
  56. package/dist/models/Event.d.ts +8 -2
  57. package/dist/models/Event.js +2 -0
  58. package/dist/models/EventParticipant.d.ts +52 -0
  59. package/dist/models/EventParticipant.js +60 -0
  60. package/dist/models/EventParticipantsResponse.d.ts +40 -0
  61. package/dist/models/EventParticipantsResponse.js +52 -0
  62. package/dist/models/EventResponse.d.ts +7 -0
  63. package/dist/models/EventResponse.js +3 -0
  64. package/dist/models/EventSummary.d.ts +2 -2
  65. package/dist/models/EventUpdateResponse.d.ts +40 -0
  66. package/dist/models/EventUpdateResponse.js +52 -0
  67. package/dist/models/Heartbeat.d.ts +50 -0
  68. package/dist/models/Heartbeat.js +54 -0
  69. package/dist/models/HeartbeatResponse.d.ts +40 -0
  70. package/dist/models/HeartbeatResponse.js +52 -0
  71. package/dist/models/Market.d.ts +21 -12
  72. package/dist/models/Market.js +13 -5
  73. package/dist/models/MarketLiquidities.d.ts +39 -0
  74. package/dist/models/MarketLiquidities.js +51 -0
  75. package/dist/models/MarketLiquiditiesResponse.d.ts +40 -0
  76. package/dist/models/MarketLiquiditiesResponse.js +52 -0
  77. package/dist/models/MarketLiquidity.d.ts +2 -2
  78. package/dist/models/MarketLiquidity.js +2 -2
  79. package/dist/models/MarketOutcomeResult.d.ts +38 -0
  80. package/dist/models/MarketOutcomeResult.js +50 -0
  81. package/dist/models/MarketOutcomeSummary.d.ts +9 -3
  82. package/dist/models/MarketOutcomeSummary.js +4 -2
  83. package/dist/models/MarketPosition.d.ts +4 -2
  84. package/dist/models/MarketPriceLadder.d.ts +32 -0
  85. package/dist/models/MarketPriceLadder.js +48 -0
  86. package/dist/models/MarketPriceLadderResponse.d.ts +40 -0
  87. package/dist/models/MarketPriceLadderResponse.js +52 -0
  88. package/dist/models/MarketResultRequest.d.ts +3 -3
  89. package/dist/models/MarketResultRequest.js +3 -3
  90. package/dist/models/MarketSummary.d.ts +32 -4
  91. package/dist/models/MarketSummary.js +18 -3
  92. package/dist/models/MarketUpdateResponse.d.ts +40 -0
  93. package/dist/models/MarketUpdateResponse.js +52 -0
  94. package/dist/models/Meta.d.ts +36 -1
  95. package/dist/models/Meta.js +31 -0
  96. package/dist/models/ModifyParticipantsRequest.d.ts +32 -0
  97. package/dist/models/ModifyParticipantsRequest.js +48 -0
  98. package/dist/models/Order.d.ts +35 -6
  99. package/dist/models/Order.js +17 -3
  100. package/dist/models/OrderResponse.d.ts +7 -0
  101. package/dist/models/OrderResponse.js +3 -0
  102. package/dist/models/OrderSummary.d.ts +33 -4
  103. package/dist/models/OrderSummary.js +17 -3
  104. package/dist/models/OutcomeResult.d.ts +2 -2
  105. package/dist/models/PageMeta.d.ts +50 -0
  106. package/dist/models/PageMeta.js +54 -0
  107. package/dist/models/Pageable.d.ts +44 -0
  108. package/dist/models/Pageable.js +52 -0
  109. package/dist/models/PagedEventResponse.d.ts +3 -20
  110. package/dist/models/PagedEventResponse.js +3 -8
  111. package/dist/models/PagedMarketPositionResponse.d.ts +0 -24
  112. package/dist/models/PagedMarketPositionResponse.js +0 -8
  113. package/dist/models/PagedOrderResponse.d.ts +3 -20
  114. package/dist/models/PagedOrderResponse.js +3 -8
  115. package/dist/models/PagedTradeResponse.d.ts +0 -24
  116. package/dist/models/PagedTradeResponse.js +0 -8
  117. package/dist/models/PagedTransactionResponse.d.ts +0 -24
  118. package/dist/models/PagedTransactionResponse.js +0 -8
  119. package/dist/models/Participant.d.ts +58 -0
  120. package/dist/models/Participant.js +62 -0
  121. package/dist/models/ParticipantsResponse.d.ts +40 -0
  122. package/dist/models/ParticipantsResponse.js +52 -0
  123. package/dist/models/ToggleActionRequest.d.ts +1 -1
  124. package/dist/models/Trade.d.ts +4 -4
  125. package/dist/models/Trade.js +2 -2
  126. package/dist/models/TradeSummary.d.ts +44 -0
  127. package/dist/models/TradeSummary.js +52 -0
  128. package/dist/models/Transaction.d.ts +3 -2
  129. package/dist/models/Transaction.js +2 -1
  130. package/dist/models/UpdateDateRequest.d.ts +32 -0
  131. package/dist/models/UpdateDateRequest.js +50 -0
  132. package/dist/models/UpdateHeartbeatRequest.d.ts +38 -0
  133. package/dist/models/UpdateHeartbeatRequest.js +52 -0
  134. package/dist/models/UpdateNameRequest.d.ts +32 -0
  135. package/dist/models/UpdateNameRequest.js +50 -0
  136. package/dist/models/WalletBalance.d.ts +2 -2
  137. package/dist/models/index.d.ts +22 -2
  138. package/dist/models/index.js +22 -2
  139. package/package.json +6 -2
  140. package/dist/apis/MonacoAPIEventCategoriesApi.d.ts +0 -53
  141. package/dist/apis/MonacoAPIEventGroupsApi.d.ts +0 -54
  142. package/dist/apis/MonacoAPIEventSubcategoriesApi.d.ts +0 -54
  143. package/dist/apis/MonacoAPIEventsApi.d.ts +0 -68
  144. package/dist/apis/MonacoAPIEventsApi.js +0 -158
  145. package/dist/apis/MonacoAPISessionManagementApi.d.ts +0 -40
@@ -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.instanceOfMarketUpdateResponse = instanceOfMarketUpdateResponse;
17
+ exports.MarketUpdateResponseFromJSON = MarketUpdateResponseFromJSON;
18
+ exports.MarketUpdateResponseFromJSONTyped = MarketUpdateResponseFromJSONTyped;
19
+ exports.MarketUpdateResponseToJSON = MarketUpdateResponseToJSON;
20
+ exports.MarketUpdateResponseToJSONTyped = MarketUpdateResponseToJSONTyped;
21
+ const Meta_1 = require("./Meta");
22
+ const Market_1 = require("./Market");
23
+ /**
24
+ * Check if a given object implements the MarketUpdateResponse interface.
25
+ */
26
+ function instanceOfMarketUpdateResponse(value) {
27
+ return true;
28
+ }
29
+ function MarketUpdateResponseFromJSON(json) {
30
+ return MarketUpdateResponseFromJSONTyped(json, false);
31
+ }
32
+ function MarketUpdateResponseFromJSONTyped(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
+ 'markets': json['markets'] == null ? undefined : (json['markets'].map(Market_1.MarketFromJSON)),
39
+ };
40
+ }
41
+ function MarketUpdateResponseToJSON(json) {
42
+ return MarketUpdateResponseToJSONTyped(json, false);
43
+ }
44
+ function MarketUpdateResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
50
+ 'markets': value['markets'] == null ? undefined : (value['markets'].map(Market_1.MarketToJSON)),
51
+ };
52
+ }
@@ -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,48 @@ export interface Meta {
20
21
  * @type {string}
21
22
  * @memberof Meta
22
23
  */
23
- primaryDocument?: string;
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 Heartbeats: "heartbeats";
50
+ readonly Markets: "markets";
51
+ readonly MarketOutcomes: "marketOutcomes";
52
+ readonly MarketPositions: "marketPositions";
53
+ readonly MarketTypes: "marketTypes";
54
+ readonly Orders: "orders";
55
+ readonly Participants: "participants";
56
+ readonly Prices: "prices";
57
+ readonly PriceLadders: "priceLadders";
58
+ readonly Sessions: "sessions";
59
+ readonly Statuses: "statuses";
60
+ readonly Subcategories: "subcategories";
61
+ readonly Trades: "trades";
62
+ readonly Transactions: "transactions";
63
+ readonly Wallets: "wallets";
64
+ };
65
+ export type MetaPrimaryDocumentEnum = typeof MetaPrimaryDocumentEnum[keyof typeof MetaPrimaryDocumentEnum];
31
66
  /**
32
67
  * Check if a given object implements the Meta interface.
33
68
  */
@@ -13,11 +13,40 @@
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
+ Heartbeats: 'heartbeats',
35
+ Markets: 'markets',
36
+ MarketOutcomes: 'marketOutcomes',
37
+ MarketPositions: 'marketPositions',
38
+ MarketTypes: 'marketTypes',
39
+ Orders: 'orders',
40
+ Participants: 'participants',
41
+ Prices: 'prices',
42
+ PriceLadders: 'priceLadders',
43
+ Sessions: 'sessions',
44
+ Statuses: 'statuses',
45
+ Subcategories: 'subcategories',
46
+ Trades: 'trades',
47
+ Transactions: 'transactions',
48
+ Wallets: 'wallets'
49
+ };
21
50
  /**
22
51
  * Check if a given object implements the Meta interface.
23
52
  */
@@ -34,6 +63,7 @@ function MetaFromJSONTyped(json, ignoreDiscriminator) {
34
63
  return {
35
64
  'primaryDocument': json['_primary_document'] == null ? undefined : json['_primary_document'],
36
65
  'count': json['_count'] == null ? undefined : json['_count'],
66
+ 'page': json['_page'] == null ? undefined : (0, PageMeta_1.PageMetaFromJSON)(json['_page']),
37
67
  };
38
68
  }
39
69
  function MetaToJSON(json) {
@@ -46,5 +76,6 @@ function MetaToJSONTyped(value, ignoreDiscriminator = false) {
46
76
  return {
47
77
  '_primary_document': value['primaryDocument'],
48
78
  '_count': value['count'],
79
+ '_page': (0, PageMeta_1.PageMetaToJSON)(value['page']),
49
80
  };
50
81
  }
@@ -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
+ }
@@ -18,10 +18,10 @@ import type { DocumentReference } from './DocumentReference';
18
18
  export interface Order {
19
19
  /**
20
20
  *
21
- * @type {number}
21
+ * @type {string}
22
22
  * @memberof Order
23
23
  */
24
- id?: number;
24
+ id?: string;
25
25
  /**
26
26
  *
27
27
  * @type {string}
@@ -48,10 +48,10 @@ export interface Order {
48
48
  side?: OrderSideEnum;
49
49
  /**
50
50
  *
51
- * @type {number}
51
+ * @type {string}
52
52
  * @memberof Order
53
53
  */
54
- outcome?: number;
54
+ outcomeId?: string;
55
55
  /**
56
56
  *
57
57
  * @type {number}
@@ -96,16 +96,32 @@ export interface Order {
96
96
  modifiedAt?: Date;
97
97
  /**
98
98
  *
99
- * @type {number}
99
+ * @type {string}
100
100
  * @memberof Order
101
101
  */
102
- commissionRateId?: number;
102
+ commissionRateId?: string;
103
103
  /**
104
104
  *
105
105
  * @type {string}
106
106
  * @memberof Order
107
107
  */
108
108
  reference?: string;
109
+ /**
110
+ * The status of an order can be one of the following
111
+ * <ul>
112
+ * <li> Cancelled - The order was not matched and has been cancelled either on request or automatically</li>
113
+ * <li> Matched - The order has been matched, either fully, or partially where the remaining unmatched stake has been cancelled, either on request or automatically</li>
114
+ * <li> PartiallyMatched - The order has been partially matched, and the remaining unmatched portion might still be matched</li>
115
+ * <li> Unmatched - The order has not yet been matched, and the remaining unmatched portion might still be matched</li>
116
+ * <li> Won - The market has been settled and this previously Matched order has been deemed to have Won</li>
117
+ * <li> Lost - The market has been settled and this previously Matched order has been deemed to have Lost</li>
118
+ * <li> Voided - The market has been voided so this order has been voided</li>
119
+ * </ul>
120
+ *
121
+ * @type {string}
122
+ * @memberof Order
123
+ */
124
+ status?: OrderStatusEnum;
109
125
  }
110
126
  /**
111
127
  * @export
@@ -115,6 +131,19 @@ export declare const OrderSideEnum: {
115
131
  readonly Against: "Against";
116
132
  };
117
133
  export type OrderSideEnum = typeof OrderSideEnum[keyof typeof OrderSideEnum];
134
+ /**
135
+ * @export
136
+ */
137
+ export declare const OrderStatusEnum: {
138
+ readonly Cancelled: "Cancelled";
139
+ readonly Matched: "Matched";
140
+ readonly PartiallyMatched: "PartiallyMatched";
141
+ readonly Unmatched: "Unmatched";
142
+ readonly Won: "Won";
143
+ readonly Lost: "Lost";
144
+ readonly Voided: "Voided";
145
+ };
146
+ export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];
118
147
  /**
119
148
  * Check if a given object implements the Order interface.
120
149
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.OrderSideEnum = void 0;
16
+ exports.OrderStatusEnum = exports.OrderSideEnum = void 0;
17
17
  exports.instanceOfOrder = instanceOfOrder;
18
18
  exports.OrderFromJSON = OrderFromJSON;
19
19
  exports.OrderFromJSONTyped = OrderFromJSONTyped;
@@ -27,6 +27,18 @@ exports.OrderSideEnum = {
27
27
  For: 'For',
28
28
  Against: 'Against'
29
29
  };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.OrderStatusEnum = {
34
+ Cancelled: 'Cancelled',
35
+ Matched: 'Matched',
36
+ PartiallyMatched: 'PartiallyMatched',
37
+ Unmatched: 'Unmatched',
38
+ Won: 'Won',
39
+ Lost: 'Lost',
40
+ Voided: 'Voided'
41
+ };
30
42
  /**
31
43
  * Check if a given object implements the Order interface.
32
44
  */
@@ -46,7 +58,7 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
46
58
  'market': json['market'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['market']),
47
59
  'walletId': json['walletId'] == null ? undefined : json['walletId'],
48
60
  'side': json['side'] == null ? undefined : json['side'],
49
- 'outcome': json['outcome'] == null ? undefined : json['outcome'],
61
+ 'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
50
62
  'price': json['price'] == null ? undefined : json['price'],
51
63
  'stake': json['stake'] == null ? undefined : json['stake'],
52
64
  'stakeUnmatched': json['stakeUnmatched'] == null ? undefined : json['stakeUnmatched'],
@@ -56,6 +68,7 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
56
68
  'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
57
69
  'commissionRateId': json['commissionRateId'] == null ? undefined : json['commissionRateId'],
58
70
  'reference': json['reference'] == null ? undefined : json['reference'],
71
+ 'status': json['status'] == null ? undefined : json['status'],
59
72
  };
60
73
  }
61
74
  function OrderToJSON(json) {
@@ -71,7 +84,7 @@ function OrderToJSONTyped(value, ignoreDiscriminator = false) {
71
84
  'market': (0, DocumentReference_1.DocumentReferenceToJSON)(value['market']),
72
85
  'walletId': value['walletId'],
73
86
  'side': value['side'],
74
- 'outcome': value['outcome'],
87
+ 'outcomeId': value['outcomeId'],
75
88
  'price': value['price'],
76
89
  'stake': value['stake'],
77
90
  'stakeUnmatched': value['stakeUnmatched'],
@@ -81,5 +94,6 @@ function OrderToJSONTyped(value, ignoreDiscriminator = false) {
81
94
  'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
82
95
  'commissionRateId': value['commissionRateId'],
83
96
  'reference': value['reference'],
97
+ 'status': value['status'],
84
98
  };
85
99
  }
@@ -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
  }
@@ -18,10 +18,10 @@ import type { DocumentReference } from './DocumentReference';
18
18
  export interface OrderSummary {
19
19
  /**
20
20
  *
21
- * @type {number}
21
+ * @type {string}
22
22
  * @memberof OrderSummary
23
23
  */
24
- id?: number;
24
+ id?: string;
25
25
  /**
26
26
  *
27
27
  * @type {DocumentReference}
@@ -36,10 +36,10 @@ export interface OrderSummary {
36
36
  side?: OrderSummarySideEnum;
37
37
  /**
38
38
  *
39
- * @type {number}
39
+ * @type {string}
40
40
  * @memberof OrderSummary
41
41
  */
42
- outcome?: number;
42
+ outcomeId?: string;
43
43
  /**
44
44
  *
45
45
  * @type {number}
@@ -64,6 +64,22 @@ export interface OrderSummary {
64
64
  * @memberof OrderSummary
65
65
  */
66
66
  stakeVoided?: number;
67
+ /**
68
+ * The status of an order can be one of the following
69
+ * <ul>
70
+ * <li> Cancelled - The order was not matched and has been cancelled either on request or automatically</li>
71
+ * <li> Matched - The order has been matched, either fully, or partially where the remaining unmatched stake has been cancelled, either on request or automatically</li>
72
+ * <li> PartiallyMatched - The order has been partially matched, and the remaining unmatched portion might still be matched</li>
73
+ * <li> Unmatched - The order has not yet been matched, and the remaining unmatched portion might still be matched</li>
74
+ * <li> Won - The market has been settled and this previously Matched order has been deemed to have Won</li>
75
+ * <li> Lost - The market has been settled and this previously Matched order has been deemed to have Lost</li>
76
+ * <li> Voided - The market has been voided so this order has been voided</li>
77
+ * </ul>
78
+ *
79
+ * @type {string}
80
+ * @memberof OrderSummary
81
+ */
82
+ status?: OrderSummaryStatusEnum;
67
83
  /**
68
84
  *
69
85
  * @type {string}
@@ -79,6 +95,19 @@ export declare const OrderSummarySideEnum: {
79
95
  readonly Against: "Against";
80
96
  };
81
97
  export type OrderSummarySideEnum = typeof OrderSummarySideEnum[keyof typeof OrderSummarySideEnum];
98
+ /**
99
+ * @export
100
+ */
101
+ export declare const OrderSummaryStatusEnum: {
102
+ readonly Cancelled: "Cancelled";
103
+ readonly Matched: "Matched";
104
+ readonly PartiallyMatched: "PartiallyMatched";
105
+ readonly Unmatched: "Unmatched";
106
+ readonly Won: "Won";
107
+ readonly Lost: "Lost";
108
+ readonly Voided: "Voided";
109
+ };
110
+ export type OrderSummaryStatusEnum = typeof OrderSummaryStatusEnum[keyof typeof OrderSummaryStatusEnum];
82
111
  /**
83
112
  * Check if a given object implements the OrderSummary interface.
84
113
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.OrderSummarySideEnum = void 0;
16
+ exports.OrderSummaryStatusEnum = exports.OrderSummarySideEnum = void 0;
17
17
  exports.instanceOfOrderSummary = instanceOfOrderSummary;
18
18
  exports.OrderSummaryFromJSON = OrderSummaryFromJSON;
19
19
  exports.OrderSummaryFromJSONTyped = OrderSummaryFromJSONTyped;
@@ -27,6 +27,18 @@ exports.OrderSummarySideEnum = {
27
27
  For: 'For',
28
28
  Against: 'Against'
29
29
  };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.OrderSummaryStatusEnum = {
34
+ Cancelled: 'Cancelled',
35
+ Matched: 'Matched',
36
+ PartiallyMatched: 'PartiallyMatched',
37
+ Unmatched: 'Unmatched',
38
+ Won: 'Won',
39
+ Lost: 'Lost',
40
+ Voided: 'Voided'
41
+ };
30
42
  /**
31
43
  * Check if a given object implements the OrderSummary interface.
32
44
  */
@@ -44,11 +56,12 @@ function OrderSummaryFromJSONTyped(json, ignoreDiscriminator) {
44
56
  'id': json['id'] == null ? undefined : json['id'],
45
57
  'market': json['market'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['market']),
46
58
  'side': json['side'] == null ? undefined : json['side'],
47
- 'outcome': json['outcome'] == null ? undefined : json['outcome'],
59
+ 'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
48
60
  'price': json['price'] == null ? undefined : json['price'],
49
61
  'stake': json['stake'] == null ? undefined : json['stake'],
50
62
  'stakeUnmatched': json['stakeUnmatched'] == null ? undefined : json['stakeUnmatched'],
51
63
  'stakeVoided': json['stakeVoided'] == null ? undefined : json['stakeVoided'],
64
+ 'status': json['status'] == null ? undefined : json['status'],
52
65
  'reference': json['reference'] == null ? undefined : json['reference'],
53
66
  };
54
67
  }
@@ -63,11 +76,12 @@ function OrderSummaryToJSONTyped(value, ignoreDiscriminator = false) {
63
76
  'id': value['id'],
64
77
  'market': (0, DocumentReference_1.DocumentReferenceToJSON)(value['market']),
65
78
  'side': value['side'],
66
- 'outcome': value['outcome'],
79
+ 'outcomeId': value['outcomeId'],
67
80
  'price': value['price'],
68
81
  'stake': value['stake'],
69
82
  'stakeUnmatched': value['stakeUnmatched'],
70
83
  'stakeVoided': value['stakeVoided'],
84
+ 'status': value['status'],
71
85
  'reference': value['reference'],
72
86
  };
73
87
  }
@@ -17,10 +17,10 @@
17
17
  export interface OutcomeResult {
18
18
  /**
19
19
  *
20
- * @type {number}
20
+ * @type {string}
21
21
  * @memberof OutcomeResult
22
22
  */
23
- outcomeId?: number;
23
+ outcomeId?: string;
24
24
  /**
25
25
  *
26
26
  * @type {boolean}
@@ -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
+ }