kalshi-typescript 2.1.0 → 2.1.2
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 -1
- package/README.md +6 -3
- package/api/exchange-api.ts +4 -4
- package/api/markets-api.ts +4 -4
- package/api/portfolio-api.ts +75 -1
- 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/communications-api.d.ts +11 -11
- package/dist/api/events-api.d.ts +3 -3
- package/dist/api/exchange-api.d.ts +8 -8
- package/dist/api/exchange-api.js +4 -4
- package/dist/api/markets-api.d.ts +9 -9
- package/dist/api/markets-api.js +4 -4
- package/dist/api/milestones-api.d.ts +2 -2
- package/dist/api/multivariate-collections-api.d.ts +3 -3
- package/dist/api/portfolio-api.d.ts +52 -19
- package/dist/api/portfolio-api.js +69 -1
- package/dist/api/series-api.d.ts +2 -2
- package/dist/api/structured-targets-api.d.ts +2 -2
- 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/communications-api.d.ts +11 -11
- package/dist/esm/api/events-api.d.ts +3 -3
- package/dist/esm/api/exchange-api.d.ts +8 -8
- package/dist/esm/api/exchange-api.js +4 -4
- package/dist/esm/api/markets-api.d.ts +9 -9
- package/dist/esm/api/markets-api.js +4 -4
- package/dist/esm/api/milestones-api.d.ts +2 -2
- package/dist/esm/api/multivariate-collections-api.d.ts +3 -3
- package/dist/esm/api/portfolio-api.d.ts +52 -19
- package/dist/esm/api/portfolio-api.js +69 -1
- package/dist/esm/api/series-api.d.ts +2 -2
- package/dist/esm/api/structured-targets-api.d.ts +2 -2
- 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
package/dist/auth.d.ts
ADDED
package/dist/auth.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KalshiAuth = void 0;
|
|
4
|
+
const crypto = require("crypto");
|
|
5
|
+
class KalshiAuth {
|
|
6
|
+
constructor(apiKey, privateKeyPem) {
|
|
7
|
+
this.apiKey = apiKey;
|
|
8
|
+
this.privateKeyPem = privateKeyPem;
|
|
9
|
+
}
|
|
10
|
+
signPssText(text) {
|
|
11
|
+
const sign = crypto.createSign('RSA-SHA256');
|
|
12
|
+
sign.update(text);
|
|
13
|
+
sign.end();
|
|
14
|
+
const signature = sign.sign({
|
|
15
|
+
key: this.privateKeyPem,
|
|
16
|
+
padding: crypto.constants.RSA_PKCS1_PSS_PADDING,
|
|
17
|
+
saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST,
|
|
18
|
+
});
|
|
19
|
+
return signature.toString('base64');
|
|
20
|
+
}
|
|
21
|
+
generateAuthHeaders(method, path) {
|
|
22
|
+
const currentTimeMilliseconds = Date.now();
|
|
23
|
+
const timestampStr = currentTimeMilliseconds.toString();
|
|
24
|
+
const msgString = timestampStr + method + path;
|
|
25
|
+
const sig = this.signPssText(msgString);
|
|
26
|
+
return {
|
|
27
|
+
'KALSHI-ACCESS-KEY': this.apiKey,
|
|
28
|
+
'KALSHI-ACCESS-SIGNATURE': sig,
|
|
29
|
+
'KALSHI-ACCESS-TIMESTAMP': timestampStr
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.KalshiAuth = KalshiAuth;
|
package/dist/base.d.ts
CHANGED
|
@@ -10,33 +10,48 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
|
-
import type { AxiosInstance,
|
|
13
|
+
import type { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
|
+
import { KalshiAuth } from './auth';
|
|
14
15
|
export declare const BASE_PATH: string;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
15
20
|
export declare const COLLECTION_FORMATS: {
|
|
16
21
|
csv: string;
|
|
17
22
|
ssv: string;
|
|
18
23
|
tsv: string;
|
|
19
24
|
pipes: string;
|
|
20
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface RequestArgs
|
|
30
|
+
*/
|
|
21
31
|
export interface RequestArgs {
|
|
22
32
|
url: string;
|
|
23
|
-
options:
|
|
33
|
+
options: AxiosRequestConfig;
|
|
24
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @class BaseAPI
|
|
39
|
+
*/
|
|
25
40
|
export declare class BaseAPI {
|
|
26
41
|
protected basePath: string;
|
|
27
42
|
protected axios: AxiosInstance;
|
|
28
43
|
protected configuration: Configuration | undefined;
|
|
44
|
+
protected auth: KalshiAuth | undefined;
|
|
29
45
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
30
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @export
|
|
50
|
+
* @class RequiredError
|
|
51
|
+
* @extends {Error}
|
|
52
|
+
*/
|
|
31
53
|
export declare class RequiredError extends Error {
|
|
32
54
|
field: string;
|
|
55
|
+
name: "RequiredError";
|
|
33
56
|
constructor(field: string, msg?: string);
|
|
34
57
|
}
|
|
35
|
-
interface ServerMap {
|
|
36
|
-
[key: string]: {
|
|
37
|
-
url: string;
|
|
38
|
-
description: string;
|
|
39
|
-
}[];
|
|
40
|
-
}
|
|
41
|
-
export declare const operationServerMap: ServerMap;
|
|
42
|
-
export {};
|
package/dist/base.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
2
|
/**
|
|
5
3
|
* Kalshi Trading API
|
|
6
4
|
* Complete API for the Kalshi trading platform including all handlers for SDK generation
|
|
@@ -13,28 +11,62 @@
|
|
|
13
11
|
* Do not edit the class manually.
|
|
14
12
|
*/
|
|
15
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
14
|
+
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
15
|
const axios_1 = require("axios");
|
|
16
|
+
const auth_1 = require("./auth");
|
|
18
17
|
exports.BASE_PATH = "https://api.elections.kalshi.com/trade-api/v2".replace(/\/+$/, "");
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
19
22
|
exports.COLLECTION_FORMATS = {
|
|
20
23
|
csv: ",",
|
|
21
24
|
ssv: " ",
|
|
22
25
|
tsv: "\t",
|
|
23
26
|
pipes: "|",
|
|
24
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @export
|
|
31
|
+
* @class BaseAPI
|
|
32
|
+
*/
|
|
25
33
|
class BaseAPI {
|
|
26
34
|
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
27
|
-
var _a;
|
|
28
35
|
this.basePath = basePath;
|
|
29
36
|
this.axios = axios;
|
|
30
37
|
if (configuration) {
|
|
31
38
|
this.configuration = configuration;
|
|
32
|
-
this.basePath =
|
|
39
|
+
this.basePath = configuration.basePath || this.basePath;
|
|
40
|
+
// Initialize auth if credentials are provided
|
|
41
|
+
if (configuration.apiKey && (configuration.privateKeyPath || configuration.privateKeyPem)) {
|
|
42
|
+
const privateKey = configuration.privateKeyPem ||
|
|
43
|
+
(configuration.privateKeyPath ? require('fs').readFileSync(configuration.privateKeyPath, 'utf8') : '');
|
|
44
|
+
this.auth = new auth_1.KalshiAuth(configuration.apiKey, privateKey);
|
|
45
|
+
}
|
|
33
46
|
}
|
|
47
|
+
// Add request interceptor for authentication
|
|
48
|
+
this.axios.interceptors.request.use((config) => {
|
|
49
|
+
if (this.auth && config.url && config.method) {
|
|
50
|
+
// Extract path from URL
|
|
51
|
+
const url = new URL(config.url, this.basePath);
|
|
52
|
+
const path = url.pathname;
|
|
53
|
+
const method = config.method.toUpperCase();
|
|
54
|
+
// Generate and add auth headers
|
|
55
|
+
const authHeaders = this.auth.generateAuthHeaders(method, path);
|
|
56
|
+
Object.assign(config.headers, authHeaders);
|
|
57
|
+
}
|
|
58
|
+
return config;
|
|
59
|
+
});
|
|
34
60
|
}
|
|
35
61
|
}
|
|
36
62
|
exports.BaseAPI = BaseAPI;
|
|
37
63
|
;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @export
|
|
67
|
+
* @class RequiredError
|
|
68
|
+
* @extends {Error}
|
|
69
|
+
*/
|
|
38
70
|
class RequiredError extends Error {
|
|
39
71
|
constructor(field, msg) {
|
|
40
72
|
super(msg);
|
|
@@ -43,4 +75,3 @@ class RequiredError extends Error {
|
|
|
43
75
|
}
|
|
44
76
|
}
|
|
45
77
|
exports.RequiredError = RequiredError;
|
|
46
|
-
exports.operationServerMap = {};
|
|
@@ -136,7 +136,7 @@ export declare class ApiKeysApi extends BaseAPI {
|
|
|
136
136
|
* @param {*} [options] Override http request option.
|
|
137
137
|
* @throws {RequiredError}
|
|
138
138
|
*/
|
|
139
|
-
createApiKey(createApiKeyRequest: CreateApiKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateApiKeyResponse, any>>;
|
|
139
|
+
createApiKey(createApiKeyRequest: CreateApiKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateApiKeyResponse, any, {}>>;
|
|
140
140
|
/**
|
|
141
141
|
* Delete an existing API key. This endpoint permanently deletes an API key. Once deleted, the key can no longer be used for authentication. This action cannot be undone.
|
|
142
142
|
* @summary Delete API Key
|
|
@@ -144,7 +144,7 @@ export declare class ApiKeysApi extends BaseAPI {
|
|
|
144
144
|
* @param {*} [options] Override http request option.
|
|
145
145
|
* @throws {RequiredError}
|
|
146
146
|
*/
|
|
147
|
-
deleteApiKey(apiKey: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
147
|
+
deleteApiKey(apiKey: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
148
148
|
/**
|
|
149
149
|
* Generate a new API key with an automatically created key pair. This endpoint generates both a public and private RSA key pair. The public key is stored on the platform, while the private key is returned to the user and must be stored securely. The private key cannot be retrieved again.
|
|
150
150
|
* @summary Generate API Key
|
|
@@ -152,12 +152,12 @@ export declare class ApiKeysApi extends BaseAPI {
|
|
|
152
152
|
* @param {*} [options] Override http request option.
|
|
153
153
|
* @throws {RequiredError}
|
|
154
154
|
*/
|
|
155
|
-
generateApiKey(generateApiKeyRequest: GenerateApiKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateApiKeyResponse, any>>;
|
|
155
|
+
generateApiKey(generateApiKeyRequest: GenerateApiKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateApiKeyResponse, any, {}>>;
|
|
156
156
|
/**
|
|
157
157
|
* Retrieve all API keys associated with the authenticated user. API keys allow programmatic access to the platform without requiring username/password authentication. Each key has a unique identifier and name.
|
|
158
158
|
* @summary Get API Keys
|
|
159
159
|
* @param {*} [options] Override http request option.
|
|
160
160
|
* @throws {RequiredError}
|
|
161
161
|
*/
|
|
162
|
-
getApiKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetApiKeysResponse, any>>;
|
|
162
|
+
getApiKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetApiKeysResponse, any, {}>>;
|
|
163
163
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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}
|
|
@@ -191,7 +191,7 @@ export const ExchangeApiFp = function (configuration) {
|
|
|
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}
|
|
@@ -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
|
}
|
|
@@ -151,7 +151,7 @@ export const MarketsApiAxiosParamCreator = function (configuration) {
|
|
|
151
151
|
};
|
|
152
152
|
}),
|
|
153
153
|
/**
|
|
154
|
-
* List and discover markets on Kalshi.
|
|
154
|
+
* 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.
|
|
155
155
|
* @summary Get Markets
|
|
156
156
|
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 1000.
|
|
157
157
|
* @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.
|
|
@@ -317,7 +317,7 @@ export const MarketsApiFp = function (configuration) {
|
|
|
317
317
|
});
|
|
318
318
|
},
|
|
319
319
|
/**
|
|
320
|
-
* List and discover markets on Kalshi.
|
|
320
|
+
* 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.
|
|
321
321
|
* @summary Get Markets
|
|
322
322
|
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 1000.
|
|
323
323
|
* @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.
|
|
@@ -403,7 +403,7 @@ export const MarketsApiFactory = function (configuration, basePath, axios) {
|
|
|
403
403
|
return localVarFp.getMarketOrderbook(ticker, depth, options).then((request) => request(axios, basePath));
|
|
404
404
|
},
|
|
405
405
|
/**
|
|
406
|
-
* List and discover markets on Kalshi.
|
|
406
|
+
* 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.
|
|
407
407
|
* @summary Get Markets
|
|
408
408
|
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 1000.
|
|
409
409
|
* @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.
|
|
@@ -475,7 +475,7 @@ export class MarketsApi extends BaseAPI {
|
|
|
475
475
|
return MarketsApiFp(this.configuration).getMarketOrderbook(ticker, depth, options).then((request) => request(this.axios, this.basePath));
|
|
476
476
|
}
|
|
477
477
|
/**
|
|
478
|
-
* List and discover markets on Kalshi.
|
|
478
|
+
* 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.
|
|
479
479
|
* @summary Get Markets
|
|
480
480
|
* @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 1000.
|
|
481
481
|
* @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.
|
|
@@ -91,7 +91,7 @@ export declare class MilestonesApi extends BaseAPI {
|
|
|
91
91
|
* @param {*} [options] Override http request option.
|
|
92
92
|
* @throws {RequiredError}
|
|
93
93
|
*/
|
|
94
|
-
getMilestone(milestoneId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMilestoneResponse, any>>;
|
|
94
|
+
getMilestone(milestoneId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMilestoneResponse, any, {}>>;
|
|
95
95
|
/**
|
|
96
96
|
* Get all milestones
|
|
97
97
|
* @summary Get Milestones
|
|
@@ -100,5 +100,5 @@ export declare class MilestonesApi extends BaseAPI {
|
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
101
101
|
* @throws {RequiredError}
|
|
102
102
|
*/
|
|
103
|
-
getMilestones(status?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMilestonesResponse, any>>;
|
|
103
|
+
getMilestones(status?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMilestonesResponse, any, {}>>;
|
|
104
104
|
}
|
|
@@ -117,7 +117,7 @@ export declare class MultivariateCollectionsApi extends BaseAPI {
|
|
|
117
117
|
* @param {*} [options] Override http request option.
|
|
118
118
|
* @throws {RequiredError}
|
|
119
119
|
*/
|
|
120
|
-
getMultivariateEventCollection(collectionTicker: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMultivariateEventCollectionResponse, any>>;
|
|
120
|
+
getMultivariateEventCollection(collectionTicker: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMultivariateEventCollectionResponse, any, {}>>;
|
|
121
121
|
/**
|
|
122
122
|
* Get all multivariate event collections
|
|
123
123
|
* @summary Get Multivariate Event Collections
|
|
@@ -125,7 +125,7 @@ export declare class MultivariateCollectionsApi extends BaseAPI {
|
|
|
125
125
|
* @param {*} [options] Override http request option.
|
|
126
126
|
* @throws {RequiredError}
|
|
127
127
|
*/
|
|
128
|
-
getMultivariateEventCollections(status?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMultivariateEventCollectionsResponse, any>>;
|
|
128
|
+
getMultivariateEventCollections(status?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMultivariateEventCollectionsResponse, any, {}>>;
|
|
129
129
|
/**
|
|
130
130
|
* Lookup a bundle in a multivariate event collection
|
|
131
131
|
* @summary Lookup Multivariate Event Collection Bundle
|
|
@@ -134,5 +134,5 @@ export declare class MultivariateCollectionsApi extends BaseAPI {
|
|
|
134
134
|
* @param {*} [options] Override http request option.
|
|
135
135
|
* @throws {RequiredError}
|
|
136
136
|
*/
|
|
137
|
-
lookupMultivariateEventCollectionBundle(collectionTicker: string, lookupBundleRequest: LookupBundleRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LookupBundleResponse, any>>;
|
|
137
|
+
lookupMultivariateEventCollectionBundle(collectionTicker: string, lookupBundleRequest: LookupBundleRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LookupBundleResponse, any, {}>>;
|
|
138
138
|
}
|