kalshi-typescript 2.1.1 → 2.1.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/.openapi-generator/FILES +4 -1
- package/.openapi-generator-ignore +9 -2
- package/README.md +200 -29
- package/api/api-keys-api.ts +5 -5
- package/api/communications-api.ts +12 -12
- package/api/events-api.ts +4 -4
- package/api/exchange-api.ts +9 -9
- package/api/markets-api.ts +10 -10
- package/api/milestones-api.ts +3 -3
- package/api/multivariate-collections-api.ts +4 -4
- package/api/portfolio-api.ts +95 -21
- package/api/series-api.ts +3 -3
- package/api/structured-targets-api.ts +3 -3
- package/auth.ts +38 -0
- package/base.ts +51 -17
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/api-keys-api.d.ts +4 -4
- package/dist/api/api-keys-api.js +8 -8
- package/dist/api/communications-api.d.ts +11 -11
- package/dist/api/communications-api.js +22 -22
- package/dist/api/events-api.d.ts +3 -3
- package/dist/api/events-api.js +6 -6
- package/dist/api/exchange-api.d.ts +8 -8
- package/dist/api/exchange-api.js +12 -12
- package/dist/api/markets-api.d.ts +9 -9
- package/dist/api/markets-api.js +14 -14
- package/dist/api/milestones-api.d.ts +2 -2
- package/dist/api/milestones-api.js +4 -4
- package/dist/api/multivariate-collections-api.d.ts +3 -3
- package/dist/api/multivariate-collections-api.js +6 -6
- package/dist/api/portfolio-api.d.ts +52 -19
- package/dist/api/portfolio-api.js +107 -39
- package/dist/api/series-api.d.ts +2 -2
- package/dist/api/series-api.js +4 -4
- package/dist/api/structured-targets-api.d.ts +2 -2
- package/dist/api/structured-targets-api.js +4 -4
- package/dist/auth.d.ts +7 -0
- package/dist/auth.js +33 -0
- package/dist/base.d.ts +25 -10
- package/dist/base.js +37 -6
- package/dist/esm/api/api-keys-api.d.ts +4 -4
- package/dist/esm/api/api-keys-api.js +9 -9
- package/dist/esm/api/communications-api.d.ts +11 -11
- package/dist/esm/api/communications-api.js +23 -23
- package/dist/esm/api/events-api.d.ts +3 -3
- package/dist/esm/api/events-api.js +7 -7
- package/dist/esm/api/exchange-api.d.ts +8 -8
- package/dist/esm/api/exchange-api.js +13 -13
- package/dist/esm/api/markets-api.d.ts +9 -9
- package/dist/esm/api/markets-api.js +15 -15
- package/dist/esm/api/milestones-api.d.ts +2 -2
- package/dist/esm/api/milestones-api.js +5 -5
- package/dist/esm/api/multivariate-collections-api.d.ts +3 -3
- package/dist/esm/api/multivariate-collections-api.js +7 -7
- package/dist/esm/api/portfolio-api.d.ts +52 -19
- package/dist/esm/api/portfolio-api.js +108 -40
- package/dist/esm/api/series-api.d.ts +2 -2
- package/dist/esm/api/series-api.js +5 -5
- package/dist/esm/api/structured-targets-api.d.ts +2 -2
- package/dist/esm/api/structured-targets-api.js +5 -5
- package/dist/esm/auth.d.ts +7 -0
- package/dist/esm/auth.js +29 -0
- package/dist/esm/base.d.ts +25 -10
- package/dist/esm/base.js +36 -5
- package/dist/esm/models/amend-order-request.d.ts +30 -0
- package/dist/esm/models/amend-order-request.js +8 -1
- package/dist/esm/models/create-order-group-request.d.ts +4 -1
- package/dist/esm/models/create-order-group-response.d.ts +4 -2
- package/dist/esm/models/create-order-request.d.ts +8 -0
- package/dist/esm/models/error-response-error.d.ts +1 -1
- package/dist/esm/models/event-position.d.ts +53 -0
- package/dist/esm/models/event-position.js +14 -0
- package/dist/esm/models/get-order-group-response.d.ts +21 -0
- package/dist/esm/models/get-order-group-response.js +14 -0
- package/dist/esm/models/get-order-response.d.ts +1 -1
- package/dist/esm/models/get-positions-response.d.ts +3 -1
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/order-group.d.ts +8 -4
- package/dist/esm/models/order.d.ts +16 -0
- package/dist/models/amend-order-request.d.ts +30 -0
- package/dist/models/amend-order-request.js +9 -0
- package/dist/models/create-order-group-request.d.ts +4 -1
- package/dist/models/create-order-group-response.d.ts +4 -2
- package/dist/models/create-order-request.d.ts +8 -0
- package/dist/models/error-response-error.d.ts +1 -1
- package/dist/models/event-position.d.ts +53 -0
- package/dist/models/event-position.js +15 -0
- package/dist/models/get-order-group-response.d.ts +21 -0
- package/dist/models/get-order-group-response.js +15 -0
- package/dist/models/get-order-response.d.ts +1 -1
- package/dist/models/get-positions-response.d.ts +3 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/order-group.d.ts +8 -4
- package/dist/models/order.d.ts +16 -0
- package/docs/AcceptQuoteRequest.md +1 -1
- package/docs/AmendOrderRequest.md +11 -1
- package/docs/AmendOrderResponse.md +1 -1
- package/docs/Announcement.md +1 -1
- package/docs/ApiKey.md +1 -1
- package/docs/ApiKeysApi.md +20 -8
- package/docs/BatchCancelOrdersRequest.md +1 -1
- package/docs/BatchCancelOrdersResponse.md +1 -1
- package/docs/BatchCancelOrdersResponseResponsesInner.md +1 -1
- package/docs/BatchCreateOrdersRequest.md +1 -1
- package/docs/BatchCreateOrdersResponse.md +1 -1
- package/docs/BatchCreateOrdersResponseResponsesInner.md +1 -1
- package/docs/CancelOrderResponse.md +1 -1
- package/docs/Candlestick.md +1 -1
- package/docs/CommunicationsApi.md +55 -22
- package/docs/CreateApiKeyRequest.md +1 -1
- package/docs/CreateApiKeyResponse.md +1 -1
- package/docs/CreateOrderGroupRequest.md +3 -3
- package/docs/CreateOrderGroupResponse.md +3 -3
- package/docs/CreateOrderRequest.md +5 -1
- package/docs/CreateOrderResponse.md +1 -1
- package/docs/CreateQuoteRequest.md +1 -1
- package/docs/CreateQuoteResponse.md +1 -1
- package/docs/CreateRFQRequest.md +1 -1
- package/docs/CreateRFQResponse.md +1 -1
- package/docs/DailySchedule.md +1 -1
- package/docs/DecreaseOrderRequest.md +1 -1
- package/docs/DecreaseOrderResponse.md +1 -1
- package/docs/ErrorResponse.md +1 -1
- package/docs/ErrorResponseError.md +2 -2
- package/docs/Event.md +1 -1
- package/docs/EventPosition.md +38 -0
- package/docs/EventsApi.md +15 -6
- package/docs/ExchangeApi.md +21 -9
- package/docs/ExchangeStatus.md +1 -1
- package/docs/Fill.md +1 -1
- package/docs/GenerateApiKeyRequest.md +1 -1
- package/docs/GenerateApiKeyResponse.md +1 -1
- package/docs/GetApiKeysResponse.md +1 -1
- package/docs/GetBalanceResponse.md +1 -1
- package/docs/GetCommunicationsIDResponse.md +1 -1
- package/docs/GetEventMetadataResponse.md +1 -1
- package/docs/GetEventResponse.md +1 -1
- package/docs/GetEventsResponse.md +1 -1
- package/docs/GetExchangeAnnouncementsResponse.md +1 -1
- package/docs/GetExchangeScheduleResponse.md +1 -1
- package/docs/GetExchangeScheduleResponseSchedule.md +1 -1
- package/docs/GetFillsResponse.md +1 -1
- package/docs/GetMarketCandlesticksResponse.md +1 -1
- package/docs/GetMarketOrderbookResponse.md +1 -1
- package/docs/GetMarketOrderbookResponseOrderbook.md +1 -1
- package/docs/GetMarketResponse.md +1 -1
- package/docs/GetMarketsResponse.md +1 -1
- package/docs/GetMilestoneResponse.md +1 -1
- package/docs/GetMilestonesResponse.md +1 -1
- package/docs/GetMultivariateEventCollectionResponse.md +1 -1
- package/docs/GetMultivariateEventCollectionsResponse.md +1 -1
- package/docs/GetOrderGroupResponse.md +22 -0
- package/docs/GetOrderGroupsResponse.md +1 -1
- package/docs/GetOrderQueuePositionResponse.md +1 -1
- package/docs/GetOrderResponse.md +2 -2
- package/docs/GetOrdersResponse.md +1 -1
- package/docs/GetPositionsResponse.md +5 -3
- package/docs/GetQueuePositionsRequest.md +1 -1
- package/docs/GetQueuePositionsResponse.md +1 -1
- package/docs/GetQuoteResponse.md +1 -1
- package/docs/GetQuotesResponse.md +1 -1
- package/docs/GetRFQResponse.md +1 -1
- package/docs/GetRFQsResponse.md +1 -1
- package/docs/GetSeriesByTickerResponse.md +1 -1
- package/docs/GetSeriesResponse.md +1 -1
- package/docs/GetSettlementsResponse.md +1 -1
- package/docs/GetStructuredTargetResponse.md +1 -1
- package/docs/GetStructuredTargetsResponse.md +1 -1
- package/docs/GetTotalRestingOrderValueResponse.md +1 -1
- package/docs/GetTradesResponse.md +1 -1
- package/docs/GetUserDataTimestampResponse.md +1 -1
- package/docs/LookupBundleRequest.md +1 -1
- package/docs/LookupBundleRequestBundleInner.md +1 -1
- package/docs/LookupBundleResponse.md +1 -1
- package/docs/Market.md +1 -1
- package/docs/MarketsApi.md +26 -11
- package/docs/Milestone.md +1 -1
- package/docs/MilestonesApi.md +10 -4
- package/docs/MultivariateCollectionsApi.md +15 -6
- package/docs/MultivariateEventCollection.md +1 -1
- package/docs/MultivariateEventCollectionEventsInner.md +1 -1
- package/docs/Order.md +9 -1
- package/docs/OrderGroup.md +5 -9
- package/docs/OrderbookLevel.md +1 -1
- package/docs/PortfolioApi.md +154 -39
- package/docs/Position.md +1 -1
- package/docs/Quote.md +1 -1
- package/docs/RFQ.md +1 -1
- package/docs/Series.md +1 -1
- package/docs/SeriesApi.md +10 -4
- package/docs/Settlement.md +1 -1
- package/docs/StructuredTarget.md +1 -1
- package/docs/StructuredTargetsApi.md +10 -4
- package/docs/Trade.md +1 -1
- package/models/amend-order-request.ts +34 -0
- package/models/create-order-group-request.ts +4 -1
- package/models/create-order-group-response.ts +4 -4
- package/models/create-order-request.ts +8 -0
- package/models/error-response-error.ts +1 -1
- package/models/event-position.ts +59 -0
- package/models/get-order-group-response.ts +27 -0
- package/models/get-order-response.ts +1 -1
- package/models/get-positions-response.ts +5 -1
- package/models/index.ts +2 -0
- package/models/order-group.ts +8 -4
- package/models/order.ts +16 -0
- package/package.json +4 -4
|
@@ -28,7 +28,7 @@ import { URL } from 'url';
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
30
30
|
// @ts-ignore
|
|
31
|
-
import { BASE_PATH, BaseAPI
|
|
31
|
+
import { BASE_PATH, BaseAPI } from '../base';
|
|
32
32
|
/**
|
|
33
33
|
* ApiKeysApi - axios parameter creator
|
|
34
34
|
*/
|
|
@@ -177,10 +177,10 @@ export const ApiKeysApiFp = function (configuration) {
|
|
|
177
177
|
*/
|
|
178
178
|
createApiKey(createApiKeyRequest, options) {
|
|
179
179
|
return __awaiter(this, void 0, void 0, function* () {
|
|
180
|
-
var _a
|
|
180
|
+
var _a;
|
|
181
181
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApiKey(createApiKeyRequest, options);
|
|
182
182
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
183
|
-
const localVarOperationServerBasePath =
|
|
183
|
+
const localVarOperationServerBasePath = undefined;
|
|
184
184
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
185
185
|
});
|
|
186
186
|
},
|
|
@@ -193,10 +193,10 @@ export const ApiKeysApiFp = function (configuration) {
|
|
|
193
193
|
*/
|
|
194
194
|
deleteApiKey(apiKey, options) {
|
|
195
195
|
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
-
var _a
|
|
196
|
+
var _a;
|
|
197
197
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteApiKey(apiKey, options);
|
|
198
198
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
199
|
-
const localVarOperationServerBasePath =
|
|
199
|
+
const localVarOperationServerBasePath = undefined;
|
|
200
200
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
201
201
|
});
|
|
202
202
|
},
|
|
@@ -209,10 +209,10 @@ export const ApiKeysApiFp = function (configuration) {
|
|
|
209
209
|
*/
|
|
210
210
|
generateApiKey(generateApiKeyRequest, options) {
|
|
211
211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
-
var _a
|
|
212
|
+
var _a;
|
|
213
213
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(generateApiKeyRequest, options);
|
|
214
214
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
215
|
-
const localVarOperationServerBasePath =
|
|
215
|
+
const localVarOperationServerBasePath = undefined;
|
|
216
216
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
217
217
|
});
|
|
218
218
|
},
|
|
@@ -224,10 +224,10 @@ export const ApiKeysApiFp = function (configuration) {
|
|
|
224
224
|
*/
|
|
225
225
|
getApiKeys(options) {
|
|
226
226
|
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
-
var _a
|
|
227
|
+
var _a;
|
|
228
228
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApiKeys(options);
|
|
229
229
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
230
|
-
const localVarOperationServerBasePath =
|
|
230
|
+
const localVarOperationServerBasePath = undefined;
|
|
231
231
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
232
232
|
});
|
|
233
233
|
},
|
|
@@ -307,7 +307,7 @@ export declare class CommunicationsApi extends BaseAPI {
|
|
|
307
307
|
* @param {*} [options] Override http request option.
|
|
308
308
|
* @throws {RequiredError}
|
|
309
309
|
*/
|
|
310
|
-
acceptQuote(quoteId: string, acceptQuoteRequest: AcceptQuoteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
310
|
+
acceptQuote(quoteId: string, acceptQuoteRequest: AcceptQuoteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
311
311
|
/**
|
|
312
312
|
* Confirm a quote. This will start a timer for order execution
|
|
313
313
|
* @summary Confirm Quote
|
|
@@ -315,7 +315,7 @@ export declare class CommunicationsApi extends BaseAPI {
|
|
|
315
315
|
* @param {*} [options] Override http request option.
|
|
316
316
|
* @throws {RequiredError}
|
|
317
317
|
*/
|
|
318
|
-
confirmQuote(quoteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
318
|
+
confirmQuote(quoteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
319
319
|
/**
|
|
320
320
|
* Create a quote in response to an RFQ
|
|
321
321
|
* @summary Create Quote
|
|
@@ -323,7 +323,7 @@ export declare class CommunicationsApi extends BaseAPI {
|
|
|
323
323
|
* @param {*} [options] Override http request option.
|
|
324
324
|
* @throws {RequiredError}
|
|
325
325
|
*/
|
|
326
|
-
createQuote(createQuoteRequest: CreateQuoteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateQuoteResponse, any>>;
|
|
326
|
+
createQuote(createQuoteRequest: CreateQuoteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateQuoteResponse, any, {}>>;
|
|
327
327
|
/**
|
|
328
328
|
* Create a new RFQ
|
|
329
329
|
* @summary Create RFQ
|
|
@@ -331,7 +331,7 @@ export declare class CommunicationsApi extends BaseAPI {
|
|
|
331
331
|
* @param {*} [options] Override http request option.
|
|
332
332
|
* @throws {RequiredError}
|
|
333
333
|
*/
|
|
334
|
-
createRFQ(createRFQRequest: CreateRFQRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRFQResponse, any>>;
|
|
334
|
+
createRFQ(createRFQRequest: CreateRFQRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRFQResponse, any, {}>>;
|
|
335
335
|
/**
|
|
336
336
|
* Delete a quote, which means it can no longer be accepted
|
|
337
337
|
* @summary Delete Quote
|
|
@@ -339,7 +339,7 @@ export declare class CommunicationsApi extends BaseAPI {
|
|
|
339
339
|
* @param {*} [options] Override http request option.
|
|
340
340
|
* @throws {RequiredError}
|
|
341
341
|
*/
|
|
342
|
-
deleteQuote(quoteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
342
|
+
deleteQuote(quoteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
343
343
|
/**
|
|
344
344
|
* Delete an RFQ by ID
|
|
345
345
|
* @summary Delete RFQ
|
|
@@ -347,14 +347,14 @@ export declare class CommunicationsApi extends BaseAPI {
|
|
|
347
347
|
* @param {*} [options] Override http request option.
|
|
348
348
|
* @throws {RequiredError}
|
|
349
349
|
*/
|
|
350
|
-
deleteRFQ(rfqId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
350
|
+
deleteRFQ(rfqId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
351
351
|
/**
|
|
352
352
|
* Get the communications ID of the logged-in user
|
|
353
353
|
* @summary Get Communications ID
|
|
354
354
|
* @param {*} [options] Override http request option.
|
|
355
355
|
* @throws {RequiredError}
|
|
356
356
|
*/
|
|
357
|
-
getCommunicationsID(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCommunicationsIDResponse, any>>;
|
|
357
|
+
getCommunicationsID(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCommunicationsIDResponse, any, {}>>;
|
|
358
358
|
/**
|
|
359
359
|
* Get a particular quote by ID
|
|
360
360
|
* @summary Get Quote
|
|
@@ -362,14 +362,14 @@ export declare class CommunicationsApi extends BaseAPI {
|
|
|
362
362
|
* @param {*} [options] Override http request option.
|
|
363
363
|
* @throws {RequiredError}
|
|
364
364
|
*/
|
|
365
|
-
getQuote(quoteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetQuoteResponse, any>>;
|
|
365
|
+
getQuote(quoteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetQuoteResponse, any, {}>>;
|
|
366
366
|
/**
|
|
367
367
|
* Retrieve all quotes
|
|
368
368
|
* @summary Get Quotes
|
|
369
369
|
* @param {*} [options] Override http request option.
|
|
370
370
|
* @throws {RequiredError}
|
|
371
371
|
*/
|
|
372
|
-
getQuotes(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetQuotesResponse, any>>;
|
|
372
|
+
getQuotes(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetQuotesResponse, any, {}>>;
|
|
373
373
|
/**
|
|
374
374
|
* Get a single RFQ by ID
|
|
375
375
|
* @summary Get RFQ
|
|
@@ -377,12 +377,12 @@ export declare class CommunicationsApi extends BaseAPI {
|
|
|
377
377
|
* @param {*} [options] Override http request option.
|
|
378
378
|
* @throws {RequiredError}
|
|
379
379
|
*/
|
|
380
|
-
getRFQ(rfqId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRFQResponse, any>>;
|
|
380
|
+
getRFQ(rfqId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRFQResponse, any, {}>>;
|
|
381
381
|
/**
|
|
382
382
|
* Retrieve all RFQs
|
|
383
383
|
* @summary Get RFQs
|
|
384
384
|
* @param {*} [options] Override http request option.
|
|
385
385
|
* @throws {RequiredError}
|
|
386
386
|
*/
|
|
387
|
-
getRFQs(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRFQsResponse, any>>;
|
|
387
|
+
getRFQs(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRFQsResponse, any, {}>>;
|
|
388
388
|
}
|
|
@@ -28,7 +28,7 @@ import { URL } from 'url';
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
30
30
|
// @ts-ignore
|
|
31
|
-
import { BASE_PATH, BaseAPI
|
|
31
|
+
import { BASE_PATH, BaseAPI } from '../base';
|
|
32
32
|
/**
|
|
33
33
|
* CommunicationsApi - axios parameter creator
|
|
34
34
|
*/
|
|
@@ -399,10 +399,10 @@ export const CommunicationsApiFp = function (configuration) {
|
|
|
399
399
|
*/
|
|
400
400
|
acceptQuote(quoteId, acceptQuoteRequest, options) {
|
|
401
401
|
return __awaiter(this, void 0, void 0, function* () {
|
|
402
|
-
var _a
|
|
402
|
+
var _a;
|
|
403
403
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.acceptQuote(quoteId, acceptQuoteRequest, options);
|
|
404
404
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
405
|
-
const localVarOperationServerBasePath =
|
|
405
|
+
const localVarOperationServerBasePath = undefined;
|
|
406
406
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
407
407
|
});
|
|
408
408
|
},
|
|
@@ -415,10 +415,10 @@ export const CommunicationsApiFp = function (configuration) {
|
|
|
415
415
|
*/
|
|
416
416
|
confirmQuote(quoteId, options) {
|
|
417
417
|
return __awaiter(this, void 0, void 0, function* () {
|
|
418
|
-
var _a
|
|
418
|
+
var _a;
|
|
419
419
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmQuote(quoteId, options);
|
|
420
420
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
421
|
-
const localVarOperationServerBasePath =
|
|
421
|
+
const localVarOperationServerBasePath = undefined;
|
|
422
422
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
423
423
|
});
|
|
424
424
|
},
|
|
@@ -431,10 +431,10 @@ export const CommunicationsApiFp = function (configuration) {
|
|
|
431
431
|
*/
|
|
432
432
|
createQuote(createQuoteRequest, options) {
|
|
433
433
|
return __awaiter(this, void 0, void 0, function* () {
|
|
434
|
-
var _a
|
|
434
|
+
var _a;
|
|
435
435
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createQuote(createQuoteRequest, options);
|
|
436
436
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
437
|
-
const localVarOperationServerBasePath =
|
|
437
|
+
const localVarOperationServerBasePath = undefined;
|
|
438
438
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
439
439
|
});
|
|
440
440
|
},
|
|
@@ -447,10 +447,10 @@ export const CommunicationsApiFp = function (configuration) {
|
|
|
447
447
|
*/
|
|
448
448
|
createRFQ(createRFQRequest, options) {
|
|
449
449
|
return __awaiter(this, void 0, void 0, function* () {
|
|
450
|
-
var _a
|
|
450
|
+
var _a;
|
|
451
451
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createRFQ(createRFQRequest, options);
|
|
452
452
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
453
|
-
const localVarOperationServerBasePath =
|
|
453
|
+
const localVarOperationServerBasePath = undefined;
|
|
454
454
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
455
455
|
});
|
|
456
456
|
},
|
|
@@ -463,10 +463,10 @@ export const CommunicationsApiFp = function (configuration) {
|
|
|
463
463
|
*/
|
|
464
464
|
deleteQuote(quoteId, options) {
|
|
465
465
|
return __awaiter(this, void 0, void 0, function* () {
|
|
466
|
-
var _a
|
|
466
|
+
var _a;
|
|
467
467
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteQuote(quoteId, options);
|
|
468
468
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
469
|
-
const localVarOperationServerBasePath =
|
|
469
|
+
const localVarOperationServerBasePath = undefined;
|
|
470
470
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
471
471
|
});
|
|
472
472
|
},
|
|
@@ -479,10 +479,10 @@ export const CommunicationsApiFp = function (configuration) {
|
|
|
479
479
|
*/
|
|
480
480
|
deleteRFQ(rfqId, options) {
|
|
481
481
|
return __awaiter(this, void 0, void 0, function* () {
|
|
482
|
-
var _a
|
|
482
|
+
var _a;
|
|
483
483
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteRFQ(rfqId, options);
|
|
484
484
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
485
|
-
const localVarOperationServerBasePath =
|
|
485
|
+
const localVarOperationServerBasePath = undefined;
|
|
486
486
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
487
487
|
});
|
|
488
488
|
},
|
|
@@ -494,10 +494,10 @@ export const CommunicationsApiFp = function (configuration) {
|
|
|
494
494
|
*/
|
|
495
495
|
getCommunicationsID(options) {
|
|
496
496
|
return __awaiter(this, void 0, void 0, function* () {
|
|
497
|
-
var _a
|
|
497
|
+
var _a;
|
|
498
498
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCommunicationsID(options);
|
|
499
499
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
500
|
-
const localVarOperationServerBasePath =
|
|
500
|
+
const localVarOperationServerBasePath = undefined;
|
|
501
501
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
502
502
|
});
|
|
503
503
|
},
|
|
@@ -510,10 +510,10 @@ export const CommunicationsApiFp = function (configuration) {
|
|
|
510
510
|
*/
|
|
511
511
|
getQuote(quoteId, options) {
|
|
512
512
|
return __awaiter(this, void 0, void 0, function* () {
|
|
513
|
-
var _a
|
|
513
|
+
var _a;
|
|
514
514
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuote(quoteId, options);
|
|
515
515
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
516
|
-
const localVarOperationServerBasePath =
|
|
516
|
+
const localVarOperationServerBasePath = undefined;
|
|
517
517
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
518
518
|
});
|
|
519
519
|
},
|
|
@@ -525,10 +525,10 @@ export const CommunicationsApiFp = function (configuration) {
|
|
|
525
525
|
*/
|
|
526
526
|
getQuotes(options) {
|
|
527
527
|
return __awaiter(this, void 0, void 0, function* () {
|
|
528
|
-
var _a
|
|
528
|
+
var _a;
|
|
529
529
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuotes(options);
|
|
530
530
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
531
|
-
const localVarOperationServerBasePath =
|
|
531
|
+
const localVarOperationServerBasePath = undefined;
|
|
532
532
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
533
533
|
});
|
|
534
534
|
},
|
|
@@ -541,10 +541,10 @@ export const CommunicationsApiFp = function (configuration) {
|
|
|
541
541
|
*/
|
|
542
542
|
getRFQ(rfqId, options) {
|
|
543
543
|
return __awaiter(this, void 0, void 0, function* () {
|
|
544
|
-
var _a
|
|
544
|
+
var _a;
|
|
545
545
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRFQ(rfqId, options);
|
|
546
546
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
547
|
-
const localVarOperationServerBasePath =
|
|
547
|
+
const localVarOperationServerBasePath = undefined;
|
|
548
548
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
549
549
|
});
|
|
550
550
|
},
|
|
@@ -556,10 +556,10 @@ export const CommunicationsApiFp = function (configuration) {
|
|
|
556
556
|
*/
|
|
557
557
|
getRFQs(options) {
|
|
558
558
|
return __awaiter(this, void 0, void 0, function* () {
|
|
559
|
-
var _a
|
|
559
|
+
var _a;
|
|
560
560
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRFQs(options);
|
|
561
561
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
562
|
-
const localVarOperationServerBasePath =
|
|
562
|
+
const localVarOperationServerBasePath = undefined;
|
|
563
563
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
564
564
|
});
|
|
565
565
|
},
|
|
@@ -132,7 +132,7 @@ export declare class EventsApi extends BaseAPI {
|
|
|
132
132
|
* @param {*} [options] Override http request option.
|
|
133
133
|
* @throws {RequiredError}
|
|
134
134
|
*/
|
|
135
|
-
getEvent(eventTicker: string, withNestedMarkets?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEventResponse, any>>;
|
|
135
|
+
getEvent(eventTicker: string, withNestedMarkets?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEventResponse, any, {}>>;
|
|
136
136
|
/**
|
|
137
137
|
* Get metadata about an event by its ticker
|
|
138
138
|
* @summary Get Event Metadata
|
|
@@ -140,7 +140,7 @@ export declare class EventsApi extends BaseAPI {
|
|
|
140
140
|
* @param {*} [options] Override http request option.
|
|
141
141
|
* @throws {RequiredError}
|
|
142
142
|
*/
|
|
143
|
-
getEventMetadata(eventTicker: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEventMetadataResponse, any>>;
|
|
143
|
+
getEventMetadata(eventTicker: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEventMetadataResponse, any, {}>>;
|
|
144
144
|
/**
|
|
145
145
|
* Get data about all events. An event represents a real-world occurrence that can be traded on, such as an election, sports game, or economic indicator release. Events contain one or more markets where users can place trades on different outcomes. This endpoint returns a paginated response. Use the \'limit\' parameter to control page size (1-200, defaults to 100). The response includes a \'cursor\' field - pass this value in the \'cursor\' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.
|
|
146
146
|
* @summary Get Events
|
|
@@ -153,5 +153,5 @@ export declare class EventsApi extends BaseAPI {
|
|
|
153
153
|
* @param {*} [options] Override http request option.
|
|
154
154
|
* @throws {RequiredError}
|
|
155
155
|
*/
|
|
156
|
-
getEvents(limit?: number, cursor?: string, withNestedMarkets?: boolean, status?: string, seriesTicker?: string, minCloseTs?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEventsResponse, any>>;
|
|
156
|
+
getEvents(limit?: number, cursor?: string, withNestedMarkets?: boolean, status?: string, seriesTicker?: string, minCloseTs?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEventsResponse, any, {}>>;
|
|
157
157
|
}
|
|
@@ -28,7 +28,7 @@ import { URL } from 'url';
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
|
30
30
|
// @ts-ignore
|
|
31
|
-
import { BASE_PATH, BaseAPI
|
|
31
|
+
import { BASE_PATH, BaseAPI } from '../base';
|
|
32
32
|
/**
|
|
33
33
|
* EventsApi - axios parameter creator
|
|
34
34
|
*/
|
|
@@ -172,10 +172,10 @@ export const EventsApiFp = function (configuration) {
|
|
|
172
172
|
*/
|
|
173
173
|
getEvent(eventTicker, withNestedMarkets, options) {
|
|
174
174
|
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
-
var _a
|
|
175
|
+
var _a;
|
|
176
176
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEvent(eventTicker, withNestedMarkets, options);
|
|
177
177
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
178
|
-
const localVarOperationServerBasePath =
|
|
178
|
+
const localVarOperationServerBasePath = undefined;
|
|
179
179
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
180
180
|
});
|
|
181
181
|
},
|
|
@@ -188,10 +188,10 @@ export const EventsApiFp = function (configuration) {
|
|
|
188
188
|
*/
|
|
189
189
|
getEventMetadata(eventTicker, options) {
|
|
190
190
|
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
-
var _a
|
|
191
|
+
var _a;
|
|
192
192
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventMetadata(eventTicker, options);
|
|
193
193
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
194
|
-
const localVarOperationServerBasePath =
|
|
194
|
+
const localVarOperationServerBasePath = undefined;
|
|
195
195
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
196
196
|
});
|
|
197
197
|
},
|
|
@@ -209,10 +209,10 @@ export const EventsApiFp = function (configuration) {
|
|
|
209
209
|
*/
|
|
210
210
|
getEvents(limit, cursor, withNestedMarkets, status, seriesTicker, minCloseTs, options) {
|
|
211
211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
-
var _a
|
|
212
|
+
var _a;
|
|
213
213
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEvents(limit, cursor, withNestedMarkets, status, seriesTicker, minCloseTs, options);
|
|
214
214
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
215
|
-
const localVarOperationServerBasePath =
|
|
215
|
+
const localVarOperationServerBasePath = undefined;
|
|
216
216
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
217
217
|
});
|
|
218
218
|
},
|
|
@@ -42,7 +42,7 @@ export declare const ExchangeApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
42
42
|
*/
|
|
43
43
|
getExchangeStatus: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
44
|
/**
|
|
45
|
-
* There is typically a short delay before exchange events are reflected in the API endpoints.
|
|
45
|
+
* There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
|
|
46
46
|
* @summary Get User Data Timestamp
|
|
47
47
|
* @param {*} [options] Override http request option.
|
|
48
48
|
* @throws {RequiredError}
|
|
@@ -75,7 +75,7 @@ export declare const ExchangeApiFp: (configuration?: Configuration) => {
|
|
|
75
75
|
*/
|
|
76
76
|
getExchangeStatus(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExchangeStatus>>;
|
|
77
77
|
/**
|
|
78
|
-
* There is typically a short delay before exchange events are reflected in the API endpoints.
|
|
78
|
+
* There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
|
|
79
79
|
* @summary Get User Data Timestamp
|
|
80
80
|
* @param {*} [options] Override http request option.
|
|
81
81
|
* @throws {RequiredError}
|
|
@@ -108,7 +108,7 @@ export declare const ExchangeApiFactory: (configuration?: Configuration, basePat
|
|
|
108
108
|
*/
|
|
109
109
|
getExchangeStatus(options?: RawAxiosRequestConfig): AxiosPromise<ExchangeStatus>;
|
|
110
110
|
/**
|
|
111
|
-
* There is typically a short delay before exchange events are reflected in the API endpoints.
|
|
111
|
+
* There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
|
|
112
112
|
* @summary Get User Data Timestamp
|
|
113
113
|
* @param {*} [options] Override http request option.
|
|
114
114
|
* @throws {RequiredError}
|
|
@@ -125,26 +125,26 @@ export declare class ExchangeApi extends BaseAPI {
|
|
|
125
125
|
* @param {*} [options] Override http request option.
|
|
126
126
|
* @throws {RequiredError}
|
|
127
127
|
*/
|
|
128
|
-
getExchangeAnnouncements(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetExchangeAnnouncementsResponse, any>>;
|
|
128
|
+
getExchangeAnnouncements(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetExchangeAnnouncementsResponse, any, {}>>;
|
|
129
129
|
/**
|
|
130
130
|
* Get the exchange schedule
|
|
131
131
|
* @summary Get Exchange Schedule
|
|
132
132
|
* @param {*} [options] Override http request option.
|
|
133
133
|
* @throws {RequiredError}
|
|
134
134
|
*/
|
|
135
|
-
getExchangeSchedule(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetExchangeScheduleResponse, any>>;
|
|
135
|
+
getExchangeSchedule(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetExchangeScheduleResponse, any, {}>>;
|
|
136
136
|
/**
|
|
137
137
|
* Get the exchange status
|
|
138
138
|
* @summary Get Exchange Status
|
|
139
139
|
* @param {*} [options] Override http request option.
|
|
140
140
|
* @throws {RequiredError}
|
|
141
141
|
*/
|
|
142
|
-
getExchangeStatus(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ExchangeStatus, any>>;
|
|
142
|
+
getExchangeStatus(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ExchangeStatus, any, {}>>;
|
|
143
143
|
/**
|
|
144
|
-
* There is typically a short delay before exchange events are reflected in the API endpoints.
|
|
144
|
+
* There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
|
|
145
145
|
* @summary Get User Data Timestamp
|
|
146
146
|
* @param {*} [options] Override http request option.
|
|
147
147
|
* @throws {RequiredError}
|
|
148
148
|
*/
|
|
149
|
-
getUserDataTimestamp(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserDataTimestampResponse, any>>;
|
|
149
|
+
getUserDataTimestamp(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserDataTimestampResponse, any, {}>>;
|
|
150
150
|
}
|
|
@@ -28,7 +28,7 @@ import { URL } from 'url';
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
import { DUMMY_BASE_URL, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
|
30
30
|
// @ts-ignore
|
|
31
|
-
import { BASE_PATH, BaseAPI
|
|
31
|
+
import { BASE_PATH, BaseAPI } from '../base';
|
|
32
32
|
/**
|
|
33
33
|
* ExchangeApi - axios parameter creator
|
|
34
34
|
*/
|
|
@@ -110,7 +110,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration) {
|
|
|
110
110
|
};
|
|
111
111
|
}),
|
|
112
112
|
/**
|
|
113
|
-
* There is typically a short delay before exchange events are reflected in the API endpoints.
|
|
113
|
+
* There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
|
|
114
114
|
* @summary Get User Data Timestamp
|
|
115
115
|
* @param {*} [options] Override http request option.
|
|
116
116
|
* @throws {RequiredError}
|
|
@@ -153,10 +153,10 @@ export const ExchangeApiFp = function (configuration) {
|
|
|
153
153
|
*/
|
|
154
154
|
getExchangeAnnouncements(options) {
|
|
155
155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
-
var _a
|
|
156
|
+
var _a;
|
|
157
157
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getExchangeAnnouncements(options);
|
|
158
158
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
159
|
-
const localVarOperationServerBasePath =
|
|
159
|
+
const localVarOperationServerBasePath = undefined;
|
|
160
160
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
161
161
|
});
|
|
162
162
|
},
|
|
@@ -168,10 +168,10 @@ export const ExchangeApiFp = function (configuration) {
|
|
|
168
168
|
*/
|
|
169
169
|
getExchangeSchedule(options) {
|
|
170
170
|
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
-
var _a
|
|
171
|
+
var _a;
|
|
172
172
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getExchangeSchedule(options);
|
|
173
173
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
174
|
-
const localVarOperationServerBasePath =
|
|
174
|
+
const localVarOperationServerBasePath = undefined;
|
|
175
175
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
176
176
|
});
|
|
177
177
|
},
|
|
@@ -183,25 +183,25 @@ export const ExchangeApiFp = function (configuration) {
|
|
|
183
183
|
*/
|
|
184
184
|
getExchangeStatus(options) {
|
|
185
185
|
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
-
var _a
|
|
186
|
+
var _a;
|
|
187
187
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getExchangeStatus(options);
|
|
188
188
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
189
|
-
const localVarOperationServerBasePath =
|
|
189
|
+
const localVarOperationServerBasePath = undefined;
|
|
190
190
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
191
191
|
});
|
|
192
192
|
},
|
|
193
193
|
/**
|
|
194
|
-
* There is typically a short delay before exchange events are reflected in the API endpoints.
|
|
194
|
+
* There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
|
|
195
195
|
* @summary Get User Data Timestamp
|
|
196
196
|
* @param {*} [options] Override http request option.
|
|
197
197
|
* @throws {RequiredError}
|
|
198
198
|
*/
|
|
199
199
|
getUserDataTimestamp(options) {
|
|
200
200
|
return __awaiter(this, void 0, void 0, function* () {
|
|
201
|
-
var _a
|
|
201
|
+
var _a;
|
|
202
202
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserDataTimestamp(options);
|
|
203
203
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
204
|
-
const localVarOperationServerBasePath =
|
|
204
|
+
const localVarOperationServerBasePath = undefined;
|
|
205
205
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
206
206
|
});
|
|
207
207
|
},
|
|
@@ -241,7 +241,7 @@ export const ExchangeApiFactory = function (configuration, basePath, axios) {
|
|
|
241
241
|
return localVarFp.getExchangeStatus(options).then((request) => request(axios, basePath));
|
|
242
242
|
},
|
|
243
243
|
/**
|
|
244
|
-
* There is typically a short delay before exchange events are reflected in the API endpoints.
|
|
244
|
+
* There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
|
|
245
245
|
* @summary Get User Data Timestamp
|
|
246
246
|
* @param {*} [options] Override http request option.
|
|
247
247
|
* @throws {RequiredError}
|
|
@@ -283,7 +283,7 @@ export class ExchangeApi extends BaseAPI {
|
|
|
283
283
|
return ExchangeApiFp(this.configuration).getExchangeStatus(options).then((request) => request(this.axios, this.basePath));
|
|
284
284
|
}
|
|
285
285
|
/**
|
|
286
|
-
* There is typically a short delay before exchange events are reflected in the API endpoints.
|
|
286
|
+
* There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
|
|
287
287
|
* @summary Get User Data Timestamp
|
|
288
288
|
* @param {*} [options] Override http request option.
|
|
289
289
|
* @throws {RequiredError}
|
|
@@ -51,7 +51,7 @@ export declare const MarketsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
51
51
|
*/
|
|
52
52
|
getMarketOrderbook: (ticker: string, depth?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
53
53
|
/**
|
|
54
|
-
* List and discover markets on Kalshi.
|
|
54
|
+
* List and discover markets on Kalshi. A market represents a specific binary outcome within an event that users can trade on (e.g., \"Will candidate X win?\"). Markets have yes/no positions, current prices, volume, and settlement rules. This endpoint returns a paginated response. Use the \'limit\' parameter to control page size (1-1000, defaults to 100). The response includes a \'cursor\' field - pass this value in the \'cursor\' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.
|
|
55
55
|
* @summary Get Markets
|
|
56
56
|
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 1000.
|
|
57
57
|
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
@@ -112,7 +112,7 @@ export declare const MarketsApiFp: (configuration?: Configuration) => {
|
|
|
112
112
|
*/
|
|
113
113
|
getMarketOrderbook(ticker: string, depth?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMarketOrderbookResponse>>;
|
|
114
114
|
/**
|
|
115
|
-
* List and discover markets on Kalshi.
|
|
115
|
+
* List and discover markets on Kalshi. A market represents a specific binary outcome within an event that users can trade on (e.g., \"Will candidate X win?\"). Markets have yes/no positions, current prices, volume, and settlement rules. This endpoint returns a paginated response. Use the \'limit\' parameter to control page size (1-1000, defaults to 100). The response includes a \'cursor\' field - pass this value in the \'cursor\' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.
|
|
116
116
|
* @summary Get Markets
|
|
117
117
|
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 1000.
|
|
118
118
|
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
@@ -173,7 +173,7 @@ export declare const MarketsApiFactory: (configuration?: Configuration, basePath
|
|
|
173
173
|
*/
|
|
174
174
|
getMarketOrderbook(ticker: string, depth?: number, options?: RawAxiosRequestConfig): AxiosPromise<GetMarketOrderbookResponse>;
|
|
175
175
|
/**
|
|
176
|
-
* List and discover markets on Kalshi.
|
|
176
|
+
* List and discover markets on Kalshi. A market represents a specific binary outcome within an event that users can trade on (e.g., \"Will candidate X win?\"). Markets have yes/no positions, current prices, volume, and settlement rules. This endpoint returns a paginated response. Use the \'limit\' parameter to control page size (1-1000, defaults to 100). The response includes a \'cursor\' field - pass this value in the \'cursor\' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.
|
|
177
177
|
* @summary Get Markets
|
|
178
178
|
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 1000.
|
|
179
179
|
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
@@ -211,7 +211,7 @@ export declare class MarketsApi extends BaseAPI {
|
|
|
211
211
|
* @param {*} [options] Override http request option.
|
|
212
212
|
* @throws {RequiredError}
|
|
213
213
|
*/
|
|
214
|
-
getMarket(ticker: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMarketResponse, any>>;
|
|
214
|
+
getMarket(ticker: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMarketResponse, any, {}>>;
|
|
215
215
|
/**
|
|
216
216
|
* Get candlestick data for a market within a series
|
|
217
217
|
* @summary Get Market Candlesticks
|
|
@@ -223,7 +223,7 @@ export declare class MarketsApi extends BaseAPI {
|
|
|
223
223
|
* @param {*} [options] Override http request option.
|
|
224
224
|
* @throws {RequiredError}
|
|
225
225
|
*/
|
|
226
|
-
getMarketCandlesticks(ticker: string, marketTicker: string, startTs?: number, endTs?: number, periodInterval?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMarketCandlesticksResponse, any>>;
|
|
226
|
+
getMarketCandlesticks(ticker: string, marketTicker: string, startTs?: number, endTs?: number, periodInterval?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMarketCandlesticksResponse, any, {}>>;
|
|
227
227
|
/**
|
|
228
228
|
* Get the orderbook for a market
|
|
229
229
|
* @summary Get Market Orderbook
|
|
@@ -232,9 +232,9 @@ export declare class MarketsApi extends BaseAPI {
|
|
|
232
232
|
* @param {*} [options] Override http request option.
|
|
233
233
|
* @throws {RequiredError}
|
|
234
234
|
*/
|
|
235
|
-
getMarketOrderbook(ticker: string, depth?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMarketOrderbookResponse, any>>;
|
|
235
|
+
getMarketOrderbook(ticker: string, depth?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMarketOrderbookResponse, any, {}>>;
|
|
236
236
|
/**
|
|
237
|
-
* List and discover markets on Kalshi.
|
|
237
|
+
* List and discover markets on Kalshi. A market represents a specific binary outcome within an event that users can trade on (e.g., \"Will candidate X win?\"). Markets have yes/no positions, current prices, volume, and settlement rules. This endpoint returns a paginated response. Use the \'limit\' parameter to control page size (1-1000, defaults to 100). The response includes a \'cursor\' field - pass this value in the \'cursor\' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.
|
|
238
238
|
* @summary Get Markets
|
|
239
239
|
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 1000.
|
|
240
240
|
* @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
|
|
@@ -247,7 +247,7 @@ export declare class MarketsApi extends BaseAPI {
|
|
|
247
247
|
* @param {*} [options] Override http request option.
|
|
248
248
|
* @throws {RequiredError}
|
|
249
249
|
*/
|
|
250
|
-
getMarkets(limit?: number, cursor?: string, eventTicker?: string, seriesTicker?: string, maxCloseTs?: number, minCloseTs?: number, status?: string, tickers?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMarketsResponse, any>>;
|
|
250
|
+
getMarkets(limit?: number, cursor?: string, eventTicker?: string, seriesTicker?: string, maxCloseTs?: number, minCloseTs?: number, status?: string, tickers?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMarketsResponse, any, {}>>;
|
|
251
251
|
/**
|
|
252
252
|
* Get all trades for all markets. A trade represents a completed transaction between two users on a specific market. Each trade includes the market ticker, price, quantity, and timestamp information. This endpoint returns a paginated response. Use the \'limit\' parameter to control page size (1-1000, defaults to 100). The response includes a \'cursor\' field - pass this value in the \'cursor\' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.
|
|
253
253
|
* @summary Get Trades
|
|
@@ -259,5 +259,5 @@ export declare class MarketsApi extends BaseAPI {
|
|
|
259
259
|
* @param {*} [options] Override http request option.
|
|
260
260
|
* @throws {RequiredError}
|
|
261
261
|
*/
|
|
262
|
-
getTrades(limit?: number, cursor?: string, ticker?: string, minTs?: number, maxTs?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetTradesResponse, any>>;
|
|
262
|
+
getTrades(limit?: number, cursor?: string, ticker?: string, minTs?: number, maxTs?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetTradesResponse, any, {}>>;
|
|
263
263
|
}
|