> For the complete documentation index, see [llms.txt](https://dev.anqa.ag/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.anqa.ag/developer-guide/swap-integration/api.md). Agents can also search and read this documentation through its [MCP server](https://dev.anqa.ag/~gitbook/mcp).

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