{
"ok": true,
"meta": {
"service": "macro-fx-treasury-api",
"version": "1.1.0",
"timestamp": "2026-11-24T08:27:10.974Z",
"latencyMs": 35,
"cached": true,
"count": 30,
"source": "ecb-frankfurter"
},
"data": {
"source": "ecb-frankfurter",
"base": "USD",
"lastUpdatedUtc": "2026-11-23T16:00:00Z",
"nextUpdateUtc": null,
"totalCurrencies": 30,
"rates": {
"AUD": 1.5113,
"BRL": 5.9979,
"CAD": 1.4362,
"CHF": 0.83975,
"CNY": 6.6647,
"CZK": 22.356,
"DKK": 6.833,
"EUR": 0.91416,
"GBP": 0.76491,
"HKD": 7.8409,
"HUF": 340.32,
"IDR": 18222,
"ILS": 3.3498,
"INR": 92.92,
"ISK": 125.42,
"JPY": 159.07,
"KRW": 1348.85,
"MXN": 19.2458,
"MYR": 4.123,
"NOK": 9.8076,
"NZD": 1.8355,
"PHP": 63.855,
"PLN": 4.0761,
"RON": 4.8892,
"SEK": 10.2729,
"SGD": 1.2912,
"THB": 34.045,
"TRY": 50.59,
"USD": 1,
"ZAR": 17.5074
},
"items": [
{
"code": "AUD",
"name": "Australian Dollar",
"rate": 1.5113,
"inverseRate": 0.661682
},
{
"code": "BRL",
"name": "Brazilian Real",
"rate": 5.9979,
"inverseRate": 0.16672502
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/15508/global+fx+world+bank+and+treasury+api/41655/official+ecb+daily+and+u+s+treasury+fx+rates?base=USD&symbols=sample&source=ecb' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "macro-fx-treasury-api",
"version": "1.1.0",
"timestamp": "2026-11-24T08:27:11.079Z",
"latencyMs": 7,
"cached": true,
"count": 4,
"source": "ecb-frankfurter"
},
"data": {
"source": "ecb-frankfurter",
"from": "USD",
"amount": 100,
"rateDate": "2026-11-23",
"conversions": [
{
"to": "EUR",
"name": "Euro",
"rate": 0.91416,
"inverseRate": 1.0939004,
"convertedAmount": 91.416
},
{
"to": "GBP",
"name": "British Pound",
"rate": 0.76491,
"inverseRate": 1.3073433,
"convertedAmount": 76.491
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/15508/global+fx+world+bank+and+treasury+api/41656/batch+and+historical+currency+converter?from=USD&to=EUR,GBP,JPY,SGD&amount=100&source=ecb&date=sample' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "macro-fx-treasury-api",
"version": "1.1.0",
"timestamp": "2026-11-24T08:27:11.587Z",
"latencyMs": 411,
"cached": false,
"count": 64,
"source": "ecb-frankfurter"
},
"data": {
"source": "ecb-frankfurter",
"base": "USD",
"symbol": "EUR",
"symbolName": "Euro",
"startDate": "2026-08-26",
"endDate": "2026-11-23",
"tradingDays": 64,
"analytics": {
"startRate": 0.85697,
"endRate": 0.91416,
"changeAbs": 0.05719,
"changePct": 6.6735,
"minRate": 0.85697,
"minDate": "2026-08-26",
"maxRate": 0.91416,
"maxDate": "2026-11-23",
"averageRate": 0.88440656,
"annualizedVolatilityPct": 5,
"trend": "up"
},
"series": [
{
"date": "2026-08-26",
"rate": 0.85697,
"dailyChangePct": null
},
{
"date": "2026-08-27",
"rate": 0.85874,
"dailyChangePct": 0.2065
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/15508/global+fx+world+bank+and+treasury+api/41657/historical+fx+time-series+and+volatility+analytics?base=USD&symbol=EUR&days=90&start=sample&end=sample' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "macro-fx-treasury-api",
"version": "1.1.0",
"timestamp": "2026-11-24T08:27:11.662Z",
"latencyMs": 9,
"cached": true,
"count": 9,
"source": "ecb-frankfurter"
},
"data": {
"source": "ecb-frankfurter",
"lastUpdatedUtc": "2026-11-23T16:00:00Z",
"currencies": [
"USD",
"EUR"
],
"matrix": {
"USD": {
"USD": 1,
"EUR": 0.91416,
"GBP": 0.76491,
"JPY": 159.07,
"CHF": 0.83975,
"CAD": 1.4362,
"AUD": 1.5113,
"CNY": 6.6647,
"SGD": 1.2912
},
"EUR": {
"USD": 1.0939004,
"EUR": 1,
"GBP": 0.83673536,
"JPY": 174.00674,
"CHF": 0.91860287,
"CAD": 1.5710598,
"AUD": 1.6532117,
"CNY": 7.2905181,
"SGD": 1.4124442
},
"GBP": {
"USD": 1.3073433,
"EUR": 1.195121,
"GBP": 1,
"JPY": 207.95911,
"CHF": 1.0978416,
"CAD": 1.8776065,
"AUD": 1.975788,
"CNY": 8.7130512,
"SGD": 1.6880417
},
"JPY": {
"USD": 0.0062865405,
"EUR": 0.0057469039,
"GBP": 0.0048086377,
"JPY": 1,
"CHF": 0.0052791224,
"CAD": 0.0090287295,
"AUD": 0.0095008487,
"CNY": 0.041897907,
"SGD": 0.0081171811
},
"CHF": {
"USD": 1.1908306,
"EUR": 1.0886097,
"GBP": 0.91087824,
"JPY": 189.42542,
"CHF": 1,
"CAD": 1.7102709,
"AUD": 1.7997023,
"CNY": 7.9365287,
"SGD": 1.5376005
},
"CAD": {
"USD": 0.69628185,
"EUR": 0.63651302,
"GBP": 0.53259295,
"JPY": 110.75755,
"CHF": 0.58470269,
"CAD": 1,
"AUD": 1.0522908,
"CNY": 4.6405097,
"SGD": 0.89903913
},
"AUD": {
"USD": 0.661682,
"EUR": 0.60488321,
"GBP": 0.50612718,
"JPY": 105.25376,
"CHF": 0.55564746,
"CAD": 0.95030768,
"AUD": 1,
"CNY": 4.409912,
"SGD": 0.85436379
},
"CNY": {
"USD": 0.15004426,
"EUR": 0.13716446,
"GBP": 0.11477036,
"JPY": 23.867541,
"CHF": 0.12599967,
"CAD": 0.21549357,
"AUD": 0.22676189,
"CNY": 1,
"SGD": 0.19373715
},
"SGD": {
"USD": 0.77447336,
"EUR": 0.70799257,
"GBP": 0.59240242,
"JPY": 123.19548,
"CHF": 0.650364,
"CAD": 1.1122986,
"AUD": 1.1704616,
"CNY": 5.1616326,
"SGD": 1
}
}
}
}
curl --location --request GET 'https://zylalabs.com/api/15508/global+fx+world+bank+and+treasury+api/41658/cross-currency+rate+matrix?currencies=USD,EUR,GBP,JPY,CHF,CNY,SGD&source=ecb' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "macro-fx-treasury-api",
"version": "1.1.0",
"timestamp": "2026-11-24T08:27:11.728Z",
"latencyMs": 0,
"cached": true,
"count": 15,
"note": "You can pass any alias below OR any raw World Bank indicator code (e.g. NY.GDP.MKTP.CD) to /v1/macro/compare."
},
"data": [
{
"alias": "gdp",
"code": "NY.GDP.MKTP.CD",
"name": "GDP (current US$)",
"category": "growth",
"unit": "USD",
"description": "Gross Domestic Product at purchaser prices in current US dollars."
},
{
"alias": "gdp_growth",
"code": "NY.GDP.MKTP.KD.ZG",
"name": "GDP growth (annual %)",
"category": "growth",
"unit": "%",
"description": "Annual percentage growth rate of GDP at market prices based on constant local currency."
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15508/global+fx+world+bank+and+treasury+api/41659/world+bank+macro+indicator+catalog?q=nvidia&category=all' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "macro-fx-treasury-api",
"version": "1.1.0",
"timestamp": "2026-11-24T08:27:11.806Z",
"latencyMs": 8,
"cached": true,
"iso2": "VN",
"iso3": "VNM"
},
"data": {
"country": {
"iso2": "VN",
"iso3": "VNM",
"name": "Viet Nam",
"region": "East Asia & Pacific",
"incomeLevel": "Upper middle income",
"capitalCity": "Hanoi",
"latitude": 21.0069,
"longitude": 105.825
},
"currency": {
"code": "VND",
"source": "us-treasury-fiscal-data",
"usdRate": 25959,
"inverseUsdRate": 3.9e-5,
"lastUpdatedUtc": "2026-09-30T00:00:00Z"
},
"indicators": {
"gdp": {
"alias": "gdp",
"code": "NY.GDP.MKTP.CD",
"name": "GDP (current US$)",
"unit": "USD",
"latestYear": 2025,
"latestValue": 514697215165.065,
"previousYear": 2024,
"previousValue": 476324572783.807,
"yoyChange": 38372642381.258,
"yoyChangePct": 8.06
},
"gdp_growth": {
"alias": "gdp_growth",
"code": "NY.GDP.MKTP.KD.ZG",
"name": "GDP growth (annual %)",
"unit": "%",
"latestYear": 2025,
"latestValue": 8.0188,
"previousYear": 2024,
"previousValue": 7.0396,
"yoyChange": 0.9793,
"yoyChangePct": 13.91
},
"gdp_per_capita": {
"alias": "gdp_per_capita",
"code": "NY.GDP.PCAP.CD",
"name": "GDP per capita (current US$)",
"unit": "USD",
"latestYear": 2025,
"latestValue": 5065.9909,
"previousYear": 2024,
"previousValue": 4716.6599,
"yoyChange": 349.331,
"yoyChangePct": 7.41
},
"inflation": {
"alias": "inflation",
"code": "FP.CPI.TOTL.ZG",
"name": "Inflation, consumer prices (annual %)",
"unit": "%",
"latestYear": 2025,
"latestValue": 3.31,
"previousYear": 2024,
"previousValue": 3.6211,
"yoyChange": -0.3111,
"yoyChangePct": -8.59
},
"unemployment": {
"alias": "unemployment",
"code": "SL.UEM.TOTL.ZS",
"name": "Unemployment, total (% of total labor force)",
"unit": "%",
"latestYear": 2025,
"latestValue": 1.523,
"previousYear": 2024,
"previousValue": 1.602,
"yoyChange": -0.079,
"yoyChangePct": -4.93
},
"population": {
"alias": "population",
"code": "SP.POP.TOTL",
"name": "Population, total",
"unit": "people",
"latestYear": 2025,
"latestValue": 101598527,
"previousYear": 2024,
"previousValue": 100987686,
"yoyChange": 610841,
"yoyChangePct": 0.6
}
}
}
}
curl --location --request GET 'https://zylalabs.com/api/15508/global+fx+world+bank+and+treasury+api/41660/unified+country+macro+and+fx+snapshot&iso=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "macro-fx-treasury-api",
"version": "1.1.0",
"timestamp": "2026-11-24T08:27:12.891Z",
"latencyMs": 1021,
"cached": false,
"count": 10,
"indicatorCode": "FP.CPI.TOTL.ZG"
},
"data": {
"indicator": {
"alias": "inflation",
"code": "FP.CPI.TOTL.ZG",
"name": "Inflation, consumer prices (annual %)",
"unit": "%",
"lastUpdated": "2026-11-11"
},
"countriesRequested": [
"US",
"CN"
],
"sort": "latest_desc",
"items": [
{
"rank": 1,
"iso2": "BR",
"iso3": "BRA",
"countryName": "Brazil",
"latestYear": 2025,
"latestValue": 5.0168,
"previousYear": 2024,
"previousValue": 4.3675,
"yoyChange": 0.6493,
"yoyChangePct": 14.87,
"history": [
{
"year": 2025,
"value": 5.0168
},
{
"year": 2024,
"value": 4.3675
}
]
},
{
"rank": 2,
"iso2": "GB",
"iso3": "GBR",
"countryName": "United Kingdom",
"latestYear": 2025,
"latestValue": 3.8831,
"previousYear": 2024,
"previousValue": 3.2716,
"yoyChange": 0.6115,
"yoyChangePct": 18.69,
"history": [
{
"year": 2025,
"value": 3.8831
},
{
"year": 2024,
"value": 3.2716
}
]
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/15508/global+fx+world+bank+and+treasury+api/41661/multi-country+macro+leaderboard+and+history?indicator=inflation&countries=US,CN,DE,JP,IN,GB,FR,BR,SG,VN&years=5&sort=latest_desc' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "macro-fx-treasury-api",
"version": "1.1.0",
"timestamp": "2026-11-24T08:27:13.479Z",
"latencyMs": 496,
"cached": false,
"count": 16,
"latestDate": "2026-10-31"
},
"data": {
"latestDate": "2026-10-31",
"monthsRequested": 6,
"securities": [
{
"securityDesc": "Treasury Bills",
"securityType": "Marketable",
"latestDate": "2026-10-31",
"latestRatePct": 4.014,
"previousDate": "2026-09-30",
"previousRatePct": 3.87,
"momChangeBps": 14.4,
"history": [
{
"date": "2026-10-31",
"ratePct": 4.014
},
{
"date": "2026-09-30",
"ratePct": 3.87
}
]
},
{
"securityDesc": "Treasury Notes",
"securityType": "Marketable",
"latestDate": "2026-10-31",
"latestRatePct": 3.399,
"previousDate": "2026-09-30",
"previousRatePct": 3.383,
"momChangeBps": 1.6,
"history": [
{
"date": "2026-10-31",
"ratePct": 3.399
},
{
"date": "2026-09-30",
"ratePct": 3.383
}
]
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/15508/global+fx+world+bank+and+treasury+api/41662/u+s+treasury+average+interest+rates?security=sample&months=6' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "macro-fx-treasury-api",
"version": "1.1.0",
"timestamp": "2026-11-24T08:27:13.996Z",
"latencyMs": 414,
"cached": false,
"count": 30,
"latestDate": "2026-11-20"
},
"data": {
"latestDate": "2026-11-20",
"latestTotalDebtUsd": 40710417158680.15,
"latestTotalDebtTrillions": 40.7104,
"debtHeldByPublicUsd": 32901198701800.97,
"intragovernmentalUsd": 7809218456879.18,
"publicSharePct": 80.82,
"periodStartDate": "2026-10-08",
"periodChangeUsd": 405100947850.43,
"periodChangePct": 1.0051,
"avgDailyIncreaseUsd": 9420952275.59,
"series": [
{
"date": "2026-11-20",
"totalDebtUsd": 40710417158680.15,
"totalDebtTrillions": 40.7104,
"debtHeldByPublicUsd": 32901198701800.97,
"intragovernmentalUsd": 7809218456879.18,
"dailyChangeUsd": 636458363.13
},
{
"date": "2026-11-19",
"totalDebtUsd": 40709780700317.02,
"totalDebtTrillions": 40.7098,
"debtHeldByPublicUsd": 32901459975089.26,
"intragovernmentalUsd": 7808320725227.76,
"dailyChangeUsd": 19011061467.07
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/15508/global+fx+world+bank+and+treasury+api/41663/u+s+national+debt+to+the+penny+and+growth+velocity?days=30' --header 'Authorization: Bearer YOUR_API_KEY'
{
"ok": true,
"meta": {
"service": "macro-fx-treasury-api",
"version": "1.1.0",
"timestamp": "2026-11-24T08:27:14.787Z",
"latencyMs": 726,
"cached": false,
"view": "overview"
},
"data": {
"view": "overview",
"auctions": [
{
"cusip": "912797WF0",
"securityType": "Bill",
"securityTerm": "8-Week",
"issueDate": "2026-10-20",
"maturityDate": "2026-12-15",
"recordDate": "2026-10-20",
"offeringAmtUsd": 105000000000,
"bidToCoverRatio": 2.26,
"highYieldPct": null,
"highDiscountRatePct": 4.05,
"highInvestmentRatePct": 4.132,
"pricePer100": 99.37,
"interestRatePct": null,
"reopening": true
},
{
"cusip": "912797WZ6",
"securityType": "Bill",
"securityTerm": "17-Week",
"issueDate": "2026-10-20",
"maturityDate": "2027-02-16",
"recordDate": "2026-10-20",
"offeringAmtUsd": 75000000000,
"bidToCoverRatio": 2.79,
"highYieldPct": null,
"highDiscountRatePct": 4.195,
"highInvestmentRatePct": 4.313,
"pricePer100": 98.613319,
"interestRatePct": null,
"reopening": false
}
],
"budget": [
{
"recordDate": "2026-10-31",
"classification": "Year-to-Date",
"receiptsUsd": 368940118602.77,
"outlaysUsd": 773003666480.36,
"balanceUsd": -404063547877.59,
"status": "deficit"
},
{
"recordDate": "2026-10-31",
"classification": "October",
"receiptsUsd": 368940118602.77,
"outlaysUsd": 773003666480.36,
"balanceUsd": -404063547877.59,
"status": "deficit"
}
],
"reportingFx": [
{
"recordDate": "2026-09-30",
"effectiveDate": "2026-09-30",
"country": "Afghanistan",
"currency": "Afghani",
"exchangeRatePerUsd": 65.15
},
{
"recordDate": "2026-09-30",
"effectiveDate": "2026-09-30",
"country": "Albania",
"currency": "Lek",
"exchangeRatePerUsd": 80.75
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/15508/global+fx+world+bank+and+treasury+api/41664/u+s+treasury+auctions+federal+budget+and+reporting+fx?view=overview&securityType=Bill&country=US&completedOnly=true&limit=15' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 全球外汇 世界银行和财政部 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
获取欧洲央行官方每日汇率以及美国财政部覆盖140种货币的报告汇率历史波动率分析世界银行宏观数据和美国财政部财政数据源
精确到分的国债总额、可交易国债的平均利率、美国财政部国债拍卖的投标覆盖率,以及联邦预算盈余或赤字数据
是 使用宏观比较接口按 GDP 通胀率 失业率或人口对多个国家进行排名