map_bitmex_currency

Function map_bitmex_currency 

Source
pub fn map_bitmex_currency(bitmex_currency: &str) -> String
Expand description

Maps BitMEX currency codes to standard Nautilus currency codes.

BitMEX uses some non-standard currency codes:

  • “XBt” -> “XBT” (Bitcoin)
  • “USDt” -> “USDT” (Tether)
  • “LAMp” -> “USDT” (Test currency, mapped to USDT)

For other currencies, converts to uppercase.