Felo API PlatformFelo API Platform
v0.1.0-beta
OpenAPI 3.1.0

Get historical stock price data

伺服器:https://openapi.felo.ai
用戶端程式庫

Financial Data

​

Company fundamentals, financial statements, market prices and economic data.

Financial Data 操作

Get historical stock price data

​

Historical OHLCV bars for one stock. All four of ticker, interval, start_date and end_date are required — there is no trailing-window shortcut. interval is one of day, week, month or year. Each bar carries open, close, high, low, volume and time, wrapped in a prices array alongside the echoed ticker. Use it to chart or to measure a move across a known window. For just the latest price use get_financial_prices_snapshot.

查詢參數
  • ticker
    類型: string
    必填

    The stock ticker symbol (e.g. AAPL, MSFT).

  • interval
    類型: string 列舉
    必填

    The time interval for the price data.

    值
    • day
    • week
    • month
    • year
  • start_date
    類型: string 格式: date
    必填

    The start date for the price data (format: YYYY-MM-DD).

  • end_date
    類型: string 格式: date
    必填

    The end date for the price data (format: YYYY-MM-DD).

回應
  • 200
    類型: object · PricesResponse

    Price data response

    • next_page_url
      類型: string

      The URL to the next page of results.

    • prices
      類型: array object[] · Price[]
      • close
        類型: number

        The close price of the ticker in the given time period.

      • high
        類型: number

        The high price of the ticker in the given time period.

      • low
        類型: number

        The low price of the ticker in the given time period.

      • open
        類型: number

        The open price of the ticker in the given time period.

      • time
        類型: string

        The human-readable time format of the price in UTC.

      • time_milliseconds
        類型: number

        The timestamp of the price in milliseconds since epoch.

      • volume
        類型: integer 格式: number

        The volume of the ticker in the given time period.

    application/json
  • 400
    類型: object · ErrorResponse

    Bad request

    • error
      類型: string

      A short error message.

    • message
      類型: string

      A more detailed error message.

    application/json
  • 401
    類型: object · ErrorResponse

    Unauthorized

    • error
      類型: string

      A short error message.

    • message
      類型: string

      A more detailed error message.

    application/json
  • 402
    類型: object · ErrorResponse

    The request requires a paid subscription

    • error
      類型: string

      A short error message.

    • message
      類型: string

      A more detailed error message.

    application/json
  • 403

    The account is not permitted to perform this operation.

  • 404
    類型: object · ErrorResponse

    The specified resource was not found

    • error
      類型: string

      A short error message.

    • message
      類型: string

      A more detailed error message.

    application/json
  • 429

    A request or spending limit has been reached.

  • 502

    The service could not complete the request.

  • 503

    The API or billing service is temporarily unavailable.

  • 504

    The service timed out while processing the request.

  • default

    The operation failed. Keep the response request ID when contacting Felo support.

Request Example for get/v1/beta/financial/prices
curl 'https://openapi.felo.ai/v1/beta/financial/prices?ticker=&interval=day&start_date=&end_date=' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "prices": [
    {
      "open": 1,
      "close": 1,
      "high": 1,
      "low": 1,
      "volume": 1,
      "time": "string",
      "time_milliseconds": 1
    }
  ],
  "next_page_url": "string"
}
Get historical stock price data