import type { KisAccountNumber } from "./account-number.js"; import type { PyKis } from "./client.js"; import type { ChartPeriod, CountryType, KisBalance, KisChart, KisDailyOrders, KisInvestors, KisOrder, KisOrderbook, KisOrderableAmount, KisOrderProfits, KisPendingOrders, KisQuote, KisStockInfo, MarketInfoType, MarketType, OrderCondition, OrderExecution, OrderPriceInput, OrderQuantityInput, OrderType } from "./types.js"; import { KisEventTicket } from "./events.js"; import type { KisSubscriptionEvent } from "./types.js"; import type { KisRealtimeResponse, KisWebsocketClient } from "./websocket.js"; export interface OrderOptions { order?: OrderType; price?: OrderPriceInput | null; qty?: OrderQuantityInput | null; condition?: OrderCondition | null; execution?: OrderExecution | null; includeForeign?: boolean; } export declare class AccountScope { readonly kis: PyKis; readonly accountNumber: KisAccountNumber; constructor(kis: PyKis, accountNumber: KisAccountNumber); balance(country?: CountryType | null): Promise; orderableAmount(market: MarketType, symbol: string, options?: Omit): Promise; order(market: MarketType, symbol: string, options: OrderOptions & { order: OrderType; }): Promise; buy(market: MarketType, symbol: string, options?: Omit): Promise; sell(market: MarketType, symbol: string, options?: Omit): Promise; pendingOrders(market?: MarketType | null): Promise; dailyOrders(options?: { start?: Date | string; end?: Date | string; type?: OrderType | null; }): Promise; profits(options?: { start?: Date | string; end?: Date | string; country?: CountryType | null; }): Promise; } export declare class StockScope { readonly kis: PyKis; readonly symbol: string; readonly accountNumber: KisAccountNumber; private marketHint; constructor(kis: PyKis, symbol: string, accountNumber: KisAccountNumber, marketHint?: MarketInfoType); withMarket(market: MarketInfoType): this; market(): Promise; info(): Promise; quote(extended?: boolean): Promise; orderbook(condition?: OrderCondition | null): Promise; dailyChart(options?: { start?: Date | string; end?: Date | string; period?: ChartPeriod; adjust?: boolean; }): Promise; dayChart(options?: { start?: Date; end?: Date; period?: number; }): Promise; investors(): Promise; chart(range: string, options?: { period?: ChartPeriod; adjust?: boolean; }): Promise; orderableAmount(options?: Omit): Promise; order(options: OrderOptions & { order: OrderType; }): Promise; buy(options?: Omit): Promise; sell(options?: Omit): Promise; modify(orderNumber: KisOrder, options?: Omit): Promise; cancel(orderNumber: KisOrder): Promise; on(type: "price" | "orderbook", callback: (client: KisWebsocketClient, event: KisSubscriptionEvent) => void, once?: boolean): KisEventTicket>; }