@monaco-protocol/client-v2 0.0.2-dev.3 → 0.0.2-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/APIKeyManagementApi.d.ts +3 -3
- package/dist/apis/APIKeyManagementApi.js +5 -5
- package/dist/apis/AppManagementApi.d.ts +6 -6
- package/dist/apis/AppManagementApi.js +9 -9
- package/dist/apis/CurrenciesApi.d.ts +3 -3
- package/dist/apis/CurrenciesApi.js +5 -5
- package/dist/apis/EventCategoriesApi.d.ts +9 -9
- package/dist/apis/EventCategoriesApi.js +14 -14
- package/dist/apis/EventGroupsApi.d.ts +11 -11
- package/dist/apis/EventGroupsApi.js +16 -16
- package/dist/apis/EventSubcategoriesApi.d.ts +67 -16
- package/dist/apis/EventSubcategoriesApi.js +170 -20
- package/dist/apis/EventsApi.d.ts +42 -2
- package/dist/apis/EventsApi.js +118 -0
- package/dist/apis/MarketPricesApi.d.ts +3 -3
- package/dist/apis/MarketPricesApi.js +5 -5
- package/dist/apis/MarketsApi.d.ts +22 -9
- package/dist/apis/MarketsApi.js +32 -12
- package/dist/apis/OrdersApi.d.ts +9 -5
- package/dist/apis/OrdersApi.js +14 -2
- package/dist/apis/SessionManagementApi.d.ts +10 -10
- package/dist/apis/SessionManagementApi.js +12 -12
- package/dist/apis/TradesApi.d.ts +4 -2
- package/dist/apis/TradesApi.js +6 -0
- package/dist/apis/WalletsApi.d.ts +19 -3
- package/dist/apis/WalletsApi.js +53 -0
- package/dist/models/AddMarketOutcomeRequest.d.ts +1 -1
- package/dist/models/AddMarketOutcomeRequest.js +2 -2
- package/dist/models/AddParticipantRequest.d.ts +52 -0
- package/dist/models/AddParticipantRequest.js +60 -0
- package/dist/models/AddParticipantsRequest.d.ts +33 -0
- package/dist/models/AddParticipantsRequest.js +49 -0
- package/dist/models/ChunkOrderResponse.d.ts +8 -1
- package/dist/models/ChunkOrderResponse.js +5 -2
- package/dist/models/CreateEventRequest.d.ts +5 -5
- package/dist/models/CreateEventRequest.js +16 -6
- package/dist/models/CreateOrderRequest.d.ts +11 -2
- package/dist/models/CreateOrderRequest.js +4 -2
- package/dist/models/CreateSessionRequest.d.ts +2 -2
- package/dist/models/CreateSessionRequest.js +6 -2
- package/dist/models/DocumentReference.js +4 -4
- package/dist/models/Event.d.ts +6 -0
- package/dist/models/Event.js +2 -0
- package/dist/models/EventParticipant.d.ts +52 -0
- package/dist/models/EventParticipant.js +60 -0
- package/dist/models/EventParticipantsResponse.d.ts +40 -0
- package/dist/models/EventParticipantsResponse.js +52 -0
- package/dist/models/EventResponse.d.ts +7 -0
- package/dist/models/EventResponse.js +3 -0
- package/dist/models/Market.d.ts +11 -8
- package/dist/models/Market.js +11 -5
- package/dist/models/MarketLiquidity.d.ts +2 -2
- package/dist/models/MarketLiquidity.js +2 -2
- package/dist/models/MarketOutcomeResult.d.ts +38 -0
- package/dist/models/MarketOutcomeResult.js +50 -0
- package/dist/models/MarketOutcomeSummary.d.ts +7 -1
- package/dist/models/MarketOutcomeSummary.js +4 -2
- package/dist/models/MarketResultRequest.d.ts +3 -3
- package/dist/models/MarketResultRequest.js +3 -3
- package/dist/models/MarketSummary.d.ts +11 -2
- package/dist/models/MarketSummary.js +11 -3
- package/dist/models/Meta.d.ts +34 -1
- package/dist/models/Meta.js +29 -0
- package/dist/models/ModifyParticipantsRequest.d.ts +32 -0
- package/dist/models/ModifyParticipantsRequest.js +48 -0
- package/dist/models/Order.d.ts +2 -2
- package/dist/models/Order.js +2 -2
- package/dist/models/OrderResponse.d.ts +7 -0
- package/dist/models/OrderResponse.js +3 -0
- package/dist/models/OrderSummary.d.ts +2 -2
- package/dist/models/OrderSummary.js +2 -2
- package/dist/models/PageMeta.d.ts +50 -0
- package/dist/models/PageMeta.js +54 -0
- package/dist/models/Pageable.d.ts +44 -0
- package/dist/models/Pageable.js +52 -0
- package/dist/models/PagedEventResponse.d.ts +3 -20
- package/dist/models/PagedEventResponse.js +3 -8
- package/dist/models/PagedMarketPositionResponse.d.ts +0 -24
- package/dist/models/PagedMarketPositionResponse.js +0 -8
- package/dist/models/PagedOrderResponse.d.ts +3 -20
- package/dist/models/PagedOrderResponse.js +3 -8
- package/dist/models/PagedTradeResponse.d.ts +0 -24
- package/dist/models/PagedTradeResponse.js +0 -8
- package/dist/models/PagedTransactionResponse.d.ts +0 -24
- package/dist/models/PagedTransactionResponse.js +0 -8
- package/dist/models/Participant.d.ts +58 -0
- package/dist/models/Participant.js +62 -0
- package/dist/models/ParticipantsResponse.d.ts +40 -0
- package/dist/models/ParticipantsResponse.js +52 -0
- package/dist/models/Trade.d.ts +2 -2
- package/dist/models/Trade.js +2 -2
- package/dist/models/TradeSummary.d.ts +44 -0
- package/dist/models/TradeSummary.js +52 -0
- package/dist/models/index.d.ts +11 -2
- package/dist/models/index.js +11 -2
- package/package.json +1 -1
|
@@ -0,0 +1,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.instanceOfParticipantsResponse = instanceOfParticipantsResponse;
|
|
17
|
+
exports.ParticipantsResponseFromJSON = ParticipantsResponseFromJSON;
|
|
18
|
+
exports.ParticipantsResponseFromJSONTyped = ParticipantsResponseFromJSONTyped;
|
|
19
|
+
exports.ParticipantsResponseToJSON = ParticipantsResponseToJSON;
|
|
20
|
+
exports.ParticipantsResponseToJSONTyped = ParticipantsResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const Participant_1 = require("./Participant");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ParticipantsResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfParticipantsResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ParticipantsResponseFromJSON(json) {
|
|
30
|
+
return ParticipantsResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ParticipantsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
38
|
+
'participants': json['participants'] == null ? undefined : (json['participants'].map(Participant_1.ParticipantFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ParticipantsResponseToJSON(json) {
|
|
42
|
+
return ParticipantsResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ParticipantsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'participants': value['participants'] == null ? undefined : (value['participants'].map(Participant_1.ParticipantToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/Trade.d.ts
CHANGED
package/dist/models/Trade.js
CHANGED
|
@@ -46,7 +46,7 @@ function TradeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'market': json['market'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['market']),
|
|
47
47
|
'order': json['order'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['order']),
|
|
48
48
|
'side': json['side'] == null ? undefined : json['side'],
|
|
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
52
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -66,7 +66,7 @@ function TradeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
66
|
'market': (0, DocumentReference_1.DocumentReferenceToJSON)(value['market']),
|
|
67
67
|
'order': (0, DocumentReference_1.DocumentReferenceToJSON)(value['order']),
|
|
68
68
|
'side': value['side'],
|
|
69
|
-
'
|
|
69
|
+
'outcomeId': value['outcomeId'],
|
|
70
70
|
'price': value['price'],
|
|
71
71
|
'stake': value['stake'],
|
|
72
72
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
@@ -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 TradeSummary
|
|
16
|
+
*/
|
|
17
|
+
export interface TradeSummary {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof TradeSummary
|
|
22
|
+
*/
|
|
23
|
+
orderId?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof TradeSummary
|
|
28
|
+
*/
|
|
29
|
+
price?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof TradeSummary
|
|
34
|
+
*/
|
|
35
|
+
stake?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TradeSummary interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfTradeSummary(value: object): value is TradeSummary;
|
|
41
|
+
export declare function TradeSummaryFromJSON(json: any): TradeSummary;
|
|
42
|
+
export declare function TradeSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeSummary;
|
|
43
|
+
export declare function TradeSummaryToJSON(json: any): TradeSummary;
|
|
44
|
+
export declare function TradeSummaryToJSONTyped(value?: TradeSummary | 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.instanceOfTradeSummary = instanceOfTradeSummary;
|
|
17
|
+
exports.TradeSummaryFromJSON = TradeSummaryFromJSON;
|
|
18
|
+
exports.TradeSummaryFromJSONTyped = TradeSummaryFromJSONTyped;
|
|
19
|
+
exports.TradeSummaryToJSON = TradeSummaryToJSON;
|
|
20
|
+
exports.TradeSummaryToJSONTyped = TradeSummaryToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TradeSummary interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTradeSummary(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function TradeSummaryFromJSON(json) {
|
|
28
|
+
return TradeSummaryFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function TradeSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'orderId': json['orderId'] == null ? undefined : json['orderId'],
|
|
36
|
+
'price': json['price'] == null ? undefined : json['price'],
|
|
37
|
+
'stake': json['stake'] == null ? undefined : json['stake'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function TradeSummaryToJSON(json) {
|
|
41
|
+
return TradeSummaryToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function TradeSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'orderId': value['orderId'],
|
|
49
|
+
'price': value['price'],
|
|
50
|
+
'stake': value['stake'],
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './APIKey';
|
|
2
2
|
export * from './APIKeyResponse';
|
|
3
3
|
export * from './AddMarketOutcomeRequest';
|
|
4
|
+
export * from './AddParticipantRequest';
|
|
5
|
+
export * from './AddParticipantsRequest';
|
|
4
6
|
export * from './App';
|
|
5
7
|
export * from './AppResponse';
|
|
6
8
|
export * from './AppStatus';
|
|
@@ -30,6 +32,8 @@ export * from './Event';
|
|
|
30
32
|
export * from './EventGroup';
|
|
31
33
|
export * from './EventGroupResponse';
|
|
32
34
|
export * from './EventGroupSummary';
|
|
35
|
+
export * from './EventParticipant';
|
|
36
|
+
export * from './EventParticipantsResponse';
|
|
33
37
|
export * from './EventResponse';
|
|
34
38
|
export * from './EventSummary';
|
|
35
39
|
export * from './Market';
|
|
@@ -37,6 +41,7 @@ export * from './MarketLiquidities';
|
|
|
37
41
|
export * from './MarketLiquiditiesResponse';
|
|
38
42
|
export * from './MarketLiquidity';
|
|
39
43
|
export * from './MarketLiquidityResponse';
|
|
44
|
+
export * from './MarketOutcomeResult';
|
|
40
45
|
export * from './MarketOutcomeSummary';
|
|
41
46
|
export * from './MarketPosition';
|
|
42
47
|
export * from './MarketResponse';
|
|
@@ -46,16 +51,19 @@ export * from './MarketType';
|
|
|
46
51
|
export * from './MarketTypeResponse';
|
|
47
52
|
export * from './MarketTypeSummary';
|
|
48
53
|
export * from './Meta';
|
|
54
|
+
export * from './ModifyParticipantsRequest';
|
|
49
55
|
export * from './Order';
|
|
50
56
|
export * from './OrderResponse';
|
|
51
57
|
export * from './OrderSummary';
|
|
52
|
-
export * from './
|
|
53
|
-
export * from './
|
|
58
|
+
export * from './PageMeta';
|
|
59
|
+
export * from './Pageable';
|
|
54
60
|
export * from './PagedEventResponse';
|
|
55
61
|
export * from './PagedMarketPositionResponse';
|
|
56
62
|
export * from './PagedOrderResponse';
|
|
57
63
|
export * from './PagedTradeResponse';
|
|
58
64
|
export * from './PagedTransactionResponse';
|
|
65
|
+
export * from './Participant';
|
|
66
|
+
export * from './ParticipantsResponse';
|
|
59
67
|
export * from './Range';
|
|
60
68
|
export * from './RefreshSessionRequest';
|
|
61
69
|
export * from './RenameAPIKeyRequest';
|
|
@@ -67,6 +75,7 @@ export * from './SubcategorySummary';
|
|
|
67
75
|
export * from './ToggleActionRequest';
|
|
68
76
|
export * from './Trade';
|
|
69
77
|
export * from './TradeResponse';
|
|
78
|
+
export * from './TradeSummary';
|
|
70
79
|
export * from './Transaction';
|
|
71
80
|
export * from './TransferResponse';
|
|
72
81
|
export * from './UpdateAppCommissionRateRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -19,6 +19,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./APIKey"), exports);
|
|
20
20
|
__exportStar(require("./APIKeyResponse"), exports);
|
|
21
21
|
__exportStar(require("./AddMarketOutcomeRequest"), exports);
|
|
22
|
+
__exportStar(require("./AddParticipantRequest"), exports);
|
|
23
|
+
__exportStar(require("./AddParticipantsRequest"), exports);
|
|
22
24
|
__exportStar(require("./App"), exports);
|
|
23
25
|
__exportStar(require("./AppResponse"), exports);
|
|
24
26
|
__exportStar(require("./AppStatus"), exports);
|
|
@@ -48,6 +50,8 @@ __exportStar(require("./Event"), exports);
|
|
|
48
50
|
__exportStar(require("./EventGroup"), exports);
|
|
49
51
|
__exportStar(require("./EventGroupResponse"), exports);
|
|
50
52
|
__exportStar(require("./EventGroupSummary"), exports);
|
|
53
|
+
__exportStar(require("./EventParticipant"), exports);
|
|
54
|
+
__exportStar(require("./EventParticipantsResponse"), exports);
|
|
51
55
|
__exportStar(require("./EventResponse"), exports);
|
|
52
56
|
__exportStar(require("./EventSummary"), exports);
|
|
53
57
|
__exportStar(require("./Market"), exports);
|
|
@@ -55,6 +59,7 @@ __exportStar(require("./MarketLiquidities"), exports);
|
|
|
55
59
|
__exportStar(require("./MarketLiquiditiesResponse"), exports);
|
|
56
60
|
__exportStar(require("./MarketLiquidity"), exports);
|
|
57
61
|
__exportStar(require("./MarketLiquidityResponse"), exports);
|
|
62
|
+
__exportStar(require("./MarketOutcomeResult"), exports);
|
|
58
63
|
__exportStar(require("./MarketOutcomeSummary"), exports);
|
|
59
64
|
__exportStar(require("./MarketPosition"), exports);
|
|
60
65
|
__exportStar(require("./MarketResponse"), exports);
|
|
@@ -64,16 +69,19 @@ __exportStar(require("./MarketType"), exports);
|
|
|
64
69
|
__exportStar(require("./MarketTypeResponse"), exports);
|
|
65
70
|
__exportStar(require("./MarketTypeSummary"), exports);
|
|
66
71
|
__exportStar(require("./Meta"), exports);
|
|
72
|
+
__exportStar(require("./ModifyParticipantsRequest"), exports);
|
|
67
73
|
__exportStar(require("./Order"), exports);
|
|
68
74
|
__exportStar(require("./OrderResponse"), exports);
|
|
69
75
|
__exportStar(require("./OrderSummary"), exports);
|
|
70
|
-
__exportStar(require("./
|
|
71
|
-
__exportStar(require("./
|
|
76
|
+
__exportStar(require("./PageMeta"), exports);
|
|
77
|
+
__exportStar(require("./Pageable"), exports);
|
|
72
78
|
__exportStar(require("./PagedEventResponse"), exports);
|
|
73
79
|
__exportStar(require("./PagedMarketPositionResponse"), exports);
|
|
74
80
|
__exportStar(require("./PagedOrderResponse"), exports);
|
|
75
81
|
__exportStar(require("./PagedTradeResponse"), exports);
|
|
76
82
|
__exportStar(require("./PagedTransactionResponse"), exports);
|
|
83
|
+
__exportStar(require("./Participant"), exports);
|
|
84
|
+
__exportStar(require("./ParticipantsResponse"), exports);
|
|
77
85
|
__exportStar(require("./Range"), exports);
|
|
78
86
|
__exportStar(require("./RefreshSessionRequest"), exports);
|
|
79
87
|
__exportStar(require("./RenameAPIKeyRequest"), exports);
|
|
@@ -85,6 +93,7 @@ __exportStar(require("./SubcategorySummary"), exports);
|
|
|
85
93
|
__exportStar(require("./ToggleActionRequest"), exports);
|
|
86
94
|
__exportStar(require("./Trade"), exports);
|
|
87
95
|
__exportStar(require("./TradeResponse"), exports);
|
|
96
|
+
__exportStar(require("./TradeSummary"), exports);
|
|
88
97
|
__exportStar(require("./Transaction"), exports);
|
|
89
98
|
__exportStar(require("./TransferResponse"), exports);
|
|
90
99
|
__exportStar(require("./UpdateAppCommissionRateRequest"), exports);
|