@@ -1248,9 +1248,10 @@ export abstract class PredictionMarketExchange {
12481248 *
12491249 * @param outcomeId - The Outcome ID to watch
12501250 * @param limit - Optional limit for orderbook depth
1251+ * @param params - Optional exchange-specific parameters
12511252 * @returns Promise that resolves with the current orderbook state
12521253 */
1253- async watchOrderBook ( outcomeId : string , limit ?: number ) : Promise < OrderBook > {
1254+ async watchOrderBook ( outcomeId : string , limit ?: number , params : Record < string , any > = { } ) : Promise < OrderBook > {
12541255 throw new Error ( `watchOrderBook() is not supported by ${ this . name } ` ) ;
12551256 }
12561257
@@ -1262,15 +1263,16 @@ export abstract class PredictionMarketExchange {
12621263 *
12631264 * @param outcomeIds - Array of Outcome IDs to watch
12641265 * @param limit - Optional limit for orderbook depth
1266+ * @param params - Optional exchange-specific parameters
12651267 * @returns Promise that resolves with order books keyed by ID
12661268 */
1267- async watchOrderBooks ( outcomeIds : string [ ] , limit ?: number ) : Promise < Record < string , OrderBook > > {
1269+ async watchOrderBooks ( outcomeIds : string [ ] , limit ?: number , params : Record < string , any > = { } ) : Promise < Record < string , OrderBook > > {
12681270 // Default implementation: subscribe to each ID individually.
12691271 // Exchanges with native batch support (e.g. Kalshi) override this
12701272 // to send a single subscribe message for all tickers.
12711273 const entries = await Promise . all (
12721274 outcomeIds . map ( async ( oid ) : Promise < [ string , OrderBook ] > => {
1273- const book = await this . watchOrderBook ( oid , limit ) ;
1275+ const book = await this . watchOrderBook ( oid , limit , params ) ;
12741276 return [ oid , book ] ;
12751277 } ) ,
12761278 ) ;
0 commit comments