import { EngineServerPriceTickLiquidity } from './serverQueryTypes.cjs'; import '@vertex-protocol/contracts'; import './serverQueryModelTypes.cjs'; /** * Event from subscribing to a `order_update` stream. */ interface EngineServerSubscriptionOrderUpdateEvent { timestamp: string; product_id: number; digest: string; amount: string; reason: string; } /** * Event from subscribing to a `trade` stream. */ interface EngineServerSubscriptionTradeEvent { timestamp: string; product_id: number; price: string; taker_qty: string; maker_qty: string; is_taker_buyer: boolean; } /** * Event from subscribing to a `best_bid_offer` stream. */ interface EngineServerSubscriptionBestBidOfferEvent { timestamp: string; product_id: number; bid_price: string; bid_qty: string; ask_price: string; ask_qty: string; } /** * Event from subscribing to a `fill` stream. */ interface EngineServerSubscriptionFillEvent { timestamp: string; product_id: number; subaccount: string; order_digest: string; filled_qty: string; remaining_qty: string; price: string; is_taker: boolean; } /** * Event from subscribing to a `position_change` stream. */ interface EngineServerSubscriptionPositionChangeEvent { timestamp: string; product_id: number; is_lp: false; subaccount: string; amount: string; v_quote_amount: string; } /** * Event from subscribing to a `book_depth` stream. */ interface EngineServerSubscriptionBookDepthEvent { min_timestamp: string; max_timestamp: string; product_id: number; bids: EngineServerPriceTickLiquidity[]; asks: EngineServerPriceTickLiquidity[]; } export type { EngineServerSubscriptionBestBidOfferEvent, EngineServerSubscriptionBookDepthEvent, EngineServerSubscriptionFillEvent, EngineServerSubscriptionOrderUpdateEvent, EngineServerSubscriptionPositionChangeEvent, EngineServerSubscriptionTradeEvent };