Yahoo Finance: Stocks & News 图标

Yahoo Finance 行情、图表与投资组合

Yahoo Inc · 银行

Yahoo Finance: Stocks & News 是 Yahoo Inc 推出的 Android 应用,供用户关注金融市场、阅读商业新闻并跟踪个人投资组合。证券详情页汇集常规交易时段、盘前、盘后及隔夜价格,并提供交互式图表、期权链和财报日历。用户可以维护自选列表、记录持仓及分笔交易、跟踪盈亏并设置价格提醒;Yahoo Finance Plus 提供更多研究内容,应用内还设有社区帖子和 Scout 助手。其美国市场内容面向散户投资者及市场观察者,适合需要行情、新闻和投资组合跟踪,而非券商账户服务的用户。

常规与延长交易时段的行情记录将 regularMarketPrice、preMarketPrice、postMarketPrice 和 overnightMarketPrice 与 symbol、marketState 对齐。历史价格以 timestamp 关联 open、high、low、close 和 volume;期权记录还包括 strike、expireDate 和 openInterest。公司研究将 targetMeanPrice、recommendationTrend 与 forwardPE 等估值指标连接起来,企业日历则为相应证券代码关联 earningsDateStart、earningsDateEnd 和 exDividendDate。

在账户访问获授权的前提下,投资组合记录可将 quantity、purchasePrice 与 currentMarketValue、cashPosition 和 dailyGain 关联。投资组合跟踪工具可以对照买入成本和市场估值,研究终端可以将财报窗口与历史价格对齐,期权监测工具则能比较不同行权价、不同到期日的未平仓量。下方路径与数值均为示意示例,不是 Yahoo 官方开发者接口约定,也不授予账户数据访问权限。openData Studio 将应用的行情、研究及获授权的投资组合数据转为可调用的开放数据,服务于上述集成。

应用截图

  • Yahoo Finance: Stocks & News 应用截图 1
  • Yahoo Finance: Stocks & News 应用截图 2
  • Yahoo Finance: Stocks & News 应用截图 3
  • Yahoo Finance: Stocks & News 应用截图 4
  • Yahoo Finance: Stocks & News 应用截图 5

API 端点一览

以下端点与请求/响应示例均依据应用界面推导重构,为示意说明,并非实际抓包。

  • 行情快照

    GET /v1/market-data/snapshots openfinance

    为所请求的证券代码返回 quoteResponse.result 记录,包括 regularMarketPrice、marketState、盘前、盘后及隔夜成交价格、bid / ask 和 52 周价格区间。

    认证方式: 使用 x-crumb 请求头中的 crumb 令牌及会话 Cookie(A1 / A3)。未登录浏览行情时,账户 Cookie 为可选项。

    • quoteResponse
    • symbol
    • shortName
    • longName
    • displayName
    • quoteType
    • currency
    • exchange
    • fullExchangeName
    • marketState
    • regularMarketPrice
    • regularMarketChange
    • regularMarketChangePercent
    • regularMarketPreviousClose
    • regularMarketOpen
    • regularMarketDayHigh
    • regularMarketDayLow
    • regularMarketVolume
    • regularMarketTime
    • preMarketPrice
    • postMarketPrice
    • overnightMarketPrice
    • marketCap
    • fiftyTwoWeekHigh
    • fiftyTwoWeekLow
    • bid
    • ask
    • priceHint
    • forwardPE
    • priceToBook
    • sector
    • industry
    GET /v1/market-data/snapshots?symbols=AAPL,MSFT&fields=symbol,shortName,regularMarketPrice,regularMarketChange,regularMarketChangePercent,marketState,preMarketPrice,postMarketPrice,overnightMarketPrice,currency,priceHint HTTP/1.1
    x-crumb: <example-crumb>
    Cookie: A1=<example-session-a1>; A3=<example-session-a3>
    {
      "quoteResponse": {
        "result": [
          {
            "symbol": "AAPL",
            "language": "en-US",
            "quoteType": "EQUITY",
            "typeDisp": "Equity",
            "shortName": "Apple Inc.",
            "longName": "Apple Inc.",
            "displayName": "Apple",
            "currency": "USD",
            "exchange": "NMS",
            "fullExchangeName": "NasdaqGS",
            "marketState": "REGULAR",
            "regularMarketPrice": 227.54,
            "regularMarketChange": 1.22,
            "regularMarketChangePercent": 0.54,
            "regularMarketPreviousClose": 226.32,
            "regularMarketOpen": 226.80,
            "regularMarketDayHigh": 228.10,
            "regularMarketDayLow": 225.90,
            "regularMarketVolume": 48211000,
            "regularMarketTime": 1729080000,
            "preMarketPrice": 226.40,
            "preMarketChange": 0.08,
            "preMarketChangePercent": 0.04,
            "postMarketPrice": 227.61,
            "postMarketChange": 0.07,
            "postMarketChangePercent": 0.03,
            "overnightMarketPrice": 227.70,
            "overnightMarketChange": 0.16,
            "overnightMarketChangePercent": 0.07,
            "marketCap": 3480000000000.0,
            "fiftyTwoWeekHigh": 237.49,
            "fiftyTwoWeekLow": 164.08,
            "bid": 227.52,
            "ask": 227.56,
            "bidSize": 8,
            "askSize": 4,
            "priceHint": 2,
            "forwardPE": 28.4,
            "priceToBook": 45.1,
            "sector": "Technology",
            "industry": "Consumer Electronics"
          }
        ],
        "error": null
      }
    }
  • OHLC 价格图表

    GET /v1/market-data/instruments/{symbol}/price-bars openfinance

    返回指定证券代码的 OHLC 序列:按 timestamp 分组的 open / high / low / close / volume,以及 meta.regularMarketPrice、previousClose 和 dataGranularity。

    认证方式: 使用 x-crumb 请求头中的 crumb 令牌及会话 Cookie(A1 / A3)。

    • symbol
    • currency
    • regularMarketPrice
    • previousClose
    • dataGranularity
    • timestamp
    • open
    • high
    • low
    • close
    • volume
    GET /v1/market-data/instruments/AAPL/price-bars?range=1d&interval=1m&includePrePost=true HTTP/1.1
    x-crumb: <example-crumb>
    Cookie: A1=<example-session-a1>; A3=<example-session-a3>
    {
      "chart": {
        "result": [
          {
            "meta": {
              "currency": "USD",
              "symbol": "AAPL",
              "regularMarketPrice": 227.54,
              "previousClose": 226.32,
              "dataGranularity": "1m",
              "range": "1d",
              "exchangeName": "NMS",
              "instrumentType": "EQUITY"
            },
            "timestamp": [1729080000, 1729080060, 1729080120],
            "indicators": {
              "quote": [
                {
                  "open": [226.80, 226.92, 227.01],
                  "high": [226.95, 227.10, 227.20],
                  "low": [226.72, 226.88, 226.96],
                  "close": [226.90, 227.04, 227.18],
                  "volume": [184220, 96210, 110440]
                }
              ]
            }
          }
        ],
        "error": null
      }
    }
  • 迷你走势图

    GET /v1/market-data/compact-series opendata

    按证券代码返回紧凑的迷你走势序列:timestamp / close 数据点、previousClose、dataGranularity,以及 fulldayPrice / fulldayChangePercent,供自选列表和市场行情栏中的迷你图使用。

    认证方式: 使用 x-crumb 请求头中的 crumb 令牌及会话 Cookie(A1 / A3)。

    • symbol
    • timestamp
    • close
    • previousClose
    • start
    • end
    • dataGranularity
    • fulldayPrice
    • fulldayChange
    • fulldayChangePercent
    GET /v1/market-data/compact-series?symbols=AAPL,MSFT,%5EGSPC&range=1d&interval=5m HTTP/1.1
    x-crumb: <example-crumb>
    Cookie: A1=<example-session-a1>; A3=<example-session-a3>
    {
      "spark": {
        "result": [
          {
            "symbol": "AAPL",
            "response": [
              {
                "timestamp": [1729080000, 1729080300, 1729080600],
                "close": [226.90, 227.10, 227.54],
                "previousClose": 226.32,
                "start": 1729056600,
                "end": 1729080000,
                "dataGranularity": "5m",
                "fulldayPrice": 227.54,
                "fulldayChange": 1.22,
                "fulldayChangePercent": 0.54
              }
            ]
          }
        ],
        "error": null
      }
    }
  • 市场概览与迷你走势

    GET /v1/market-data/index-overview opendata

    返回首页市场行情栏:指数代码及其 regularMarketPrice / regularMarketChangePercent,并包含嵌套的迷你图收盘价序列。

    认证方式: 使用 x-crumb 请求头中的 crumb 令牌及会话 Cookie(A1 / A3)。地区和语言决定展示的本地指数行情栏。

    • marketSummaryAndSparkResponse
    • symbol
    • shortName
    • regularMarketPrice
    • regularMarketChange
    • regularMarketChangePercent
    • regularMarketPreviousClose
    • marketState
    • spark
    • timestamp
    • close
    • previousClose
    • dataGranularity
    GET /v1/market-data/index-overview?region=US&lang=en-US HTTP/1.1
    x-crumb: <example-crumb>
    Cookie: A1=<example-session-a1>; A3=<example-session-a3>
    {
      "marketSummaryAndSparkResponse": {
        "result": [
          {
            "symbol": "^GSPC",
            "shortName": "S&P 500",
            "regularMarketPrice": 5842.47,
            "regularMarketChange": 18.22,
            "regularMarketChangePercent": 0.31,
            "regularMarketPreviousClose": 5824.25,
            "marketState": "REGULAR",
            "spark": {
              "timestamp": [1729056600, 1729056900],
              "close": [5826.10, 5831.40],
              "previousClose": 5824.25,
              "dataGranularity": "5m"
            }
          }
        ],
        "error": null
      }
    }
  • 证券基本面模块

    GET /v1/research/instruments/{symbol}/fundamental-panels openfinance

    加载行情页的基本面信息:financialData.targetMeanPrice、recommendationTrend 分组、defaultKeyStatistics(forwardPE、priceToBook、beta)、upgradeDowngradeHistory 以及 calendarEvents 中的财报日期。

    认证方式: 使用 x-crumb 请求头中的 crumb 令牌及会话 Cookie(A1 / A3)。modules 参数选择所需的研究面板。

    • quoteSummary
    • financialData
    • targetMeanPrice
    • targetHighPrice
    • targetLowPrice
    • targetMedianPrice
    • recommendationTrend
    • defaultKeyStatistics
    • forwardPE
    • priceToBook
    • beta
    • upgradeDowngradeHistory
    • calendarEvents
    • earningsDate
    • earningsDateStart
    • earningsDateEnd
    • isEarningsDateEstimate
    • quoteType
    GET /v1/research/instruments/AAPL/fundamental-panels?modules=financialData,recommendationTrend,defaultKeyStatistics,upgradeDowngradeHistory,calendarEvents,earnings,quoteType HTTP/1.1
    x-crumb: <example-crumb>
    Cookie: A1=<example-session-a1>; A3=<example-session-a3>
    {
      "quoteSummary": {
        "result": [
          {
            "quoteType": {
              "symbol": "AAPL",
              "shortName": "Apple Inc.",
              "longName": "Apple Inc.",
              "quoteType": "EQUITY"
            },
            "financialData": {
              "currentPrice": 227.54,
              "targetMeanPrice": 240.15,
              "targetHighPrice": 300.0,
              "targetLowPrice": 180.0,
              "targetMedianPrice": 235.0,
              "recommendationKey": "buy",
              "totalCash": 61801000000.0,
              "totalDebt": 106600000000.0
            },
            "defaultKeyStatistics": {
              "forwardPE": 28.4,
              "enterpriseValue": 3550000000000.0,
              "bookValue": 5.05,
              "priceToBook": 45.1,
              "beta": 1.24
            },
            "recommendationTrend": {
              "trend": [
                {
                  "period": "0m",
                  "strongBuy": 12,
                  "buy": 24,
                  "hold": 10,
                  "sell": 2,
                  "strongSell": 0
                }
              ]
            },
            "upgradeDowngradeHistory": {
              "history": [
                {
                  "epochGradeDate": 1728604800,
                  "firm": "Evercore ISI",
                  "toGrade": "Outperform",
                  "fromGrade": "In-Line",
                  "action": "up"
                }
              ]
            },
            "calendarEvents": {
              "earnings": {
                "earningsDate": [1730073600],
                "earningsDateStart": 1730073600,
                "earningsDateEnd": 1730160000,
                "isEarningsDateEstimate": false
              }
            }
          }
        ],
        "error": null
      }
    }
  • 期权链

    GET /v1/derivatives/instruments/{symbol}/contracts openfinance

    返回指定证券代码的期权链:expirationDates、strikes,以及每份合约的 strike、optionsType、expireDate、openInterest、bid / ask 和 volume。

    认证方式: 使用 x-crumb 请求头中的 crumb 令牌及会话 Cookie(A1 / A3)。date 参数选择到期日。

    • optionChain
    • underlyingSymbol
    • expirationDates
    • strikes
    • strike
    • optionsType
    • expireDate
    • openInterest
    • lastPrice
    • bid
    • ask
    • volume
    • underlyingExchangeSymbol
    • regularMarketPrice
    GET /v1/derivatives/instruments/AAPL/contracts?date=1732492800 HTTP/1.1
    x-crumb: <example-crumb>
    Cookie: A1=<example-session-a1>; A3=<example-session-a3>
    {
      "optionChain": {
        "result": [
          {
            "underlyingSymbol": "AAPL",
            "expirationDates": [1732492800, 1733097600],
            "strikes": [220.0, 225.0, 230.0],
            "quote": {
              "symbol": "AAPL",
              "regularMarketPrice": 227.54,
              "bid": 227.52,
              "ask": 227.56
            },
            "options": [
              {
                "expirationDate": 1732492800,
                "calls": [
                  {
                    "contractSymbol": "AAPL241125C00225000",
                    "strike": 225.0,
                    "optionsType": "CALL",
                    "expireDate": 1732492800,
                    "lastPrice": 6.35,
                    "bid": 6.20,
                    "ask": 6.45,
                    "volume": 18420,
                    "openInterest": 41200,
                    "underlyingExchangeSymbol": "AAPL"
                  }
                ],
                "puts": [
                  {
                    "contractSymbol": "AAPL241125P00225000",
                    "strike": 225.0,
                    "optionsType": "PUT",
                    "expireDate": 1732492800,
                    "lastPrice": 3.12,
                    "bid": 3.00,
                    "ask": 3.20,
                    "volume": 9800,
                    "openInterest": 22150,
                    "underlyingExchangeSymbol": "AAPL"
                  }
                ]
              }
            ]
          }
        ],
        "error": null
      }
    }
  • 证券代码搜索

    GET /v1/discovery/instrument-lookup opendata

    搜索证券代码及新闻标题:返回 quotesCount / newsCount、quotes[].symbol / shortname / quoteType 以及 news 数组。

    认证方式: 使用 x-crumb 请求头中的 crumb 令牌及会话 Cookie(A1 / A3)。

    • q
    • quotesCount
    • newsCount
    • quotes
    • symbol
    • shortname
    • longname
    • quoteType
    • exchDisp
    • typeDisp
    • news
    • uuid
    • title
    • publisher
    • link
    GET /v1/discovery/instrument-lookup?q=AAPL&quotesCount=6&newsCount=4 HTTP/1.1
    x-crumb: <example-crumb>
    Cookie: A1=<example-session-a1>; A3=<example-session-a3>
    {
      "explains": [],
      "count": 6,
      "quotesCount": 6,
      "newsCount": 4,
      "quotes": [
        {
          "symbol": "AAPL",
          "shortname": "Apple Inc.",
          "longname": "Apple Inc.",
          "quoteType": "EQUITY",
          "exchDisp": "NASDAQ",
          "typeDisp": "Equity"
        }
      ],
      "news": [
        {
          "uuid": "example-article-01",
          "title": "Apple supplier update",
          "publisher": "Yahoo Finance",
          "link": "/v1/content/headlines/example-article-01",
          "providerPublishTime": 1729080000
        }
      ]
    }
  • 热门证券

    GET /v1/discovery/regions/{region}/popular-instruments opendata

    列出某地区的热门证券代码,并附带 shortName、regularMarketPrice 和 regularMarketChangePercent。

    认证方式: 使用 x-crumb 请求头中的 crumb 令牌及会话 Cookie(A1 / A3)。

    • count
    • quotes
    • symbol
    • shortName
    • displayName
    • regularMarketPrice
    • regularMarketChange
    • regularMarketChangePercent
    • quoteType
    GET /v1/discovery/regions/US/popular-instruments HTTP/1.1
    x-crumb: <example-crumb>
    Cookie: A1=<example-session-a1>; A3=<example-session-a3>
    {
      "finance": {
        "result": [
          {
            "count": 5,
            "quotes": [
              {
                "symbol": "NVDA",
                "shortName": "NVIDIA Corporation",
                "displayName": "NVIDIA",
                "regularMarketPrice": 131.28,
                "regularMarketChange": 2.14,
                "regularMarketChangePercent": 1.66,
                "quoteType": "EQUITY"
              }
            ],
            "jobTimestamp": 1729080000000,
            "startInterval": 1729076400000
          }
        ],
        "error": null
      }
    }
  • 推荐证券

    GET /v1/discovery/instrument-peers opendata

    返回与指定证券相似的代码:recommendedSymbols 中包含 displayName / shortName / longName,以及 regularMarketPrice / regularMarketChangePercent。

    认证方式: 使用 x-crumb 请求头中的 crumb 令牌及会话 Cookie(A1 / A3)。

    • symbol
    • recommendedSymbols
    • displayName
    • shortName
    • longName
    • regularMarketPrice
    • regularMarketChange
    • regularMarketChangePercent
    • priceHint
    GET /v1/discovery/instrument-peers?symbols=AAPL HTTP/1.1
    x-crumb: <example-crumb>
    Cookie: A1=<example-session-a1>; A3=<example-session-a3>
    {
      "finance": {
        "result": [
          {
            "symbol": "AAPL",
            "recommendedSymbols": [
              {
                "symbol": "MSFT",
                "displayName": "Microsoft",
                "shortName": "Microsoft Corporation",
                "longName": "Microsoft Corporation",
                "regularMarketPrice": 418.20,
                "regularMarketChange": 3.15,
                "regularMarketChangePercent": 0.76,
                "priceHint": 2
              }
            ]
          }
        ],
        "error": null
      }
    }
  • 投资组合持仓

    GET /v1/accounts/position-overview openfinance

    读取已登录用户的移动端持仓:各投资组合的 currentMarketValue / cashPosition / totalGain,以及各持仓的 quantity、purchasePrice、dailyGain 和 holdingsState。

    认证方式: 需要已登录账户的会话 Cookie,以及 x-crumb 请求头中的 crumb 令牌。userId 标识获授权的账户。

    • userId
    • id
    • name
    • baseCurrency
    • pfType
    • symbolCount
    • currentMarketValue
    • purchasedMarketValue
    • cashPosition
    • cashCurrency
    • totalGain
    • totalPercentGain
    • dailyGain
    • dailyPercentGain
    • totalDividendIncome
    • nextDividendPayoutDate
    • posId
    • symbol
    • quantity
    • purchasePrice
    • totalLotCount
    • totalRealizedGain
    • holdingsState
    GET /v1/accounts/position-overview?userId=example-user-01 HTTP/1.1
    x-crumb: <example-crumb>
    Cookie: Y=<example-account-session>; A1=<example-session-a1>; A3=<example-session-a3>
    {
      "finance": {
        "result": {
          "userId": "example-user-01",
          "portfolios": [
            {
              "id": "example-portfolio-01",
              "name": "US core",
              "baseCurrency": "USD",
              "pfType": "TRANSACTIONAL",
              "symbolCount": 2,
              "currentMarketValue": 15420.50,
              "purchasedMarketValue": 12800.00,
              "cashPosition": 250.00,
              "cashCurrency": "USD",
              "totalGain": 2620.50,
              "totalPercentGain": 20.47,
              "dailyGain": 84.12,
              "dailyPercentGain": 0.55,
              "totalDividendIncome": 126.40,
              "nextDividendPayoutDate": "2026-11-14",
              "holdings": [
                {
                  "posId": "example-position-01",
                  "portfolioId": "example-portfolio-01",
                  "symbol": "AAPL",
                  "quantity": 40.0,
                  "purchasePrice": 180.00,
                  "currentMarketValue": 9101.60,
                  "purchasedMarketValue": 7200.00,
                  "dailyGain": 48.80,
                  "dailyPercentGain": 0.54,
                  "totalGain": 1901.60,
                  "totalPercentGain": 26.41,
                  "totalRealizedGain": 0.0,
                  "totalLotCount": 2,
                  "totalDividendIncome": 52.00,
                  "nextDividendPayoutDate": "2026-11-14",
                  "currency": "USD",
                  "holdingsState": "OPEN"
                }
              ]
            }
          ]
        }
      }
    }
  • 投资组合表现摘要

    GET /v1/accounts/value-snapshot openfinance

    返回投资组合表现快照:对照 currentMarketValue 与 purchasedMarketValue,并包含 totalGain、dailyGain 和 lastUpdated。

    认证方式: 需要已登录账户的会话 Cookie,以及 x-crumb 请求头中的 crumb 令牌。

    • userId
    • pfId
    • baseCurrency
    • currentMarketValue
    • purchasedMarketValue
    • totalGain
    • totalPercentGain
    • dailyGain
    • dailyPercentGain
    • lastUpdated
    GET /v1/accounts/value-snapshot?pfId=example-portfolio-01 HTTP/1.1
    x-crumb: <example-crumb>
    Cookie: Y=<example-account-session>; A1=<example-session-a1>; A3=<example-session-a3>
    {
      "finance": {
        "result": {
          "userId": "example-user-01",
          "pfId": "example-portfolio-01",
          "baseCurrency": "USD",
          "currentMarketValue": 15420.50,
          "purchasedMarketValue": 12800.00,
          "totalGain": 2620.50,
          "totalPercentGain": 20.47,
          "dailyGain": 84.12,
          "dailyPercentGain": 0.55,
          "lastUpdated": 1729080000
        }
      }
    }
  • 投资组合表现图表

    GET /v1/accounts/value-history openfinance

    返回投资组合价值序列:timestamp / close 数据点及 dataGranularity,并附带最新的 currentMarketValue 和 totalPercentGain。

    认证方式: 需要已登录账户的会话 Cookie,以及 x-crumb 请求头中的 crumb 令牌。

    • pfId
    • baseCurrency
    • dataGranularity
    • timestamp
    • close
    • currentMarketValue
    • totalGain
    • totalPercentGain
    GET /v1/accounts/value-history?pfId=example-portfolio-01&range=1y HTTP/1.1
    x-crumb: <example-crumb>
    Cookie: Y=<example-account-session>; A1=<example-session-a1>; A3=<example-session-a3>
    {
      "finance": {
        "result": {
          "pfId": "example-portfolio-01",
          "baseCurrency": "USD",
          "dataGranularity": "1d",
          "timestamp": [1696118400, 1696204800, 1729080000],
          "close": [12800.00, 12940.25, 15420.50],
          "currentMarketValue": 15420.50,
          "totalGain": 2620.50,
          "totalPercentGain": 20.47
        }
      }
    }
  • 投资组合交易记录

    GET /v1/accounts/trade-ledger openfinance

    列出投资组合的分笔交易:type、date、symbol、quantity、pricePerShare、commission 和 totalValue。

    认证方式: 需要已登录账户的会话 Cookie,以及 x-crumb 请求头中的 crumb 令牌。

    • pfId
    • id
    • type
    • date
    • symbol
    • displaySymbol
    • positionId
    • quantity
    • pricePerShare
    • commission
    • totalValue
    • comment
    • details
    GET /v1/accounts/trade-ledger?pfId=example-portfolio-01 HTTP/1.1
    x-crumb: <example-crumb>
    Cookie: Y=<example-account-session>; A1=<example-session-a1>; A3=<example-session-a3>
    {
      "finance": {
        "result": {
          "pfId": "example-portfolio-01",
          "transactions": [
            {
              "id": "example-trade-01",
              "type": "BUY",
              "date": "2024-01-12",
              "symbol": "AAPL",
              "displaySymbol": "AAPL",
              "positionId": "example-position-01",
              "quantity": 20.0,
              "pricePerShare": 180.00,
              "commission": 0.0,
              "totalValue": 3600.00,
              "comment": "add",
              "details": ""
            }
          ]
        }
      }
    }
  • 企业事件日历

    GET /v1/research/corporate-dates opendata

    按证券代码列出日历记录:earningsDateStart / earningsDateEnd、earningsTimestamp、isEarningsDateEstimate 以及 dividendDate / exDividendDate。

    认证方式: 使用 x-crumb 请求头中的 crumb 令牌及会话 Cookie(A1 / A3)。

    • symbol
    • shortName
    • earningsDateStart
    • earningsDateEnd
    • earningsTimestamp
    • isEarningsDateEstimate
    • dividendDate
    • exDividendDate
    GET /v1/research/corporate-dates?region=US&lang=en-US HTTP/1.1
    x-crumb: <example-crumb>
    Cookie: A1=<example-session-a1>; A3=<example-session-a3>
    {
      "finance": {
        "result": [
          {
            "symbol": "AAPL",
            "shortName": "Apple Inc.",
            "earningsDateStart": 1730073600,
            "earningsDateEnd": 1730160000,
            "earningsTimestamp": 1730073600,
            "isEarningsDateEstimate": false,
            "dividendDate": 1730332800,
            "exDividendDate": 1730073600
          }
        ]
      }
    }
  • 研究选股

    GET /v1/research/equity-selections opendata

    返回研究选股内容:stockPickProvider、stockPickRating、stockPickURL、stockPickCTA、stockPickID,以及该证券的 regularMarketPrice。

    认证方式: 使用 x-crumb 请求头中的 crumb 令牌及会话 Cookie(A1 / A3)。获取完整评级内容需要具备 Yahoo Finance Plus 权限的会话。

    • symbol
    • shortName
    • regularMarketPrice
    • regularMarketChangePercent
    • stockPickProvider
    • stockPickRating
    • stockPickURL
    • stockPickCTA
    • stockPickID
    GET /v1/research/equity-selections HTTP/1.1
    x-crumb: <example-crumb>
    Cookie: Y=<example-account-session>; A1=<example-session-a1>; A3=<example-session-a3>
    {
      "finance": {
        "result": [
          {
            "symbol": "NVDA",
            "shortName": "NVIDIA Corporation",
            "regularMarketPrice": 131.28,
            "regularMarketChangePercent": 1.66,
            "stockPickProvider": "Argus",
            "stockPickRating": "BUY",
            "stockPickURL": "/v1/content/reports/example-report-01",
            "stockPickCTA": "Read report",
            "stockPickID": "example-selection-01"
          }
        ]
      }
    }

数据类别

  • 行情
  • 图表
  • 期权
  • 投资组合
  • 日历
  • 研究

数据使用场景与案例

  • 按市价重估持仓

    夜间任务为持仓中的每个 symbol 获取 regularMarketPrice、preMarketPrice 和 overnightMarketPrice,再与持仓快照中的 purchasePrice、quantity 和 currentMarketValue 对照,重新计算 dailyGain。

  • 在价格图表上标注财报窗口

    研究终端将财报日历中的 earningsDateStart / earningsDateEnd 与 OHLC 的 timestamp 序列关联,无需抓取证券详情页,就能在图表中标出财报公布时间窗口。

  • 监测期权未平仓量

    交易台看板订阅 optionChain 记录,在某一行权价的 openInterest 或 volume 较上一交易时段骤增时发出提醒,并依据 expireDate 和 optionsType 区分不同到期日的看涨与看跌期权。

  • 分析师目标价看板

    研究覆盖看板将 financialData.targetMeanPrice 和 recommendationTrend 分组与 defaultKeyStatistics.forwardPE 并列展示,帮助投资组合经理对照 regularMarketPrice 判断市场分析师目标价所处的位置。

常见问题

示例展示了哪些 Yahoo Finance 行情与图表字段?

行情示例包括 regularMarketPrice、regularMarketChangePercent、marketState、preMarketPrice、postMarketPrice、overnightMarketPrice、bid、ask、marketCap 以及 52 周价格区间。历史价格将 timestamp 与 open、high、low、close 和 volume 配对,dataGranularity 则描述时间间隔。所有示例价格均为模拟值,并非当前市场行情。

获授权的集成可以使用哪些投资组合信息?

限定于账户范围的示例涵盖 quantity、purchasePrice、currentMarketValue、dailyGain、cashPosition 及投资组合历史估值。交易记录包括 type、date、quantity、pricePerShare、commission 和 positionId。访问需要已登录的账户会话及账户持有人的授权;这些示例不授予任何用户投资组合的访问权限。

包含哪些期权、研究与日历数据?

期权记录包括 strike、optionsType、expireDate、openInterest、bid、ask 和 volume。公司研究汇集 targetMeanPrice、recommendationTrend、forwardPE 及评级变动历史。日历记录包含 earningsDateStart、earningsDateEnd、isEarningsDateEstimate、dividendDate 和 exDividendDate。选股研究记录注明提供方及评级,完整内容取决于 Yahoo Finance Plus 访问权限。

这些是 Yahoo Finance 官方端点吗?认证如何表示?

不是。路径以及请求体、响应体均为合成的示意示例,并非 Yahoo 官方端点。认证示例将 crumb 令牌放在 x-crumb 请求头中,并配合会话 Cookie;账户专属记录还需要已登录的会话。占位凭证不可使用,示例也不提供数据访问权限或订阅权益。

与 Yahoo Finance: Stocks & News 相似的应用

  • TradingView: Track All Markets — TradingView 是覆盖股票、指数、加密货币、外汇、期货和大宗商品的图表与社交交易平台,提供 Supercharts、市场新闻、各类日历以及用户发布的交易观点。
  • Investing.com: Stock Market — Investing.com 是覆盖股票、外汇、加密货币、大宗商品等品种的行情平台,提供实时报价、图表、新闻、经济与财报日历、筛选器以及自选列表和投资组合。
  • Bloomberg — 彭博通过 Bloomberg News 和 Bloomberg.com 发布全球商业与市场新闻、数据和分析,其 Android 应用则汇集新闻、股票报价和市场数据。
  • CNBC — CNBC 是美国商业新闻频道,其 CNBC.com 网站同步提供金融市场新闻、分析和视频报道。
  • MarketWatch — MarketWatch 是道琼斯旗下财经网站,发布商业新闻与分析,并提供股市行情数据。
  • Seeking Alpha — Seeking Alpha 是众包投资研究平台,提供个股分析、市场新闻、财报报道、投资组合跟踪和量化评级。
  • Google Finance — Google Finance 是谷歌的市场信息服务,提供上市公司报价、历史走势图、公司资料以及关联的商业新闻。

相关主题

  • Yahoo Finance 数据 API
  • Yahoo Finance 股票行情
  • regularMarketPrice
  • 股票历史价格 OHLC
  • 期权链 openInterest
  • 投资组合持仓 currentMarketValue
  • 分析师 targetMeanPrice
  • earningsDateStart 日历

需要集成这个 App 的数据 API?

我们可为任意指定 App 交付定制集成——源码交付 USD 500 起,或托管 API 按调用计费。告诉我们您需要的数据即可。

  • 每个项目均签 NDA 与 SOW
  • 3–7 天交付
  • 验收通过后才付款
  • 仅在授权范围内作业

获取报价