@monaco-protocol/client-v2 0.0.2-dev.0
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 +46 -0
- package/dist/apis/MonacoAPIAPIKeyManagementApi.d.ts +54 -0
- package/dist/apis/MonacoAPIAPIKeyManagementApi.js +141 -0
- package/dist/apis/MonacoAPIAPIStatusApi.d.ts +26 -0
- package/dist/apis/MonacoAPIAPIStatusApi.js +58 -0
- package/dist/apis/MonacoAPIAppManagementApi.d.ts +66 -0
- package/dist/apis/MonacoAPIAppManagementApi.js +170 -0
- package/dist/apis/MonacoAPICurrenciesApi.d.ts +45 -0
- package/dist/apis/MonacoAPICurrenciesApi.js +102 -0
- package/dist/apis/MonacoAPIEventCategoriesApi.d.ts +53 -0
- package/dist/apis/MonacoAPIEventCategoriesApi.js +134 -0
- package/dist/apis/MonacoAPIEventGroupsApi.d.ts +54 -0
- package/dist/apis/MonacoAPIEventGroupsApi.js +137 -0
- package/dist/apis/MonacoAPIEventSubcategoriesApi.d.ts +54 -0
- package/dist/apis/MonacoAPIEventSubcategoriesApi.js +137 -0
- package/dist/apis/MonacoAPIEventsApi.d.ts +68 -0
- package/dist/apis/MonacoAPIEventsApi.js +158 -0
- package/dist/apis/MonacoAPIMarketTypesApi.d.ts +53 -0
- package/dist/apis/MonacoAPIMarketTypesApi.js +134 -0
- package/dist/apis/MonacoAPIMarketsApi.d.ts +214 -0
- package/dist/apis/MonacoAPIMarketsApi.js +566 -0
- package/dist/apis/MonacoAPIOrdersApi.d.ts +112 -0
- package/dist/apis/MonacoAPIOrdersApi.js +283 -0
- package/dist/apis/MonacoAPISessionManagementApi.d.ts +40 -0
- package/dist/apis/MonacoAPISessionManagementApi.js +93 -0
- package/dist/apis/MonacoAPITradesApi.d.ts +44 -0
- package/dist/apis/MonacoAPITradesApi.js +104 -0
- package/dist/apis/MonacoAPIWalletsApi.d.ts +103 -0
- package/dist/apis/MonacoAPIWalletsApi.js +262 -0
- package/dist/apis/index.d.ts +14 -0
- package/dist/apis/index.js +32 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/APIKey.d.ts +62 -0
- package/dist/models/APIKey.js +58 -0
- package/dist/models/APIKeyResponse.d.ts +40 -0
- package/dist/models/APIKeyResponse.js +52 -0
- package/dist/models/AddMarketOutcomeRequest.d.ts +32 -0
- package/dist/models/AddMarketOutcomeRequest.js +48 -0
- package/dist/models/App.d.ts +69 -0
- package/dist/models/App.js +61 -0
- package/dist/models/AppResponse.d.ts +47 -0
- package/dist/models/AppResponse.js +55 -0
- package/dist/models/AppStatus.d.ts +44 -0
- package/dist/models/AppStatus.js +52 -0
- package/dist/models/AppStatusResponse.d.ts +40 -0
- package/dist/models/AppStatusResponse.js +52 -0
- package/dist/models/Category.d.ts +50 -0
- package/dist/models/Category.js +54 -0
- package/dist/models/CategoryResponse.d.ts +40 -0
- package/dist/models/CategoryResponse.js +52 -0
- package/dist/models/CategorySummary.d.ts +38 -0
- package/dist/models/CategorySummary.js +50 -0
- package/dist/models/CommissionRate.d.ts +44 -0
- package/dist/models/CommissionRate.js +52 -0
- package/dist/models/CommissionRateResponse.d.ts +40 -0
- package/dist/models/CommissionRateResponse.js +52 -0
- package/dist/models/CreateAPIKeyRequest.d.ts +32 -0
- package/dist/models/CreateAPIKeyRequest.js +48 -0
- package/dist/models/CreateAppRequest.d.ts +38 -0
- package/dist/models/CreateAppRequest.js +50 -0
- package/dist/models/CreateCategoryRequest.d.ts +38 -0
- package/dist/models/CreateCategoryRequest.js +50 -0
- package/dist/models/CreateEventGroupRequest.d.ts +44 -0
- package/dist/models/CreateEventGroupRequest.js +52 -0
- package/dist/models/CreateEventRequest.d.ts +56 -0
- package/dist/models/CreateEventRequest.js +56 -0
- package/dist/models/CreateMarketRequest.d.ts +114 -0
- package/dist/models/CreateMarketRequest.js +85 -0
- package/dist/models/CreateMarketTypeRequest.d.ts +45 -0
- package/dist/models/CreateMarketTypeRequest.js +53 -0
- package/dist/models/CreateOrderRequest.d.ts +96 -0
- package/dist/models/CreateOrderRequest.js +79 -0
- package/dist/models/CreateSessionRequest.d.ts +38 -0
- package/dist/models/CreateSessionRequest.js +50 -0
- package/dist/models/CreateSubcategoryRequest.d.ts +44 -0
- package/dist/models/CreateSubcategoryRequest.js +52 -0
- package/dist/models/CreateWalletRequest.d.ts +54 -0
- package/dist/models/CreateWalletRequest.js +62 -0
- package/dist/models/Currency.d.ts +70 -0
- package/dist/models/Currency.js +66 -0
- package/dist/models/CurrencyResponse.d.ts +40 -0
- package/dist/models/CurrencyResponse.js +52 -0
- package/dist/models/DeactivateAPIKeyRequest.d.ts +38 -0
- package/dist/models/DeactivateAPIKeyRequest.js +50 -0
- package/dist/models/DocumentReference.d.ts +38 -0
- package/dist/models/DocumentReference.js +50 -0
- package/dist/models/Event.d.ts +93 -0
- package/dist/models/Event.js +69 -0
- package/dist/models/EventGroup.d.ts +57 -0
- package/dist/models/EventGroup.js +57 -0
- package/dist/models/EventGroupResponse.d.ts +54 -0
- package/dist/models/EventGroupResponse.js +58 -0
- package/dist/models/EventGroupSummary.d.ts +45 -0
- package/dist/models/EventGroupSummary.js +53 -0
- package/dist/models/EventResponse.d.ts +61 -0
- package/dist/models/EventResponse.js +61 -0
- package/dist/models/EventSummary.d.ts +57 -0
- package/dist/models/EventSummary.js +57 -0
- package/dist/models/Market.d.ts +177 -0
- package/dist/models/Market.js +115 -0
- package/dist/models/MarketLiquidity.d.ts +64 -0
- package/dist/models/MarketLiquidity.js +64 -0
- package/dist/models/MarketLiquidityResponse.d.ts +40 -0
- package/dist/models/MarketLiquidityResponse.js +52 -0
- package/dist/models/MarketOutcomeSummary.d.ts +44 -0
- package/dist/models/MarketOutcomeSummary.js +52 -0
- package/dist/models/MarketPosition.d.ts +45 -0
- package/dist/models/MarketPosition.js +53 -0
- package/dist/models/MarketResponse.d.ts +82 -0
- package/dist/models/MarketResponse.js +70 -0
- package/dist/models/MarketResultRequest.d.ts +33 -0
- package/dist/models/MarketResultRequest.js +49 -0
- package/dist/models/MarketSummary.d.ts +76 -0
- package/dist/models/MarketSummary.js +72 -0
- package/dist/models/MarketType.d.ts +57 -0
- package/dist/models/MarketType.js +57 -0
- package/dist/models/MarketTypeResponse.d.ts +40 -0
- package/dist/models/MarketTypeResponse.js +52 -0
- package/dist/models/MarketTypeSummary.d.ts +45 -0
- package/dist/models/MarketTypeSummary.js +53 -0
- package/dist/models/Meta.d.ts +38 -0
- package/dist/models/Meta.js +50 -0
- package/dist/models/Order.d.ts +125 -0
- package/dist/models/Order.js +85 -0
- package/dist/models/OrderResponse.d.ts +54 -0
- package/dist/models/OrderResponse.js +58 -0
- package/dist/models/OrderSummary.d.ts +89 -0
- package/dist/models/OrderSummary.js +73 -0
- package/dist/models/OutcomeResult.d.ts +38 -0
- package/dist/models/OutcomeResult.js +50 -0
- package/dist/models/PageRequest.d.ts +50 -0
- package/dist/models/PageRequest.js +54 -0
- package/dist/models/PagedEventResponse.d.ts +85 -0
- package/dist/models/PagedEventResponse.js +69 -0
- package/dist/models/PagedMarketPositionResponse.d.ts +71 -0
- package/dist/models/PagedMarketPositionResponse.js +63 -0
- package/dist/models/PagedOrderResponse.d.ts +78 -0
- package/dist/models/PagedOrderResponse.js +66 -0
- package/dist/models/PagedTradeResponse.d.ts +85 -0
- package/dist/models/PagedTradeResponse.js +69 -0
- package/dist/models/PagedTransactionResponse.d.ts +64 -0
- package/dist/models/PagedTransactionResponse.js +60 -0
- package/dist/models/Range.d.ts +38 -0
- package/dist/models/Range.js +50 -0
- package/dist/models/RefreshSessionRequest.d.ts +32 -0
- package/dist/models/RefreshSessionRequest.js +48 -0
- package/dist/models/RenameAPIKeyRequest.d.ts +44 -0
- package/dist/models/RenameAPIKeyRequest.js +52 -0
- package/dist/models/Session.d.ts +50 -0
- package/dist/models/Session.js +54 -0
- package/dist/models/SessionResponse.d.ts +40 -0
- package/dist/models/SessionResponse.js +52 -0
- package/dist/models/Subcategory.d.ts +57 -0
- package/dist/models/Subcategory.js +57 -0
- package/dist/models/SubcategoryResponse.d.ts +47 -0
- package/dist/models/SubcategoryResponse.js +55 -0
- package/dist/models/SubcategorySummary.d.ts +45 -0
- package/dist/models/SubcategorySummary.js +53 -0
- package/dist/models/ToggleActionRequest.d.ts +32 -0
- package/dist/models/ToggleActionRequest.js +48 -0
- package/dist/models/Trade.d.ts +95 -0
- package/dist/models/Trade.js +75 -0
- package/dist/models/TradeResponse.d.ts +61 -0
- package/dist/models/TradeResponse.js +61 -0
- package/dist/models/Transaction.d.ts +81 -0
- package/dist/models/Transaction.js +73 -0
- package/dist/models/TransferResponse.d.ts +46 -0
- package/dist/models/TransferResponse.js +54 -0
- package/dist/models/UpdateAppCommissionRateRequest.d.ts +32 -0
- package/dist/models/UpdateAppCommissionRateRequest.js +48 -0
- package/dist/models/Wallet.d.ts +75 -0
- package/dist/models/Wallet.js +70 -0
- package/dist/models/WalletBalance.d.ts +44 -0
- package/dist/models/WalletBalance.js +52 -0
- package/dist/models/WalletResponse.d.ts +40 -0
- package/dist/models/WalletResponse.js +52 -0
- package/dist/models/index.d.ts +72 -0
- package/dist/models/index.js +90 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +346 -0
- package/package.json +28 -0
|
@@ -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.instanceOfWalletBalance = instanceOfWalletBalance;
|
|
17
|
+
exports.WalletBalanceFromJSON = WalletBalanceFromJSON;
|
|
18
|
+
exports.WalletBalanceFromJSONTyped = WalletBalanceFromJSONTyped;
|
|
19
|
+
exports.WalletBalanceToJSON = WalletBalanceToJSON;
|
|
20
|
+
exports.WalletBalanceToJSONTyped = WalletBalanceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WalletBalance interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWalletBalance(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function WalletBalanceFromJSON(json) {
|
|
28
|
+
return WalletBalanceFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function WalletBalanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'currencyId': json['currencyId'] == null ? undefined : json['currencyId'],
|
|
36
|
+
'balance': json['balance'] == null ? undefined : json['balance'],
|
|
37
|
+
'balanceAvailable': json['balanceAvailable'] == null ? undefined : json['balanceAvailable'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function WalletBalanceToJSON(json) {
|
|
41
|
+
return WalletBalanceToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function WalletBalanceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'currencyId': value['currencyId'],
|
|
49
|
+
'balance': value['balance'],
|
|
50
|
+
'balanceAvailable': value['balanceAvailable'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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 { Wallet } from './Wallet';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WalletResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface WalletResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof WalletResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<Wallet>}
|
|
29
|
+
* @memberof WalletResponse
|
|
30
|
+
*/
|
|
31
|
+
wallets?: Array<Wallet>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the WalletResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfWalletResponse(value: object): value is WalletResponse;
|
|
37
|
+
export declare function WalletResponseFromJSON(json: any): WalletResponse;
|
|
38
|
+
export declare function WalletResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletResponse;
|
|
39
|
+
export declare function WalletResponseToJSON(json: any): WalletResponse;
|
|
40
|
+
export declare function WalletResponseToJSONTyped(value?: WalletResponse | 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.instanceOfWalletResponse = instanceOfWalletResponse;
|
|
17
|
+
exports.WalletResponseFromJSON = WalletResponseFromJSON;
|
|
18
|
+
exports.WalletResponseFromJSONTyped = WalletResponseFromJSONTyped;
|
|
19
|
+
exports.WalletResponseToJSON = WalletResponseToJSON;
|
|
20
|
+
exports.WalletResponseToJSONTyped = WalletResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const Wallet_1 = require("./Wallet");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the WalletResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfWalletResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function WalletResponseFromJSON(json) {
|
|
30
|
+
return WalletResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function WalletResponseFromJSONTyped(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
|
+
'wallets': json['wallets'] == null ? undefined : (json['wallets'].map(Wallet_1.WalletFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function WalletResponseToJSON(json) {
|
|
42
|
+
return WalletResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function WalletResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'wallets': value['wallets'] == null ? undefined : (value['wallets'].map(Wallet_1.WalletToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export * from './APIKey';
|
|
2
|
+
export * from './APIKeyResponse';
|
|
3
|
+
export * from './AddMarketOutcomeRequest';
|
|
4
|
+
export * from './App';
|
|
5
|
+
export * from './AppResponse';
|
|
6
|
+
export * from './AppStatus';
|
|
7
|
+
export * from './AppStatusResponse';
|
|
8
|
+
export * from './Category';
|
|
9
|
+
export * from './CategoryResponse';
|
|
10
|
+
export * from './CategorySummary';
|
|
11
|
+
export * from './CommissionRate';
|
|
12
|
+
export * from './CommissionRateResponse';
|
|
13
|
+
export * from './CreateAPIKeyRequest';
|
|
14
|
+
export * from './CreateAppRequest';
|
|
15
|
+
export * from './CreateCategoryRequest';
|
|
16
|
+
export * from './CreateEventGroupRequest';
|
|
17
|
+
export * from './CreateEventRequest';
|
|
18
|
+
export * from './CreateMarketRequest';
|
|
19
|
+
export * from './CreateMarketTypeRequest';
|
|
20
|
+
export * from './CreateOrderRequest';
|
|
21
|
+
export * from './CreateSessionRequest';
|
|
22
|
+
export * from './CreateSubcategoryRequest';
|
|
23
|
+
export * from './CreateWalletRequest';
|
|
24
|
+
export * from './Currency';
|
|
25
|
+
export * from './CurrencyResponse';
|
|
26
|
+
export * from './DeactivateAPIKeyRequest';
|
|
27
|
+
export * from './DocumentReference';
|
|
28
|
+
export * from './Event';
|
|
29
|
+
export * from './EventGroup';
|
|
30
|
+
export * from './EventGroupResponse';
|
|
31
|
+
export * from './EventGroupSummary';
|
|
32
|
+
export * from './EventResponse';
|
|
33
|
+
export * from './EventSummary';
|
|
34
|
+
export * from './Market';
|
|
35
|
+
export * from './MarketLiquidity';
|
|
36
|
+
export * from './MarketLiquidityResponse';
|
|
37
|
+
export * from './MarketOutcomeSummary';
|
|
38
|
+
export * from './MarketPosition';
|
|
39
|
+
export * from './MarketResponse';
|
|
40
|
+
export * from './MarketResultRequest';
|
|
41
|
+
export * from './MarketSummary';
|
|
42
|
+
export * from './MarketType';
|
|
43
|
+
export * from './MarketTypeResponse';
|
|
44
|
+
export * from './MarketTypeSummary';
|
|
45
|
+
export * from './Meta';
|
|
46
|
+
export * from './Order';
|
|
47
|
+
export * from './OrderResponse';
|
|
48
|
+
export * from './OrderSummary';
|
|
49
|
+
export * from './OutcomeResult';
|
|
50
|
+
export * from './PageRequest';
|
|
51
|
+
export * from './PagedEventResponse';
|
|
52
|
+
export * from './PagedMarketPositionResponse';
|
|
53
|
+
export * from './PagedOrderResponse';
|
|
54
|
+
export * from './PagedTradeResponse';
|
|
55
|
+
export * from './PagedTransactionResponse';
|
|
56
|
+
export * from './Range';
|
|
57
|
+
export * from './RefreshSessionRequest';
|
|
58
|
+
export * from './RenameAPIKeyRequest';
|
|
59
|
+
export * from './Session';
|
|
60
|
+
export * from './SessionResponse';
|
|
61
|
+
export * from './Subcategory';
|
|
62
|
+
export * from './SubcategoryResponse';
|
|
63
|
+
export * from './SubcategorySummary';
|
|
64
|
+
export * from './ToggleActionRequest';
|
|
65
|
+
export * from './Trade';
|
|
66
|
+
export * from './TradeResponse';
|
|
67
|
+
export * from './Transaction';
|
|
68
|
+
export * from './TransferResponse';
|
|
69
|
+
export * from './UpdateAppCommissionRateRequest';
|
|
70
|
+
export * from './Wallet';
|
|
71
|
+
export * from './WalletBalance';
|
|
72
|
+
export * from './WalletResponse';
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./APIKey"), exports);
|
|
20
|
+
__exportStar(require("./APIKeyResponse"), exports);
|
|
21
|
+
__exportStar(require("./AddMarketOutcomeRequest"), exports);
|
|
22
|
+
__exportStar(require("./App"), exports);
|
|
23
|
+
__exportStar(require("./AppResponse"), exports);
|
|
24
|
+
__exportStar(require("./AppStatus"), exports);
|
|
25
|
+
__exportStar(require("./AppStatusResponse"), exports);
|
|
26
|
+
__exportStar(require("./Category"), exports);
|
|
27
|
+
__exportStar(require("./CategoryResponse"), exports);
|
|
28
|
+
__exportStar(require("./CategorySummary"), exports);
|
|
29
|
+
__exportStar(require("./CommissionRate"), exports);
|
|
30
|
+
__exportStar(require("./CommissionRateResponse"), exports);
|
|
31
|
+
__exportStar(require("./CreateAPIKeyRequest"), exports);
|
|
32
|
+
__exportStar(require("./CreateAppRequest"), exports);
|
|
33
|
+
__exportStar(require("./CreateCategoryRequest"), exports);
|
|
34
|
+
__exportStar(require("./CreateEventGroupRequest"), exports);
|
|
35
|
+
__exportStar(require("./CreateEventRequest"), exports);
|
|
36
|
+
__exportStar(require("./CreateMarketRequest"), exports);
|
|
37
|
+
__exportStar(require("./CreateMarketTypeRequest"), exports);
|
|
38
|
+
__exportStar(require("./CreateOrderRequest"), exports);
|
|
39
|
+
__exportStar(require("./CreateSessionRequest"), exports);
|
|
40
|
+
__exportStar(require("./CreateSubcategoryRequest"), exports);
|
|
41
|
+
__exportStar(require("./CreateWalletRequest"), exports);
|
|
42
|
+
__exportStar(require("./Currency"), exports);
|
|
43
|
+
__exportStar(require("./CurrencyResponse"), exports);
|
|
44
|
+
__exportStar(require("./DeactivateAPIKeyRequest"), exports);
|
|
45
|
+
__exportStar(require("./DocumentReference"), exports);
|
|
46
|
+
__exportStar(require("./Event"), exports);
|
|
47
|
+
__exportStar(require("./EventGroup"), exports);
|
|
48
|
+
__exportStar(require("./EventGroupResponse"), exports);
|
|
49
|
+
__exportStar(require("./EventGroupSummary"), exports);
|
|
50
|
+
__exportStar(require("./EventResponse"), exports);
|
|
51
|
+
__exportStar(require("./EventSummary"), exports);
|
|
52
|
+
__exportStar(require("./Market"), exports);
|
|
53
|
+
__exportStar(require("./MarketLiquidity"), exports);
|
|
54
|
+
__exportStar(require("./MarketLiquidityResponse"), exports);
|
|
55
|
+
__exportStar(require("./MarketOutcomeSummary"), exports);
|
|
56
|
+
__exportStar(require("./MarketPosition"), exports);
|
|
57
|
+
__exportStar(require("./MarketResponse"), exports);
|
|
58
|
+
__exportStar(require("./MarketResultRequest"), exports);
|
|
59
|
+
__exportStar(require("./MarketSummary"), exports);
|
|
60
|
+
__exportStar(require("./MarketType"), exports);
|
|
61
|
+
__exportStar(require("./MarketTypeResponse"), exports);
|
|
62
|
+
__exportStar(require("./MarketTypeSummary"), exports);
|
|
63
|
+
__exportStar(require("./Meta"), exports);
|
|
64
|
+
__exportStar(require("./Order"), exports);
|
|
65
|
+
__exportStar(require("./OrderResponse"), exports);
|
|
66
|
+
__exportStar(require("./OrderSummary"), exports);
|
|
67
|
+
__exportStar(require("./OutcomeResult"), exports);
|
|
68
|
+
__exportStar(require("./PageRequest"), exports);
|
|
69
|
+
__exportStar(require("./PagedEventResponse"), exports);
|
|
70
|
+
__exportStar(require("./PagedMarketPositionResponse"), exports);
|
|
71
|
+
__exportStar(require("./PagedOrderResponse"), exports);
|
|
72
|
+
__exportStar(require("./PagedTradeResponse"), exports);
|
|
73
|
+
__exportStar(require("./PagedTransactionResponse"), exports);
|
|
74
|
+
__exportStar(require("./Range"), exports);
|
|
75
|
+
__exportStar(require("./RefreshSessionRequest"), exports);
|
|
76
|
+
__exportStar(require("./RenameAPIKeyRequest"), exports);
|
|
77
|
+
__exportStar(require("./Session"), exports);
|
|
78
|
+
__exportStar(require("./SessionResponse"), exports);
|
|
79
|
+
__exportStar(require("./Subcategory"), exports);
|
|
80
|
+
__exportStar(require("./SubcategoryResponse"), exports);
|
|
81
|
+
__exportStar(require("./SubcategorySummary"), exports);
|
|
82
|
+
__exportStar(require("./ToggleActionRequest"), exports);
|
|
83
|
+
__exportStar(require("./Trade"), exports);
|
|
84
|
+
__exportStar(require("./TradeResponse"), exports);
|
|
85
|
+
__exportStar(require("./Transaction"), exports);
|
|
86
|
+
__exportStar(require("./TransferResponse"), exports);
|
|
87
|
+
__exportStar(require("./UpdateAppCommissionRateRequest"), exports);
|
|
88
|
+
__exportStar(require("./Wallet"), exports);
|
|
89
|
+
__exportStar(require("./WalletBalance"), exports);
|
|
90
|
+
__exportStar(require("./WalletResponse"), exports);
|
|
@@ -0,0 +1,182 @@
|
|
|
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
|
+
export declare const BASE_PATH: string;
|
|
13
|
+
export interface ConfigurationParameters {
|
|
14
|
+
basePath?: string;
|
|
15
|
+
fetchApi?: FetchAPI;
|
|
16
|
+
middleware?: Middleware[];
|
|
17
|
+
queryParamsStringify?: (params: HTTPQuery) => string;
|
|
18
|
+
username?: string;
|
|
19
|
+
password?: string;
|
|
20
|
+
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
|
|
21
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
|
|
22
|
+
headers?: HTTPHeaders;
|
|
23
|
+
credentials?: RequestCredentials;
|
|
24
|
+
}
|
|
25
|
+
export declare class Configuration {
|
|
26
|
+
private configuration;
|
|
27
|
+
constructor(configuration?: ConfigurationParameters);
|
|
28
|
+
set config(configuration: Configuration);
|
|
29
|
+
get basePath(): string;
|
|
30
|
+
get fetchApi(): FetchAPI | undefined;
|
|
31
|
+
get middleware(): Middleware[];
|
|
32
|
+
get queryParamsStringify(): (params: HTTPQuery) => string;
|
|
33
|
+
get username(): string | undefined;
|
|
34
|
+
get password(): string | undefined;
|
|
35
|
+
get apiKey(): ((name: string) => string | Promise<string>) | undefined;
|
|
36
|
+
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
|
|
37
|
+
get headers(): HTTPHeaders | undefined;
|
|
38
|
+
get credentials(): RequestCredentials | undefined;
|
|
39
|
+
}
|
|
40
|
+
export declare const DefaultConfig: Configuration;
|
|
41
|
+
/**
|
|
42
|
+
* This is the base class for all generated API classes.
|
|
43
|
+
*/
|
|
44
|
+
export declare class BaseAPI {
|
|
45
|
+
protected configuration: Configuration;
|
|
46
|
+
private static readonly jsonRegex;
|
|
47
|
+
private middleware;
|
|
48
|
+
constructor(configuration?: Configuration);
|
|
49
|
+
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
50
|
+
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
51
|
+
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
|
52
|
+
/**
|
|
53
|
+
* Check if the given MIME is a JSON MIME.
|
|
54
|
+
* JSON MIME examples:
|
|
55
|
+
* application/json
|
|
56
|
+
* application/json; charset=UTF8
|
|
57
|
+
* APPLICATION/JSON
|
|
58
|
+
* application/vnd.company+json
|
|
59
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
60
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
61
|
+
*/
|
|
62
|
+
protected isJsonMime(mime: string | null | undefined): boolean;
|
|
63
|
+
protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
|
|
64
|
+
private createFetchParams;
|
|
65
|
+
private fetchApi;
|
|
66
|
+
/**
|
|
67
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
68
|
+
* and then shallow cloning data members.
|
|
69
|
+
*/
|
|
70
|
+
private clone;
|
|
71
|
+
}
|
|
72
|
+
export declare class ResponseError extends Error {
|
|
73
|
+
response: Response;
|
|
74
|
+
name: "ResponseError";
|
|
75
|
+
constructor(response: Response, msg?: string);
|
|
76
|
+
}
|
|
77
|
+
export declare class FetchError extends Error {
|
|
78
|
+
cause: Error;
|
|
79
|
+
name: "FetchError";
|
|
80
|
+
constructor(cause: Error, msg?: string);
|
|
81
|
+
}
|
|
82
|
+
export declare class RequiredError extends Error {
|
|
83
|
+
field: string;
|
|
84
|
+
name: "RequiredError";
|
|
85
|
+
constructor(field: string, msg?: string);
|
|
86
|
+
}
|
|
87
|
+
export declare const COLLECTION_FORMATS: {
|
|
88
|
+
csv: string;
|
|
89
|
+
ssv: string;
|
|
90
|
+
tsv: string;
|
|
91
|
+
pipes: string;
|
|
92
|
+
};
|
|
93
|
+
export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
94
|
+
export type Json = any;
|
|
95
|
+
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
96
|
+
export type HTTPHeaders = {
|
|
97
|
+
[key: string]: string;
|
|
98
|
+
};
|
|
99
|
+
export type HTTPQuery = {
|
|
100
|
+
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
|
|
101
|
+
};
|
|
102
|
+
export type HTTPBody = Json | FormData | URLSearchParams;
|
|
103
|
+
export type HTTPRequestInit = {
|
|
104
|
+
headers?: HTTPHeaders;
|
|
105
|
+
method: HTTPMethod;
|
|
106
|
+
credentials?: RequestCredentials;
|
|
107
|
+
body?: HTTPBody;
|
|
108
|
+
};
|
|
109
|
+
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
110
|
+
export type InitOverrideFunction = (requestContext: {
|
|
111
|
+
init: HTTPRequestInit;
|
|
112
|
+
context: RequestOpts;
|
|
113
|
+
}) => Promise<RequestInit>;
|
|
114
|
+
export interface FetchParams {
|
|
115
|
+
url: string;
|
|
116
|
+
init: RequestInit;
|
|
117
|
+
}
|
|
118
|
+
export interface RequestOpts {
|
|
119
|
+
path: string;
|
|
120
|
+
method: HTTPMethod;
|
|
121
|
+
headers: HTTPHeaders;
|
|
122
|
+
query?: HTTPQuery;
|
|
123
|
+
body?: HTTPBody;
|
|
124
|
+
}
|
|
125
|
+
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
126
|
+
export declare function exists(json: any, key: string): boolean;
|
|
127
|
+
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
128
|
+
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
129
|
+
export interface Consume {
|
|
130
|
+
contentType: string;
|
|
131
|
+
}
|
|
132
|
+
export interface RequestContext {
|
|
133
|
+
fetch: FetchAPI;
|
|
134
|
+
url: string;
|
|
135
|
+
init: RequestInit;
|
|
136
|
+
}
|
|
137
|
+
export interface ResponseContext {
|
|
138
|
+
fetch: FetchAPI;
|
|
139
|
+
url: string;
|
|
140
|
+
init: RequestInit;
|
|
141
|
+
response: Response;
|
|
142
|
+
}
|
|
143
|
+
export interface ErrorContext {
|
|
144
|
+
fetch: FetchAPI;
|
|
145
|
+
url: string;
|
|
146
|
+
init: RequestInit;
|
|
147
|
+
error: unknown;
|
|
148
|
+
response?: Response;
|
|
149
|
+
}
|
|
150
|
+
export interface Middleware {
|
|
151
|
+
pre?(context: RequestContext): Promise<FetchParams | void>;
|
|
152
|
+
post?(context: ResponseContext): Promise<Response | void>;
|
|
153
|
+
onError?(context: ErrorContext): Promise<Response | void>;
|
|
154
|
+
}
|
|
155
|
+
export interface ApiResponse<T> {
|
|
156
|
+
raw: Response;
|
|
157
|
+
value(): Promise<T>;
|
|
158
|
+
}
|
|
159
|
+
export interface ResponseTransformer<T> {
|
|
160
|
+
(json: any): T;
|
|
161
|
+
}
|
|
162
|
+
export declare class JSONApiResponse<T> {
|
|
163
|
+
raw: Response;
|
|
164
|
+
private transformer;
|
|
165
|
+
constructor(raw: Response, transformer?: ResponseTransformer<T>);
|
|
166
|
+
value(): Promise<T>;
|
|
167
|
+
}
|
|
168
|
+
export declare class VoidApiResponse {
|
|
169
|
+
raw: Response;
|
|
170
|
+
constructor(raw: Response);
|
|
171
|
+
value(): Promise<void>;
|
|
172
|
+
}
|
|
173
|
+
export declare class BlobApiResponse {
|
|
174
|
+
raw: Response;
|
|
175
|
+
constructor(raw: Response);
|
|
176
|
+
value(): Promise<Blob>;
|
|
177
|
+
}
|
|
178
|
+
export declare class TextApiResponse {
|
|
179
|
+
raw: Response;
|
|
180
|
+
constructor(raw: Response);
|
|
181
|
+
value(): Promise<string>;
|
|
182
|
+
}
|