@monaco-protocol/client-v2 0.0.2-dev.3 → 0.0.2-dev.4
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 +7 -3
- package/dist/apis/MarketsApi.js +14 -2
- 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 +7 -3
- package/dist/apis/WalletsApi.js +12 -0
- 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 +9 -0
- package/dist/models/CreateOrderRequest.js +2 -0
- 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/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/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/OrderResponse.d.ts +7 -0
- package/dist/models/OrderResponse.js +3 -0
- package/dist/models/PageMeta.d.ts +50 -0
- package/dist/models/PageMeta.js +54 -0
- package/dist/models/PagedEventResponse.d.ts +0 -24
- package/dist/models/PagedEventResponse.js +0 -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/TradeSummary.d.ts +44 -0
- package/dist/models/TradeSummary.js +52 -0
- package/dist/models/index.d.ts +9 -1
- package/dist/models/index.js +9 -1
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { Order } from './Order';
|
|
13
13
|
import type { Meta } from './Meta';
|
|
14
14
|
import type { MarketSummary } from './MarketSummary';
|
|
15
|
+
import type { TradeSummary } from './TradeSummary';
|
|
15
16
|
import type { EventSummary } from './EventSummary';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
@@ -45,28 +46,10 @@ export interface PagedOrderResponse {
|
|
|
45
46
|
events?: Array<EventSummary>;
|
|
46
47
|
/**
|
|
47
48
|
*
|
|
48
|
-
* @type {
|
|
49
|
+
* @type {Array<TradeSummary>}
|
|
49
50
|
* @memberof PagedOrderResponse
|
|
50
51
|
*/
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof PagedOrderResponse
|
|
56
|
-
*/
|
|
57
|
-
resultsPerPage?: number;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof PagedOrderResponse
|
|
62
|
-
*/
|
|
63
|
-
totalObjects?: number;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {number}
|
|
67
|
-
* @memberof PagedOrderResponse
|
|
68
|
-
*/
|
|
69
|
-
totalPages?: number;
|
|
52
|
+
trades?: Array<TradeSummary>;
|
|
70
53
|
}
|
|
71
54
|
/**
|
|
72
55
|
* Check if a given object implements the PagedOrderResponse interface.
|
|
@@ -21,6 +21,7 @@ exports.PagedOrderResponseToJSONTyped = PagedOrderResponseToJSONTyped;
|
|
|
21
21
|
const Order_1 = require("./Order");
|
|
22
22
|
const Meta_1 = require("./Meta");
|
|
23
23
|
const MarketSummary_1 = require("./MarketSummary");
|
|
24
|
+
const TradeSummary_1 = require("./TradeSummary");
|
|
24
25
|
const EventSummary_1 = require("./EventSummary");
|
|
25
26
|
/**
|
|
26
27
|
* Check if a given object implements the PagedOrderResponse interface.
|
|
@@ -40,10 +41,7 @@ function PagedOrderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
'orders': json['orders'] == null ? undefined : (json['orders'].map(Order_1.OrderFromJSON)),
|
|
41
42
|
'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
|
|
42
43
|
'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
|
|
43
|
-
'
|
|
44
|
-
'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
|
|
45
|
-
'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
|
|
46
|
-
'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
|
|
44
|
+
'trades': json['trades'] == null ? undefined : (json['trades'].map(TradeSummary_1.TradeSummaryFromJSON)),
|
|
47
45
|
};
|
|
48
46
|
}
|
|
49
47
|
function PagedOrderResponseToJSON(json) {
|
|
@@ -58,9 +56,6 @@ function PagedOrderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
56
|
'orders': value['orders'] == null ? undefined : (value['orders'].map(Order_1.OrderToJSON)),
|
|
59
57
|
'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
|
|
60
58
|
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
61
|
-
'
|
|
62
|
-
'resultsPerPage': value['resultsPerPage'],
|
|
63
|
-
'totalObjects': value['totalObjects'],
|
|
64
|
-
'totalPages': value['totalPages'],
|
|
59
|
+
'trades': value['trades'] == null ? undefined : (value['trades'].map(TradeSummary_1.TradeSummaryToJSON)),
|
|
65
60
|
};
|
|
66
61
|
}
|
|
@@ -50,30 +50,6 @@ export interface PagedTradeResponse {
|
|
|
50
50
|
* @memberof PagedTradeResponse
|
|
51
51
|
*/
|
|
52
52
|
events?: Array<EventSummary>;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {number}
|
|
56
|
-
* @memberof PagedTradeResponse
|
|
57
|
-
*/
|
|
58
|
-
pageNumber?: number;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {number}
|
|
62
|
-
* @memberof PagedTradeResponse
|
|
63
|
-
*/
|
|
64
|
-
resultsPerPage?: number;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {number}
|
|
68
|
-
* @memberof PagedTradeResponse
|
|
69
|
-
*/
|
|
70
|
-
totalObjects?: number;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {number}
|
|
74
|
-
* @memberof PagedTradeResponse
|
|
75
|
-
*/
|
|
76
|
-
totalPages?: number;
|
|
77
53
|
}
|
|
78
54
|
/**
|
|
79
55
|
* Check if a given object implements the PagedTradeResponse interface.
|
|
@@ -42,10 +42,6 @@ function PagedTradeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'orders': json['orders'] == null ? undefined : (json['orders'].map(OrderSummary_1.OrderSummaryFromJSON)),
|
|
43
43
|
'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
|
|
44
44
|
'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
|
|
45
|
-
'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
|
|
46
|
-
'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
|
|
47
|
-
'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
|
|
48
|
-
'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
|
|
49
45
|
};
|
|
50
46
|
}
|
|
51
47
|
function PagedTradeResponseToJSON(json) {
|
|
@@ -61,9 +57,5 @@ function PagedTradeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
57
|
'orders': value['orders'] == null ? undefined : (value['orders'].map(OrderSummary_1.OrderSummaryToJSON)),
|
|
62
58
|
'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
|
|
63
59
|
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
64
|
-
'pageNumber': value['pageNumber'],
|
|
65
|
-
'resultsPerPage': value['resultsPerPage'],
|
|
66
|
-
'totalObjects': value['totalObjects'],
|
|
67
|
-
'totalPages': value['totalPages'],
|
|
68
60
|
};
|
|
69
61
|
}
|
|
@@ -29,30 +29,6 @@ export interface PagedTransactionResponse {
|
|
|
29
29
|
* @memberof PagedTransactionResponse
|
|
30
30
|
*/
|
|
31
31
|
transactions?: Array<Transaction>;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {number}
|
|
35
|
-
* @memberof PagedTransactionResponse
|
|
36
|
-
*/
|
|
37
|
-
pageNumber?: number;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {number}
|
|
41
|
-
* @memberof PagedTransactionResponse
|
|
42
|
-
*/
|
|
43
|
-
resultsPerPage?: number;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {number}
|
|
47
|
-
* @memberof PagedTransactionResponse
|
|
48
|
-
*/
|
|
49
|
-
totalObjects?: number;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @memberof PagedTransactionResponse
|
|
54
|
-
*/
|
|
55
|
-
totalPages?: number;
|
|
56
32
|
}
|
|
57
33
|
/**
|
|
58
34
|
* Check if a given object implements the PagedTransactionResponse interface.
|
|
@@ -36,10 +36,6 @@ function PagedTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return {
|
|
37
37
|
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
38
38
|
'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(Transaction_1.TransactionFromJSON)),
|
|
39
|
-
'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
|
|
40
|
-
'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
|
|
41
|
-
'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
|
|
42
|
-
'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
|
|
43
39
|
};
|
|
44
40
|
}
|
|
45
41
|
function PagedTransactionResponseToJSON(json) {
|
|
@@ -52,9 +48,5 @@ function PagedTransactionResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
52
48
|
return {
|
|
53
49
|
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
54
50
|
'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(Transaction_1.TransactionToJSON)),
|
|
55
|
-
'pageNumber': value['pageNumber'],
|
|
56
|
-
'resultsPerPage': value['resultsPerPage'],
|
|
57
|
-
'totalObjects': value['totalObjects'],
|
|
58
|
-
'totalPages': value['totalPages'],
|
|
59
51
|
};
|
|
60
52
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Participant
|
|
16
|
+
*/
|
|
17
|
+
export interface Participant {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Participant
|
|
22
|
+
*/
|
|
23
|
+
code?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Participant
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Participant
|
|
34
|
+
*/
|
|
35
|
+
type?: ParticipantTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof Participant
|
|
40
|
+
*/
|
|
41
|
+
active?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const ParticipantTypeEnum: {
|
|
47
|
+
readonly Individual: "Individual";
|
|
48
|
+
readonly Team: "Team";
|
|
49
|
+
};
|
|
50
|
+
export type ParticipantTypeEnum = typeof ParticipantTypeEnum[keyof typeof ParticipantTypeEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the Participant interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfParticipant(value: object): value is Participant;
|
|
55
|
+
export declare function ParticipantFromJSON(json: any): Participant;
|
|
56
|
+
export declare function ParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Participant;
|
|
57
|
+
export declare function ParticipantToJSON(json: any): Participant;
|
|
58
|
+
export declare function ParticipantToJSONTyped(value?: Participant | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Monaco API
|
|
6
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ParticipantTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfParticipant = instanceOfParticipant;
|
|
18
|
+
exports.ParticipantFromJSON = ParticipantFromJSON;
|
|
19
|
+
exports.ParticipantFromJSONTyped = ParticipantFromJSONTyped;
|
|
20
|
+
exports.ParticipantToJSON = ParticipantToJSON;
|
|
21
|
+
exports.ParticipantToJSONTyped = ParticipantToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ParticipantTypeEnum = {
|
|
26
|
+
Individual: 'Individual',
|
|
27
|
+
Team: 'Team'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the Participant interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfParticipant(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ParticipantFromJSON(json) {
|
|
36
|
+
return ParticipantFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ParticipantFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
44
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
45
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
46
|
+
'active': json['active'] == null ? undefined : json['active'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ParticipantToJSON(json) {
|
|
50
|
+
return ParticipantToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ParticipantToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'code': value['code'],
|
|
58
|
+
'name': value['name'],
|
|
59
|
+
'type': value['type'],
|
|
60
|
+
'active': value['active'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Meta } from './Meta';
|
|
13
|
+
import type { Participant } from './Participant';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ParticipantsResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface ParticipantsResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof ParticipantsResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<Participant>}
|
|
29
|
+
* @memberof ParticipantsResponse
|
|
30
|
+
*/
|
|
31
|
+
participants?: Array<Participant>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the ParticipantsResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfParticipantsResponse(value: object): value is ParticipantsResponse;
|
|
37
|
+
export declare function ParticipantsResponseFromJSON(json: any): ParticipantsResponse;
|
|
38
|
+
export declare function ParticipantsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParticipantsResponse;
|
|
39
|
+
export declare function ParticipantsResponseToJSON(json: any): ParticipantsResponse;
|
|
40
|
+
export declare function ParticipantsResponseToJSONTyped(value?: ParticipantsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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
|
+
}
|
|
@@ -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';
|
|
@@ -46,16 +50,19 @@ export * from './MarketType';
|
|
|
46
50
|
export * from './MarketTypeResponse';
|
|
47
51
|
export * from './MarketTypeSummary';
|
|
48
52
|
export * from './Meta';
|
|
53
|
+
export * from './ModifyParticipantsRequest';
|
|
49
54
|
export * from './Order';
|
|
50
55
|
export * from './OrderResponse';
|
|
51
56
|
export * from './OrderSummary';
|
|
52
57
|
export * from './OutcomeResult';
|
|
53
|
-
export * from './
|
|
58
|
+
export * from './PageMeta';
|
|
54
59
|
export * from './PagedEventResponse';
|
|
55
60
|
export * from './PagedMarketPositionResponse';
|
|
56
61
|
export * from './PagedOrderResponse';
|
|
57
62
|
export * from './PagedTradeResponse';
|
|
58
63
|
export * from './PagedTransactionResponse';
|
|
64
|
+
export * from './Participant';
|
|
65
|
+
export * from './ParticipantsResponse';
|
|
59
66
|
export * from './Range';
|
|
60
67
|
export * from './RefreshSessionRequest';
|
|
61
68
|
export * from './RenameAPIKeyRequest';
|
|
@@ -67,6 +74,7 @@ export * from './SubcategorySummary';
|
|
|
67
74
|
export * from './ToggleActionRequest';
|
|
68
75
|
export * from './Trade';
|
|
69
76
|
export * from './TradeResponse';
|
|
77
|
+
export * from './TradeSummary';
|
|
70
78
|
export * from './Transaction';
|
|
71
79
|
export * from './TransferResponse';
|
|
72
80
|
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);
|
|
@@ -64,16 +68,19 @@ __exportStar(require("./MarketType"), exports);
|
|
|
64
68
|
__exportStar(require("./MarketTypeResponse"), exports);
|
|
65
69
|
__exportStar(require("./MarketTypeSummary"), exports);
|
|
66
70
|
__exportStar(require("./Meta"), exports);
|
|
71
|
+
__exportStar(require("./ModifyParticipantsRequest"), exports);
|
|
67
72
|
__exportStar(require("./Order"), exports);
|
|
68
73
|
__exportStar(require("./OrderResponse"), exports);
|
|
69
74
|
__exportStar(require("./OrderSummary"), exports);
|
|
70
75
|
__exportStar(require("./OutcomeResult"), exports);
|
|
71
|
-
__exportStar(require("./
|
|
76
|
+
__exportStar(require("./PageMeta"), exports);
|
|
72
77
|
__exportStar(require("./PagedEventResponse"), exports);
|
|
73
78
|
__exportStar(require("./PagedMarketPositionResponse"), exports);
|
|
74
79
|
__exportStar(require("./PagedOrderResponse"), exports);
|
|
75
80
|
__exportStar(require("./PagedTradeResponse"), exports);
|
|
76
81
|
__exportStar(require("./PagedTransactionResponse"), exports);
|
|
82
|
+
__exportStar(require("./Participant"), exports);
|
|
83
|
+
__exportStar(require("./ParticipantsResponse"), exports);
|
|
77
84
|
__exportStar(require("./Range"), exports);
|
|
78
85
|
__exportStar(require("./RefreshSessionRequest"), exports);
|
|
79
86
|
__exportStar(require("./RenameAPIKeyRequest"), exports);
|
|
@@ -85,6 +92,7 @@ __exportStar(require("./SubcategorySummary"), exports);
|
|
|
85
92
|
__exportStar(require("./ToggleActionRequest"), exports);
|
|
86
93
|
__exportStar(require("./Trade"), exports);
|
|
87
94
|
__exportStar(require("./TradeResponse"), exports);
|
|
95
|
+
__exportStar(require("./TradeSummary"), exports);
|
|
88
96
|
__exportStar(require("./Transaction"), exports);
|
|
89
97
|
__exportStar(require("./TransferResponse"), exports);
|
|
90
98
|
__exportStar(require("./UpdateAppCommissionRateRequest"), exports);
|