全球金融市场报价和指标 API

API ID 14794

获取实时股票报价 历史OHLCV数据 公司基本面 分析师评级 和宏观经济日历

API 文档

端点

请求
实时多资产搜索自动完成功能匹配全球的股票 ETF 指数 加密货币和外汇工具
Endpoint ID: 38339
GET https://zylalabs.com/api/14794/global+financial+market+quotes+and+metrics+api/38339/search+tickers+and+instruments+autocomplete
输入参数

搜索代码和工具 自动完成 — 端点功能

对象 描述
query 必需 Search query text to match ticker symbols or company names. Ex: 'AAPL'
section 可选 Optional asset category filter. Allowed values: any, quotes, articles, news, crypto. Ex: 'quotes'
limit 可选 Maximum number of items to return in the response page (1-100). Ex: 10
offset 可选 Sequential pagination offset starting at 0. Ex: 0

剩余免费测试请求:3 / 3。


输入参数

query
section
limit
offset
API 示例响应
JSON
{
    "success": true,
    "results": [
        {
            "pairId": 6408,
            "symbol": "AAPL",
            "name": "Apple Inc",
            "exchange": "NASDAQ",
            "assetType": "Equity",
            "flagUrl": "https://i-invdn-com.financial-markets.com/flags_32x32/circle/United_States.png"
        },
        {
            "pairId": 1253235,
            "symbol": "AAPL5YUSAX",
            "name": "Apple Inc CDS 5 Year USD",
            "exchange": "NYSE",
            "assetType": "Bond Yield",
            "flagUrl": "https://i-invdn-com.financial-markets.com/flags_32x32/circle/United_States.png"
        },
        {
            "pairId": 1193386,
            "symbol": "AAPD",
            "name": "Direxion Daily AAPL Bear 1X Shares",
            "exchange": "NASDAQ",
            "assetType": "ETF",
            "flagUrl": "https://i-invdn-com.financial-markets.com/flags_32x32/circle/United_States.png"
        }
    ],
    "limit": 3,
    "offset": 0,
    "count": 3,
    "total": 50,
    "hasMore": true,
    "nextOffset": 3
}
搜索代码和工具 自动完成 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/14794/global+financial+market+quotes+and+metrics+api/38339/search+tickers+and+instruments+autocomplete?query=AAPL§ion=quotes&limit=10&offset=Optional' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
综合实时市场报价 日间交易范围 成交量 52周最高最低 和工具元数据
Endpoint ID: 38340
GET https://zylalabs.com/api/14794/global+financial+market+quotes+and+metrics+api/38340/get+instrument+real-time+quote+and+overview
输入参数

获取工具实时报价和概述 — 端点功能

对象 描述
pair_id 必需 Unique market instrument identifier retrieved from search endpoint. Ex: '6408'

剩余免费测试请求:3 / 3。


输入参数

pair_id
API 示例响应
JSON
{
    "pairId": 6408,
    "symbol": "AAPL",
    "shortName": "Apple",
    "longName": "Apple Computer Inc",
    "exchange": "NASDAQ",
    "currency": "USD",
    "lastPrice": 348.6,
    "change": 6.23,
    "changePercent": 1.82,
    "openPrice": 345.01,
    "previousClose": 342.37,
    "volume": "6,904,205",
    "avgVolume": "42,662,526",
    "daysRange": "344.78 - 350.34",
    "fiftyTwoWeekRange": "243.42 - 355.38",
    "marketCap": "5.07T",
    "peRatio": "38.29",
    "dividendYield": "1.08 (0.32%)",
    "isMarketOpen": true,
    "lastUpdate": "1794236960",
    "eps": "8.98",
    "revenue": "478.83B",
    "beta": 1.09,
    "sharesOutstanding": "14,532,182,000",
    "nextEarningsDate": "Feb 04, 2027",
    "oneYearChange": "27.53%",
    "bidAsk": "-/-",
    "bullishPercent": 66,
    "bearishPercent": 34,
    "technicalSummarySignals": {
        "5m": "Strong Buy",
        "15m": "Strong Buy",
        "1h": "Strong Buy",
        "1d": "Strong Buy"
    },
    "exchangeFlag": "https://i-invdn-com.financial-markets.com/flags_32x32/circle/United_States.png",
    "instrumentType": "Stock"
}
获取工具实时报价和概述 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/14794/global+financial+market+quotes+and+metrics+api/38340/get+instrument+real-time+quote+and+overview?pair_id=6408' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
历史开盘-最高-最低-收盘-成交量价格柱用于回测、图表和技术量化分析
Endpoint ID: 38341
GET https://zylalabs.com/api/14794/global+financial+market+quotes+and+metrics+api/38341/get+historical+ohlcv+candles
输入参数

获取历史OHLCV蜡烛 — 端点功能

对象 描述
pair_id 必需 Unique market instrument identifier retrieved from search endpoint. Ex: '6408'
interval 可选 Candle aggregation bar interval: 'P1D' (daily), 'P1W' (weekly), or 'P1M' (monthly). Ex: 'P1D'
limit 可选 Maximum number of historical records to return. Ex: 30
offset 可选 Sequential pagination offset starting at 0. Ex: 0

剩余免费测试请求:3 / 3。


输入参数

pair_id
interval
limit
offset
API 示例响应
JSON
{
    "success": true,
    "results": [
        {
            "date": "2026-11-09",
            "open": 345.01,
            "high": 350.24,
            "low": 345.01,
            "close": 349.05,
            "volume": "5.07M",
            "changePercent": "1.95%"
        },
        {
            "date": "2026-11-06",
            "open": 338.73,
            "high": 345.79,
            "low": 338.3,
            "close": 342.37,
            "volume": "44.70M",
            "changePercent": "-0.52%"
        },
        {
            "date": "2026-11-05",
            "open": 353.89,
            "high": 355.38,
            "low": 342.06,
            "close": 344.17,
            "volume": "75.68M",
            "changePercent": "-1.53%"
        }
    ],
    "limit": 3,
    "offset": 0,
    "count": 3,
    "total": 21,
    "hasMore": true,
    "nextOffset": 3
}
获取历史OHLCV蜡烛 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/14794/global+financial+market+quotes+and+metrics+api/38341/get+historical+ohlcv+candles?pair_id=6408&interval=P1D&limit=30&offset=Optional' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
详细的公司简介 产业分类 商业摘要描述 和高管名单
Endpoint ID: 38342
GET https://zylalabs.com/api/14794/global+financial+market+quotes+and+metrics+api/38342/get+company+business+profile+and+executives
输入参数

获取公司商业简介及高管信息 — 端点功能

对象 描述
instrument_id 必需 Unique corporate instrument identifier retrieved from search endpoint. Ex: '6408'

剩余免费测试请求:3 / 3。


输入参数

instrument_id
API 示例响应
JSON
{
    "instrumentId": 6408,
    "businessSummary": "Apple Inc. designs, manufactures, and markets smartphones, personal computers, tablets, wearables, and accessories. The company offers iPhone, a line of smartphones; Mac, a line of personal computers; iPad, a line of multi-purpose tablets; and wearables, home, and accessories, including Apple Watch, AirPods, Beats products, Apple Vision Pro, Apple TV 4K, HomePod, and Apple HomeView, as well as Apple branded and third-party accessories. It also provides advertising services comprising third-party licensing arrangements and own advertising platforms; AppleCare and cloud services; and payment services, including Apple Card and Apple Pay. In addition, the company operates App Store that allow customers to discover and download applications and digital content, such as books, music, video, games, and podcasts. Further, it provides digital content through subscription-based services, including Apple Arcade, a game service; Apple Fitness+, a personalized fitness service; Apple Music, which offers users a curated listening experience; Apple News+, a news and magazine service; and Apple TV, which offers original content and live sports. The company sells its products and resells third-party products through its retail and online stores, and direct sales force; its services through its various service platforms; and third-party cellular network carriers and other resellers. It serves consumer, small and mid-sized business, education, enterprise, and government markets. The company operates in North and South America, European countries, India, the Middle East, Africa, China mainland, Hong Kong, Taiwan, Japan, Australia, New Zealand, and rest of Asia. The company was formerly known as Apple Computer, Inc. and changed its name to Apple Inc. in January 2007. Apple Inc. was founded in 1976 and is headquartered in Cupertino, California.",
    "sector": "Technology",
    "industry": "Computers, Phones & Household Electronics",
    "fullTimeEmployees": 167000,
    "city": "Cupertino",
    "state": "California",
    "country": "United States",
    "streetAddress": "One Apple Park Way MS 927-4GC",
    "zipCode": "95014",
    "website": "www.apple.com",
    "phone": "(408) 996-1010",
    "equityType": "ORD",
    "industryId": 217,
    "sectorId": 31,
    "officers": [
        {
            "name": "Timothy D. Cook",
            "title": "Executive Chairman of the Board",
            "age": 65,
            "sinceYear": 2026,
            "rank": 1,
            "yearBorn": null,
            "totalPay": null
        },
        {
            "name": "John  Ternus",
            "title": "CEO & Director",
            "age": 50,
            "sinceYear": 2026,
            "rank": 2,
            "yearBorn": null,
            "totalPay": null
        },
        {
            "name": "Andrea  Jung",
            "title": "Independent Director",
            "age": 68,
            "sinceYear": 2008,
            "rank": 3,
            "yearBorn": null,
            "totalPay": null
        }
    ]
}
获取公司商业简介及高管信息 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/14794/global+financial+market+quotes+and+metrics+api/38342/get+company+business+profile+and+executives?instrument_id=6408' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
最新的机构分析师评级变动 研究建议和目标价调整
Endpoint ID: 38343
GET https://zylalabs.com/api/14794/global+financial+market+quotes+and+metrics+api/38343/get+latest+wall+street+upgrades+and+downgrades
输入参数

获取最新的华尔街评级上调和下调 — 端点功能

对象 描述
limit 可选 Maximum number of analyst ratings to return. Ex: 10
offset 可选 Sequential pagination offset starting at 0. Ex: 0

剩余免费测试请求:3 / 3。


输入参数

limit
offset
API 示例响应
JSON
{
    "success": true,
    "results": [
        {
            "instrumentId": 1123484,
            "countryId": 5,
            "shortName": "Fox Corp B",
            "symbol": "FOX",
            "action": "Upgrade",
            "date": "2026-11-09",
            "firmName": "Seaport Global Securities",
            "analystName": "David Joyce",
            "rating": "Buy",
            "pastRating": "Hold",
            "priceTarget": 76,
            "pastPriceTarget": null,
            "price": 61.77,
            "upsideDownside": 23.36
        },
        {
            "instrumentId": 1123483,
            "countryId": 5,
            "shortName": "Fox Corp A",
            "symbol": "FOXA",
            "action": "Upgrade",
            "date": "2026-11-09",
            "firmName": "Seaport Global Securities",
            "analystName": "David Joyce",
            "rating": "Buy",
            "pastRating": "Hold",
            "priceTarget": 76,
            "pastPriceTarget": null,
            "price": 69.27,
            "upsideDownside": 9.43
        },
        {
            "instrumentId": 1166232,
            "countryId": 5,
            "shortName": "Compass Pathways",
            "symbol": "CMPS",
            "action": "Maintain",
            "date": "2026-11-09",
            "firmName": "Jefferies",
            "analystName": "Andrew Tsai",
            "rating": "Buy",
            "pastRating": null,
            "priceTarget": 18,
            "pastPriceTarget": null,
            "price": 8.79,
            "upsideDownside": 102.7
        }
    ],
    "limit": 3,
    "offset": 0,
    "count": 3,
    "total": 100,
    "hasMore": true,
    "nextOffset": 3
}
获取最新的华尔街评级上调和下调 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/14794/global+financial+market+quotes+and+metrics+api/38343/get+latest+wall+street+upgrades+and+downgrades?limit=10&offset=Optional' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
计划的全球经济指标发布 GDP公告 利率决定和CPI通胀数据
Endpoint ID: 38344
GET https://zylalabs.com/api/14794/global+financial+market+quotes+and+metrics+api/38344/get+global+macroeconomic+calendar+events
输入参数

获取全球宏观经济日历事件 — 端点功能

对象 描述
countries 可选 Comma-separated ISO country codes to filter economic events. Ex: 'US,GB,DE'
limit 可选 Maximum number of economic calendar events to return. Ex: 10
offset 可选 Sequential pagination offset starting at 0. Ex: 0

剩余免费测试请求:3 / 3。


输入参数

countries
limit
offset
API 示例响应
JSON
{
    "success": true,
    "results": [],
    "limit": 3,
    "offset": 0,
    "count": 0,
    "total": 0,
    "hasMore": false,
    "nextOffset": null
}
获取全球宏观经济日历事件 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/14794/global+financial+market+quotes+and+metrics+api/38344/get+global+macroeconomic+calendar+events?countries=US&limit=10&offset=Optional' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 全球金融市场报价和指标 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

起价
$10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

访问实时股票报价、历史OHLCV数据、公司基本面、分析师评级和宏观经济日历

全球金融市场报价和指标 API FAQs

从我们的基础层级开始(每月 $24.99,15,000 次请求)构建和启动您的集成。当您的流量增加或需要更高的吞吐量时,可以无缝升级到专业版(35,000 次请求)、专业Plus(80,000 次请求,120 次/分钟)或终极版(175,000 次请求,240 次/分钟),实现零停机时间的大容量和并发

该API涵盖全球股票、交易所交易基金(ETF)、指数、商品、主要和次要外汇对以及北美、欧洲和亚洲交易所的顶级加密货币

市场报价和实时概览指标在活跃交易时段内以亚毫秒延迟更新,同时历史OHLCV蜡烛图按天汇总

将股票代码或公司名称提交到搜索股票自动完成端点,以获取其用于报价和基础查询的唯一工具对ID

每个端点返回特定的财务数据:搜索股票代码端点提供工具标识符和名称;实时报价端点提供市场指标,如最后价格和交易量;历史OHLCV端点提供价格条;公司简介端点包括商业摘要和高管详情;分析师评级端点显示上调和下调;宏观经济日历端点列出预定的经济事件

关键字段因端点而异:实时报价的字段包括符号、最后价格、变动百分比和市值;历史OHLCV的字段包括日期、开盘、最高、最低、收盘和成交量;公司概况的字段包括业务摘要和高管;分析师评级的字段包括行动、评级和目标价格;宏观经济日历的字段包括事件日期和描述

参数因端点而异:搜索代码端点接受金融工具名称的查询;实时报价端点需要金融工具ID;历史OHLCV端点允许指定日期范围;公司简介端点使用金融工具ID;分析师评级端点可以按日期过滤;宏观经济日历可以指定事件类型或日期

响应数据以JSON格式结构化,通常包含成功标志、结果数组和相关数据字段。例如,实时报价响应包括市场指标的摘要,而历史OHLCV响应以时间顺序组织价格数据,便于访问特定日期和指标

数据来源于全球信誉良好的金融市场和交易所,确保对股票、ETF、指数和宏观经济指标的全面覆盖。通过与金融机构的合作以及市场信息的持续更新,数据的准确性得以保持

典型的使用案例包括实时交易应用程序 投资分析 使用历史数据进行交易策略的回测 通过档案和评级监控公司业绩 以及跟踪宏观经济事件以进行经济预测和决策

用户可以利用返回的数据进行各种分析,例如跟踪股票表现、使用历史OHLCV数据进行技术分析、评估公司基本面,以及根据分析师评级和宏观经济事件做出明智的投资决策

如果结果是部分或为空,用户应检查其查询参数的准确性。例如,如果没有返回历史数据,则可能表示在指定日期范围内没有交易活动。在应用程序中实现错误处理可以帮助优雅地管理这些情况

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API