> For the complete documentation index, see [llms.txt](https://docs.alcor.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.alcor.exchange/developers-api/amm-swap-contract-api/examples.md).

# Examples

**1) return the current X/Y price of a lp pool ( eg 3.5 TLM/WAX )**

<https://gist.github.com/avral/239e31232eb9a173b77c56dc537ddb6d>

\
**2) Total amount of liquidity provided for a pool by a wallet  ( eg abcde.wam  3500 TLM 1000 wax )**

<https://gist.github.com/avral/43a6dacbad1f3db3fe3b0e56b53ba7e7>
