Skip to main content

Documentation Index

Fetch the complete documentation index at: https://krono.fabianpiper.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

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

Usage

import { AssetPairs } from '@krono/core';

const assets = new AssetPairs({
  topN: 100,
  autoFetch: true,
  debug: false
});

Options

topN
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.
autoFetch
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.
debug
boolean
default:"false"
Enables logging for the fetching process, including API response times and error details.