Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyaoy committed Oct 4, 2024
1 parent d195c16 commit 28c174e
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions scripts/markets/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,23 +111,6 @@ interface ProviderConfig {
metadata_JSON: string;
}

const exchangeNameToMarketMapProviderName: Record<ExchangeName, string> = {
[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<void> {
return new Promise((resolve) => {
setTimeout(resolve, ms);
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 28c174e

Please sign in to comment.