import { BookChange, DerivativeTicker, Trade } from '../types.ts'; import { Mapper } from './mapper.ts'; export declare const mexcFuturesMappers: { 'mexc-futures': { trades: import("./registry.ts").MapperCreator<"aster" | "aster-futures" | "bithumb" | "bitvavo" | "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-derivatives" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "bybit-spread" | "phemex" | "delta" | "delta-india" | "ftx-us" | "binance-us" | "gate-io-futures" | "mexc-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid" | "lighter" | "lighter-rh" | "bullish" | "mexc" | "polymarket" | "whitebit", Trade>; bookChanges: import("./registry.ts").MapperCreator<"aster" | "aster-futures" | "bithumb" | "bitvavo" | "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-derivatives" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "bybit-spread" | "phemex" | "delta" | "delta-india" | "ftx-us" | "binance-us" | "gate-io-futures" | "mexc-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid" | "lighter" | "lighter-rh" | "bullish" | "mexc" | "polymarket" | "whitebit", BookChange>; derivativeTickers: import("./registry.ts").MapperCreator<"aster" | "aster-futures" | "bithumb" | "bitvavo" | "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-derivatives" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "bybit-spread" | "phemex" | "delta" | "delta-india" | "ftx-us" | "binance-us" | "gate-io-futures" | "mexc-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid" | "lighter" | "lighter-rh" | "bullish" | "mexc" | "polymarket" | "whitebit", DerivativeTicker>; }; }; export declare class MexcFuturesTradesMapper implements Mapper<'mexc-futures', Trade> { canHandle(message: MexcFuturesDealMessage): boolean; getFilters(symbols?: string[]): { readonly channel: "push.deal"; readonly symbols: string[] | undefined; }[]; map(message: MexcFuturesDealMessage, localTimestamp: Date): IterableIterator; } export declare class MexcFuturesBookChangeMapper implements Mapper<'mexc-futures', BookChange> { private readonly symbolDepthInfo; private readonly ignoreBookSnapshotOverlapError; constructor({ ignoreBookSnapshotOverlapError }: { ignoreBookSnapshotOverlapError: boolean; }); canHandle(message: MexcFuturesDepthMessage): message is MexcFuturesDepthSnapshotMessage | MexcFuturesDepthUpdateMessage; getFilters(symbols?: string[]): ({ readonly channel: "push.depth"; readonly symbols: string[] | undefined; } | { readonly channel: "push.depth.snapshot"; readonly symbols: string[] | undefined; })[]; map(message: MexcFuturesDepthMessage, localTimestamp: Date): IterableIterator; private getFirstVersion; private getLastVersion; private applyLevel; private mapBookLevel; private getSymbolDepthInfo; } export declare class MexcFuturesDerivativeTickerMapper implements Mapper<'mexc-futures', DerivativeTicker> { private readonly pendingTickerInfoHelper; canHandle(message: MexcFuturesTickerMessage | MexcFuturesFundingRateMessage): boolean; getFilters(symbols?: string[]): ({ readonly channel: "push.ticker"; readonly symbols: string[] | undefined; } | { readonly channel: "push.funding.rate"; readonly symbols: string[] | undefined; })[]; map(message: MexcFuturesTickerMessage | MexcFuturesFundingRateMessage, localTimestamp: Date): IterableIterator; } declare const MEXC_FUTURES_MAPPED_PUSH_CHANNELS: readonly ["push.deal", "push.depth", "push.depth.snapshot", "push.ticker", "push.index.price", "push.fair.price", "push.funding.rate"]; type MexcFuturesMappedPushChannel = (typeof MEXC_FUTURES_MAPPED_PUSH_CHANNELS)[number]; type MexcFuturesMessage = { channel: TChannel; symbol: string; ts: number; data: TData; }; type MexcFuturesDealMessage = MexcFuturesMessage<'push.deal', { p: number; v: number; T: MexcFuturesTradeSide; O: MexcFuturesOpenCloseFlag; M: MexcFuturesSelfTrade; t: number; i: string; cts?: string; }[]>; declare enum MexcFuturesTradeSide { Buy = 1, Sell = 2 } declare enum MexcFuturesOpenCloseFlag { NewPosition = 1, ReducePosition = 2, Unchanged = 3 } declare enum MexcFuturesSelfTrade { Yes = 1, No = 2 } type MexcFuturesDepthMessage = MexcFuturesDepthSnapshotMessage | MexcFuturesDepthUpdateMessage; export type MexcFuturesDepthSnapshotMessage = { channel: 'push.depth.snapshot'; symbol: string; generated: true; data: MexcFuturesDepthSnapshotData; }; export type MexcFuturesDepthSnapshotData = { asks: MexcFuturesDepthLevel[]; bids: MexcFuturesDepthLevel[]; cts?: number | null; timestamp: number; version: number; }; type MexcFuturesDepthUpdateMessage = MexcFuturesMessage<'push.depth', MexcFuturesDepthUpdateData> & { generated?: undefined; }; export type MexcFuturesDepthUpdateData = { asks: MexcFuturesDepthLevel[]; bids: MexcFuturesDepthLevel[]; begin?: number | null; cts?: number; end?: number | null; version: number; }; export type MexcFuturesDepthLevel = [price: number, quantity: number, ordersCount: number]; type MexcFuturesTickerMessage = MexcFuturesMessage<'push.ticker', { ask1: number; bid1: number; contractId?: number; fairPrice?: number; fundingRate: number; high24Price: number; indexPrice?: number; lastPrice: number; lower24Price: number; maxBidPrice: number; minAskPrice: number; riseFallRate: number; riseFallValue: number; symbol: string; timestamp: number; holdVol: number; volume24: number; amount24?: number; riseFallRates?: number[]; riseFallRatesOfTimezone?: number[]; zone?: string; }>; type MexcFuturesFundingRateMessage = MexcFuturesMessage<'push.funding.rate', { rate: number; symbol: string; nextSettleTime?: number; }>; export {}; //# sourceMappingURL=mexcfutures.d.ts.map