/** * 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 { ApplySubaccountTransferRequest } from '../models'; import type { CreateSubaccountRequest } from '../models'; import type { CreateSubaccountResponse } from '../models'; import type { GetBalanceResponse } from '../models'; import type { GetCreditHistoryResponse } from '../models'; import type { GetDepositsResponse } from '../models'; import type { GetFillsResponse } from '../models'; import type { GetIntraExchangeInstanceTransferResponse } from '../models'; import type { GetIntraExchangeInstanceTransfersResponse } from '../models'; import type { GetPortfolioRestingOrderTotalValueResponse } from '../models'; import type { GetPositionsResponse } from '../models'; import type { GetSettlementsResponse } from '../models'; import type { GetSubaccountBalancesResponse } from '../models'; import type { GetSubaccountNettingResponse } from '../models'; import type { GetSubaccountTransfersResponse } from '../models'; import type { GetTargetBalanceAllocationResponse } from '../models'; import type { GetWithdrawalsResponse } from '../models'; import type { IntraExchangeInstanceTransferRequest } from '../models'; import type { IntraExchangeInstanceTransferResponse } from '../models'; import type { SetTargetBalanceAllocationRequest } from '../models'; import type { UpdateSubaccountNettingRequest } from '../models'; /** * PortfolioApi - axios parameter creator */ export declare const PortfolioApiAxiosParamCreator: (configuration?: Configuration) => { /** * Transfers funds between the authenticated user\'s subaccounts. Use 0 for the primary account, or 1-63 for numbered subaccounts. Set exchange_index to apply the transfer on a specific exchange shard (defaults to 0). * @summary Transfer Between Subaccounts * @param {ApplySubaccountTransferRequest} applySubaccountTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ applySubaccountTransfer: (applySubaccountTransferRequest: ApplySubaccountTransferRequest, options?: RawAxiosRequestConfig) => Promise; /** * Creates a new subaccount for the authenticated user. This endpoint is available to all users on the Advanced API tier and above. Subaccounts are numbered sequentially starting from 1. Maximum 63 numbered subaccounts per user (64 including the primary account). * @summary Create Subaccount * @param {CreateSubaccountRequest} [createSubaccountRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSubaccount: (createSubaccountRequest?: CreateSubaccountRequest, options?: RawAxiosRequestConfig) => Promise; /** * Returns the balance and portfolio value for a member. Both values include all exchange indexes unless `exchange_index` is provided. Pass `subaccount` to use a subaccount instead of the primary account. This endpoint also accepts API keys with the \'read::portfolio_balance\' scope. For per-subaccount balances, use `GET /portfolio/subaccounts/balances`. It returns existing subaccount and exchange index pairs, so its entry count can differ from `balance_breakdown`. The breakdown uses portfolio valuation snapshots; separate requests may reflect different stages of transfer processing. **Rate limit:** this endpoint has its own bucket, separate from the Read budget. Basic and Advanced tiers may call it **1 time per second**; all higher tiers may call it **5 times per second**. The bucket holds one second of budget, so there is no burst. Calls to this endpoint do not draw down the Read budget, and other reads do not draw down this bucket. Balance only changes on fills, settlements and transfers, so react to those (for example the user fills websocket channel) instead of polling this endpoint. * @summary Get Balance * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). Defaults to 0. Subaccount-restricted API keys default to their locked subaccount and must omit this parameter or pass their locked subaccount. * @param {number} [exchangeIndex] Exchange index used to scope the balance and portfolio value. If omitted, both include all exchange indexes. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBalance: (subaccount?: number, exchangeIndex?: number, options?: RawAxiosRequestConfig) => Promise; /** * Returns the authenticated member\'s credit history, newest first. Filters apply to credit creation time: `min_ts` is inclusive and `max_ts` is exclusive. * @summary Get Credit History * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {number} [minTs] Filter items after this Unix timestamp * @param {number} [maxTs] Filter items before this Unix timestamp * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCreditHistory: (limit?: number, cursor?: string, minTs?: number, maxTs?: number, options?: RawAxiosRequestConfig) => Promise; /** * Endpoint for getting the member\'s deposit history. * @summary Get Deposits * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 500. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDeposits: (limit?: number, cursor?: string, options?: RawAxiosRequestConfig) => Promise; /** * Endpoint for getting all fills for the member. A fill is when a trade you have is matched. Registered partners may also use a user OAuth access token with the explicitly granted read::compliance_partner scope. Fills that occurred before the historical cutoff are only available via `GET /historical/fills`. See [Historical Data](https://docs.kalshi.com/getting_started/historical_data) for details. * @summary Get Fills * @param {string} [ticker] Filter by market ticker. Accepts a comma-separated list of up to 100 market tickers. * @param {string} [orderId] Filter by order ID * @param {number} [minTs] Filter items after this Unix timestamp * @param {number} [maxTs] Filter items before this Unix timestamp * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). If omitted, defaults to all subaccounts. * @param {number} [exchangeIndex] Filter results by exchange shard. Omit to return results from all exchange shards. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFills: (ticker?: string, orderId?: string, minTs?: number, maxTs?: number, limit?: number, cursor?: string, subaccount?: number, exchangeIndex?: number, options?: RawAxiosRequestConfig) => Promise; /** * Endpoint for getting a single intra-account transfer by id. * @summary Get Intra Account Transfer * @param {string} transferId Transfer id returned by creation endpoint * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIntraExchangeInstanceTransfer: (transferId: string, options?: RawAxiosRequestConfig) => Promise; /** * Endpoint for fetching intra-exchange account transfer history. * @summary Get Intra Account Transfers * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 500. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIntraExchangeInstanceTransfers: (limit?: number, cursor?: string, options?: RawAxiosRequestConfig) => Promise; /** * Endpoint for getting the total value, in cents, of resting orders. This endpoint is only intended for use by FCM members (rare). Note: If you\'re uncertain about this endpoint, it likely does not apply to you. * @summary Get Total Resting Order Value * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPortfolioRestingOrderTotalValue: (options?: RawAxiosRequestConfig) => Promise; /** * Returns unsettled positions by default, including closed markets awaiting determination or settlement. These may retain non-zero quantities and cost basis. Check the market\'s `status` via `GET /markets/{ticker}` for trading status. Set `settlement_status=settled` for unarchived settled positions or `all` for both states. These results paginate by event ticker; cursors are specific to settlement status. Archived positions are available via `GET /historical/positions`. Use `count_filter=position` for non-zero net holdings, including closed, unsettled markets. Without a count filter, results may include fully exited positions with trading history, realized P&L or fees. Registered partners may also use a user OAuth access token with the explicitly granted read::compliance_partner scope. * @summary Get Positions * @param {string} [cursor] The Cursor represents a pointer to the next page of records in the pagination. Use the value returned from the previous response to get the next page. * @param {number} [limit] Parameter to specify the number of results per page. Defaults to 100. * @param {string} [countFilter] Comma-separated filters combined with OR: `position` (non-zero net contracts), `total_traded` (any contracts traded, including fully exited positions). Omit for no count filter. * @param {GetPositionsSettlementStatusEnum} [settlementStatus] Filters settlement state, not trading status: `unsettled` (default), `settled` (not yet archived), or `all` (both live states). * @param {string} [ticker] Filter by market ticker * @param {string} [eventTicker] Event ticker to filter by. Only a single event ticker is supported. * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). Defaults to 0. Subaccount-restricted API keys default to their locked subaccount and must omit this parameter or pass their locked subaccount. * @param {number} [exchangeIndex] Filter results by exchange shard. Omit to return results from all exchange shards. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPositions: (cursor?: string, limit?: number, countFilter?: string, settlementStatus?: GetPositionsSettlementStatusEnum, ticker?: string, eventTicker?: string, subaccount?: number, exchangeIndex?: number, options?: RawAxiosRequestConfig) => Promise; /** * Returns settlement records still in the live data set. Archived positions are available via `GET /historical/positions`, which has different fields; this endpoint does not return archived settlement records. Resource-bound MCP OAuth tokens may read the owner\'s settlements with read::mcp_portfolio. * @summary Get Settlements * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {string} [ticker] Filter by market ticker * @param {string} [eventTicker] Event ticker to filter by. Only a single event ticker is supported. * @param {number} [minTs] Filter items after this Unix timestamp * @param {number} [maxTs] Filter items before this Unix timestamp * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). If omitted, defaults to all subaccounts. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSettlements: (limit?: number, cursor?: string, ticker?: string, eventTicker?: string, minTs?: number, maxTs?: number, subaccount?: number, options?: RawAxiosRequestConfig) => Promise; /** * Returns balances for all subaccounts, including the primary account. Only existing subaccount and exchange index pairs are returned, including pairs with a zero balance. A pair can exist before it is funded. For an API key restricted to a subaccount, returns only that subaccount\'s balances. * @summary Get All Subaccount Balances * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubaccountBalances: (options?: RawAxiosRequestConfig) => Promise; /** * Gets the netting enabled settings for all subaccounts. * @summary Get Subaccount Netting * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubaccountNetting: (options?: RawAxiosRequestConfig) => Promise; /** * Gets a paginated list of all transfers between subaccounts for the authenticated user. * @summary Get Subaccount Transfers * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubaccountTransfers: (limit?: number, cursor?: string, options?: RawAxiosRequestConfig) => Promise; /** * Retrieves the caller\'s target balance allocation across exchange indexes. * @summary Get Target Balance Allocation * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTargetBalanceAllocation: (options?: RawAxiosRequestConfig) => Promise; /** * Endpoint for getting the member\'s withdrawal history. * @summary Get Withdrawals * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 500. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWithdrawals: (limit?: number, cursor?: string, options?: RawAxiosRequestConfig) => Promise; /** * Transfers funds within the same account. Subaccount-restricted API keys can only transfer between `event_contract` exchange indices, with `source_subaccount` and `destination_subaccount` both set to the key\'s subaccount. When `source_exchange_shard` and `destination_exchange_shard` are the same, Kalshi treats the request as a subaccount transfer. The returned transfer ID appears in the subaccount transfer history. Cross-exchange-index subaccount transfers run in up to three non-atomic steps. If a later step fails, completed steps are not undone, so funds may remain in the primary account on the source or destination exchange index. * @summary Intra Account Transfer * @param {IntraExchangeInstanceTransferRequest} intraExchangeInstanceTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ intraExchangeInstanceTransfer: (intraExchangeInstanceTransferRequest: IntraExchangeInstanceTransferRequest, options?: RawAxiosRequestConfig) => Promise; /** * Replaces the caller\'s target balance allocation across exchange indexes. Percentages must total 100. Passing an empty allocations array disables automatic rebalancing. * @summary Set Target Balance Allocation * @param {SetTargetBalanceAllocationRequest} setTargetBalanceAllocationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ setTargetBalanceAllocation: (setTargetBalanceAllocationRequest: SetTargetBalanceAllocationRequest, options?: RawAxiosRequestConfig) => Promise; /** * Updates the netting enabled setting for a specific subaccount. Use 0 for the primary account, or 1-63 for numbered subaccounts. * @summary Update Subaccount Netting * @param {UpdateSubaccountNettingRequest} updateSubaccountNettingRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSubaccountNetting: (updateSubaccountNettingRequest: UpdateSubaccountNettingRequest, options?: RawAxiosRequestConfig) => Promise; }; /** * PortfolioApi - functional programming interface */ export declare const PortfolioApiFp: (configuration?: Configuration) => { /** * Transfers funds between the authenticated user\'s subaccounts. Use 0 for the primary account, or 1-63 for numbered subaccounts. Set exchange_index to apply the transfer on a specific exchange shard (defaults to 0). * @summary Transfer Between Subaccounts * @param {ApplySubaccountTransferRequest} applySubaccountTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ applySubaccountTransfer(applySubaccountTransferRequest: ApplySubaccountTransferRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Creates a new subaccount for the authenticated user. This endpoint is available to all users on the Advanced API tier and above. Subaccounts are numbered sequentially starting from 1. Maximum 63 numbered subaccounts per user (64 including the primary account). * @summary Create Subaccount * @param {CreateSubaccountRequest} [createSubaccountRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSubaccount(createSubaccountRequest?: CreateSubaccountRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns the balance and portfolio value for a member. Both values include all exchange indexes unless `exchange_index` is provided. Pass `subaccount` to use a subaccount instead of the primary account. This endpoint also accepts API keys with the \'read::portfolio_balance\' scope. For per-subaccount balances, use `GET /portfolio/subaccounts/balances`. It returns existing subaccount and exchange index pairs, so its entry count can differ from `balance_breakdown`. The breakdown uses portfolio valuation snapshots; separate requests may reflect different stages of transfer processing. **Rate limit:** this endpoint has its own bucket, separate from the Read budget. Basic and Advanced tiers may call it **1 time per second**; all higher tiers may call it **5 times per second**. The bucket holds one second of budget, so there is no burst. Calls to this endpoint do not draw down the Read budget, and other reads do not draw down this bucket. Balance only changes on fills, settlements and transfers, so react to those (for example the user fills websocket channel) instead of polling this endpoint. * @summary Get Balance * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). Defaults to 0. Subaccount-restricted API keys default to their locked subaccount and must omit this parameter or pass their locked subaccount. * @param {number} [exchangeIndex] Exchange index used to scope the balance and portfolio value. If omitted, both include all exchange indexes. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBalance(subaccount?: number, exchangeIndex?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns the authenticated member\'s credit history, newest first. Filters apply to credit creation time: `min_ts` is inclusive and `max_ts` is exclusive. * @summary Get Credit History * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {number} [minTs] Filter items after this Unix timestamp * @param {number} [maxTs] Filter items before this Unix timestamp * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCreditHistory(limit?: number, cursor?: string, minTs?: number, maxTs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Endpoint for getting the member\'s deposit history. * @summary Get Deposits * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 500. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDeposits(limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Endpoint for getting all fills for the member. A fill is when a trade you have is matched. Registered partners may also use a user OAuth access token with the explicitly granted read::compliance_partner scope. Fills that occurred before the historical cutoff are only available via `GET /historical/fills`. See [Historical Data](https://docs.kalshi.com/getting_started/historical_data) for details. * @summary Get Fills * @param {string} [ticker] Filter by market ticker. Accepts a comma-separated list of up to 100 market tickers. * @param {string} [orderId] Filter by order ID * @param {number} [minTs] Filter items after this Unix timestamp * @param {number} [maxTs] Filter items before this Unix timestamp * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). If omitted, defaults to all subaccounts. * @param {number} [exchangeIndex] Filter results by exchange shard. Omit to return results from all exchange shards. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFills(ticker?: string, orderId?: string, minTs?: number, maxTs?: number, limit?: number, cursor?: string, subaccount?: number, exchangeIndex?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Endpoint for getting a single intra-account transfer by id. * @summary Get Intra Account Transfer * @param {string} transferId Transfer id returned by creation endpoint * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIntraExchangeInstanceTransfer(transferId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Endpoint for fetching intra-exchange account transfer history. * @summary Get Intra Account Transfers * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 500. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIntraExchangeInstanceTransfers(limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Endpoint for getting the total value, in cents, of resting orders. This endpoint is only intended for use by FCM members (rare). Note: If you\'re uncertain about this endpoint, it likely does not apply to you. * @summary Get Total Resting Order Value * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPortfolioRestingOrderTotalValue(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns unsettled positions by default, including closed markets awaiting determination or settlement. These may retain non-zero quantities and cost basis. Check the market\'s `status` via `GET /markets/{ticker}` for trading status. Set `settlement_status=settled` for unarchived settled positions or `all` for both states. These results paginate by event ticker; cursors are specific to settlement status. Archived positions are available via `GET /historical/positions`. Use `count_filter=position` for non-zero net holdings, including closed, unsettled markets. Without a count filter, results may include fully exited positions with trading history, realized P&L or fees. Registered partners may also use a user OAuth access token with the explicitly granted read::compliance_partner scope. * @summary Get Positions * @param {string} [cursor] The Cursor represents a pointer to the next page of records in the pagination. Use the value returned from the previous response to get the next page. * @param {number} [limit] Parameter to specify the number of results per page. Defaults to 100. * @param {string} [countFilter] Comma-separated filters combined with OR: `position` (non-zero net contracts), `total_traded` (any contracts traded, including fully exited positions). Omit for no count filter. * @param {GetPositionsSettlementStatusEnum} [settlementStatus] Filters settlement state, not trading status: `unsettled` (default), `settled` (not yet archived), or `all` (both live states). * @param {string} [ticker] Filter by market ticker * @param {string} [eventTicker] Event ticker to filter by. Only a single event ticker is supported. * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). Defaults to 0. Subaccount-restricted API keys default to their locked subaccount and must omit this parameter or pass their locked subaccount. * @param {number} [exchangeIndex] Filter results by exchange shard. Omit to return results from all exchange shards. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPositions(cursor?: string, limit?: number, countFilter?: string, settlementStatus?: GetPositionsSettlementStatusEnum, ticker?: string, eventTicker?: string, subaccount?: number, exchangeIndex?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns settlement records still in the live data set. Archived positions are available via `GET /historical/positions`, which has different fields; this endpoint does not return archived settlement records. Resource-bound MCP OAuth tokens may read the owner\'s settlements with read::mcp_portfolio. * @summary Get Settlements * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {string} [ticker] Filter by market ticker * @param {string} [eventTicker] Event ticker to filter by. Only a single event ticker is supported. * @param {number} [minTs] Filter items after this Unix timestamp * @param {number} [maxTs] Filter items before this Unix timestamp * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). If omitted, defaults to all subaccounts. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSettlements(limit?: number, cursor?: string, ticker?: string, eventTicker?: string, minTs?: number, maxTs?: number, subaccount?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns balances for all subaccounts, including the primary account. Only existing subaccount and exchange index pairs are returned, including pairs with a zero balance. A pair can exist before it is funded. For an API key restricted to a subaccount, returns only that subaccount\'s balances. * @summary Get All Subaccount Balances * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubaccountBalances(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Gets the netting enabled settings for all subaccounts. * @summary Get Subaccount Netting * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubaccountNetting(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Gets a paginated list of all transfers between subaccounts for the authenticated user. * @summary Get Subaccount Transfers * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubaccountTransfers(limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Retrieves the caller\'s target balance allocation across exchange indexes. * @summary Get Target Balance Allocation * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTargetBalanceAllocation(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Endpoint for getting the member\'s withdrawal history. * @summary Get Withdrawals * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 500. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWithdrawals(limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Transfers funds within the same account. Subaccount-restricted API keys can only transfer between `event_contract` exchange indices, with `source_subaccount` and `destination_subaccount` both set to the key\'s subaccount. When `source_exchange_shard` and `destination_exchange_shard` are the same, Kalshi treats the request as a subaccount transfer. The returned transfer ID appears in the subaccount transfer history. Cross-exchange-index subaccount transfers run in up to three non-atomic steps. If a later step fails, completed steps are not undone, so funds may remain in the primary account on the source or destination exchange index. * @summary Intra Account Transfer * @param {IntraExchangeInstanceTransferRequest} intraExchangeInstanceTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ intraExchangeInstanceTransfer(intraExchangeInstanceTransferRequest: IntraExchangeInstanceTransferRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Replaces the caller\'s target balance allocation across exchange indexes. Percentages must total 100. Passing an empty allocations array disables automatic rebalancing. * @summary Set Target Balance Allocation * @param {SetTargetBalanceAllocationRequest} setTargetBalanceAllocationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ setTargetBalanceAllocation(setTargetBalanceAllocationRequest: SetTargetBalanceAllocationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Updates the netting enabled setting for a specific subaccount. Use 0 for the primary account, or 1-63 for numbered subaccounts. * @summary Update Subaccount Netting * @param {UpdateSubaccountNettingRequest} updateSubaccountNettingRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSubaccountNetting(updateSubaccountNettingRequest: UpdateSubaccountNettingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * PortfolioApi - factory interface */ export declare const PortfolioApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Transfers funds between the authenticated user\'s subaccounts. Use 0 for the primary account, or 1-63 for numbered subaccounts. Set exchange_index to apply the transfer on a specific exchange shard (defaults to 0). * @summary Transfer Between Subaccounts * @param {ApplySubaccountTransferRequest} applySubaccountTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ applySubaccountTransfer(applySubaccountTransferRequest: ApplySubaccountTransferRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Creates a new subaccount for the authenticated user. This endpoint is available to all users on the Advanced API tier and above. Subaccounts are numbered sequentially starting from 1. Maximum 63 numbered subaccounts per user (64 including the primary account). * @summary Create Subaccount * @param {CreateSubaccountRequest} [createSubaccountRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSubaccount(createSubaccountRequest?: CreateSubaccountRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Returns the balance and portfolio value for a member. Both values include all exchange indexes unless `exchange_index` is provided. Pass `subaccount` to use a subaccount instead of the primary account. This endpoint also accepts API keys with the \'read::portfolio_balance\' scope. For per-subaccount balances, use `GET /portfolio/subaccounts/balances`. It returns existing subaccount and exchange index pairs, so its entry count can differ from `balance_breakdown`. The breakdown uses portfolio valuation snapshots; separate requests may reflect different stages of transfer processing. **Rate limit:** this endpoint has its own bucket, separate from the Read budget. Basic and Advanced tiers may call it **1 time per second**; all higher tiers may call it **5 times per second**. The bucket holds one second of budget, so there is no burst. Calls to this endpoint do not draw down the Read budget, and other reads do not draw down this bucket. Balance only changes on fills, settlements and transfers, so react to those (for example the user fills websocket channel) instead of polling this endpoint. * @summary Get Balance * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). Defaults to 0. Subaccount-restricted API keys default to their locked subaccount and must omit this parameter or pass their locked subaccount. * @param {number} [exchangeIndex] Exchange index used to scope the balance and portfolio value. If omitted, both include all exchange indexes. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBalance(subaccount?: number, exchangeIndex?: number, options?: RawAxiosRequestConfig): AxiosPromise; /** * Returns the authenticated member\'s credit history, newest first. Filters apply to credit creation time: `min_ts` is inclusive and `max_ts` is exclusive. * @summary Get Credit History * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {number} [minTs] Filter items after this Unix timestamp * @param {number} [maxTs] Filter items before this Unix timestamp * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCreditHistory(limit?: number, cursor?: string, minTs?: number, maxTs?: number, options?: RawAxiosRequestConfig): AxiosPromise; /** * Endpoint for getting the member\'s deposit history. * @summary Get Deposits * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 500. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDeposits(limit?: number, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Endpoint for getting all fills for the member. A fill is when a trade you have is matched. Registered partners may also use a user OAuth access token with the explicitly granted read::compliance_partner scope. Fills that occurred before the historical cutoff are only available via `GET /historical/fills`. See [Historical Data](https://docs.kalshi.com/getting_started/historical_data) for details. * @summary Get Fills * @param {string} [ticker] Filter by market ticker. Accepts a comma-separated list of up to 100 market tickers. * @param {string} [orderId] Filter by order ID * @param {number} [minTs] Filter items after this Unix timestamp * @param {number} [maxTs] Filter items before this Unix timestamp * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). If omitted, defaults to all subaccounts. * @param {number} [exchangeIndex] Filter results by exchange shard. Omit to return results from all exchange shards. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFills(ticker?: string, orderId?: string, minTs?: number, maxTs?: number, limit?: number, cursor?: string, subaccount?: number, exchangeIndex?: number, options?: RawAxiosRequestConfig): AxiosPromise; /** * Endpoint for getting a single intra-account transfer by id. * @summary Get Intra Account Transfer * @param {string} transferId Transfer id returned by creation endpoint * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIntraExchangeInstanceTransfer(transferId: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Endpoint for fetching intra-exchange account transfer history. * @summary Get Intra Account Transfers * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 500. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIntraExchangeInstanceTransfers(limit?: number, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Endpoint for getting the total value, in cents, of resting orders. This endpoint is only intended for use by FCM members (rare). Note: If you\'re uncertain about this endpoint, it likely does not apply to you. * @summary Get Total Resting Order Value * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPortfolioRestingOrderTotalValue(options?: RawAxiosRequestConfig): AxiosPromise; /** * Returns unsettled positions by default, including closed markets awaiting determination or settlement. These may retain non-zero quantities and cost basis. Check the market\'s `status` via `GET /markets/{ticker}` for trading status. Set `settlement_status=settled` for unarchived settled positions or `all` for both states. These results paginate by event ticker; cursors are specific to settlement status. Archived positions are available via `GET /historical/positions`. Use `count_filter=position` for non-zero net holdings, including closed, unsettled markets. Without a count filter, results may include fully exited positions with trading history, realized P&L or fees. Registered partners may also use a user OAuth access token with the explicitly granted read::compliance_partner scope. * @summary Get Positions * @param {string} [cursor] The Cursor represents a pointer to the next page of records in the pagination. Use the value returned from the previous response to get the next page. * @param {number} [limit] Parameter to specify the number of results per page. Defaults to 100. * @param {string} [countFilter] Comma-separated filters combined with OR: `position` (non-zero net contracts), `total_traded` (any contracts traded, including fully exited positions). Omit for no count filter. * @param {GetPositionsSettlementStatusEnum} [settlementStatus] Filters settlement state, not trading status: `unsettled` (default), `settled` (not yet archived), or `all` (both live states). * @param {string} [ticker] Filter by market ticker * @param {string} [eventTicker] Event ticker to filter by. Only a single event ticker is supported. * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). Defaults to 0. Subaccount-restricted API keys default to their locked subaccount and must omit this parameter or pass their locked subaccount. * @param {number} [exchangeIndex] Filter results by exchange shard. Omit to return results from all exchange shards. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPositions(cursor?: string, limit?: number, countFilter?: string, settlementStatus?: GetPositionsSettlementStatusEnum, ticker?: string, eventTicker?: string, subaccount?: number, exchangeIndex?: number, options?: RawAxiosRequestConfig): AxiosPromise; /** * Returns settlement records still in the live data set. Archived positions are available via `GET /historical/positions`, which has different fields; this endpoint does not return archived settlement records. Resource-bound MCP OAuth tokens may read the owner\'s settlements with read::mcp_portfolio. * @summary Get Settlements * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {string} [ticker] Filter by market ticker * @param {string} [eventTicker] Event ticker to filter by. Only a single event ticker is supported. * @param {number} [minTs] Filter items after this Unix timestamp * @param {number} [maxTs] Filter items before this Unix timestamp * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). If omitted, defaults to all subaccounts. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSettlements(limit?: number, cursor?: string, ticker?: string, eventTicker?: string, minTs?: number, maxTs?: number, subaccount?: number, options?: RawAxiosRequestConfig): AxiosPromise; /** * Returns balances for all subaccounts, including the primary account. Only existing subaccount and exchange index pairs are returned, including pairs with a zero balance. A pair can exist before it is funded. For an API key restricted to a subaccount, returns only that subaccount\'s balances. * @summary Get All Subaccount Balances * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubaccountBalances(options?: RawAxiosRequestConfig): AxiosPromise; /** * Gets the netting enabled settings for all subaccounts. * @summary Get Subaccount Netting * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubaccountNetting(options?: RawAxiosRequestConfig): AxiosPromise; /** * Gets a paginated list of all transfers between subaccounts for the authenticated user. * @summary Get Subaccount Transfers * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubaccountTransfers(limit?: number, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Retrieves the caller\'s target balance allocation across exchange indexes. * @summary Get Target Balance Allocation * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTargetBalanceAllocation(options?: RawAxiosRequestConfig): AxiosPromise; /** * Endpoint for getting the member\'s withdrawal history. * @summary Get Withdrawals * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 500. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWithdrawals(limit?: number, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Transfers funds within the same account. Subaccount-restricted API keys can only transfer between `event_contract` exchange indices, with `source_subaccount` and `destination_subaccount` both set to the key\'s subaccount. When `source_exchange_shard` and `destination_exchange_shard` are the same, Kalshi treats the request as a subaccount transfer. The returned transfer ID appears in the subaccount transfer history. Cross-exchange-index subaccount transfers run in up to three non-atomic steps. If a later step fails, completed steps are not undone, so funds may remain in the primary account on the source or destination exchange index. * @summary Intra Account Transfer * @param {IntraExchangeInstanceTransferRequest} intraExchangeInstanceTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ intraExchangeInstanceTransfer(intraExchangeInstanceTransferRequest: IntraExchangeInstanceTransferRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Replaces the caller\'s target balance allocation across exchange indexes. Percentages must total 100. Passing an empty allocations array disables automatic rebalancing. * @summary Set Target Balance Allocation * @param {SetTargetBalanceAllocationRequest} setTargetBalanceAllocationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ setTargetBalanceAllocation(setTargetBalanceAllocationRequest: SetTargetBalanceAllocationRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Updates the netting enabled setting for a specific subaccount. Use 0 for the primary account, or 1-63 for numbered subaccounts. * @summary Update Subaccount Netting * @param {UpdateSubaccountNettingRequest} updateSubaccountNettingRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSubaccountNetting(updateSubaccountNettingRequest: UpdateSubaccountNettingRequest, options?: RawAxiosRequestConfig): AxiosPromise; }; /** * PortfolioApi - object-oriented interface */ export declare class PortfolioApi extends BaseAPI { /** * Transfers funds between the authenticated user\'s subaccounts. Use 0 for the primary account, or 1-63 for numbered subaccounts. Set exchange_index to apply the transfer on a specific exchange shard (defaults to 0). * @summary Transfer Between Subaccounts * @param {ApplySubaccountTransferRequest} applySubaccountTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ applySubaccountTransfer(applySubaccountTransferRequest: ApplySubaccountTransferRequest, options?: RawAxiosRequestConfig): Promise>; /** * Creates a new subaccount for the authenticated user. This endpoint is available to all users on the Advanced API tier and above. Subaccounts are numbered sequentially starting from 1. Maximum 63 numbered subaccounts per user (64 including the primary account). * @summary Create Subaccount * @param {CreateSubaccountRequest} [createSubaccountRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSubaccount(createSubaccountRequest?: CreateSubaccountRequest, options?: RawAxiosRequestConfig): Promise>; /** * Returns the balance and portfolio value for a member. Both values include all exchange indexes unless `exchange_index` is provided. Pass `subaccount` to use a subaccount instead of the primary account. This endpoint also accepts API keys with the \'read::portfolio_balance\' scope. For per-subaccount balances, use `GET /portfolio/subaccounts/balances`. It returns existing subaccount and exchange index pairs, so its entry count can differ from `balance_breakdown`. The breakdown uses portfolio valuation snapshots; separate requests may reflect different stages of transfer processing. **Rate limit:** this endpoint has its own bucket, separate from the Read budget. Basic and Advanced tiers may call it **1 time per second**; all higher tiers may call it **5 times per second**. The bucket holds one second of budget, so there is no burst. Calls to this endpoint do not draw down the Read budget, and other reads do not draw down this bucket. Balance only changes on fills, settlements and transfers, so react to those (for example the user fills websocket channel) instead of polling this endpoint. * @summary Get Balance * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). Defaults to 0. Subaccount-restricted API keys default to their locked subaccount and must omit this parameter or pass their locked subaccount. * @param {number} [exchangeIndex] Exchange index used to scope the balance and portfolio value. If omitted, both include all exchange indexes. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBalance(subaccount?: number, exchangeIndex?: number, options?: RawAxiosRequestConfig): Promise>; /** * Returns the authenticated member\'s credit history, newest first. Filters apply to credit creation time: `min_ts` is inclusive and `max_ts` is exclusive. * @summary Get Credit History * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {number} [minTs] Filter items after this Unix timestamp * @param {number} [maxTs] Filter items before this Unix timestamp * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCreditHistory(limit?: number, cursor?: string, minTs?: number, maxTs?: number, options?: RawAxiosRequestConfig): Promise>; /** * Endpoint for getting the member\'s deposit history. * @summary Get Deposits * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 500. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDeposits(limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise>; /** * Endpoint for getting all fills for the member. A fill is when a trade you have is matched. Registered partners may also use a user OAuth access token with the explicitly granted read::compliance_partner scope. Fills that occurred before the historical cutoff are only available via `GET /historical/fills`. See [Historical Data](https://docs.kalshi.com/getting_started/historical_data) for details. * @summary Get Fills * @param {string} [ticker] Filter by market ticker. Accepts a comma-separated list of up to 100 market tickers. * @param {string} [orderId] Filter by order ID * @param {number} [minTs] Filter items after this Unix timestamp * @param {number} [maxTs] Filter items before this Unix timestamp * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). If omitted, defaults to all subaccounts. * @param {number} [exchangeIndex] Filter results by exchange shard. Omit to return results from all exchange shards. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFills(ticker?: string, orderId?: string, minTs?: number, maxTs?: number, limit?: number, cursor?: string, subaccount?: number, exchangeIndex?: number, options?: RawAxiosRequestConfig): Promise>; /** * Endpoint for getting a single intra-account transfer by id. * @summary Get Intra Account Transfer * @param {string} transferId Transfer id returned by creation endpoint * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIntraExchangeInstanceTransfer(transferId: string, options?: RawAxiosRequestConfig): Promise>; /** * Endpoint for fetching intra-exchange account transfer history. * @summary Get Intra Account Transfers * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 500. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIntraExchangeInstanceTransfers(limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise>; /** * Endpoint for getting the total value, in cents, of resting orders. This endpoint is only intended for use by FCM members (rare). Note: If you\'re uncertain about this endpoint, it likely does not apply to you. * @summary Get Total Resting Order Value * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPortfolioRestingOrderTotalValue(options?: RawAxiosRequestConfig): Promise>; /** * Returns unsettled positions by default, including closed markets awaiting determination or settlement. These may retain non-zero quantities and cost basis. Check the market\'s `status` via `GET /markets/{ticker}` for trading status. Set `settlement_status=settled` for unarchived settled positions or `all` for both states. These results paginate by event ticker; cursors are specific to settlement status. Archived positions are available via `GET /historical/positions`. Use `count_filter=position` for non-zero net holdings, including closed, unsettled markets. Without a count filter, results may include fully exited positions with trading history, realized P&L or fees. Registered partners may also use a user OAuth access token with the explicitly granted read::compliance_partner scope. * @summary Get Positions * @param {string} [cursor] The Cursor represents a pointer to the next page of records in the pagination. Use the value returned from the previous response to get the next page. * @param {number} [limit] Parameter to specify the number of results per page. Defaults to 100. * @param {string} [countFilter] Comma-separated filters combined with OR: `position` (non-zero net contracts), `total_traded` (any contracts traded, including fully exited positions). Omit for no count filter. * @param {GetPositionsSettlementStatusEnum} [settlementStatus] Filters settlement state, not trading status: `unsettled` (default), `settled` (not yet archived), or `all` (both live states). * @param {string} [ticker] Filter by market ticker * @param {string} [eventTicker] Event ticker to filter by. Only a single event ticker is supported. * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). Defaults to 0. Subaccount-restricted API keys default to their locked subaccount and must omit this parameter or pass their locked subaccount. * @param {number} [exchangeIndex] Filter results by exchange shard. Omit to return results from all exchange shards. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPositions(cursor?: string, limit?: number, countFilter?: string, settlementStatus?: GetPositionsSettlementStatusEnum, ticker?: string, eventTicker?: string, subaccount?: number, exchangeIndex?: number, options?: RawAxiosRequestConfig): Promise>; /** * Returns settlement records still in the live data set. Archived positions are available via `GET /historical/positions`, which has different fields; this endpoint does not return archived settlement records. Resource-bound MCP OAuth tokens may read the owner\'s settlements with read::mcp_portfolio. * @summary Get Settlements * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {string} [ticker] Filter by market ticker * @param {string} [eventTicker] Event ticker to filter by. Only a single event ticker is supported. * @param {number} [minTs] Filter items after this Unix timestamp * @param {number} [maxTs] Filter items before this Unix timestamp * @param {number} [subaccount] Subaccount number (0 for primary, 1-63 for subaccounts). If omitted, defaults to all subaccounts. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSettlements(limit?: number, cursor?: string, ticker?: string, eventTicker?: string, minTs?: number, maxTs?: number, subaccount?: number, options?: RawAxiosRequestConfig): Promise>; /** * Returns balances for all subaccounts, including the primary account. Only existing subaccount and exchange index pairs are returned, including pairs with a zero balance. A pair can exist before it is funded. For an API key restricted to a subaccount, returns only that subaccount\'s balances. * @summary Get All Subaccount Balances * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubaccountBalances(options?: RawAxiosRequestConfig): Promise>; /** * Gets the netting enabled settings for all subaccounts. * @summary Get Subaccount Netting * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubaccountNetting(options?: RawAxiosRequestConfig): Promise>; /** * Gets a paginated list of all transfers between subaccounts for the authenticated user. * @summary Get Subaccount Transfers * @param {number} [limit] Number of results per page. Defaults to 100. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubaccountTransfers(limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise>; /** * Retrieves the caller\'s target balance allocation across exchange indexes. * @summary Get Target Balance Allocation * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTargetBalanceAllocation(options?: RawAxiosRequestConfig): Promise>; /** * Endpoint for getting the member\'s withdrawal history. * @summary Get Withdrawals * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 500. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWithdrawals(limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise>; /** * Transfers funds within the same account. Subaccount-restricted API keys can only transfer between `event_contract` exchange indices, with `source_subaccount` and `destination_subaccount` both set to the key\'s subaccount. When `source_exchange_shard` and `destination_exchange_shard` are the same, Kalshi treats the request as a subaccount transfer. The returned transfer ID appears in the subaccount transfer history. Cross-exchange-index subaccount transfers run in up to three non-atomic steps. If a later step fails, completed steps are not undone, so funds may remain in the primary account on the source or destination exchange index. * @summary Intra Account Transfer * @param {IntraExchangeInstanceTransferRequest} intraExchangeInstanceTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ intraExchangeInstanceTransfer(intraExchangeInstanceTransferRequest: IntraExchangeInstanceTransferRequest, options?: RawAxiosRequestConfig): Promise>; /** * Replaces the caller\'s target balance allocation across exchange indexes. Percentages must total 100. Passing an empty allocations array disables automatic rebalancing. * @summary Set Target Balance Allocation * @param {SetTargetBalanceAllocationRequest} setTargetBalanceAllocationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ setTargetBalanceAllocation(setTargetBalanceAllocationRequest: SetTargetBalanceAllocationRequest, options?: RawAxiosRequestConfig): Promise>; /** * Updates the netting enabled setting for a specific subaccount. Use 0 for the primary account, or 1-63 for numbered subaccounts. * @summary Update Subaccount Netting * @param {UpdateSubaccountNettingRequest} updateSubaccountNettingRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSubaccountNetting(updateSubaccountNettingRequest: UpdateSubaccountNettingRequest, options?: RawAxiosRequestConfig): Promise>; } export declare const GetPositionsSettlementStatusEnum: { readonly Unsettled: "unsettled"; readonly Settled: "settled"; readonly All: "all"; }; export type GetPositionsSettlementStatusEnum = typeof GetPositionsSettlementStatusEnum[keyof typeof GetPositionsSettlementStatusEnum];