FXThai FX Compare

THAI BANK FX DATA, READY TO USE

Thai bank FX rates.
One clean API.

Normalized TT rates, rankings and historical data from Thai banks — without maintaining a separate collector for every source.

What you get

The API exposes a cleaner contract than the internal website payload, so integrations are not tied to frontend implementation details.

Normalized rates

TT selling and TT buying values normalized as THB per 1 foreign-currency unit.

Bank ranking

Current quotes returned in comparable order with rank, source time and original source URL.

Historical series

Per-bank history for charting, monitoring and internal treasury workflows.

Free during beta

No API key, no signup, no payment. Use the latest-rate, bank-list and historical endpoints directly while the API is in beta.

Free access

All documented GET endpoints are open during beta.

No key required

Call the API directly from scripts, apps or AI agents.

Fair use

Responses are cached to keep the service reliable on the free infrastructure.

API documentation

All documented GET endpoints are free during beta and require no API key.

Public endpoint — no key

GET/api/public/rates?currency=CNY&side=selling

Designed for interactive lookups, AI agents and evaluation. It returns only current bank-published quotes and is cached for fair-use traffic.

curl "https://fxratetracker.njtools.workers.dev/api/public/rates?currency=CNY&side=selling"

side=selling: pay THB to buy foreign currency; lower is better. side=buying: receive THB from foreign currency; higher is better.

MCP for AI agents

MCPhttps://fxratetracker.njtools.workers.dev/mcp

Remote Streamable HTTP MCP server for AI clients. No API key is required during beta.

{
  "mcpServers": {
    "thai-fx-compare": {
      "url": "https://fxratetracker.njtools.workers.dev/mcp"
    }
  }
}

Tools: compare_thai_bank_rates, get_best_thai_fx_rate, get_thai_fx_history, list_thai_fx_banks.

Latest rates

GET/api/v1/rates/CNY?side=selling
curl "https://fxratetracker.njtools.workers.dev/api/v1/rates/CNY?side=selling"
{
  "currency": "CNY",
  "side": "selling",
  "count": 15,
  "best": {
    "bank_id": "BOCT",
    "bank": "Bank of China (Thai)",
    "rate": 5.029,
    "rank": 1
  },
  "data": [...]
}

Use side=selling for sending THB to buy foreign currency, and side=buying for receiving THB from foreign currency.

History

GET/api/v1/history/CNY?bank=BOCT&days=30&side=selling

History supports 1–90 days per bank and currency.

Banks

GET/api/v1/banks

Returns available bank IDs, bank names, supported currencies and the most recent stored timestamp.

Usage limits

The beta API is free and keyless. Responses are cached and intended for fair-use interactive, application and AI-agent lookups.

Machine-readable docs

Use these when connecting an AI agent, API client or directory.