import type { AccountSummary, Balance, Fill, OpenOrder, Position, TriggerOrder } from './account.js'; import type { Candle, MarketContext, OhlcvInterval, OrderbookResponse, Trade } from './market.js'; import type { Address } from './primitives.js'; export type MarketsContextSubscription = { channel: 'marketsContext'; dex: string; }; export type MarketContextSubscription = { channel: 'marketContext'; dex: string; marketId: string; }; export type OrderbookSubscription = { channel: 'orderbook'; dex: string; marketId: string; depth?: number; priceStep?: number; }; export type CandleSubscription = { channel: 'candle'; dex: string; marketId: string; interval: OhlcvInterval; }; export type TradesSubscription = { channel: 'trades'; dex: string; marketId: string; }; export type OrderUpdatesSubscription = { channel: 'orderUpdates'; dex: string; address: Address; }; export type FillsSubscription = { channel: 'fills'; dex: string; address: Address; }; export type PositionsSubscription = { channel: 'positions'; dex: string; address: Address; }; export type SpotBalancesSubscription = { channel: 'spotBalances'; dex: string; address: Address; }; export type AccountSummarySubscription = { channel: 'accountSummary'; dex: string; address: Address; }; export type Subscription = MarketsContextSubscription | MarketContextSubscription | OrderbookSubscription | CandleSubscription | TradesSubscription | OrderUpdatesSubscription | FillsSubscription | PositionsSubscription | SpotBalancesSubscription | AccountSummarySubscription; export type MarketsContextEvent = { channel: 'marketsContext'; data: Record; }; export type MarketContextEvent = { channel: 'marketContext'; data: MarketContext; }; export type OrderbookEvent = { channel: 'orderbook'; data: OrderbookResponse; }; export type CandleEvent = { channel: 'candle'; data: Candle; }; export type TradesEvent = { channel: 'trades'; data: Trade[]; }; export type OrderUpdatesEvent = { channel: 'orderUpdates'; data: { openOrders: OpenOrder[]; triggerOrders: TriggerOrder[]; terminated: string[]; }; }; export type FillsEvent = { channel: 'fills'; data: Fill[]; }; export type PositionsEvent = { channel: 'positions'; data: Position[]; }; export type SpotBalancesEvent = { channel: 'spotBalances'; data: (Balance & { locked: string; })[]; }; export type AccountSummaryEvent = { channel: 'accountSummary'; data: AccountSummary; }; export type SubscriptionEvent = MarketsContextEvent | MarketContextEvent | OrderbookEvent | CandleEvent | TradesEvent | OrderUpdatesEvent | FillsEvent | PositionsEvent | SpotBalancesEvent | AccountSummaryEvent; //# sourceMappingURL=subscriptions.d.ts.map