@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.
- package/README.md +32 -26
- package/dist/apis/{MonacoAPIAPIKeyManagementApi.d.ts → APIKeyManagementApi.d.ts} +4 -4
- package/dist/apis/{MonacoAPIAPIKeyManagementApi.js → APIKeyManagementApi.js} +8 -8
- package/dist/apis/{MonacoAPIAppManagementApi.d.ts → AppManagementApi.d.ts} +7 -7
- package/dist/apis/{MonacoAPIAppManagementApi.js → AppManagementApi.js} +12 -12
- package/dist/apis/{MonacoAPICurrenciesApi.d.ts → CurrenciesApi.d.ts} +5 -5
- package/dist/apis/{MonacoAPICurrenciesApi.js → CurrenciesApi.js} +8 -8
- package/dist/apis/EventCategoriesApi.d.ts +53 -0
- package/dist/apis/{MonacoAPIEventCategoriesApi.js → EventCategoriesApi.js} +17 -17
- package/dist/apis/EventGroupsApi.d.ts +54 -0
- package/dist/apis/{MonacoAPIEventGroupsApi.js → EventGroupsApi.js} +19 -19
- package/dist/apis/EventSubcategoriesApi.d.ts +105 -0
- package/dist/apis/EventSubcategoriesApi.js +287 -0
- package/dist/apis/EventsApi.d.ts +175 -0
- package/dist/apis/EventsApi.js +477 -0
- package/dist/apis/HeartbeatManagementApi.d.ts +52 -0
- package/dist/apis/{MonacoAPIEventSubcategoriesApi.js → HeartbeatManagementApi.js} +35 -41
- package/dist/apis/MarketPricesApi.d.ts +41 -0
- package/dist/apis/MarketPricesApi.js +101 -0
- package/dist/apis/{MonacoAPIMarketTypesApi.d.ts → MarketTypesApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIMarketTypesApi.js → MarketTypesApi.js} +3 -3
- package/dist/apis/{MonacoAPIMarketsApi.d.ts → MarketsApi.d.ts} +79 -25
- package/dist/apis/{MonacoAPIMarketsApi.js → MarketsApi.js} +158 -16
- package/dist/apis/{MonacoAPIOrdersApi.d.ts → OrdersApi.d.ts} +53 -19
- package/dist/apis/{MonacoAPIOrdersApi.js → OrdersApi.js} +110 -11
- package/dist/apis/SessionManagementApi.d.ts +40 -0
- package/dist/apis/{MonacoAPISessionManagementApi.js → SessionManagementApi.js} +15 -15
- package/dist/apis/{MonacoAPIAPIStatusApi.d.ts → StatusApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIAPIStatusApi.js → StatusApi.js} +3 -3
- package/dist/apis/{MonacoAPITradesApi.d.ts → TradesApi.d.ts} +9 -6
- package/dist/apis/{MonacoAPITradesApi.js → TradesApi.js} +15 -3
- package/dist/apis/{MonacoAPIWalletsApi.d.ts → WalletsApi.d.ts} +24 -5
- package/dist/apis/{MonacoAPIWalletsApi.js → WalletsApi.js} +57 -3
- package/dist/apis/index.d.ts +16 -14
- package/dist/apis/index.js +16 -14
- 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 +67 -0
- package/dist/models/ChunkOrderResponse.js +63 -0
- package/dist/models/CommissionRate.d.ts +2 -2
- package/dist/models/CreateEventRequest.d.ts +5 -5
- package/dist/models/CreateEventRequest.js +16 -6
- package/dist/models/CreateMarketRequest.d.ts +2 -2
- package/dist/models/CreateOrderRequest.d.ts +13 -4
- 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/CreateWalletRequest.d.ts +0 -16
- package/dist/models/CreateWalletRequest.js +0 -12
- package/dist/models/Currency.d.ts +2 -2
- package/dist/models/DocumentReference.js +4 -4
- package/dist/models/Event.d.ts +8 -2
- 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/EventSummary.d.ts +2 -2
- package/dist/models/EventUpdateResponse.d.ts +40 -0
- package/dist/models/EventUpdateResponse.js +52 -0
- package/dist/models/Heartbeat.d.ts +50 -0
- package/dist/models/Heartbeat.js +54 -0
- package/dist/models/HeartbeatResponse.d.ts +40 -0
- package/dist/models/HeartbeatResponse.js +52 -0
- package/dist/models/Market.d.ts +21 -12
- package/dist/models/Market.js +13 -5
- package/dist/models/MarketLiquidities.d.ts +39 -0
- package/dist/models/MarketLiquidities.js +51 -0
- package/dist/models/MarketLiquiditiesResponse.d.ts +40 -0
- package/dist/models/MarketLiquiditiesResponse.js +52 -0
- 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 +9 -3
- package/dist/models/MarketOutcomeSummary.js +4 -2
- package/dist/models/MarketPosition.d.ts +4 -2
- package/dist/models/MarketPriceLadder.d.ts +32 -0
- package/dist/models/MarketPriceLadder.js +48 -0
- package/dist/models/MarketPriceLadderResponse.d.ts +40 -0
- package/dist/models/MarketPriceLadderResponse.js +52 -0
- package/dist/models/MarketResultRequest.d.ts +3 -3
- package/dist/models/MarketResultRequest.js +3 -3
- package/dist/models/MarketSummary.d.ts +32 -4
- package/dist/models/MarketSummary.js +18 -3
- package/dist/models/MarketUpdateResponse.d.ts +40 -0
- package/dist/models/MarketUpdateResponse.js +52 -0
- package/dist/models/Meta.d.ts +36 -1
- package/dist/models/Meta.js +31 -0
- package/dist/models/ModifyParticipantsRequest.d.ts +32 -0
- package/dist/models/ModifyParticipantsRequest.js +48 -0
- package/dist/models/Order.d.ts +35 -6
- package/dist/models/Order.js +17 -3
- package/dist/models/OrderResponse.d.ts +7 -0
- package/dist/models/OrderResponse.js +3 -0
- package/dist/models/OrderSummary.d.ts +33 -4
- package/dist/models/OrderSummary.js +17 -3
- package/dist/models/OutcomeResult.d.ts +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/ToggleActionRequest.d.ts +1 -1
- package/dist/models/Trade.d.ts +4 -4
- 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/Transaction.d.ts +3 -2
- package/dist/models/Transaction.js +2 -1
- package/dist/models/UpdateDateRequest.d.ts +32 -0
- package/dist/models/UpdateDateRequest.js +50 -0
- package/dist/models/UpdateHeartbeatRequest.d.ts +38 -0
- package/dist/models/UpdateHeartbeatRequest.js +52 -0
- package/dist/models/UpdateNameRequest.d.ts +32 -0
- package/dist/models/UpdateNameRequest.js +50 -0
- package/dist/models/WalletBalance.d.ts +2 -2
- package/dist/models/index.d.ts +22 -2
- package/dist/models/index.js +22 -2
- package/package.json +6 -2
- package/dist/apis/MonacoAPIEventCategoriesApi.d.ts +0 -53
- package/dist/apis/MonacoAPIEventGroupsApi.d.ts +0 -54
- package/dist/apis/MonacoAPIEventSubcategoriesApi.d.ts +0 -54
- package/dist/apis/MonacoAPIEventsApi.d.ts +0 -68
- package/dist/apis/MonacoAPIEventsApi.js +0 -158
- package/dist/apis/MonacoAPISessionManagementApi.d.ts +0 -40
|
@@ -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
|
+
}
|
|
@@ -35,10 +35,10 @@ export interface Transaction {
|
|
|
35
35
|
walletId?: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof Transaction
|
|
40
40
|
*/
|
|
41
|
-
currencyId?:
|
|
41
|
+
currencyId?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {number}
|
|
@@ -69,6 +69,7 @@ export declare const TransactionCodeEnum: {
|
|
|
69
69
|
readonly TradeWin: "TradeWin";
|
|
70
70
|
readonly WalletToWallet: "WalletToWallet";
|
|
71
71
|
readonly Commission: "Commission";
|
|
72
|
+
readonly MarketPositionVoid: "MarketPositionVoid";
|
|
72
73
|
};
|
|
73
74
|
export type TransactionCodeEnum = typeof TransactionCodeEnum[keyof typeof TransactionCodeEnum];
|
|
74
75
|
/**
|
|
@@ -29,7 +29,8 @@ exports.TransactionCodeEnum = {
|
|
|
29
29
|
TradeVoid: 'TradeVoid',
|
|
30
30
|
TradeWin: 'TradeWin',
|
|
31
31
|
WalletToWallet: 'WalletToWallet',
|
|
32
|
-
Commission: 'Commission'
|
|
32
|
+
Commission: 'Commission',
|
|
33
|
+
MarketPositionVoid: 'MarketPositionVoid'
|
|
33
34
|
};
|
|
34
35
|
/**
|
|
35
36
|
* Check if a given object implements the Transaction interface.
|
|
@@ -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
|
+
* request body containing a date field with the new value (cannot be null)
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateDateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateDateRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof UpdateDateRequest
|
|
22
|
+
*/
|
|
23
|
+
date: Date;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateDateRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateDateRequest(value: object): value is UpdateDateRequest;
|
|
29
|
+
export declare function UpdateDateRequestFromJSON(json: any): UpdateDateRequest;
|
|
30
|
+
export declare function UpdateDateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDateRequest;
|
|
31
|
+
export declare function UpdateDateRequestToJSON(json: any): UpdateDateRequest;
|
|
32
|
+
export declare function UpdateDateRequestToJSONTyped(value?: UpdateDateRequest | 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.instanceOfUpdateDateRequest = instanceOfUpdateDateRequest;
|
|
17
|
+
exports.UpdateDateRequestFromJSON = UpdateDateRequestFromJSON;
|
|
18
|
+
exports.UpdateDateRequestFromJSONTyped = UpdateDateRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateDateRequestToJSON = UpdateDateRequestToJSON;
|
|
20
|
+
exports.UpdateDateRequestToJSONTyped = UpdateDateRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateDateRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateDateRequest(value) {
|
|
25
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdateDateRequestFromJSON(json) {
|
|
30
|
+
return UpdateDateRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdateDateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'date': (new Date(json['date'])),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function UpdateDateRequestToJSON(json) {
|
|
41
|
+
return UpdateDateRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateDateRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'date': ((value['date']).toISOString()),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 UpdateHeartbeatRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateHeartbeatRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof UpdateHeartbeatRequest
|
|
22
|
+
*/
|
|
23
|
+
active: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UpdateHeartbeatRequest
|
|
28
|
+
*/
|
|
29
|
+
checkIntervalSeconds?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UpdateHeartbeatRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUpdateHeartbeatRequest(value: object): value is UpdateHeartbeatRequest;
|
|
35
|
+
export declare function UpdateHeartbeatRequestFromJSON(json: any): UpdateHeartbeatRequest;
|
|
36
|
+
export declare function UpdateHeartbeatRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateHeartbeatRequest;
|
|
37
|
+
export declare function UpdateHeartbeatRequestToJSON(json: any): UpdateHeartbeatRequest;
|
|
38
|
+
export declare function UpdateHeartbeatRequestToJSONTyped(value?: UpdateHeartbeatRequest | 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.instanceOfUpdateHeartbeatRequest = instanceOfUpdateHeartbeatRequest;
|
|
17
|
+
exports.UpdateHeartbeatRequestFromJSON = UpdateHeartbeatRequestFromJSON;
|
|
18
|
+
exports.UpdateHeartbeatRequestFromJSONTyped = UpdateHeartbeatRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateHeartbeatRequestToJSON = UpdateHeartbeatRequestToJSON;
|
|
20
|
+
exports.UpdateHeartbeatRequestToJSONTyped = UpdateHeartbeatRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateHeartbeatRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateHeartbeatRequest(value) {
|
|
25
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdateHeartbeatRequestFromJSON(json) {
|
|
30
|
+
return UpdateHeartbeatRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdateHeartbeatRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'active': json['active'],
|
|
38
|
+
'checkIntervalSeconds': json['checkIntervalSeconds'] == null ? undefined : json['checkIntervalSeconds'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function UpdateHeartbeatRequestToJSON(json) {
|
|
42
|
+
return UpdateHeartbeatRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function UpdateHeartbeatRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'active': value['active'],
|
|
50
|
+
'checkIntervalSeconds': value['checkIntervalSeconds'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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
|
+
* request body containing a name field with the new value (cannot be null or blank)
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateNameRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateNameRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateNameRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateNameRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateNameRequest(value: object): value is UpdateNameRequest;
|
|
29
|
+
export declare function UpdateNameRequestFromJSON(json: any): UpdateNameRequest;
|
|
30
|
+
export declare function UpdateNameRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNameRequest;
|
|
31
|
+
export declare function UpdateNameRequestToJSON(json: any): UpdateNameRequest;
|
|
32
|
+
export declare function UpdateNameRequestToJSONTyped(value?: UpdateNameRequest | 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.instanceOfUpdateNameRequest = instanceOfUpdateNameRequest;
|
|
17
|
+
exports.UpdateNameRequestFromJSON = UpdateNameRequestFromJSON;
|
|
18
|
+
exports.UpdateNameRequestFromJSONTyped = UpdateNameRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateNameRequestToJSON = UpdateNameRequestToJSON;
|
|
20
|
+
exports.UpdateNameRequestToJSONTyped = UpdateNameRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateNameRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateNameRequest(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdateNameRequestFromJSON(json) {
|
|
30
|
+
return UpdateNameRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdateNameRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function UpdateNameRequestToJSON(json) {
|
|
41
|
+
return UpdateNameRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateNameRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
};
|
|
50
|
+
}
|
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';
|
|
@@ -8,6 +10,7 @@ export * from './AppStatusResponse';
|
|
|
8
10
|
export * from './Category';
|
|
9
11
|
export * from './CategoryResponse';
|
|
10
12
|
export * from './CategorySummary';
|
|
13
|
+
export * from './ChunkOrderResponse';
|
|
11
14
|
export * from './CommissionRate';
|
|
12
15
|
export * from './CommissionRateResponse';
|
|
13
16
|
export * from './CreateAPIKeyRequest';
|
|
@@ -29,30 +32,43 @@ export * from './Event';
|
|
|
29
32
|
export * from './EventGroup';
|
|
30
33
|
export * from './EventGroupResponse';
|
|
31
34
|
export * from './EventGroupSummary';
|
|
35
|
+
export * from './EventParticipant';
|
|
36
|
+
export * from './EventParticipantsResponse';
|
|
32
37
|
export * from './EventResponse';
|
|
33
38
|
export * from './EventSummary';
|
|
39
|
+
export * from './EventUpdateResponse';
|
|
40
|
+
export * from './Heartbeat';
|
|
41
|
+
export * from './HeartbeatResponse';
|
|
34
42
|
export * from './Market';
|
|
43
|
+
export * from './MarketLiquidities';
|
|
44
|
+
export * from './MarketLiquiditiesResponse';
|
|
35
45
|
export * from './MarketLiquidity';
|
|
36
46
|
export * from './MarketLiquidityResponse';
|
|
47
|
+
export * from './MarketOutcomeResult';
|
|
37
48
|
export * from './MarketOutcomeSummary';
|
|
38
49
|
export * from './MarketPosition';
|
|
50
|
+
export * from './MarketPriceLadder';
|
|
51
|
+
export * from './MarketPriceLadderResponse';
|
|
39
52
|
export * from './MarketResponse';
|
|
40
53
|
export * from './MarketResultRequest';
|
|
41
54
|
export * from './MarketSummary';
|
|
42
55
|
export * from './MarketType';
|
|
43
56
|
export * from './MarketTypeResponse';
|
|
44
57
|
export * from './MarketTypeSummary';
|
|
58
|
+
export * from './MarketUpdateResponse';
|
|
45
59
|
export * from './Meta';
|
|
60
|
+
export * from './ModifyParticipantsRequest';
|
|
46
61
|
export * from './Order';
|
|
47
62
|
export * from './OrderResponse';
|
|
48
63
|
export * from './OrderSummary';
|
|
49
|
-
export * from './
|
|
50
|
-
export * from './PageRequest';
|
|
64
|
+
export * from './PageMeta';
|
|
51
65
|
export * from './PagedEventResponse';
|
|
52
66
|
export * from './PagedMarketPositionResponse';
|
|
53
67
|
export * from './PagedOrderResponse';
|
|
54
68
|
export * from './PagedTradeResponse';
|
|
55
69
|
export * from './PagedTransactionResponse';
|
|
70
|
+
export * from './Participant';
|
|
71
|
+
export * from './ParticipantsResponse';
|
|
56
72
|
export * from './Range';
|
|
57
73
|
export * from './RefreshSessionRequest';
|
|
58
74
|
export * from './RenameAPIKeyRequest';
|
|
@@ -64,9 +80,13 @@ export * from './SubcategorySummary';
|
|
|
64
80
|
export * from './ToggleActionRequest';
|
|
65
81
|
export * from './Trade';
|
|
66
82
|
export * from './TradeResponse';
|
|
83
|
+
export * from './TradeSummary';
|
|
67
84
|
export * from './Transaction';
|
|
68
85
|
export * from './TransferResponse';
|
|
69
86
|
export * from './UpdateAppCommissionRateRequest';
|
|
87
|
+
export * from './UpdateDateRequest';
|
|
88
|
+
export * from './UpdateHeartbeatRequest';
|
|
89
|
+
export * from './UpdateNameRequest';
|
|
70
90
|
export * from './Wallet';
|
|
71
91
|
export * from './WalletBalance';
|
|
72
92
|
export * from './WalletResponse';
|
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);
|
|
@@ -26,6 +28,7 @@ __exportStar(require("./AppStatusResponse"), exports);
|
|
|
26
28
|
__exportStar(require("./Category"), exports);
|
|
27
29
|
__exportStar(require("./CategoryResponse"), exports);
|
|
28
30
|
__exportStar(require("./CategorySummary"), exports);
|
|
31
|
+
__exportStar(require("./ChunkOrderResponse"), exports);
|
|
29
32
|
__exportStar(require("./CommissionRate"), exports);
|
|
30
33
|
__exportStar(require("./CommissionRateResponse"), exports);
|
|
31
34
|
__exportStar(require("./CreateAPIKeyRequest"), exports);
|
|
@@ -47,30 +50,43 @@ __exportStar(require("./Event"), exports);
|
|
|
47
50
|
__exportStar(require("./EventGroup"), exports);
|
|
48
51
|
__exportStar(require("./EventGroupResponse"), exports);
|
|
49
52
|
__exportStar(require("./EventGroupSummary"), exports);
|
|
53
|
+
__exportStar(require("./EventParticipant"), exports);
|
|
54
|
+
__exportStar(require("./EventParticipantsResponse"), exports);
|
|
50
55
|
__exportStar(require("./EventResponse"), exports);
|
|
51
56
|
__exportStar(require("./EventSummary"), exports);
|
|
57
|
+
__exportStar(require("./EventUpdateResponse"), exports);
|
|
58
|
+
__exportStar(require("./Heartbeat"), exports);
|
|
59
|
+
__exportStar(require("./HeartbeatResponse"), exports);
|
|
52
60
|
__exportStar(require("./Market"), exports);
|
|
61
|
+
__exportStar(require("./MarketLiquidities"), exports);
|
|
62
|
+
__exportStar(require("./MarketLiquiditiesResponse"), exports);
|
|
53
63
|
__exportStar(require("./MarketLiquidity"), exports);
|
|
54
64
|
__exportStar(require("./MarketLiquidityResponse"), exports);
|
|
65
|
+
__exportStar(require("./MarketOutcomeResult"), exports);
|
|
55
66
|
__exportStar(require("./MarketOutcomeSummary"), exports);
|
|
56
67
|
__exportStar(require("./MarketPosition"), exports);
|
|
68
|
+
__exportStar(require("./MarketPriceLadder"), exports);
|
|
69
|
+
__exportStar(require("./MarketPriceLadderResponse"), exports);
|
|
57
70
|
__exportStar(require("./MarketResponse"), exports);
|
|
58
71
|
__exportStar(require("./MarketResultRequest"), exports);
|
|
59
72
|
__exportStar(require("./MarketSummary"), exports);
|
|
60
73
|
__exportStar(require("./MarketType"), exports);
|
|
61
74
|
__exportStar(require("./MarketTypeResponse"), exports);
|
|
62
75
|
__exportStar(require("./MarketTypeSummary"), exports);
|
|
76
|
+
__exportStar(require("./MarketUpdateResponse"), exports);
|
|
63
77
|
__exportStar(require("./Meta"), exports);
|
|
78
|
+
__exportStar(require("./ModifyParticipantsRequest"), exports);
|
|
64
79
|
__exportStar(require("./Order"), exports);
|
|
65
80
|
__exportStar(require("./OrderResponse"), exports);
|
|
66
81
|
__exportStar(require("./OrderSummary"), exports);
|
|
67
|
-
__exportStar(require("./
|
|
68
|
-
__exportStar(require("./PageRequest"), exports);
|
|
82
|
+
__exportStar(require("./PageMeta"), exports);
|
|
69
83
|
__exportStar(require("./PagedEventResponse"), exports);
|
|
70
84
|
__exportStar(require("./PagedMarketPositionResponse"), exports);
|
|
71
85
|
__exportStar(require("./PagedOrderResponse"), exports);
|
|
72
86
|
__exportStar(require("./PagedTradeResponse"), exports);
|
|
73
87
|
__exportStar(require("./PagedTransactionResponse"), exports);
|
|
88
|
+
__exportStar(require("./Participant"), exports);
|
|
89
|
+
__exportStar(require("./ParticipantsResponse"), exports);
|
|
74
90
|
__exportStar(require("./Range"), exports);
|
|
75
91
|
__exportStar(require("./RefreshSessionRequest"), exports);
|
|
76
92
|
__exportStar(require("./RenameAPIKeyRequest"), exports);
|
|
@@ -82,9 +98,13 @@ __exportStar(require("./SubcategorySummary"), exports);
|
|
|
82
98
|
__exportStar(require("./ToggleActionRequest"), exports);
|
|
83
99
|
__exportStar(require("./Trade"), exports);
|
|
84
100
|
__exportStar(require("./TradeResponse"), exports);
|
|
101
|
+
__exportStar(require("./TradeSummary"), exports);
|
|
85
102
|
__exportStar(require("./Transaction"), exports);
|
|
86
103
|
__exportStar(require("./TransferResponse"), exports);
|
|
87
104
|
__exportStar(require("./UpdateAppCommissionRateRequest"), exports);
|
|
105
|
+
__exportStar(require("./UpdateDateRequest"), exports);
|
|
106
|
+
__exportStar(require("./UpdateHeartbeatRequest"), exports);
|
|
107
|
+
__exportStar(require("./UpdateNameRequest"), exports);
|
|
88
108
|
__exportStar(require("./Wallet"), exports);
|
|
89
109
|
__exportStar(require("./WalletBalance"), exports);
|
|
90
110
|
__exportStar(require("./WalletResponse"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monaco-protocol/client-v2",
|
|
3
|
-
"version": "0.0.2-dev.
|
|
3
|
+
"version": "0.0.2-dev.10",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"build": "tsc",
|
|
24
24
|
"clean": "rm -rf dist spec.json src",
|
|
25
25
|
"version:dev": "yarn version --prerelease --preid dev",
|
|
26
|
-
"
|
|
26
|
+
"version:prod": "yarn version",
|
|
27
|
+
"publish:dev": "yarn build && npm publish --tag dev --access public --registry=https://registry.npmjs.org",
|
|
28
|
+
"publish:prod": "yarn build && npm publish --access public --registry=https://registry.npmjs.org",
|
|
29
|
+
"release:dev": "yarn version:dev && yarn publish:dev",
|
|
30
|
+
"release:prod": "yarn version && yarn publish:prod"
|
|
27
31
|
}
|
|
28
32
|
}
|
|
@@ -1,53 +0,0 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
-
import type { Category, CategoryResponse, CreateCategoryRequest } from '../models/index';
|
|
14
|
-
export interface Create3Request {
|
|
15
|
-
authorization: string;
|
|
16
|
-
createCategoryRequest: CreateCategoryRequest;
|
|
17
|
-
}
|
|
18
|
-
export interface GetAll2Request {
|
|
19
|
-
authorization: string;
|
|
20
|
-
}
|
|
21
|
-
export interface GetById3Request {
|
|
22
|
-
authorization: string;
|
|
23
|
-
id: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
export declare class MonacoAPIEventCategoriesApi extends runtime.BaseAPI {
|
|
29
|
-
/**
|
|
30
|
-
* Create event category
|
|
31
|
-
*/
|
|
32
|
-
create3Raw(requestParameters: Create3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Category>>;
|
|
33
|
-
/**
|
|
34
|
-
* Create event category
|
|
35
|
-
*/
|
|
36
|
-
create3(requestParameters: Create3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Category>;
|
|
37
|
-
/**
|
|
38
|
-
* Fetch all event categories
|
|
39
|
-
*/
|
|
40
|
-
getAll2Raw(requestParameters: GetAll2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CategoryResponse>>;
|
|
41
|
-
/**
|
|
42
|
-
* Fetch all event categories
|
|
43
|
-
*/
|
|
44
|
-
getAll2(requestParameters: GetAll2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CategoryResponse>;
|
|
45
|
-
/**
|
|
46
|
-
* Fetch event category by id
|
|
47
|
-
*/
|
|
48
|
-
getById3Raw(requestParameters: GetById3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CategoryResponse>>;
|
|
49
|
-
/**
|
|
50
|
-
* Fetch event category by id
|
|
51
|
-
*/
|
|
52
|
-
getById3(requestParameters: GetById3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CategoryResponse>;
|
|
53
|
-
}
|