@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
package/dist/models/Market.js
CHANGED
|
@@ -13,13 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.MarketStatusEnum = exports.MarketEventStartActionEnum = exports.MarketMarketLockActionEnum = void 0;
|
|
16
|
+
exports.MarketStatusEnum = exports.MarketEventStartActionEnum = exports.MarketMarketLockActionEnum = exports.MarketInPlayStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfMarket = instanceOfMarket;
|
|
18
18
|
exports.MarketFromJSON = MarketFromJSON;
|
|
19
19
|
exports.MarketFromJSONTyped = MarketFromJSONTyped;
|
|
20
20
|
exports.MarketToJSON = MarketToJSON;
|
|
21
21
|
exports.MarketToJSONTyped = MarketToJSONTyped;
|
|
22
22
|
const DocumentReference_1 = require("./DocumentReference");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.MarketInPlayStatusEnum = {
|
|
27
|
+
NotApplicable: 'NotApplicable',
|
|
28
|
+
PrePlay: 'PrePlay',
|
|
29
|
+
InPlay: 'InPlay'
|
|
30
|
+
};
|
|
23
31
|
/**
|
|
24
32
|
* @export
|
|
25
33
|
*/
|
|
@@ -69,8 +77,7 @@ function MarketFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
77
|
'marketValue': json['marketValue'] == null ? undefined : json['marketValue'],
|
|
70
78
|
'marketDiscriminator': json['marketDiscriminator'] == null ? undefined : json['marketDiscriminator'],
|
|
71
79
|
'currencyId': json['currencyId'] == null ? undefined : json['currencyId'],
|
|
72
|
-
'
|
|
73
|
-
'inPlay': json['inPlay'] == null ? undefined : json['inPlay'],
|
|
80
|
+
'inPlayStatus': json['inPlayStatus'] == null ? undefined : json['inPlayStatus'],
|
|
74
81
|
'inPlayDelay': json['inPlayDelay'] == null ? undefined : json['inPlayDelay'],
|
|
75
82
|
'published': json['published'] == null ? undefined : json['published'],
|
|
76
83
|
'suspended': json['suspended'] == null ? undefined : json['suspended'],
|
|
@@ -99,8 +106,7 @@ function MarketToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
99
106
|
'marketValue': value['marketValue'],
|
|
100
107
|
'marketDiscriminator': value['marketDiscriminator'],
|
|
101
108
|
'currencyId': value['currencyId'],
|
|
102
|
-
'
|
|
103
|
-
'inPlay': value['inPlay'],
|
|
109
|
+
'inPlayStatus': value['inPlayStatus'],
|
|
104
110
|
'inPlayDelay': value['inPlayDelay'],
|
|
105
111
|
'published': value['published'],
|
|
106
112
|
'suspended': value['suspended'],
|
|
@@ -41,7 +41,7 @@ function MarketLiquidityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
}
|
|
42
42
|
return {
|
|
43
43
|
'side': json['side'] == null ? undefined : json['side'],
|
|
44
|
-
'
|
|
44
|
+
'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
|
|
45
45
|
'price': json['price'] == null ? undefined : json['price'],
|
|
46
46
|
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
47
47
|
'matched': json['matched'] == null ? undefined : json['matched'],
|
|
@@ -56,7 +56,7 @@ function MarketLiquidityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
56
|
}
|
|
57
57
|
return {
|
|
58
58
|
'side': value['side'],
|
|
59
|
-
'
|
|
59
|
+
'outcomeId': value['outcomeId'],
|
|
60
60
|
'price': value['price'],
|
|
61
61
|
'amount': value['amount'],
|
|
62
62
|
'matched': value['matched'],
|
|
@@ -0,0 +1,38 @@
|
|
|
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 MarketOutcomeResult
|
|
16
|
+
*/
|
|
17
|
+
export interface MarketOutcomeResult {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MarketOutcomeResult
|
|
22
|
+
*/
|
|
23
|
+
outcomeId?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof MarketOutcomeResult
|
|
28
|
+
*/
|
|
29
|
+
winner?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the MarketOutcomeResult interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMarketOutcomeResult(value: object): value is MarketOutcomeResult;
|
|
35
|
+
export declare function MarketOutcomeResultFromJSON(json: any): MarketOutcomeResult;
|
|
36
|
+
export declare function MarketOutcomeResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketOutcomeResult;
|
|
37
|
+
export declare function MarketOutcomeResultToJSON(json: any): MarketOutcomeResult;
|
|
38
|
+
export declare function MarketOutcomeResultToJSONTyped(value?: MarketOutcomeResult | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Monaco API
|
|
6
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMarketOutcomeResult = instanceOfMarketOutcomeResult;
|
|
17
|
+
exports.MarketOutcomeResultFromJSON = MarketOutcomeResultFromJSON;
|
|
18
|
+
exports.MarketOutcomeResultFromJSONTyped = MarketOutcomeResultFromJSONTyped;
|
|
19
|
+
exports.MarketOutcomeResultToJSON = MarketOutcomeResultToJSON;
|
|
20
|
+
exports.MarketOutcomeResultToJSONTyped = MarketOutcomeResultToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MarketOutcomeResult interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMarketOutcomeResult(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function MarketOutcomeResultFromJSON(json) {
|
|
28
|
+
return MarketOutcomeResultFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function MarketOutcomeResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
|
|
36
|
+
'winner': json['winner'] == null ? undefined : json['winner'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function MarketOutcomeResultToJSON(json) {
|
|
40
|
+
return MarketOutcomeResultToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function MarketOutcomeResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'outcomeId': value['outcomeId'],
|
|
48
|
+
'winner': value['winner'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -26,7 +26,13 @@ export interface MarketOutcomeSummary {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof MarketOutcomeSummary
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
title?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof MarketOutcomeSummary
|
|
34
|
+
*/
|
|
35
|
+
ordering?: number;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {boolean}
|
|
@@ -33,7 +33,8 @@ function MarketOutcomeSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
-
'
|
|
36
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
37
|
+
'ordering': json['ordering'] == null ? undefined : json['ordering'],
|
|
37
38
|
'winner': json['winner'] == null ? undefined : json['winner'],
|
|
38
39
|
};
|
|
39
40
|
}
|
|
@@ -46,7 +47,8 @@ function MarketOutcomeSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
48
49
|
'id': value['id'],
|
|
49
|
-
'
|
|
50
|
+
'title': value['title'],
|
|
51
|
+
'ordering': value['ordering'],
|
|
50
52
|
'winner': value['winner'],
|
|
51
53
|
};
|
|
52
54
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { MarketOutcomeResult } from './MarketOutcomeResult';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,10 +18,10 @@ import type { OutcomeResult } from './OutcomeResult';
|
|
|
18
18
|
export interface MarketResultRequest {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {Array<
|
|
21
|
+
* @type {Array<MarketOutcomeResult>}
|
|
22
22
|
* @memberof MarketResultRequest
|
|
23
23
|
*/
|
|
24
|
-
results?: Array<
|
|
24
|
+
results?: Array<MarketOutcomeResult>;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the MarketResultRequest interface.
|
|
@@ -18,7 +18,7 @@ exports.MarketResultRequestFromJSON = MarketResultRequestFromJSON;
|
|
|
18
18
|
exports.MarketResultRequestFromJSONTyped = MarketResultRequestFromJSONTyped;
|
|
19
19
|
exports.MarketResultRequestToJSON = MarketResultRequestToJSON;
|
|
20
20
|
exports.MarketResultRequestToJSONTyped = MarketResultRequestToJSONTyped;
|
|
21
|
-
const
|
|
21
|
+
const MarketOutcomeResult_1 = require("./MarketOutcomeResult");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the MarketResultRequest interface.
|
|
24
24
|
*/
|
|
@@ -33,7 +33,7 @@ function MarketResultRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
|
-
'results': json['results'] == null ? undefined : (json['results'].map(
|
|
36
|
+
'results': json['results'] == null ? undefined : (json['results'].map(MarketOutcomeResult_1.MarketOutcomeResultFromJSON)),
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
function MarketResultRequestToJSON(json) {
|
|
@@ -44,6 +44,6 @@ function MarketResultRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
44
|
return value;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
-
'results': value['results'] == null ? undefined : (value['results'].map(
|
|
47
|
+
'results': value['results'] == null ? undefined : (value['results'].map(MarketOutcomeResult_1.MarketOutcomeResultToJSON)),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
@@ -29,10 +29,10 @@ export interface MarketSummary {
|
|
|
29
29
|
name?: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {string}
|
|
33
33
|
* @memberof MarketSummary
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
inPlayStatus?: MarketSummaryInPlayStatusEnum;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {boolean}
|
|
@@ -52,6 +52,15 @@ export interface MarketSummary {
|
|
|
52
52
|
*/
|
|
53
53
|
status?: MarketSummaryStatusEnum;
|
|
54
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const MarketSummaryInPlayStatusEnum: {
|
|
59
|
+
readonly NotApplicable: "NotApplicable";
|
|
60
|
+
readonly PrePlay: "PrePlay";
|
|
61
|
+
readonly InPlay: "InPlay";
|
|
62
|
+
};
|
|
63
|
+
export type MarketSummaryInPlayStatusEnum = typeof MarketSummaryInPlayStatusEnum[keyof typeof MarketSummaryInPlayStatusEnum];
|
|
55
64
|
/**
|
|
56
65
|
* @export
|
|
57
66
|
*/
|
|
@@ -13,12 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.MarketSummaryStatusEnum = void 0;
|
|
16
|
+
exports.MarketSummaryStatusEnum = exports.MarketSummaryInPlayStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfMarketSummary = instanceOfMarketSummary;
|
|
18
18
|
exports.MarketSummaryFromJSON = MarketSummaryFromJSON;
|
|
19
19
|
exports.MarketSummaryFromJSONTyped = MarketSummaryFromJSONTyped;
|
|
20
20
|
exports.MarketSummaryToJSON = MarketSummaryToJSON;
|
|
21
21
|
exports.MarketSummaryToJSONTyped = MarketSummaryToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.MarketSummaryInPlayStatusEnum = {
|
|
26
|
+
NotApplicable: 'NotApplicable',
|
|
27
|
+
PrePlay: 'PrePlay',
|
|
28
|
+
InPlay: 'InPlay'
|
|
29
|
+
};
|
|
22
30
|
/**
|
|
23
31
|
* @export
|
|
24
32
|
*/
|
|
@@ -48,7 +56,7 @@ function MarketSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
56
|
return {
|
|
49
57
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
58
|
'name': json['name'] == null ? undefined : json['name'],
|
|
51
|
-
'
|
|
59
|
+
'inPlayStatus': json['inPlayStatus'] == null ? undefined : json['inPlayStatus'],
|
|
52
60
|
'published': json['published'] == null ? undefined : json['published'],
|
|
53
61
|
'suspended': json['suspended'] == null ? undefined : json['suspended'],
|
|
54
62
|
'status': json['status'] == null ? undefined : json['status'],
|
|
@@ -64,7 +72,7 @@ function MarketSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
72
|
return {
|
|
65
73
|
'id': value['id'],
|
|
66
74
|
'name': value['name'],
|
|
67
|
-
'
|
|
75
|
+
'inPlayStatus': value['inPlayStatus'],
|
|
68
76
|
'published': value['published'],
|
|
69
77
|
'suspended': value['suspended'],
|
|
70
78
|
'status': value['status'],
|
package/dist/models/Meta.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { PageMeta } from './PageMeta';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -20,14 +21,46 @@ export interface Meta {
|
|
|
20
21
|
* @type {string}
|
|
21
22
|
* @memberof Meta
|
|
22
23
|
*/
|
|
23
|
-
primaryDocument?:
|
|
24
|
+
primaryDocument?: MetaPrimaryDocumentEnum;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
* @type {number}
|
|
27
28
|
* @memberof Meta
|
|
28
29
|
*/
|
|
29
30
|
count?: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {PageMeta}
|
|
34
|
+
* @memberof Meta
|
|
35
|
+
*/
|
|
36
|
+
page?: PageMeta;
|
|
30
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const MetaPrimaryDocumentEnum: {
|
|
42
|
+
readonly ApiKeys: "apiKeys";
|
|
43
|
+
readonly Apps: "apps";
|
|
44
|
+
readonly Categories: "categories";
|
|
45
|
+
readonly CommissionRates: "commissionRates";
|
|
46
|
+
readonly Currencies: "currencies";
|
|
47
|
+
readonly Events: "events";
|
|
48
|
+
readonly EventGroups: "eventGroups";
|
|
49
|
+
readonly Markets: "markets";
|
|
50
|
+
readonly MarketOutcomes: "marketOutcomes";
|
|
51
|
+
readonly MarketPositions: "marketPositions";
|
|
52
|
+
readonly MarketTypes: "marketTypes";
|
|
53
|
+
readonly Orders: "orders";
|
|
54
|
+
readonly Participants: "participants";
|
|
55
|
+
readonly Prices: "prices";
|
|
56
|
+
readonly Sessions: "sessions";
|
|
57
|
+
readonly Statuses: "statuses";
|
|
58
|
+
readonly Subcategories: "subcategories";
|
|
59
|
+
readonly Trades: "trades";
|
|
60
|
+
readonly Transactions: "transactions";
|
|
61
|
+
readonly Wallets: "wallets";
|
|
62
|
+
};
|
|
63
|
+
export type MetaPrimaryDocumentEnum = typeof MetaPrimaryDocumentEnum[keyof typeof MetaPrimaryDocumentEnum];
|
|
31
64
|
/**
|
|
32
65
|
* Check if a given object implements the Meta interface.
|
|
33
66
|
*/
|
package/dist/models/Meta.js
CHANGED
|
@@ -13,11 +13,38 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MetaPrimaryDocumentEnum = void 0;
|
|
16
17
|
exports.instanceOfMeta = instanceOfMeta;
|
|
17
18
|
exports.MetaFromJSON = MetaFromJSON;
|
|
18
19
|
exports.MetaFromJSONTyped = MetaFromJSONTyped;
|
|
19
20
|
exports.MetaToJSON = MetaToJSON;
|
|
20
21
|
exports.MetaToJSONTyped = MetaToJSONTyped;
|
|
22
|
+
const PageMeta_1 = require("./PageMeta");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.MetaPrimaryDocumentEnum = {
|
|
27
|
+
ApiKeys: 'apiKeys',
|
|
28
|
+
Apps: 'apps',
|
|
29
|
+
Categories: 'categories',
|
|
30
|
+
CommissionRates: 'commissionRates',
|
|
31
|
+
Currencies: 'currencies',
|
|
32
|
+
Events: 'events',
|
|
33
|
+
EventGroups: 'eventGroups',
|
|
34
|
+
Markets: 'markets',
|
|
35
|
+
MarketOutcomes: 'marketOutcomes',
|
|
36
|
+
MarketPositions: 'marketPositions',
|
|
37
|
+
MarketTypes: 'marketTypes',
|
|
38
|
+
Orders: 'orders',
|
|
39
|
+
Participants: 'participants',
|
|
40
|
+
Prices: 'prices',
|
|
41
|
+
Sessions: 'sessions',
|
|
42
|
+
Statuses: 'statuses',
|
|
43
|
+
Subcategories: 'subcategories',
|
|
44
|
+
Trades: 'trades',
|
|
45
|
+
Transactions: 'transactions',
|
|
46
|
+
Wallets: 'wallets'
|
|
47
|
+
};
|
|
21
48
|
/**
|
|
22
49
|
* Check if a given object implements the Meta interface.
|
|
23
50
|
*/
|
|
@@ -34,6 +61,7 @@ function MetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
61
|
return {
|
|
35
62
|
'primaryDocument': json['_primary_document'] == null ? undefined : json['_primary_document'],
|
|
36
63
|
'count': json['_count'] == null ? undefined : json['_count'],
|
|
64
|
+
'page': json['_page'] == null ? undefined : (0, PageMeta_1.PageMetaFromJSON)(json['_page']),
|
|
37
65
|
};
|
|
38
66
|
}
|
|
39
67
|
function MetaToJSON(json) {
|
|
@@ -46,5 +74,6 @@ function MetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
74
|
return {
|
|
47
75
|
'_primary_document': value['primaryDocument'],
|
|
48
76
|
'_count': value['count'],
|
|
77
|
+
'_page': (0, PageMeta_1.PageMetaToJSON)(value['page']),
|
|
49
78
|
};
|
|
50
79
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ModifyParticipantsRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ModifyParticipantsRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof ModifyParticipantsRequest
|
|
22
|
+
*/
|
|
23
|
+
participantCodes?: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ModifyParticipantsRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfModifyParticipantsRequest(value: object): value is ModifyParticipantsRequest;
|
|
29
|
+
export declare function ModifyParticipantsRequestFromJSON(json: any): ModifyParticipantsRequest;
|
|
30
|
+
export declare function ModifyParticipantsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModifyParticipantsRequest;
|
|
31
|
+
export declare function ModifyParticipantsRequestToJSON(json: any): ModifyParticipantsRequest;
|
|
32
|
+
export declare function ModifyParticipantsRequestToJSONTyped(value?: ModifyParticipantsRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Monaco API
|
|
6
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfModifyParticipantsRequest = instanceOfModifyParticipantsRequest;
|
|
17
|
+
exports.ModifyParticipantsRequestFromJSON = ModifyParticipantsRequestFromJSON;
|
|
18
|
+
exports.ModifyParticipantsRequestFromJSONTyped = ModifyParticipantsRequestFromJSONTyped;
|
|
19
|
+
exports.ModifyParticipantsRequestToJSON = ModifyParticipantsRequestToJSON;
|
|
20
|
+
exports.ModifyParticipantsRequestToJSONTyped = ModifyParticipantsRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ModifyParticipantsRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfModifyParticipantsRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ModifyParticipantsRequestFromJSON(json) {
|
|
28
|
+
return ModifyParticipantsRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ModifyParticipantsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'participantCodes': json['participantCodes'] == null ? undefined : json['participantCodes'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function ModifyParticipantsRequestToJSON(json) {
|
|
39
|
+
return ModifyParticipantsRequestToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ModifyParticipantsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'participantCodes': value['participantCodes'],
|
|
47
|
+
};
|
|
48
|
+
}
|
package/dist/models/Order.d.ts
CHANGED
package/dist/models/Order.js
CHANGED
|
@@ -55,7 +55,7 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'market': json['market'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['market']),
|
|
56
56
|
'walletId': json['walletId'] == null ? undefined : json['walletId'],
|
|
57
57
|
'side': json['side'] == null ? undefined : json['side'],
|
|
58
|
-
'
|
|
58
|
+
'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
|
|
59
59
|
'price': json['price'] == null ? undefined : json['price'],
|
|
60
60
|
'stake': json['stake'] == null ? undefined : json['stake'],
|
|
61
61
|
'stakeUnmatched': json['stakeUnmatched'] == null ? undefined : json['stakeUnmatched'],
|
|
@@ -81,7 +81,7 @@ function OrderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
81
81
|
'market': (0, DocumentReference_1.DocumentReferenceToJSON)(value['market']),
|
|
82
82
|
'walletId': value['walletId'],
|
|
83
83
|
'side': value['side'],
|
|
84
|
-
'
|
|
84
|
+
'outcomeId': value['outcomeId'],
|
|
85
85
|
'price': value['price'],
|
|
86
86
|
'stake': value['stake'],
|
|
87
87
|
'stakeUnmatched': value['stakeUnmatched'],
|
|
@@ -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
|
}
|
|
@@ -44,7 +44,7 @@ function OrderSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'id': json['id'] == null ? undefined : json['id'],
|
|
45
45
|
'market': json['market'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['market']),
|
|
46
46
|
'side': json['side'] == null ? undefined : json['side'],
|
|
47
|
-
'
|
|
47
|
+
'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
|
|
48
48
|
'price': json['price'] == null ? undefined : json['price'],
|
|
49
49
|
'stake': json['stake'] == null ? undefined : json['stake'],
|
|
50
50
|
'stakeUnmatched': json['stakeUnmatched'] == null ? undefined : json['stakeUnmatched'],
|
|
@@ -63,7 +63,7 @@ function OrderSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
63
|
'id': value['id'],
|
|
64
64
|
'market': (0, DocumentReference_1.DocumentReferenceToJSON)(value['market']),
|
|
65
65
|
'side': value['side'],
|
|
66
|
-
'
|
|
66
|
+
'outcomeId': value['outcomeId'],
|
|
67
67
|
'price': value['price'],
|
|
68
68
|
'stake': value['stake'],
|
|
69
69
|
'stakeUnmatched': value['stakeUnmatched'],
|