From 28c174ecb166916a89cabc0e185b6fc9b18d5948 Mon Sep 17 00:00:00 2001 From: Chenyao Yu <4844716+chenyaoy@users.noreply.github.com> Date: Thu, 3 Oct 2024 22:16:26 -0400 Subject: [PATCH] fix --- scripts/markets/help.ts | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/scripts/markets/help.ts b/scripts/markets/help.ts index ba4f18f22..c023d83b3 100644 --- a/scripts/markets/help.ts +++ b/scripts/markets/help.ts @@ -111,23 +111,6 @@ interface ProviderConfig { metadata_JSON: string; } -const exchangeNameToMarketMapProviderName: Record = { - [ExchangeName.Binance]: 'binance_ws', - [ExchangeName.BinanceUS]: 'binance_ws', - [ExchangeName.Bitfinex]: 'bitfinex_ws', - [ExchangeName.Bitstamp]: 'bitstamp_api', - [ExchangeName.Bybit]: 'bybit_ws', - [ExchangeName.CoinbasePro]: 'coinbase_ws', - [ExchangeName.CryptoCom]: 'crypto_dot_com_ws', - [ExchangeName.Gate]: 'gate_ws', - [ExchangeName.Huobi]: 'huobi_ws', - [ExchangeName.Kraken]: 'kraken_api', - [ExchangeName.Kucoin]: 'kucoin_ws', - [ExchangeName.Mexc]: 'mexc_ws', - [ExchangeName.Okx]: 'okx_ws', - [ExchangeName.Raydium]: 'raydium_api', -}; - export async function sleep(ms: number): Promise { return new Promise((resolve) => { setTimeout(resolve, ms); @@ -210,7 +193,7 @@ export async function createAndSendMarketMapProposal( } return { - name: `${exchangeNameToMarketMapProviderName[config.exchangeName as ExchangeName]}`, + name: config.exchangeName, normalize_by_pair, off_chain_ticker: config.ticker, invert: config.invert || false,