{"version":3,"sources":["../../src/types/serverSubscriptionEventTypes.ts"],"sourcesContent":["import { EngineServerPriceTickLiquidity } from './serverQueryTypes';\n\n/**\n * Event from subscribing to a `order_update` stream.\n */\nexport interface EngineServerSubscriptionOrderUpdateEvent {\n  timestamp: string;\n  product_id: number;\n  digest: string;\n  amount: string;\n  reason: string;\n}\n\n/**\n * Event from subscribing to a `trade` stream.\n */\nexport interface EngineServerSubscriptionTradeEvent {\n  timestamp: string;\n  product_id: number;\n  price: string;\n  taker_qty: string;\n  maker_qty: string;\n  is_taker_buyer: boolean;\n}\n\n/**\n * Event from subscribing to a `best_bid_offer` stream.\n */\nexport interface EngineServerSubscriptionBestBidOfferEvent {\n  timestamp: string;\n  product_id: number;\n  bid_price: string;\n  bid_qty: string;\n  ask_price: string;\n  ask_qty: string;\n}\n\n/**\n * Event from subscribing to a `fill` stream.\n */\nexport interface EngineServerSubscriptionFillEvent {\n  // NOTE: `id` is excluded from the response to avoid parsing issues.\n  // type of `id` on the backend is `u64` which can overflow until we introduce proper parsing on the SDK.\n  timestamp: string;\n  product_id: number;\n  subaccount: string;\n  order_digest: string;\n  filled_qty: string;\n  remaining_qty: string;\n  price: string;\n  is_taker: boolean;\n}\n\n/**\n * Event from subscribing to a `position_change` stream.\n */\nexport interface EngineServerSubscriptionPositionChangeEvent {\n  timestamp: string;\n  product_id: number;\n  is_lp: false;\n  subaccount: string;\n  amount: string;\n  v_quote_amount: string;\n}\n\n/**\n * Event from subscribing to a `book_depth` stream.\n */\nexport interface EngineServerSubscriptionBookDepthEvent {\n  min_timestamp: string;\n  max_timestamp: string;\n  product_id: number;\n  bids: EngineServerPriceTickLiquidity[];\n  asks: EngineServerPriceTickLiquidity[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}