> For the complete documentation index, see [llms.txt](https://docs.carbondefi.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.carbondefi.xyz/developer-guides/carbon-defi-sdk/interacting-with-the-sdk/collecting-liquidity-data.md).

# Collecting Liquidity Data

The SDK includes several functions that simplify gathering liquidity-depth data.

#### To Get Liquidity Depth Data

1. Initialize the SDK with the [Constructor](/developer-guides/carbon-defi-sdk/sdk-functions/constructor.md).
2. Sync strategy data by calling [startDataSync](/developer-guides/carbon-defi-sdk/sdk-functions/startdatasync.md).
3. Call the relevant liquidity data function:
   * [getRateLiquidityDepthByPair](/developer-guides/carbon-defi-sdk/sdk-functions/getrateliquiditydepthbypair.md)
   * [getMinRateByPair](/developer-guides/carbon-defi-sdk/sdk-functions/getminratebypair.md)
   * [getMaxRateByPair](/developer-guides/carbon-defi-sdk/sdk-functions/getmaxratebypair.md)
