bankstring
Optional central bank code (e.g., FED, ECB, BOJ) to return one bank only. Use the /macro/interest-rates/banks endpoint to get a list of available banks.
https://api.sandbase.ai/v1/api/financial-datasets/macro-interest-rates-snapshotThe newest published policy rate of every central bank we cover, one row per bank with the date it is in effect. Pass bank to get one bank only.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns the newest published policy interest rate for each central bank covered, one row per bank. It needs no input, and you can pass the optional bank code to get a single bank.
date.curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/macro-interest-rates-snapshot" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
bank | string | No | Optional central bank code (e.g., FED, ECB, BOJ) to return one bank only. Use the /macro/interest-rates/banks endpoint to get a list of available banks. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"interest_rates": [
{
"bank": "BOC",
"date": "2026-10-26",
"name": "Bank of Canada",
"rate": 2.25
}
]
}
| Field | Meaning |
|---|---|
interest_rates[] | One row per central bank with its latest policy rate. |
interest_rates[].bank | Short central bank code, such as BOC, BOE or BOJ. Use this value as the bank parameter. |
interest_rates[].name | Full name of the central bank, such as Bank of Canada. |
interest_rates[].rate | The policy rate for that bank. Values like 2.25 and 3.75 look like percentages. |
interest_rates[].date | Date the rate is in effect, in YYYY-MM-DD format. |
{} to get every bank, or set bank to a code such as BOJ to get one row.bank codes from the /macro/interest-rates/banks endpoint named in the parameter description.$0.02 per successful call. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/macro-interest-rates-snapshot" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
bankstringOptional central bank code (e.g., FED, ECB, BOJ) to return one bank only. Use the /macro/interest-rates/banks endpoint to get a list of available banks.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Financial Datasets | $0.02 ต่อการเรียก | JSON |
Financial Datasets | $0.02 ต่อการเรียก | JSON |
Financial Datasets | $0.02 ต่อการเรียก | JSON |
Financial Datasets | $0.02 ต่อการเรียก | JSON |
Financial Datasets | $0.02 ต่อการเรียก | JSON |
Financial Datasets | $0.02 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/financial-datasets/macro-interest-rates-snapshot โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.02 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: bank (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Financial Datasets Get Latest Interest Rates ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Financial Datasets API แยกต่างหาก