/** * Kalshi Trade API Manual Endpoints * Manually defined OpenAPI spec for endpoints being migrated to spec-first approach * * The version of the OpenAPI document: 3.36.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import { type RequestArgs, BaseAPI } from '../base'; import type { GetAccountApiLimitsResponse } from '../models'; import type { GetAccountApiUsageLevelVolumeProgressResponse } from '../models'; import type { GetAccountEndpointCostsResponse } from '../models'; /** * AccountApi - axios parameter creator */ export declare const AccountApiAxiosParamCreator: (configuration?: Configuration) => { /** * Endpoint to retrieve the authenticated user\'s Predictions API usage tier and token-bucket limits. Public Predictions tiers include Basic, Advanced, Expert, Premier, Paragon, Prime, and Prestige. * @summary Get Account API Limits * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountApiLimits: (options?: RawAxiosRequestConfig) => Promise; /** * Returns the authenticated user\'s latest cron-computed trading volume progress toward volume-based API usage tiers for the predictions (event_contract) lane. Volume figures are reported as fixed-point contract counts. * @summary Get Account API Usage Level Volume Progress * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountApiUsageLevelVolumeProgress: (options?: RawAxiosRequestConfig) => Promise; /** * Lists API v2 endpoints whose configured token cost differs from the default cost. Endpoints that use the default cost are omitted. * @summary List Non-Default Endpoint Costs * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountEndpointCosts: (options?: RawAxiosRequestConfig) => Promise; /** * Grants a permanent Advanced API usage-level grant. Currently only the Predictions exchange instance is supported. Criteria: at least 1 of the user\'s last 100 Predictions orders was created via API. Use Get Account API Limits to inspect the resulting usage tier and grants. * @summary Upgrade Account API Usage Level * @param {*} [options] Override http request option. * @throws {RequiredError} */ upgradeAccountApiUsageLevel: (options?: RawAxiosRequestConfig) => Promise; }; /** * AccountApi - functional programming interface */ export declare const AccountApiFp: (configuration?: Configuration) => { /** * Endpoint to retrieve the authenticated user\'s Predictions API usage tier and token-bucket limits. Public Predictions tiers include Basic, Advanced, Expert, Premier, Paragon, Prime, and Prestige. * @summary Get Account API Limits * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountApiLimits(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns the authenticated user\'s latest cron-computed trading volume progress toward volume-based API usage tiers for the predictions (event_contract) lane. Volume figures are reported as fixed-point contract counts. * @summary Get Account API Usage Level Volume Progress * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountApiUsageLevelVolumeProgress(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Lists API v2 endpoints whose configured token cost differs from the default cost. Endpoints that use the default cost are omitted. * @summary List Non-Default Endpoint Costs * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountEndpointCosts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Grants a permanent Advanced API usage-level grant. Currently only the Predictions exchange instance is supported. Criteria: at least 1 of the user\'s last 100 Predictions orders was created via API. Use Get Account API Limits to inspect the resulting usage tier and grants. * @summary Upgrade Account API Usage Level * @param {*} [options] Override http request option. * @throws {RequiredError} */ upgradeAccountApiUsageLevel(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * AccountApi - factory interface */ export declare const AccountApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Endpoint to retrieve the authenticated user\'s Predictions API usage tier and token-bucket limits. Public Predictions tiers include Basic, Advanced, Expert, Premier, Paragon, Prime, and Prestige. * @summary Get Account API Limits * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountApiLimits(options?: RawAxiosRequestConfig): AxiosPromise; /** * Returns the authenticated user\'s latest cron-computed trading volume progress toward volume-based API usage tiers for the predictions (event_contract) lane. Volume figures are reported as fixed-point contract counts. * @summary Get Account API Usage Level Volume Progress * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountApiUsageLevelVolumeProgress(options?: RawAxiosRequestConfig): AxiosPromise; /** * Lists API v2 endpoints whose configured token cost differs from the default cost. Endpoints that use the default cost are omitted. * @summary List Non-Default Endpoint Costs * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountEndpointCosts(options?: RawAxiosRequestConfig): AxiosPromise; /** * Grants a permanent Advanced API usage-level grant. Currently only the Predictions exchange instance is supported. Criteria: at least 1 of the user\'s last 100 Predictions orders was created via API. Use Get Account API Limits to inspect the resulting usage tier and grants. * @summary Upgrade Account API Usage Level * @param {*} [options] Override http request option. * @throws {RequiredError} */ upgradeAccountApiUsageLevel(options?: RawAxiosRequestConfig): AxiosPromise; }; /** * AccountApi - object-oriented interface */ export declare class AccountApi extends BaseAPI { /** * Endpoint to retrieve the authenticated user\'s Predictions API usage tier and token-bucket limits. Public Predictions tiers include Basic, Advanced, Expert, Premier, Paragon, Prime, and Prestige. * @summary Get Account API Limits * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountApiLimits(options?: RawAxiosRequestConfig): Promise>; /** * Returns the authenticated user\'s latest cron-computed trading volume progress toward volume-based API usage tiers for the predictions (event_contract) lane. Volume figures are reported as fixed-point contract counts. * @summary Get Account API Usage Level Volume Progress * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountApiUsageLevelVolumeProgress(options?: RawAxiosRequestConfig): Promise>; /** * Lists API v2 endpoints whose configured token cost differs from the default cost. Endpoints that use the default cost are omitted. * @summary List Non-Default Endpoint Costs * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountEndpointCosts(options?: RawAxiosRequestConfig): Promise>; /** * Grants a permanent Advanced API usage-level grant. Currently only the Predictions exchange instance is supported. Criteria: at least 1 of the user\'s last 100 Predictions orders was created via API. Use Get Account API Limits to inspect the resulting usage tier and grants. * @summary Upgrade Account API Usage Level * @param {*} [options] Override http request option. * @throws {RequiredError} */ upgradeAccountApiUsageLevel(options?: RawAxiosRequestConfig): Promise>; }