# 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"}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.anqa.ag/developer-guide/swap-integration/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
