Fixing the "MPA: Unrecognized Exchanges Found" Issue

This guide outlines the steps required to resolve an "MPA: Unrecognized exchanges found" issue.

The process involves three main steps:

  1. Retrieve the exchange ID
  2. Determine if the exchange is a CEX or DEX
  3. Update the coingecko.rs file with the exchange ID

Step 1: Retrieve the Exchange ID

When an exchange is unrecognized, the #market-parameters Slack channel will display notifications titled "MPA: Unrecognized exchanges found" every hour. These notifications contain the market IDs of the unrecognized exchanges.

To retrieve the exchange ID, use one of these market IDs in the following command:

cargo run --bin perps-market-params exchanges --market-id [market-id]

Execute this command in the root directory of the levana-perps repository. Note that the environment variable LEVANA_MPARAM_CMC_KEY is required to run this command.

Step 2: Determine if the Exchange is CEX or DEX

Visit the CoinMarketCap exchanges page and search for the name of the unrecognized exchange. The page has 4 main tabs.

  • Spot
  • Derivatives
  • DEX(Spot)
  • DEX(Derivatives)

Check which tab lists the exchange. This will indicate if it’s a CEX (centralized) or a DEX (decentralized) exchange.

Step 3: Update the coingecko.rs file with the Exchange ID

In the levana-perps/packages/perps-exes/src/bin/perps-market-params/coingecko.rs file, update the exchange_type method by adding the new exchange ID based on whether it is a CEX or DEX.

After updating coingecko.rs, deploy the market analyzer with the latest changes.