# Getting Started

## Quick links

{% content-ref url="/pages/OM62IPfQ6fTPO22F5IsS" %}
[Anqa as the DEX Aggregator](/overview/anqa-as-the-dex-aggregator)
{% endcontent-ref %}

{% content-ref url="/pages/vKhLJyE9pEVpjNF4tRbb" %}
[DEXs Supported](/overview/dexs-supported)
{% endcontent-ref %}

## Get Started

We've put together some helpful guides for you to get setup with our product quickly and easily.

{% content-ref url="/pages/ybaSdqwgHSoJlKa4wgCb" %}
[Swap Integration](/developer-guide/swap-integration)
{% endcontent-ref %}

{% content-ref url="/pages/UY94MTMqIK6r7UHlUdnm" %}
[API](/developer-guide/swap-integration/api)
{% endcontent-ref %}

{% content-ref url="/pages/FEBYDOYWBgoLaGnPnwbO" %}
[Widget](/developer-guide/swap-integration/widget)
{% endcontent-ref %}


# Anqa as the DEX Aggregator

## Overview

<figure><img src="https://3241866831-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMZIg6GO9nauuqgfvHA9E%2Fuploads%2FKdrBQtXfzeqhsDGibdCc%2Fimage.png?alt=media&amp;token=d575f730-f9c7-4972-b66f-2870f608e5cb" alt=""><figcaption></figcaption></figure>

Anqa is a powerful, user-friendly DEX aggregator native to the Aptos blockchain. It enhances token swapping efficiency by integrating multiple decentralized exchanges (DEXs) to provide optimal swap routes, superior liquidity depth, and the most competitive exchange rates. With Anqa, users seamlessly achieve maximum value and minimal slippage in every transaction, making their DeFi experience smoother, safer, and more cost-effective.

Additionally, Anqa serves as a **Meta DEX Aggregator**, consolidating liquidity from a wide variety of sources, including Automated Market Makers (AMMs), Concentrated Liquidity Automated Market Makers (CLAMMs), Central Limit Order Books (CLOBs), Liquid Staking Derivatives (LSDs), and even other DEX aggregators. This comprehensive aggregation ensures users access unparalleled liquidity depth and trading opportunities across the entire Aptos ecosystem.

## How Swap Aggregator Works

Anqa's swap aggregator operates through advanced routing algorithms and dynamic liquidity analysis:

1. **Liquidity Aggregation:** Anqa continuously collects and updates liquidity pool data from multiple supported DEXs.
2. **Optimal Routing:** When a swap request is initiated, Anqa instantly evaluates all possible routes and selects the most favorable one, considering factors such as available liquidity, price impact, and slippage.
3. **Split Trades:** To maximize efficiency, large swaps may be intelligently split across multiple exchanges or pools, ensuring the best execution rates and reducing price slippage.
4. **Real-time Updates:** Anqa constantly refreshes liquidity and price information, adapting quickly to market changes to provide users with up-to-date rates.

By integrating multiple liquidity sources and sophisticated routing techniques, Anqa delivers an exceptional trading experience by combining efficiency, transparency, and intuitive usability. Our platform effortlessly accommodates a wide range of trading scenarios, from straightforward token swaps to sophisticated arbitrage strategies, all while ensuring top-tier performance and security.


# DEXs Supported

Anqa currently integrates liquidity from the following DEXs:

* Liquidswap
* Thala
* Cellana
* Hyperion
* Tapp Exchange
* PancakeSwap


# Swap Aggregator

<figure><img src="https://3241866831-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMZIg6GO9nauuqgfvHA9E%2Fuploads%2Fbnoiw7sYxuLGjLL9c8qk%2Fimage.png?alt=media&amp;token=4e6414e3-340e-4439-8da4-d2284061f4c4" alt="" width="563"><figcaption></figcaption></figure>

Anqa’s Swap Aggregator is the core engine behind its best-rate trading experience. Built for the Aptos ecosystem, it intelligently routes trades through a wide range of liquidity sources, including AMMs, CLAMMs, CLOBs, and other aggregators, to ensure users always receive the most favorable execution.

Key benefits include:

* **Smart Routing:** Advanced algorithms find the most efficient path across multiple pools and exchanges, often splitting trades for better pricing.
* **Real-Time Price Discovery:** Anqa constantly scans on-chain liquidity to surface the best available rates with minimal slippage and fees.
* **Slippage Protection:** Users can set tolerance thresholds to avoid unfavorable price movements during volatile market conditions.
* **Speed & Efficiency:** Anqa is optimized for fast transaction confirmation on Aptos, ensuring low latency and high throughput for swaps of any size.

Whether you're a casual trader or an advanced DeFi user, Anqa’s Swap Aggregator delivers fast, reliable, and optimized trades every time.


# Limit Order and DCA

(Coming Soon)

In upcoming releases, Anqa will introduce **automated trading tools** designed to give users more control over how and when they execute swaps:

* **Dollar-Cost Averaging (DCA):**\
  Schedule recurring purchases of a target token over time to reduce exposure to short-term volatility. Ideal for users who want to build a position gradually without manually placing trades.
* **Limit Orders (LO):**\
  Set your desired price and let Anqa monitor the market for you. When the target price is met, the trade is executed automatically—no need to constantly check charts or time entries manually.

Both features will be fully on-chain and non-custodial, giving users powerful execution strategies while retaining full control of their assets. These tools will integrate seamlessly into the Anqa UI, making advanced trading accessible to all Aptos users.


# Swap Integration

Expose Anqa’s meta-routing engine inside your own application through one of three integration layers:

* **API** – A stateless REST interface that returns deterministic quotes, optimal route breakdowns, and pre-signed Aptos transactions ready for broadcast. Ideal for server-side or mobile back ends that require full control over execution logic.
* **Widget** – A modular React component that bundles quoting, routing, and transaction signing behind a configurable UI. Drop it into any web front-end to enable best-rate swaps with minimal engineering overhead.
* **Iframe** – A sandboxed, zero-code embed for dashboards, analytics sites, and legacy stacks. Provides the same pricing logic and execution guarantees while isolating all blockchain interactions in a secure container.

Each integration surfaces identical pricing algorithms, drawing from 10 + liquidity sources across AMMs, CLAMMs, CLOBs, LSD pools, and peer aggregators, and supports slippage controls, gas estimation, and custom route constraints. Consult the method-specific reference for authentication, rate-limit policies, response schemas, and implementation examples.

{% content-ref url="/pages/UY94MTMqIK6r7UHlUdnm" %}
[API](/developer-guide/swap-integration/api)
{% endcontent-ref %}

{% content-ref url="/pages/FEBYDOYWBgoLaGnPnwbO" %}
[Widget](/developer-guide/swap-integration/widget)
{% endcontent-ref %}

{% content-ref url="/pages/9APUZjCkVpbTL8Dj20j2" %}
[Iframe](/developer-guide/swap-integration/iframe)
{% endcontent-ref %}


# API

## Get Quote

> Get quote for a swap

```json
{"openapi":"3.1.1","info":{"title":"Mosaic Stats API","version":"1.0"},"paths":{"/v1/quote":{"get":{"description":"Get quote for a swap","parameters":[{"schema":{"type":"string"},"description":"Source asset address","in":"query","name":"srcAsset","required":true},{"schema":{"type":"string"},"description":"Destination asset address","in":"query","name":"dstAsset","required":true},{"schema":{"type":"string"},"description":"Amount to swap","in":"query","name":"amount","required":true},{"schema":{"type":"string"},"description":"Comma-separated list of sources to include in the quote","in":"query","name":"includeSources"},{"schema":{"type":"string"},"description":"Comma-separated list of sources to exclude from the quote","in":"query","name":"excludeSources"},{"schema":{"type":"boolean"},"description":"Whether the fee is included in the quote","in":"query","name":"isFeeIn"},{"schema":{"type":"integer"},"description":"Fee in basis points (BPS) if the fee is included","in":"query","name":"feeInBPS"},{"schema":{"type":"string"},"description":"Address to receive the fee","in":"query","name":"feeReceiver"},{"schema":{"type":"integer"},"description":"Slippage tolerance in basis points (BPS)","in":"query","name":"slippage"},{"schema":{"type":"string"},"description":"Sender address","in":"query","name":"sender"},{"schema":{"type":"string"},"description":"Receiver address","in":"query","name":"receiver"}],"responses":{"200":{"description":"Quote response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/http.SuccessResponse"},{"properties":{"data":{"$ref":"#/components/schemas/quote.GetQuoteResponse"}},"type":"object"}]}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/http.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/http.ErrorResponse"}}}}},"summary":"Get Quote","tags":["quote"]}}},"components":{"schemas":{"http.SuccessResponse":{"properties":{"code":{"type":"integer"},"data":{},"message":{"type":"string"},"requestId":{"type":"string"}},"type":"object"},"quote.GetQuoteResponse":{"properties":{"dstAmount":{"type":"string"},"dstAsset":{"type":"string"},"feeAmount":{"type":"string"},"isFeeIn":{"type":"boolean"},"paths":{"items":{"items":{"$ref":"#/components/schemas/quote.GetQuoteResponseSwap"},"type":"array"},"type":"array"},"srcAmount":{"type":"string"},"srcAsset":{"type":"string"},"tx":{"$ref":"#/components/schemas/quote.GetQuoteResponseTx"}},"type":"object"},"quote.GetQuoteResponseSwap":{"properties":{"dstAmount":{"type":"string"},"dstAsset":{"type":"string"},"poolId":{"type":"string"},"source":{"type":"string"},"srcAmount":{"type":"string"},"srcAsset":{"type":"string"}},"type":"object"},"quote.GetQuoteResponseTx":{"properties":{"function":{"type":"string"},"functionArguments":{"items":{},"type":"array"},"typeArguments":{"items":{"type":"string"},"type":"array"}},"type":"object"},"http.ErrorResponse":{"properties":{"code":{"type":"integer"},"details":{"items":{},"type":"array"},"message":{"type":"string"},"requestId":{"type":"string"}},"type":"object"}}}}
```


# Widget

{% hint style="info" %}
**GitBook tip:** Try out a range of different content types to keep folks engaged and interested in each feature, some content types work for different chunks of information
{% endhint %}


# Iframe


# Terms of Use

## Terms of Use

Welcome to Anqa, your native DEX Aggregator on the Aptos blockchain. These Terms of Use (“Terms”) govern your access to and use of our platform, services, and technology (collectively, the “Service”), which are provided by Anqa Labs (“Anqa,” “we,” “us,” or “our”).

#### Acceptance of Terms

By accessing or using the Service, you confirm that you have read, understood, and agree to be bound by these Terms and our Privacy Policy, which is incorporated by reference. If you are using the Service on behalf of an organization, you represent that you have the authority to bind that organization to these Terms, in which case “you” and “your” refer to that organization.

#### Eligibility

You must be at least eighteen (18) years old to use the Service. By using Anqa, you represent and warrant that you meet this minimum age requirement.

#### Use of the Service

You agree to use the Service only for lawful purposes and in accordance with these Terms. Specifically, you agree not to:

* Use the Service in any manner that could disable, damage, or impair it, or interfere with other users’ ability to use the Service.
* Employ any robot, scraper, or automated means to access the Service for any purpose without our express written permission.
* Use any manual process to monitor or copy material from the Service without authorization.
* Interfere with the Service’s proper functioning by introducing harmful code (e.g., viruses, worms, trojans).
* Attempt to gain unauthorized access to any part of the Service or its infrastructure.
* Launch any denial-of-service (DoS) or distributed denial-of-service (DDoS) attacks.
* Manipulate or misrepresent Anqa’s brand, ratings, or associated services.
* Otherwise disrupt or attempt to disrupt the integrity or performance of the Service.

#### Intellectual Property Rights

The Service and its original content, features, and functionality are and will remain the exclusive property of Anqa Labs and its licensors. Anqa’s trademarks and branding elements may not be used without prior written consent.

#### Your Responsibilities

You are solely responsible for ensuring proper access to the Service and for ensuring that all parties using it via your connection are aware of and comply with these Terms.

#### Changes to the Service

We may modify, suspend, or discontinue any part of the Service at our sole discretion without notice. We are not liable if the Service becomes unavailable at any time or for any period.

#### Disclaimer of Warranties

The Service is provided on an “as is” and “as available” basis without warranties of any kind. Anqa makes no representations about the completeness, accuracy, reliability, or availability of the Service.

#### Limitation of Liability

To the fullest extent permitted by law, Anqa Labs and its affiliates, officers, employees, and licensors shall not be liable for any indirect, incidental, special, consequential, or punitive damages, including but not limited to loss of profits, data, goodwill, or other intangible losses, arising from or related to your use of the Service.

#### Arbitration and Dispute Resolution

You agree to resolve any disputes relating to these Terms or the Service through binding arbitration conducted in English under the rules of the London Court of International Arbitration (LCIA), unless otherwise agreed in writing.

#### Exceptions to Arbitration

You may pursue a claim in small claims court in London if eligible. Both parties may also seek injunctive or equitable relief in a court to prevent misuse or infringement of intellectual property rights.

#### Governing Law

These Terms shall be governed by and interpreted under the laws of the United States, without regard to conflict of law principles.

#### Changes to Terms

We may update or modify these Terms at any time. If material changes occur, we will make reasonable efforts to notify users at least 30 days in advance. The definition of “material” will be at our sole discretion.

#### Contact Us

If you have any questions or concerns about these Terms, please contact us at **<business@anqa.ag>**


# Privacy Policy

Welcome to Anqa, the native DEX Aggregator on the Aptos blockchain. Your privacy is critically important to us. This Privacy Policy outlines how we handle your information on our platform, accessible at [anqa.ag](https://anqa.ag).

#### Who We Are

Anqa is operated by Anqa Labs. We are responsible for managing the data practices outlined in this policy. For any privacy-related questions, please contact us at **<business@anqa.ag>**.

#### Privacy at Anqa

Anqa is built with privacy-by-design principles. We collect minimal data—just enough to improve functionality, security, and user experience. We never sell or misuse your information.

#### Personal Data We Collect

* **Basic Interaction Data:**\
  This includes IP address, device type, browser version, and diagnostic logs. These help us monitor system performance and troubleshoot issues.
* **Blockchain Data:**\
  We analyze public blockchain data (e.g., wallet addresses, transaction hashes) strictly for product analytics and optimization. This data is pseudonymous and not linked to any real-world identities.
* **Analytics Information:**\
  We may use third-party tools (like Google Analytics or similar) to better understand how users navigate our interface and where we can improve usability.

#### How We Use Your Data

* **Service Improvements:**\
  Interaction data helps us refine the platform, fix bugs, and improve routing performance.
* **Security:**\
  We monitor for irregular behavior and patterns to proactively prevent fraudulent or abusive usage.
* **Legal Compliance:**\
  Data may be used for internal audits, reporting, or to fulfill legal obligations.

#### Cookies and Tracking

Anqa uses cookies and local storage to enhance performance and remember user preferences. These technologies are non-invasive and can be managed through your browser settings.

#### Data Sharing and Disclosure

We only share your data with trusted third parties under the following circumstances:

* To deliver or maintain our services.
* To comply with applicable laws and regulations.
* With your explicit consent.

All service providers we work with are under strict confidentiality and data processing agreements.

***

#### Anti-Money Laundering (AML) Policy

Although Anqa is a decentralized, non-custodial platform, we are committed to supporting anti-money laundering efforts in the Web3 ecosystem.

**AML Measures:**

* **Transaction Monitoring:**\
  We employ automated tools to flag suspicious or high-risk transaction patterns.
* **Smart Contract Security:**\
  All smart contracts are independently audited by professional third-party security firms to prevent exploits or malicious behaviors.
* **Community Reporting:**\
  Users can report suspicious activity to us. While Anqa does not control user funds or freeze assets, we take reports seriously and will assess and escalate them where appropriate.

**Limitations Acknowledgment:**

As a non-custodial protocol, Anqa cannot enforce identity checks or block transactions. However, we actively discourage illicit activity and cooperate with industry standards and practices to uphold AML principles.

***

#### Data Security

We follow industry-standard best practices for platform and infrastructure security. While no system is immune to threats, we continuously monitor and patch vulnerabilities to protect user data.

***

#### Your Rights

You have the right to:

* Request access to the personal data we may have.
* Ask for corrections or deletion of such data (if any).
* Opt out of non-essential cookies or analytics tracking.

Contact us at **<business@anqa.ag>** to exercise these rights.

***

#### Changes to This Policy

We may update this Privacy Policy to reflect evolving regulatory, technological, or operational needs. Significant updates will be communicated clearly. Please check back periodically.

***

####


# Links

Website: anqa.ag

Discord: [discord.gg/Q7KPxxDW5w](https://t.co/xgJzod20qB)


