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