exchange-rate-query-ten-bank
Top 10 Banks Exchange Rate Query
Provides an API service for querying exchange rates from the top 10 banks, enabling developers to quickly access major bank exchange rates and integrate them into business systems.
Usage Cost
2 coins/call
Quick Start
Use a unified response envelope and call directly from your backend.
https://openapi.toolkk.com/v1/exchange-rate-query-ten-bankcURL Example
curl --request POST \
--url 'https://openapi.toolkk.com/v1/exchange-rate-query-ten-bank' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--data '{\n "bankCode": "BOC"\n}'Python Example
import os
import requests
url = "https://openapi.toolkk.com/v1/exchange-rate-query-ten-bank"
payload = {
"bankCode": "BOC"
}
headers = {
"Content-Type": "application/json",
"X-API-Key": os.getenv("TOOLKK_API_KEY", "YOUR_API_KEY"),
}
response = requests.request("POST", url, headers=headers, json=payload, timeout=30)
response.raise_for_status()
print(response.json())Go Example
package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
endpoint := "https://openapi.toolkk.com/v1/exchange-rate-query-ten-bank"
payload := []byte("{\n \"bankCode\": \"BOC\"\n}")
req, err := http.NewRequest("POST", endpoint, bytes.NewBuffer(payload))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
panic(err)
}
fmt.Println(string(body))
}Java Example
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class ToolkkExample {
public static void main(String[] args) throws Exception {
String payload = "{\n \"bankCode\": \"BOC\"\n}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://openapi.toolkk.com/v1/exchange-rate-query-ten-bank"))
.method("POST", HttpRequest.BodyPublishers.ofString(payload))
.header("Content-Type", "application/json")
.header("X-API-Key", "YOUR_API_KEY")
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}PHP Example
<?php
$endpoint = 'https://openapi.toolkk.com/v1/exchange-rate-query-ten-bank';
$payload = "{\n \"bankCode\": \"BOC\"\n}";
$ch = curl_init($endpoint);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'X-API-Key: YOUR_API_KEY',
],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($ch);
if ($response === false) {
throw new RuntimeException(curl_error($ch));
}
curl_close($ch);
echo $response;Response Example
{
"code": "SUCCESS",
"message": "success",
"data": {
"data": {
"listSize": 46,
"list": [
{
"hui_in": "181.57",
"zhesuan": "183.08",
"code": "AED",
"hui_out": "184.13",
"name": "阿联酋迪拉姆",
"chao_out": "184.13",
"chao_in": "181.57"
},
{
"hui_in": "469.98",
"zhesuan": "471.82",
"code": "AUD",
"hui_out": "473.72",
"name": "澳大利亚元",
"chao_out": "473.72",
"chao_in": "469.98"
},
{
"hui_in": "",
"zhesuan": "525.49",
"code": "BND",
"hui_out": "",
"name": "文莱元",
"chao_out": "567.35",
"chao_in": "483.29"
}
],
"time": "10:55:55",
"name": "BOC",
"day": "2026-09-28"
},
"msg": "成功",
"success": true,
"code": 200
}
}Examples illustrate the response structure. Actual results depend on the API response.
- Authentication
- Send X-API-Key in request headers
- Rate limit
- 600 req/min
- Timeout
- 10000 ms
Send your API Key in the X-API-Key header from your backend.
Check both HTTP status and business fields before treating a call as successful.
Use retries and backoff together with rate limits in high-frequency scenarios.
Request Fields
Send requests from your server with the key in the X-API-Key header.
Request Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Required | Description | Sample |
|---|---|---|---|---|
| bankCode | string | Unspecified | Unspecified | BOC |
Request Example
{
"bankCode": "BOC"
}- Authentication
- Send X-API-Key in request headers
- Rate limit
- 600 req/min
- Timeout
- 10000 ms
Response Fields
Examples illustrate the response structure. Actual results depend on the API response.
Response Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Required | Description | Sample |
|---|---|---|---|---|
| code | string | Unspecified | Unspecified | SUCCESS |
| message | string | Unspecified | Unspecified | success |
| data | object | Unspecified | Unspecified | {...} |
| data.data | object | Unspecified | Unspecified | {...} |
| data.data.listSize | number | Unspecified | Unspecified | 46 |
| data.data.list | array | Unspecified | Unspecified | [{"hui_in":"181.57","zhesuan":"183.08","code":"AED","hui_out":"184.13","name":"阿联酋迪拉姆","chao_out":"184.13","chao_in":"181.57"},{"hui_in":"469.98","zhesuan":"471.82","code":"AUD","hui_out":"473.72","name":"澳大利亚元","chao_out":"473.72","chao_in":"469.98"},{"hui_in":"","zhesuan":"525.49","code":"BND","hui_out":"","name":"文莱元","chao_out":"567.35","chao_in":"483.29"}] |
| data.data.time | string | Unspecified | Unspecified | 10:55:55 |
| data.data.name | string | Unspecified | Unspecified | BOC |
| data.data.day | string | Unspecified | Unspecified | 2026-09-28 |
| data.msg | string | Unspecified | Unspecified | 成功 |
| data.success | boolean | Unspecified | Unspecified | true |
| data.code |
API overview
Capabilities, use cases, limitations, and frequently asked questions.
Top 10 Banks Exchange Rate API Overview
The Top 10 Banks Exchange Rate API helps developers quickly process exchange rate queries for major banks within their systems. It returns structured results and is ideal for financial business integration, reconciliation processing, and automated system integration.
Use Cases
- Supports integrating Top 10 Banks Exchange Rate query capabilities into internal systems, SaaS platforms, automated workflows, or admin dashboards.
- Suitable for business scenarios requiring stable API calls, standardized responses, and orchestratable interface capabilities.
- It is recommended to implement request rate limiting, failure retries, and result caching strategies to improve overall integration stability.
Integration Guidelines
- Before integration, verify the request parameter formats, authentication methods, and error code handling logic.
- For high-frequency query scenarios, it is advisable to implement log tracking, timeout controls, and idempotency handling.
- If the results are used for risk control or automated decision-making, it is recommended to incorporate secondary validation based on business rules rather than relying solely on the API response as a single point of truth.