Skip to main content

Import

import { AssetPairs } from '@krono/core'

Usage

This helper method searches the internal symbolMap for a match. It supports searching by standard format (e.g., “BTC/USD”), WebSocket name (e.g., “XBT/USD”), or altname.
const symbol = assetPairs.findSymbol('BTC/USD');

if (symbol) {
  console.log(`Found: ${symbol.displayLabel}`);
}

Return Type

SymbolOption | undefined
Returns the symbol configuration object if found, or undefined if no match exists.