XML Export of Rates

Access exchange rates in XML format for legacy systems and monitoring tools

Endpoint

GET/v1/rates.xml

This endpoint does not require authentication

Query Parameters

ParameterRequiredDescription
rate_typeNo"fixed" or "float" (default: "float")
baseNoBase currency for rates (default: "USDT")

Fixed vs Float XML

Fixed Rates

Fixed rates are locked for 15 minutes and include expiration timestamps:

GET /v1/rates.xml?rate_type=fixed

Float Rates

Float rates are real-time market rates that update continuously:

GET /v1/rates.xml?rate_type=float

XML Schema

The XML response follows this structure:

<?xml version="1.0" encoding="UTF-8"?>
<rates>
  <timestamp>1706284800</timestamp>
  <rate_type>float</rate_type>
  <base>USDT</base>
  <pairs>
    <pair>
      <from>BTC</from>
      <from_network>BTC</from_network>
      <to>USDT</to>
      <to_network>ERC20</to_network>
      <rate>83134.50</rate>
      <fee_percent>0.5</fee_percent>
      <min_amount>0.0001</min_amount>
      <max_amount>10.0</max_amount>
      <enabled>true</enabled>
    </pair>
    <pair>
      <from>BNB</from>
      <from_network>BEP20</from_network>
      <to>USDT</to>
      <to_network>ERC20</to_network>
      <rate>831.34</rate>
      <fee_percent>1.0</fee_percent>
      <min_amount>0.01</min_amount>
      <max_amount>1000.0</max_amount>
      <enabled>true</enabled>
    </pair>
  </pairs>
</rates>

Field-by-Field Explanation

FieldDescription
timestampUnix timestamp when rates were generated
rate_typeType of rates: "fixed" or "float"
baseBase currency for rate calculations
from / toSource and destination currency codes
from_network / to_networkBlockchain networks for the currencies
rateExchange rate (1 from = rate to)
fee_percentExchange fee percentage
min_amount / max_amountMinimum and maximum exchange amounts
enabledWhether this pair is currently available

Request Examples

Basic Request

curl -X GET "https://api.mintmove.io/v1/rates.xml" \
  -H "Accept: application/xml"

Fixed Rates

curl -X GET "https://api.mintmove.io/v1/rates.xml?rate_type=fixed" \
  -H "Accept: application/xml"

Use Cases

  • Legacy Systems - Integrate with older systems that require XML format instead of JSON
  • Monitoring Tools - Feed rates into monitoring and alerting systems that consume XML
  • Data Aggregation - Collect rates for analysis or display on external dashboards
  • Automated Trading - Monitor rates for automated trading strategies

Update Frequency

  • Float Rates: Updated every 30-60 seconds based on market conditions
  • Fixed Rates: Updated when new fixed rate periods begin (every 15 minutes)
  • Caching: Responses are cached for 10 seconds to reduce server load

Note: Don't poll this endpoint more frequently than every 10 seconds. Use the timestamp field to detect when rates have actually changed.

Parsing Example (Python)

import xml.etree.ElementTree as ET
import requests

response = requests.get('https://api.mintmove.io/v1/rates.xml')
root = ET.fromstring(response.content)

timestamp = root.find('timestamp').text
rate_type = root.find('rate_type').text

for pair in root.findall('pairs/pair'):
    from_curr = pair.find('from').text
    to_curr = pair.find('to').text
    rate = float(pair.find('rate').text)
    enabled = pair.find('enabled').text == 'true'
    
    if enabled:
        print(f'{from_curr}/{to_curr}: {rate}')