Skip to main content
The AssetPairs handles the retrieval of available trading pairs and their metadata. It is configured via the AssetPairsConfig object.

Usage

Options

number
Limits the stored assets to the top N pairs, ranked by liquidity/volume.Setting this helps reduce memory usage if you only need access to the most popular markets.
boolean
default:"false"
If true, the service will automatically trigger a fetch request immediately upon instantiation.If false, you must manually call .fetch() or .refresh() to load data.
boolean
default:"false"
Enables logging for the fetching process, including API response times and error details.