# XRP AMM Data

This namespace contains endpoints to retrieve metrics related to XRP AMM Data.

<br>

#### Supported AMM Pairs

| Name     | AMM Account                          | AMM        | Status    |
| -------- | ------------------------------------ | ---------- | --------- |
| MAG/XRP  | `rNZ2ZVF1ZU34kFQvcN4xkFAvdSvve5bXce` | `mag-xrp`  | Validated |
| XGO/XRP  | `rLeAEvRQ5RnN6LJnZ29Xw4pboWfKqYut3c` | `xgo-xrp`  | Validated |
| SOLO/XRP | `rMEJo9H5XvTe17UoAJzj8jtKVvTRcxwngo` | `solo-xrp` | Validated |
| USDC/XRP | `rGHt6LT5v9DVaEAmFzj5ciuxuj41ZjLofs` | `usdc-xrp` | Validated |
| BTC/XRP  | `rQBeAghWHEwWvKShryBSa5yR3VRX9oyQ5T` | `btc-xrp`  | Validated |
| USD/XRP  | `rHUpaqUPbwzKZdzQ8ZQCme18FrgW9pB4am` | `usd-xrp`  | Validated |
| XPM/XRP  | `rakZprdzwsUJ1rD2ouhYYAVP7tPbhrCbtz` | `xpm-xrp`  | Validated |
| CSC/XRP  | `rf7g4JWCxu9oE1MKsWTihL9whY75AphCaV` | `csc-xrp`  | Validated |
| RLT/XRP  | `rwzCasMZW2WisfohuMCVWdDD58HK9QtDyC` | `rlt-xrp`  | Validated |
| CORE/XRP | `rBu4LXTxM9cfs3JsFCuDbPMzvGBDR66wpi` | `core-xrp` | Validated |

## Price

> This endpoint returns XRP exchange rate on AMM. Currently, we only cover non-XRP/XRP pairs.<br>

```json
{"openapi":"3.0.0","info":{"title":"CryptoQuant Data API","version":"1.3.0"},"tags":[{"name":"XRP AMM Data","description":"This namespace contains endpoints to retrieve metrics related to XRP AMM Data.\n\n<br>\n\n### Supported AMM Pairs\n\n| Name           |     AMM Account   |   AMM     |   Status    |\n|----------------|-------------|--------------|-------------|\n| MAG/XRP     |`rNZ2ZVF1ZU34kFQvcN4xkFAvdSvve5bXce`| `mag-xrp`    | Validated   |\n| XGO/XRP     |`rLeAEvRQ5RnN6LJnZ29Xw4pboWfKqYut3c`| `xgo-xrp`    | Validated   |\n| SOLO/XRP     |`rMEJo9H5XvTe17UoAJzj8jtKVvTRcxwngo`| `solo-xrp`    | Validated   |\n| USDC/XRP     |`rGHt6LT5v9DVaEAmFzj5ciuxuj41ZjLofs`| `usdc-xrp`    | Validated   |\n| BTC/XRP     |`rQBeAghWHEwWvKShryBSa5yR3VRX9oyQ5T`| `btc-xrp`    | Validated   |\n| USD/XRP     |`rHUpaqUPbwzKZdzQ8ZQCme18FrgW9pB4am`| `usd-xrp`    | Validated   |\n| XPM/XRP     |`rakZprdzwsUJ1rD2ouhYYAVP7tPbhrCbtz`| `xpm-xrp`    | Validated   |\n| CSC/XRP     |`rf7g4JWCxu9oE1MKsWTihL9whY75AphCaV`| `csc-xrp`    | Validated   |\n| RLT/XRP     |`rwzCasMZW2WisfohuMCVWdDD58HK9QtDyC`| `rlt-xrp`    | Validated   |\n| CORE/XRP     |`rBu4LXTxM9cfs3JsFCuDbPMzvGBDR66wpi`| `core-xrp`    | Validated   |"}],"servers":[{"url":"https://api.cryptoquant.com/v1/","description":"Default server"}],"security":[{"Access Token":[]}],"components":{"securitySchemes":{"Access Token":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"For each API request, include this HTTP header:\n`Authorization` with the `Bearer {access_token}`. Bearer access token is the type of HTTP Authorization.  You have to include access token to the HTTP header and note that leading bearer is required.\nYou must include your access token in HTTP header in every request you make. The token is unique, issued for each client, and regularly changed(once a year). To obtain an access token, please [upgrade your plan](https://cryptoquant.com/pricing) to Professional or Premium plan. You'll be able to see your access token on the [API tab](https://cryptoquant.com/settings/api) of your profile page after the subscription."}},"parameters":{"amm_xrp":{"description":"An AMM pair from the table that we support. [See here](#tag/XRP-AMM-Data).","explode":false,"in":"query","name":"amm","required":true,"schema":{"type":"string"},"style":"form"},"window_dh":{"description":"Currently, we support `day` and `hour`.","explode":false,"in":"query","name":"window","schema":{"type":"string","default":"day"},"style":"form"},"from":{"description":"This defines the starting time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the earliest time.","explode":false,"in":"query","name":"from","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"to":{"description":"This defines the ending time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the latest time.","explode":false,"in":"query","name":"to","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"limit":{"description":"The maximum number of entries to return before the latest data point (or before `to` if specified). This field ranges from 1 to 100,000.","explode":false,"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":100000},"style":"form"},"format":{"description":"A format type about return message type. Supported formats are json, csv.","explode":false,"in":"query","name":"format","required":false,"schema":{"type":"string","default":"json"},"style":"form"}},"responses":{"price":{"description":"XRP exchange rate on AMM","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceResponse"}}}}},"schemas":{"PriceResponse":{"type":"object","required":["status","result"],"properties":{"status":{"$ref":"#/components/schemas/Status"},"result":{"type":"object","required":["window","data"],"properties":{"window":{"$ref":"#/components/schemas/Window_DH"},"data":{"type":"array","items":{"type":"object","required":["price_xrp","price_usd"],"properties":{"date":{"$ref":"#/components/schemas/Date"},"price_xrp":{"type":"decimal","description":"XRP exchange rate"},"price_usd":{"type":"decimal","description":"USD exchange rate"}}}}}}}},"Status":{"type":"object","description":"The status object is return with most of requests and indicates if the request was successful. If it is not successful, error information is included.","properties":{"code":{"type":"integer","format":"int32","description":"HTTP status code"},"message":{"type":"string","description":"Text description of the error or success."}},"required":["code","message"]},"Window_DH":{"type":"string","description":"The size of window. It can be day or hour, and it depends on the user request."},"Date":{"type":"string","description":"The date in YYYY-DD-MM. This optional field only appears when window=day is used."}}},"paths":{"/xrp/amm-data/price":{"get":{"tags":["XRP AMM Data"],"summary":"Price","description":"This endpoint returns XRP exchange rate on AMM. Currently, we only cover non-XRP/XRP pairs.\n","operationId":"getXrplAmmPrice","parameters":[{"$ref":"#/components/parameters/amm_xrp"},{"$ref":"#/components/parameters/window_dh"},{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/format"}],"responses":{"200":{"$ref":"#/components/responses/price"}}}}}}
```

## Liquidity

> This endpoint returns the total amount of liquidity on AMM. Currently, we only cover non-XRP/XRP pairs.<br>

```json
{"openapi":"3.0.0","info":{"title":"CryptoQuant Data API","version":"1.3.0"},"tags":[{"name":"XRP AMM Data","description":"This namespace contains endpoints to retrieve metrics related to XRP AMM Data.\n\n<br>\n\n### Supported AMM Pairs\n\n| Name           |     AMM Account   |   AMM     |   Status    |\n|----------------|-------------|--------------|-------------|\n| MAG/XRP     |`rNZ2ZVF1ZU34kFQvcN4xkFAvdSvve5bXce`| `mag-xrp`    | Validated   |\n| XGO/XRP     |`rLeAEvRQ5RnN6LJnZ29Xw4pboWfKqYut3c`| `xgo-xrp`    | Validated   |\n| SOLO/XRP     |`rMEJo9H5XvTe17UoAJzj8jtKVvTRcxwngo`| `solo-xrp`    | Validated   |\n| USDC/XRP     |`rGHt6LT5v9DVaEAmFzj5ciuxuj41ZjLofs`| `usdc-xrp`    | Validated   |\n| BTC/XRP     |`rQBeAghWHEwWvKShryBSa5yR3VRX9oyQ5T`| `btc-xrp`    | Validated   |\n| USD/XRP     |`rHUpaqUPbwzKZdzQ8ZQCme18FrgW9pB4am`| `usd-xrp`    | Validated   |\n| XPM/XRP     |`rakZprdzwsUJ1rD2ouhYYAVP7tPbhrCbtz`| `xpm-xrp`    | Validated   |\n| CSC/XRP     |`rf7g4JWCxu9oE1MKsWTihL9whY75AphCaV`| `csc-xrp`    | Validated   |\n| RLT/XRP     |`rwzCasMZW2WisfohuMCVWdDD58HK9QtDyC`| `rlt-xrp`    | Validated   |\n| CORE/XRP     |`rBu4LXTxM9cfs3JsFCuDbPMzvGBDR66wpi`| `core-xrp`    | Validated   |"}],"servers":[{"url":"https://api.cryptoquant.com/v1/","description":"Default server"}],"security":[{"Access Token":[]}],"components":{"securitySchemes":{"Access Token":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"For each API request, include this HTTP header:\n`Authorization` with the `Bearer {access_token}`. Bearer access token is the type of HTTP Authorization.  You have to include access token to the HTTP header and note that leading bearer is required.\nYou must include your access token in HTTP header in every request you make. The token is unique, issued for each client, and regularly changed(once a year). To obtain an access token, please [upgrade your plan](https://cryptoquant.com/pricing) to Professional or Premium plan. You'll be able to see your access token on the [API tab](https://cryptoquant.com/settings/api) of your profile page after the subscription."}},"parameters":{"amm_xrp":{"description":"An AMM pair from the table that we support. [See here](#tag/XRP-AMM-Data).","explode":false,"in":"query","name":"amm","required":true,"schema":{"type":"string"},"style":"form"},"window_dh":{"description":"Currently, we support `day` and `hour`.","explode":false,"in":"query","name":"window","schema":{"type":"string","default":"day"},"style":"form"},"from":{"description":"This defines the starting time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the earliest time.","explode":false,"in":"query","name":"from","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"to":{"description":"This defines the ending time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the latest time.","explode":false,"in":"query","name":"to","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"limit":{"description":"The maximum number of entries to return before the latest data point (or before `to` if specified). This field ranges from 1 to 100,000.","explode":false,"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":100000},"style":"form"},"format":{"description":"A format type about return message type. Supported formats are json, csv.","explode":false,"in":"query","name":"format","required":false,"schema":{"type":"string","default":"json"},"style":"form"}},"responses":{"responses_liquidity":{"description":"The total amount of liquidity on AMM","content":{"application/json":{"schema":{"$ref":"#/components/schemas/schemas_LiquidityResponse"}}}}},"schemas":{"schemas_LiquidityResponse":{"type":"object","required":["status","result"],"properties":{"status":{"$ref":"#/components/schemas/Status"},"result":{"type":"object","required":["window","data"],"properties":{"window":{"$ref":"#/components/schemas/Window_DH"},"data":{"type":"array","items":{"type":"object","required":["liquidity_xrp","liquidity_usd"],"properties":{"date":{"$ref":"#/components/schemas/Date"},"liquidity_xrp":{"type":"decimal","description":"Total amount of liquidity in XRP"},"liquidity_usd":{"type":"decimal","description":"Total amount of liquidity in USD"}}}}}}}},"Status":{"type":"object","description":"The status object is return with most of requests and indicates if the request was successful. If it is not successful, error information is included.","properties":{"code":{"type":"integer","format":"int32","description":"HTTP status code"},"message":{"type":"string","description":"Text description of the error or success."}},"required":["code","message"]},"Window_DH":{"type":"string","description":"The size of window. It can be day or hour, and it depends on the user request."},"Date":{"type":"string","description":"The date in YYYY-DD-MM. This optional field only appears when window=day is used."}}},"paths":{"/xrp/amm-data/liquidity":{"get":{"tags":["XRP AMM Data"],"summary":"Liquidity","description":"This endpoint returns the total amount of liquidity on AMM. Currently, we only cover non-XRP/XRP pairs.\n","operationId":"getXrplAmmLiquidity","parameters":[{"$ref":"#/components/parameters/amm_xrp"},{"$ref":"#/components/parameters/window_dh"},{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/format"}],"responses":{"200":{"$ref":"#/components/responses/responses_liquidity"}}}}}}
```

## Fee

> This endpoint returns the trading fee on AMM. Currently, we only cover non-XRP/XRP pairs.<br>

```json
{"openapi":"3.0.0","info":{"title":"CryptoQuant Data API","version":"1.3.0"},"tags":[{"name":"XRP AMM Data","description":"This namespace contains endpoints to retrieve metrics related to XRP AMM Data.\n\n<br>\n\n### Supported AMM Pairs\n\n| Name           |     AMM Account   |   AMM     |   Status    |\n|----------------|-------------|--------------|-------------|\n| MAG/XRP     |`rNZ2ZVF1ZU34kFQvcN4xkFAvdSvve5bXce`| `mag-xrp`    | Validated   |\n| XGO/XRP     |`rLeAEvRQ5RnN6LJnZ29Xw4pboWfKqYut3c`| `xgo-xrp`    | Validated   |\n| SOLO/XRP     |`rMEJo9H5XvTe17UoAJzj8jtKVvTRcxwngo`| `solo-xrp`    | Validated   |\n| USDC/XRP     |`rGHt6LT5v9DVaEAmFzj5ciuxuj41ZjLofs`| `usdc-xrp`    | Validated   |\n| BTC/XRP     |`rQBeAghWHEwWvKShryBSa5yR3VRX9oyQ5T`| `btc-xrp`    | Validated   |\n| USD/XRP     |`rHUpaqUPbwzKZdzQ8ZQCme18FrgW9pB4am`| `usd-xrp`    | Validated   |\n| XPM/XRP     |`rakZprdzwsUJ1rD2ouhYYAVP7tPbhrCbtz`| `xpm-xrp`    | Validated   |\n| CSC/XRP     |`rf7g4JWCxu9oE1MKsWTihL9whY75AphCaV`| `csc-xrp`    | Validated   |\n| RLT/XRP     |`rwzCasMZW2WisfohuMCVWdDD58HK9QtDyC`| `rlt-xrp`    | Validated   |\n| CORE/XRP     |`rBu4LXTxM9cfs3JsFCuDbPMzvGBDR66wpi`| `core-xrp`    | Validated   |"}],"servers":[{"url":"https://api.cryptoquant.com/v1/","description":"Default server"}],"security":[{"Access Token":[]}],"components":{"securitySchemes":{"Access Token":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"For each API request, include this HTTP header:\n`Authorization` with the `Bearer {access_token}`. Bearer access token is the type of HTTP Authorization.  You have to include access token to the HTTP header and note that leading bearer is required.\nYou must include your access token in HTTP header in every request you make. The token is unique, issued for each client, and regularly changed(once a year). To obtain an access token, please [upgrade your plan](https://cryptoquant.com/pricing) to Professional or Premium plan. You'll be able to see your access token on the [API tab](https://cryptoquant.com/settings/api) of your profile page after the subscription."}},"parameters":{"amm_xrp":{"description":"An AMM pair from the table that we support. [See here](#tag/XRP-AMM-Data).","explode":false,"in":"query","name":"amm","required":true,"schema":{"type":"string"},"style":"form"},"window_dh":{"description":"Currently, we support `day` and `hour`.","explode":false,"in":"query","name":"window","schema":{"type":"string","default":"day"},"style":"form"},"from":{"description":"This defines the starting time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the earliest time.","explode":false,"in":"query","name":"from","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"to":{"description":"This defines the ending time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the latest time.","explode":false,"in":"query","name":"to","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"limit":{"description":"The maximum number of entries to return before the latest data point (or before `to` if specified). This field ranges from 1 to 100,000.","explode":false,"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":100000},"style":"form"},"format":{"description":"A format type about return message type. Supported formats are json, csv.","explode":false,"in":"query","name":"format","required":false,"schema":{"type":"string","default":"json"},"style":"form"}},"responses":{"fee":{"description":"The trading fee on AMM","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeeResponse"}}}}},"schemas":{"FeeResponse":{"type":"object","required":["status","result"],"properties":{"status":{"$ref":"#/components/schemas/Status"},"result":{"type":"object","required":["window","data"],"properties":{"window":{"$ref":"#/components/schemas/Window_DH"},"data":{"type":"array","items":{"type":"object","required":["fee_percent"],"properties":{"date":{"$ref":"#/components/schemas/Date"},"fee_percent":{"type":"decimal","description":"Trading fee percentage"}}}}}}}},"Status":{"type":"object","description":"The status object is return with most of requests and indicates if the request was successful. If it is not successful, error information is included.","properties":{"code":{"type":"integer","format":"int32","description":"HTTP status code"},"message":{"type":"string","description":"Text description of the error or success."}},"required":["code","message"]},"Window_DH":{"type":"string","description":"The size of window. It can be day or hour, and it depends on the user request."},"Date":{"type":"string","description":"The date in YYYY-DD-MM. This optional field only appears when window=day is used."}}},"paths":{"/xrp/amm-data/fee":{"get":{"tags":["XRP AMM Data"],"summary":"Fee","description":"This endpoint returns the trading fee on AMM. Currently, we only cover non-XRP/XRP pairs.\n","operationId":"getXrplAmmFee","parameters":[{"$ref":"#/components/parameters/amm_xrp"},{"$ref":"#/components/parameters/window_dh"},{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/format"}],"responses":{"200":{"$ref":"#/components/responses/fee"}}}}}}
```

## Swap Statistics

> This endpoint returns the swap statistics on AMM. Currently, we only cover non-XRP/XRP pairs.<br>

```json
{"openapi":"3.0.0","info":{"title":"CryptoQuant Data API","version":"1.3.0"},"tags":[{"name":"XRP AMM Data","description":"This namespace contains endpoints to retrieve metrics related to XRP AMM Data.\n\n<br>\n\n### Supported AMM Pairs\n\n| Name           |     AMM Account   |   AMM     |   Status    |\n|----------------|-------------|--------------|-------------|\n| MAG/XRP     |`rNZ2ZVF1ZU34kFQvcN4xkFAvdSvve5bXce`| `mag-xrp`    | Validated   |\n| XGO/XRP     |`rLeAEvRQ5RnN6LJnZ29Xw4pboWfKqYut3c`| `xgo-xrp`    | Validated   |\n| SOLO/XRP     |`rMEJo9H5XvTe17UoAJzj8jtKVvTRcxwngo`| `solo-xrp`    | Validated   |\n| USDC/XRP     |`rGHt6LT5v9DVaEAmFzj5ciuxuj41ZjLofs`| `usdc-xrp`    | Validated   |\n| BTC/XRP     |`rQBeAghWHEwWvKShryBSa5yR3VRX9oyQ5T`| `btc-xrp`    | Validated   |\n| USD/XRP     |`rHUpaqUPbwzKZdzQ8ZQCme18FrgW9pB4am`| `usd-xrp`    | Validated   |\n| XPM/XRP     |`rakZprdzwsUJ1rD2ouhYYAVP7tPbhrCbtz`| `xpm-xrp`    | Validated   |\n| CSC/XRP     |`rf7g4JWCxu9oE1MKsWTihL9whY75AphCaV`| `csc-xrp`    | Validated   |\n| RLT/XRP     |`rwzCasMZW2WisfohuMCVWdDD58HK9QtDyC`| `rlt-xrp`    | Validated   |\n| CORE/XRP     |`rBu4LXTxM9cfs3JsFCuDbPMzvGBDR66wpi`| `core-xrp`    | Validated   |"}],"servers":[{"url":"https://api.cryptoquant.com/v1/","description":"Default server"}],"security":[{"Access Token":[]}],"components":{"securitySchemes":{"Access Token":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"For each API request, include this HTTP header:\n`Authorization` with the `Bearer {access_token}`. Bearer access token is the type of HTTP Authorization.  You have to include access token to the HTTP header and note that leading bearer is required.\nYou must include your access token in HTTP header in every request you make. The token is unique, issued for each client, and regularly changed(once a year). To obtain an access token, please [upgrade your plan](https://cryptoquant.com/pricing) to Professional or Premium plan. You'll be able to see your access token on the [API tab](https://cryptoquant.com/settings/api) of your profile page after the subscription."}},"parameters":{"amm_xrp":{"description":"An AMM pair from the table that we support. [See here](#tag/XRP-AMM-Data).","explode":false,"in":"query","name":"amm","required":true,"schema":{"type":"string"},"style":"form"},"window_dh":{"description":"Currently, we support `day` and `hour`.","explode":false,"in":"query","name":"window","schema":{"type":"string","default":"day"},"style":"form"},"from":{"description":"This defines the starting time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the earliest time.","explode":false,"in":"query","name":"from","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"to":{"description":"This defines the ending time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the latest time.","explode":false,"in":"query","name":"to","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"limit":{"description":"The maximum number of entries to return before the latest data point (or before `to` if specified). This field ranges from 1 to 100,000.","explode":false,"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":100000},"style":"form"},"format":{"description":"A format type about return message type. Supported formats are json, csv.","explode":false,"in":"query","name":"format","required":false,"schema":{"type":"string","default":"json"},"style":"form"}},"responses":{"swap-stats":{"description":"The swap statistics on AMM","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapStatsResponse"}}}}},"schemas":{"SwapStatsResponse":{"type":"object","required":["status","result"],"properties":{"status":{"$ref":"#/components/schemas/Status"},"result":{"type":"object","required":["window","data"],"properties":{"window":{"$ref":"#/components/schemas/Window_DH"},"data":{"type":"array","items":{"type":"object","required":["num_swaps","num_traders"],"properties":{"date":{"$ref":"#/components/schemas/Date"},"num_swaps":{"type":"decimal","description":"Number of swaps"},"num_traders":{"type":"decimal","description":"Number of traders"}}}}}}}},"Status":{"type":"object","description":"The status object is return with most of requests and indicates if the request was successful. If it is not successful, error information is included.","properties":{"code":{"type":"integer","format":"int32","description":"HTTP status code"},"message":{"type":"string","description":"Text description of the error or success."}},"required":["code","message"]},"Window_DH":{"type":"string","description":"The size of window. It can be day or hour, and it depends on the user request."},"Date":{"type":"string","description":"The date in YYYY-DD-MM. This optional field only appears when window=day is used."}}},"paths":{"/xrp/amm-data/swap-stats":{"get":{"tags":["XRP AMM Data"],"summary":"Swap Statistics","description":"This endpoint returns the swap statistics on AMM. Currently, we only cover non-XRP/XRP pairs.\n","operationId":"getXrplAmmSwapStatistics","parameters":[{"$ref":"#/components/parameters/amm_xrp"},{"$ref":"#/components/parameters/window_dh"},{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/format"}],"responses":{"200":{"$ref":"#/components/responses/swap-stats"}}}}}}
```
