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

# Code examples

Python and JavaScript code samples for interacting with Aquarius through the official SDKs

All code examples are fully functional and provided in both Python and JavaScript, built on the [official SDKs](https://docs.aqua.network/developers/integrating-with-aquarius.md#official-sdks). [Prerequisites & basics](https://docs.aqua.network/developers/code-examples/prerequisites-and-basics.md) covers the installation and the client setup they share.

{% hint style="success" %}
New to Aquarius? The [Quickstart](https://docs.aqua.network/developers/quickstart.md) runs a complete swap on testnet in five minutes before you dive into the details here.
{% endhint %}

## Suggested reading order

1. [Deposit liquidity](https://docs.aqua.network/developers/code-examples/deposit-liquidity.md) → [Withdraw liquidity](https://docs.aqua.network/developers/code-examples/withdraw-liquidity.md) → [Claim LP rewards](https://docs.aqua.network/developers/code-examples/claim-lp-rewards.md) — the liquidity-provider lifecycle, on the [official SDKs](https://docs.aqua.network/developers/integrating-with-aquarius.md#official-sdks).
2. [Get pools info](https://docs.aqua.network/developers/code-examples/get-pools-info.md) — pools, reserves, and positions, no signer required.
3. [Executing swaps through optimal path](https://docs.aqua.network/developers/code-examples/executing-swaps-through-optimal-path.md) — exact-input and exact-output swaps along the best route from the Find Path API.
4. [Executing swaps through specific pool](https://docs.aqua.network/developers/code-examples/executing-swaps-through-specific-pool.md) — swapping against one known pool, without the path-finding API.
5. [Add fees to swap](https://docs.aqua.network/developers/code-examples/add-fees-to-swap.md) — monetizing your integration with provider fees.

Looking for concentrated liquidity? Position management examples live in the dedicated [Concentrated liquidity](https://docs.aqua.network/developers/concentrated-liquidity.md) section.

{% hint style="info" %}
If you don't have a local execution environment, platforms like Replit work for testing — use a throwaway key holding minimal funds, never a real one.
{% endhint %}
