XRP AMM Data

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

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

get

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

Authorizations
AuthorizationstringRequired

For each API request, include this HTTP header: 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. You 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 to Professional or Premium plan. You'll be able to see your access token on the API tab of your profile page after the subscription.

Query parameters
ammstringRequired

An AMM pair from the table that we support. See here.

Example: mag-xrp
windowstringOptional

Currently, we support day and hour.

Default: dayExample: day
fromanyOptional

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.

Example: 20191001T100000
toanyOptional

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.

Example: 20191001T103025
limitinteger · min: 1 · max: 100000Optional

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.

Default: 100Example: 100
formatstringOptional

A format type about return message type. Supported formats are json, csv.

Default: jsonExample: json
Responses
chevron-right
200

XRP exchange rate on AMM

application/json
get
/xrp/amm-data/price
200

XRP exchange rate on AMM

Liquidity

get

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

Authorizations
AuthorizationstringRequired

For each API request, include this HTTP header: 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. You 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 to Professional or Premium plan. You'll be able to see your access token on the API tab of your profile page after the subscription.

Query parameters
ammstringRequired

An AMM pair from the table that we support. See here.

Example: mag-xrp
windowstringOptional

Currently, we support day and hour.

Default: dayExample: day
fromanyOptional

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.

Example: 20191001T100000
toanyOptional

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.

Example: 20191001T103025
limitinteger · min: 1 · max: 100000Optional

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.

Default: 100Example: 100
formatstringOptional

A format type about return message type. Supported formats are json, csv.

Default: jsonExample: json
Responses
chevron-right
200

The total amount of liquidity on AMM

application/json
get
/xrp/amm-data/liquidity
200

The total amount of liquidity on AMM

Fee

get

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

Authorizations
AuthorizationstringRequired

For each API request, include this HTTP header: 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. You 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 to Professional or Premium plan. You'll be able to see your access token on the API tab of your profile page after the subscription.

Query parameters
ammstringRequired

An AMM pair from the table that we support. See here.

Example: mag-xrp
windowstringOptional

Currently, we support day and hour.

Default: dayExample: day
fromanyOptional

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.

Example: 20191001T100000
toanyOptional

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.

Example: 20191001T103025
limitinteger · min: 1 · max: 100000Optional

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.

Default: 100Example: 100
formatstringOptional

A format type about return message type. Supported formats are json, csv.

Default: jsonExample: json
Responses
chevron-right
200

The trading fee on AMM

application/json
get
/xrp/amm-data/fee
200

The trading fee on AMM

Swap Statistics

get

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

Authorizations
AuthorizationstringRequired

For each API request, include this HTTP header: 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. You 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 to Professional or Premium plan. You'll be able to see your access token on the API tab of your profile page after the subscription.

Query parameters
ammstringRequired

An AMM pair from the table that we support. See here.

Example: mag-xrp
windowstringOptional

Currently, we support day and hour.

Default: dayExample: day
fromanyOptional

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.

Example: 20191001T100000
toanyOptional

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.

Example: 20191001T103025
limitinteger · min: 1 · max: 100000Optional

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.

Default: 100Example: 100
formatstringOptional

A format type about return message type. Supported formats are json, csv.

Default: jsonExample: json
Responses
chevron-right
200

The swap statistics on AMM

application/json
get
/xrp/amm-data/swap-stats
200

The swap statistics on AMM

Last updated

Was this helpful?