import type { DecimalString, InstrumentName, UInt64String } from './common.js'; export interface OpenPositionRequest { instrument: InstrumentName; side: 'buy' | 'sell'; volume: string; price?: string; deviation?: DecimalString; stop_loss_price?: string; take_profit_price?: string; comment?: string; } export interface ClosePositionParams { volume?: string; price?: string; deviation?: DecimalString; close_by_position_id?: UInt64String; } export interface CloseAllPositionsParams { filter?: 'all'; instrument?: InstrumentName; side?: 'buy' | 'sell'; profitable?: boolean; unprofitable?: boolean; } export interface NewLimitOrderRequest { type: 'limit'; instrument: InstrumentName; side: 'buy' | 'sell'; volume: string; price: string; stop_loss_price?: string; take_profit_price?: string; comment?: string; } export interface NewStopOrderRequest { type: 'stop'; instrument: InstrumentName; side: 'buy' | 'sell'; volume: string; price: string; stop_loss_price?: string; take_profit_price?: string; comment?: string; } export interface NewSltpOrderRequest { type: 'sltp'; position_id: UInt64String; stop_loss_price?: string; take_profit_price?: string; comment?: string; } export type NewPendingOrderRequest = NewLimitOrderRequest | NewStopOrderRequest | NewSltpOrderRequest; export interface ModifyOrderRequest { price?: string; stop_loss_price?: string | null; take_profit_price?: string | null; comment?: string; } export interface CancelAllOrdersParams { filter?: 'all'; instrument?: InstrumentName; order_type?: 'stop' | 'limit' | 'sltp'; side?: 'buy' | 'sell'; } export interface CandleHistoryParams { instrument: InstrumentName; timeframe: string; from: string; to?: string; count?: number; price_type?: 'bid' | 'ask' | 'both'; } export interface OrdersHistoryParams { from?: string; to?: string; instrument?: InstrumentName; order_type?: string; side?: 'buy' | 'sell'; state?: string; cursor?: string; limit?: number; } export interface DealsHistoryParams { from?: string; to?: string; instrument?: InstrumentName; deal_type?: string; side?: 'buy' | 'sell'; cursor?: string; limit?: number; } //# sourceMappingURL=requests.d.ts.map