time_series_transform.stock_transform.stock_engine package

Submodules

time_series_transform.stock_transform.stock_engine.engine_interface module

class time_series_transform.stock_transform.stock_engine.engine_interface.engine_interface[source]

Bases: object

Interface of the stock API engine

abstract getAdditionalInfo()[source]

Additional information fetched from the selected stock

Returns

dictionary of additional information, e.g. company information

Return type

additional data

abstract getHistoricalByPeriod(period)[source]

get historical data by period

Parameters

period (str) – period of the stock data valid input sample: 1d,5d,1mo,3mo,6mo,1y,2y,5y,10y,ytd,max

Returns

Return type

stock data

abstract getHistoricalByRange(start_date, end_date)[source]

get historical data by date range

Parameters
  • start_date (str) –

  • end_date (str) –

  • of the stock (range) –

  • format ("%Y-%m-%d", eg "2020-02-20") –

Returns

Return type

stock data

abstract getIntraDayData(start_date, end_date, interval_range)[source]

Return intra-day data within the start and end date, range cannot be larger than 60d

Parameters
  • start_date (str) –

  • end_date (str) –

  • of the stock (range) –

  • format ("%Y-%m-%d", eg "2020-02-20") –

  • interval_range (string) – interval of the data Valid intervals: [1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h]

Returns

Return type

stock data

time_series_transform.stock_transform.stock_engine.engine_interface.valid_period_format(date_string)[source]

Module contents