import type { InstrumentName, UInt64String } from './common.js'; import type { AccountSettings, Candle, CandleBidAsk, Deal, InstrumentCondition, Order, Position, AccountState, RestLimits, WebSocketLimits } from './models.js'; import type { OperationStatus } from './enums.js'; export interface AckResponse { status: 'accepted'; operation_id?: UInt64String; client_request_id?: string; } export interface TradingStateSnapshot { account_state: AccountState; orders?: Order[]; positions?: Position[]; } export interface OperationStatusResponse { operation_id: UInt64String; status: OperationStatus; created_at: string; updated_at: string; parent_operation_id?: UInt64String; client_request_id?: string; error_code?: number; error_message?: string; } export interface CandleHistoryResponse { candles: (Candle | CandleBidAsk)[]; } export interface OrderHistoryItem { event_time: string; order: Order; } export interface OrdersHistoryResponse { items: OrderHistoryItem[]; next_cursor?: string; has_more?: boolean; range?: { from?: string; to?: string; }; } export interface DealHistoryItem { event_time: string; deal: Deal; } export interface DealsHistoryResponse { items: DealHistoryItem[]; next_cursor?: string; has_more?: boolean; range?: { from?: string; to?: string; }; } export interface AccountDetailsResponse { account_id: UInt64String; create_date: string; account_name?: string; settings?: AccountSettings; } export type InstrumentConditionResponse = InstrumentCondition; export interface InstrumentNameListResponse { instruments?: InstrumentName[]; } export interface LimitsResponse { limits: { rest: RestLimits; websocket: WebSocketLimits; }; } //# sourceMappingURL=responses.d.ts.map