@monaco-protocol/client-v2 0.0.2-dev.0 → 0.0.2-dev.3
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} +1 -1
- package/dist/apis/{MonacoAPIAPIKeyManagementApi.js → APIKeyManagementApi.js} +3 -3
- package/dist/apis/{MonacoAPIAppManagementApi.d.ts → AppManagementApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIAppManagementApi.js → AppManagementApi.js} +3 -3
- package/dist/apis/{MonacoAPICurrenciesApi.d.ts → CurrenciesApi.d.ts} +2 -2
- package/dist/apis/{MonacoAPICurrenciesApi.js → CurrenciesApi.js} +3 -3
- package/dist/apis/{MonacoAPIEventCategoriesApi.d.ts → EventCategoriesApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIEventCategoriesApi.js → EventCategoriesApi.js} +3 -3
- package/dist/apis/{MonacoAPIEventGroupsApi.d.ts → EventGroupsApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIEventGroupsApi.js → EventGroupsApi.js} +3 -3
- package/dist/apis/{MonacoAPIEventSubcategoriesApi.d.ts → EventSubcategoriesApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIEventSubcategoriesApi.js → EventSubcategoriesApi.js} +3 -3
- package/dist/apis/{MonacoAPIEventsApi.d.ts → EventsApi.d.ts} +5 -3
- package/dist/apis/{MonacoAPIEventsApi.js → EventsApi.js} +9 -3
- package/dist/apis/MarketPricesApi.d.ts +30 -0
- package/dist/apis/MarketPricesApi.js +70 -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} +31 -16
- package/dist/apis/{MonacoAPIMarketsApi.js → MarketsApi.js} +49 -5
- package/dist/apis/{MonacoAPIOrdersApi.d.ts → OrdersApi.d.ts} +18 -17
- package/dist/apis/{MonacoAPIOrdersApi.js → OrdersApi.js} +14 -10
- package/dist/apis/{MonacoAPISessionManagementApi.d.ts → SessionManagementApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPISessionManagementApi.js → SessionManagementApi.js} +3 -3
- 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} +5 -4
- package/dist/apis/{MonacoAPITradesApi.js → TradesApi.js} +9 -3
- package/dist/apis/{MonacoAPIWalletsApi.d.ts → WalletsApi.d.ts} +2 -2
- package/dist/apis/{MonacoAPIWalletsApi.js → WalletsApi.js} +3 -3
- package/dist/apis/index.d.ts +15 -14
- package/dist/apis/index.js +15 -14
- package/dist/models/ChunkOrderResponse.d.ts +60 -0
- package/dist/models/ChunkOrderResponse.js +60 -0
- package/dist/models/CommissionRate.d.ts +2 -2
- package/dist/models/CreateMarketRequest.d.ts +2 -2
- package/dist/models/CreateOrderRequest.d.ts +2 -2
- package/dist/models/Currency.d.ts +2 -2
- package/dist/models/Event.d.ts +2 -2
- package/dist/models/EventSummary.d.ts +2 -2
- package/dist/models/Market.d.ts +4 -4
- 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/MarketOutcomeSummary.d.ts +2 -2
- package/dist/models/MarketSummary.d.ts +2 -2
- package/dist/models/Order.d.ts +20 -4
- package/dist/models/Order.js +12 -1
- package/dist/models/OrderSummary.d.ts +2 -2
- package/dist/models/OutcomeResult.d.ts +2 -2
- package/dist/models/ToggleActionRequest.d.ts +1 -1
- package/dist/models/Trade.d.ts +2 -2
- package/dist/models/Transaction.d.ts +3 -2
- package/dist/models/Transaction.js +2 -1
- package/dist/models/WalletBalance.d.ts +2 -2
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.js +1 -1
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -1,46 +1,52 @@
|
|
|
1
|
-
## @monaco-protocol/client-v2
|
|
1
|
+
## @monaco-protocol/client-v2
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Typescript client for Monaco Protocol API v2
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
* Node.js
|
|
7
|
-
* Webpack
|
|
8
|
-
* Browserify
|
|
5
|
+
### Generating OpenAPI Client
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
* ES5 - you must have a Promises/A+ library installed
|
|
12
|
-
* ES6
|
|
7
|
+
To generate the OpenAPI client, run the following commands:
|
|
13
8
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
```
|
|
10
|
+
export $OPENAPI_URL # first export the OpenAPI URL
|
|
11
|
+
yarn generate
|
|
12
|
+
```
|
|
17
13
|
|
|
18
|
-
|
|
14
|
+
alternatively
|
|
15
|
+
```
|
|
16
|
+
OPENAPI_URL=https://docs.api.monacoprotocol.xyz/v1/exchange-openapi.json yarn generate
|
|
17
|
+
```
|
|
19
18
|
|
|
20
|
-
###
|
|
19
|
+
### Releasing
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
Build, version and publish a new version using the `release` commands:
|
|
23
22
|
```
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
yarn release:dev # yarn version:dev && yarn publish:dev
|
|
24
|
+
yarn release:prod # yarn version:prod && yarn publish:prod
|
|
26
25
|
```
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
First build the package then run `npm publish`
|
|
27
|
+
Alternatively, use individual commands below
|
|
31
28
|
|
|
32
|
-
###
|
|
29
|
+
### Building
|
|
33
30
|
|
|
34
|
-
|
|
31
|
+
Build and generate dist:
|
|
32
|
+
```
|
|
33
|
+
yarn build
|
|
34
|
+
```
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
### Versioning
|
|
37
37
|
|
|
38
|
+
Bump the version using these commands, this creates a new commit in the repository:
|
|
38
39
|
```
|
|
39
|
-
|
|
40
|
+
yarn version:dev
|
|
41
|
+
yarn version:prod
|
|
40
42
|
```
|
|
41
43
|
|
|
42
|
-
|
|
44
|
+
### Publishing
|
|
45
|
+
|
|
46
|
+
Publish the package using:
|
|
43
47
|
|
|
44
48
|
```
|
|
45
|
-
|
|
49
|
+
yarn publish:dev
|
|
50
|
+
yarn publish:prod
|
|
46
51
|
```
|
|
52
|
+
|
|
@@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.APIKeyManagementApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class APIKeyManagementApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
33
|
* Create api key
|
|
34
34
|
*/
|
|
@@ -138,4 +138,4 @@ class MonacoAPIAPIKeyManagementApi extends runtime.BaseAPI {
|
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
exports.
|
|
141
|
+
exports.APIKeyManagementApi = APIKeyManagementApi;
|
|
@@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.AppManagementApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class AppManagementApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
33
|
* Create app
|
|
34
34
|
*/
|
|
@@ -167,4 +167,4 @@ class MonacoAPIAppManagementApi extends runtime.BaseAPI {
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
exports.
|
|
170
|
+
exports.AppManagementApi = AppManagementApi;
|
|
@@ -16,12 +16,12 @@ export interface CurrenciesRequest {
|
|
|
16
16
|
}
|
|
17
17
|
export interface GetById2Request {
|
|
18
18
|
authorization: string;
|
|
19
|
-
id:
|
|
19
|
+
id: string;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
|
-
export declare class
|
|
24
|
+
export declare class CurrenciesApi extends runtime.BaseAPI {
|
|
25
25
|
/**
|
|
26
26
|
* Returns the list of currencies supported by the exchange
|
|
27
27
|
* Fetch a list of supported currencies
|
|
@@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.CurrenciesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class CurrenciesApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
33
|
* Returns the list of currencies supported by the exchange
|
|
34
34
|
* Fetch a list of supported currencies
|
|
@@ -99,4 +99,4 @@ class MonacoAPICurrenciesApi extends runtime.BaseAPI {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
exports.
|
|
102
|
+
exports.CurrenciesApi = CurrenciesApi;
|
|
@@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.EventCategoriesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class EventCategoriesApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
33
|
* Create event category
|
|
34
34
|
*/
|
|
@@ -131,4 +131,4 @@ class MonacoAPIEventCategoriesApi extends runtime.BaseAPI {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
exports.
|
|
134
|
+
exports.EventCategoriesApi = EventCategoriesApi;
|
|
@@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.EventGroupsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class EventGroupsApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
33
|
* Create event group
|
|
34
34
|
*/
|
|
@@ -134,4 +134,4 @@ class MonacoAPIEventGroupsApi extends runtime.BaseAPI {
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
exports.
|
|
137
|
+
exports.EventGroupsApi = EventGroupsApi;
|
|
@@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.EventSubcategoriesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class EventSubcategoriesApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
33
|
* Create sub-category
|
|
34
34
|
*/
|
|
@@ -134,4 +134,4 @@ class MonacoAPIEventSubcategoriesApi extends runtime.BaseAPI {
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
exports.
|
|
137
|
+
exports.EventSubcategoriesApi = EventSubcategoriesApi;
|
|
@@ -17,20 +17,22 @@ export interface CreateEventOperationRequest {
|
|
|
17
17
|
}
|
|
18
18
|
export interface GetEventRequest {
|
|
19
19
|
authorization: string;
|
|
20
|
-
id:
|
|
20
|
+
id: string;
|
|
21
21
|
}
|
|
22
22
|
export interface GetEventsRequest {
|
|
23
23
|
authorization: string;
|
|
24
|
-
ids?: Set<
|
|
24
|
+
ids?: Set<string>;
|
|
25
|
+
ownerAppIds?: Set<string>;
|
|
25
26
|
starting?: GetEventsStartingEnum;
|
|
26
27
|
fromDateTime?: Date;
|
|
27
28
|
toDateTime?: Date;
|
|
29
|
+
active?: boolean;
|
|
28
30
|
page?: PageRequest;
|
|
29
31
|
}
|
|
30
32
|
/**
|
|
31
33
|
*
|
|
32
34
|
*/
|
|
33
|
-
export declare class
|
|
35
|
+
export declare class EventsApi extends runtime.BaseAPI {
|
|
34
36
|
/**
|
|
35
37
|
* Create event
|
|
36
38
|
*/
|
|
@@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.GetEventsStartingEnum = exports.
|
|
25
|
+
exports.GetEventsStartingEnum = exports.EventsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class EventsApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
33
|
* Create event
|
|
34
34
|
*/
|
|
@@ -111,6 +111,9 @@ class MonacoAPIEventsApi extends runtime.BaseAPI {
|
|
|
111
111
|
if (requestParameters['ids'] != null) {
|
|
112
112
|
queryParameters['ids'] = requestParameters['ids'];
|
|
113
113
|
}
|
|
114
|
+
if (requestParameters['ownerAppIds'] != null) {
|
|
115
|
+
queryParameters['ownerAppIds'] = requestParameters['ownerAppIds'];
|
|
116
|
+
}
|
|
114
117
|
if (requestParameters['starting'] != null) {
|
|
115
118
|
queryParameters['starting'] = requestParameters['starting'];
|
|
116
119
|
}
|
|
@@ -120,6 +123,9 @@ class MonacoAPIEventsApi extends runtime.BaseAPI {
|
|
|
120
123
|
if (requestParameters['toDateTime'] != null) {
|
|
121
124
|
queryParameters['toDateTime'] = requestParameters['toDateTime'].toISOString();
|
|
122
125
|
}
|
|
126
|
+
if (requestParameters['active'] != null) {
|
|
127
|
+
queryParameters['active'] = requestParameters['active'];
|
|
128
|
+
}
|
|
123
129
|
if (requestParameters['page'] != null) {
|
|
124
130
|
queryParameters['page'] = requestParameters['page'];
|
|
125
131
|
}
|
|
@@ -146,7 +152,7 @@ class MonacoAPIEventsApi extends runtime.BaseAPI {
|
|
|
146
152
|
});
|
|
147
153
|
}
|
|
148
154
|
}
|
|
149
|
-
exports.
|
|
155
|
+
exports.EventsApi = EventsApi;
|
|
150
156
|
/**
|
|
151
157
|
* @export
|
|
152
158
|
*/
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { MarketLiquiditiesResponse } from '../models/index';
|
|
14
|
+
export interface GetMarketPrices1Request {
|
|
15
|
+
authorization: string;
|
|
16
|
+
marketIds: Array<string>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare class MarketPricesApi extends runtime.BaseAPI {
|
|
22
|
+
/**
|
|
23
|
+
* Fetch market prices
|
|
24
|
+
*/
|
|
25
|
+
getMarketPrices1Raw(requestParameters: GetMarketPrices1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MarketLiquiditiesResponse>>;
|
|
26
|
+
/**
|
|
27
|
+
* Fetch market prices
|
|
28
|
+
*/
|
|
29
|
+
getMarketPrices1(requestParameters: GetMarketPrices1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MarketLiquiditiesResponse>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.MarketPricesApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class MarketPricesApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Fetch market prices
|
|
34
|
+
*/
|
|
35
|
+
getMarketPrices1Raw(requestParameters, initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['authorization'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getMarketPrices1().');
|
|
39
|
+
}
|
|
40
|
+
if (requestParameters['marketIds'] == null) {
|
|
41
|
+
throw new runtime.RequiredError('marketIds', 'Required parameter "marketIds" was null or undefined when calling getMarketPrices1().');
|
|
42
|
+
}
|
|
43
|
+
const queryParameters = {};
|
|
44
|
+
if (requestParameters['marketIds'] != null) {
|
|
45
|
+
queryParameters['marketIds'] = requestParameters['marketIds'];
|
|
46
|
+
}
|
|
47
|
+
const headerParameters = {};
|
|
48
|
+
if (requestParameters['authorization'] != null) {
|
|
49
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
50
|
+
}
|
|
51
|
+
const response = yield this.request({
|
|
52
|
+
path: `/market-prices`,
|
|
53
|
+
method: 'GET',
|
|
54
|
+
headers: headerParameters,
|
|
55
|
+
query: queryParameters,
|
|
56
|
+
}, initOverrides);
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MarketLiquiditiesResponseFromJSON)(jsonValue));
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Fetch market prices
|
|
62
|
+
*/
|
|
63
|
+
getMarketPrices1(requestParameters, initOverrides) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const response = yield this.getMarketPrices1Raw(requestParameters, initOverrides);
|
|
66
|
+
return yield response.value();
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.MarketPricesApi = MarketPricesApi;
|
|
@@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.MarketTypesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class MarketTypesApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
33
|
* Create market type
|
|
34
34
|
*/
|
|
@@ -131,4 +131,4 @@ class MonacoAPIMarketTypesApi extends runtime.BaseAPI {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
exports.
|
|
134
|
+
exports.MarketTypesApi = MarketTypesApi;
|
|
@@ -13,7 +13,7 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { AddMarketOutcomeRequest, CreateMarketRequest, MarketLiquidityResponse, MarketResponse, MarketResultRequest, PageRequest, PagedMarketPositionResponse, PagedOrderResponse, ToggleActionRequest } from '../models/index';
|
|
14
14
|
export interface AddMarketOutcomeOperationRequest {
|
|
15
15
|
authorization: string;
|
|
16
|
-
id:
|
|
16
|
+
id: string;
|
|
17
17
|
addMarketOutcomeRequest: AddMarketOutcomeRequest;
|
|
18
18
|
}
|
|
19
19
|
export interface CreateMarketOperationRequest {
|
|
@@ -22,69 +22,76 @@ export interface CreateMarketOperationRequest {
|
|
|
22
22
|
}
|
|
23
23
|
export interface GetMarketRequest {
|
|
24
24
|
authorization: string;
|
|
25
|
-
id:
|
|
25
|
+
id: string;
|
|
26
26
|
}
|
|
27
27
|
export interface GetMarketOrdersRequest {
|
|
28
28
|
authorization: string;
|
|
29
|
-
id:
|
|
29
|
+
id: string;
|
|
30
30
|
walletIds?: Array<string>;
|
|
31
31
|
pageRequest?: PageRequest;
|
|
32
32
|
}
|
|
33
33
|
export interface GetMarketPositionsRequest {
|
|
34
34
|
authorization: string;
|
|
35
|
-
id:
|
|
35
|
+
id: string;
|
|
36
36
|
walletIds?: Array<string>;
|
|
37
37
|
page?: PageRequest;
|
|
38
38
|
}
|
|
39
39
|
export interface GetMarketPricesRequest {
|
|
40
40
|
authorization: string;
|
|
41
|
-
id:
|
|
41
|
+
id: string;
|
|
42
42
|
}
|
|
43
43
|
export interface GetMarketsRequest {
|
|
44
44
|
authorization: string;
|
|
45
|
-
ids?: Set<
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
ids?: Set<string>;
|
|
46
|
+
ownerAppIds?: Set<string>;
|
|
47
|
+
eventIds?: Set<string>;
|
|
48
|
+
marketTypeIds?: Set<string>;
|
|
48
49
|
statuses?: Set<GetMarketsStatusesEnum>;
|
|
49
50
|
inPlay?: boolean;
|
|
50
51
|
fromDateTime?: Date;
|
|
51
52
|
toDateTime?: Date;
|
|
53
|
+
published?: boolean;
|
|
52
54
|
}
|
|
53
55
|
export interface LockMarketRequest {
|
|
54
56
|
authorization: string;
|
|
55
|
-
id:
|
|
57
|
+
id: string;
|
|
56
58
|
}
|
|
57
59
|
export interface OpenMarketRequest {
|
|
58
60
|
authorization: string;
|
|
59
|
-
id:
|
|
61
|
+
id: string;
|
|
60
62
|
}
|
|
61
63
|
export interface PublishMarketRequest {
|
|
62
64
|
authorization: string;
|
|
63
|
-
id:
|
|
65
|
+
id: string;
|
|
66
|
+
toggleActionRequest: ToggleActionRequest;
|
|
67
|
+
}
|
|
68
|
+
export interface SetCrossMatchingRequest {
|
|
69
|
+
authorization: string;
|
|
70
|
+
id: string;
|
|
64
71
|
toggleActionRequest: ToggleActionRequest;
|
|
65
72
|
}
|
|
66
73
|
export interface SetResultsForMarketRequest {
|
|
67
74
|
authorization: string;
|
|
68
|
-
id:
|
|
75
|
+
id: string;
|
|
69
76
|
marketResultRequest: MarketResultRequest;
|
|
70
77
|
}
|
|
71
78
|
export interface SettleMarketRequest {
|
|
72
79
|
authorization: string;
|
|
73
|
-
id:
|
|
80
|
+
id: string;
|
|
74
81
|
}
|
|
75
82
|
export interface SuspendMarketRequest {
|
|
76
83
|
authorization: string;
|
|
77
|
-
id:
|
|
84
|
+
id: string;
|
|
78
85
|
toggleActionRequest: ToggleActionRequest;
|
|
79
86
|
}
|
|
80
87
|
export interface VoidMarketRequest {
|
|
81
88
|
authorization: string;
|
|
82
|
-
id:
|
|
89
|
+
id: string;
|
|
83
90
|
}
|
|
84
91
|
/**
|
|
85
92
|
*
|
|
86
93
|
*/
|
|
87
|
-
export declare class
|
|
94
|
+
export declare class MarketsApi extends runtime.BaseAPI {
|
|
88
95
|
/**
|
|
89
96
|
* Create market outcome
|
|
90
97
|
*/
|
|
@@ -165,6 +172,14 @@ export declare class MonacoAPIMarketsApi extends runtime.BaseAPI {
|
|
|
165
172
|
* Publish market
|
|
166
173
|
*/
|
|
167
174
|
publishMarket(requestParameters: PublishMarketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
175
|
+
/**
|
|
176
|
+
* Set market results
|
|
177
|
+
*/
|
|
178
|
+
setCrossMatchingRaw(requestParameters: SetCrossMatchingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
179
|
+
/**
|
|
180
|
+
* Set market results
|
|
181
|
+
*/
|
|
182
|
+
setCrossMatching(requestParameters: SetCrossMatchingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
168
183
|
/**
|
|
169
184
|
* Set market results
|
|
170
185
|
*/
|