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.

Query-параметры
  • ticker
    Тип: string
    обязательно

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

  • interval
    Тип: string enum
    обязательно

    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