View Source AlphaVantage.TechnicalIndicators (Alpha Vantage v0.3.0)

A set of functions for fetching technical indicators from Alpha Vantage.

Summary

Functions

Returns the Chaikin A/D line (AD) values for a given symbol and interval.

Returns the Chaikin A/D line oscillator (ADOSC) values for a given symbol and interval.

Returns the average directional movement index (ADX) values for a given symbol, interval, and time period.

Returns the average directional movement index rating (ADXR) values for a given symbol, interval, time period, and series type.

Returns the absolute price oscillator (APO) values for a given symbol, interval, and series type.

Returns the Aroon (AROON) values for a given symbol, interval, and time period.

Returns the Aroon oscillator (AROONOSC) values for a given symbol, interval, and time period.

Returns the average true range (ATR) values for a given symbol, interval, and time period.

Returns the Bollinger bands (BBANDS) values for a given symbol, interval, time period, and series type.

Returns the balance of power (BOP) values for a given symbol and interval.

Returns the commodity channel index (CCI) values for a given symbol, interval, and time period.

Returns the Chande momentum oscillator (CMO) values for a given symbol, interval, time period, and series type.

Returns the double exponential moving average (DEMA) values for a given symbol, interval, time period, and series type.

Returns the directional movement index (DX) values for a given symbol, interval, and time period.

Returns the exponential moving average (EMA) values for a given symbol, interval, time period, and series type.

Returns the Hilbert transform, dominant cycle period (HT_DCPERIOD) values for a given symbol, interval, and series type.

Returns the Hilbert transform, dominant cycle phase (HT_DCPHASE) values for a given symbol, interval, and series type.

Returns the Hilbert transform, phasor components (HT_PHASOR) values for a given symbol, interval, and series type.

Returns the Hilbert transform, sine wave (HT_SINE) values for a given symbol, interval, and series type.

Returns the Hilbert transform, instantaneous trendline (HT_TRENDLINE) values for a given symbol, interval, and series type.

Returns the Hilbert transform, trend vs cycle mode (HT_TRENDMODE) values for a given symbol, interval, and series type.

Returns the Kaufman adaptive moving average (KAMA) values for a given symbol, interval, time period, and series type.

Returns the moving average convergence / divergence (MACD) values for a given symbol, interval, time period, and series type.

Returns the moving average convergence / divergence values with controllable moving average type (MACDEXT) for a given symbol, interval, time period, and series type.

Returns the MESA adaptive moving average (MAMA) values for a given symbol, interval, time period, and series type.

Returns the money flow index (MFI) values for a given symbol, interval, and time period.

Returns the midpoint (MIDPOINT) values for a given symbol, interval, time period, and series type. MIDPOINT = (highest value + lowest value)/2.

Returns the midprice (MIDPRICE) values for a given symbol, interval, and time period. MIDPRICE = (highest value + lowest value)/2.

Returns the minus directional indicator (MINUS_DI) values for a given symbol, interval, and time period.

Returns the minus directional movement (MINUS_DM) values for a given symbol, interval, and time period.

Returns the momentum (MOM) values for a given symbol, interval, time period, and series type.

Returns the normalized average true range (NATR) values for a given symbol, interval, and time period.

Returns the on balance volume (OBV) values for a given symbol and interval.

Returns the plus directional indicator (PLUS_DI) values for a given symbol, interval, and time period.

Returns the plus directional movement (PLUS_DM) values for a given symbol, interval, and time period.

Returns the percentage price oscillator (PPO) values for a given symbol, interval, and series type.

Returns the rate of change (ROC) values for a given symbol, interval, time period, and series type.

Returns the rate of change ratio (ROCR) values for a given symbol, interval, time period, and series type.

Returns the relative strength index (RSI) values for a given symbol, interval, time period, and series type.

Returns the parabolic SAR (SAR) values for a given symbol and interval.

Returns the simple moving average (SMA) values for a given symbol, interval, time period, and series type.

Returns the stochastic oscillator (STOCH) values for a given symbol and interval.

Returns the stochastic fast (STOCHF) values for a given symbol and interval.

Returns the stochastic relative strength index (STOCHRSI) values for a given symbol, interval, time period, and series type.

Returns the triple exponential moving average (T3) values for a given symbol, interval, time period, and series type.

Returns the triple exponential moving average (TEMA) values for a given symbol, interval, time period, and series type.

Returns the true range (TRANGE) values for a given symbol and interval.

Returns the triangular moving average (TRIMA) values for a given symbol, interval, time period, and series type.

Returns the 1-day rate of change of a triple smooth exponential moving average (TRIX) values for a given symbol, interval, time period, and series type.

Returns the ultimate oscillator (ULTOSC) values for a given symbol and interval.

Returns the volume weighted average price (VWAP) for intraday time series given a symbol and interval.

Returns the Williams' %R (WILLR) values for a given symbol, interval, and time period.

Returns the weighted moving average (WMA) values for a given symbol, interval, time period, and series type.

Functions

Link to this function

ad(symbol, interval, opts \\ [])

View Source
@spec ad(String.t(), String.t(), Keyword.t()) :: AlphaVantage.Gateway.response()

Returns the Chaikin A/D line (AD) values for a given symbol and interval.

Please reference https://www.alphavantage.co/documentation/#ad for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

adosc(symbol, interval, opts \\ [])

View Source
@spec adosc(String.t(), String.t(), Keyword.t()) :: AlphaVantage.Gateway.response()

Returns the Chaikin A/D line oscillator (ADOSC) values for a given symbol and interval.

Please reference https://www.alphavantage.co/documentation/#adosc for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

Optional (accepted as a keyword list)

  • :fastperiod

    The time period of the fast EMA. Positive integers are accepted. By default, fastperiod: 3.

  • :slowperiod

    The time period of the slow EMA. Positive integers are accepted. By default, slowperiod: 10.

  • :datatype

    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

adx(symbol, interval, time_period, opts \\ [])

View Source
@spec adx(String.t(), String.t(), integer(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the average directional movement index (ADX) values for a given symbol, interval, and time period.

Please reference https://www.alphavantage.co/documentation/#adx for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

adxr(symbol, interval, time_period, opts \\ [])

View Source
@spec adxr(String.t(), String.t(), integer(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the average directional movement index rating (ADXR) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#adxr for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

apo(symbol, interval, series_type, opts \\ [])

View Source
@spec apo(String.t(), String.t(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the absolute price oscillator (APO) values for a given symbol, interval, and series type.

Please reference https://www.alphavantage.co/documentation/#apo for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :fastperiod

    Positive integers are accepted. By default, fastperiod: 12.

  • :slowperiod

    Positive integers are accepted. By default, slowperiod: 26.

  • :matype

    Moving average type. By default, matype: 0. Integers 0 - 8 are accepted with the following mappings. 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).

  • :datatype

    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

aroon(symbol, interval, time_period, opts \\ [])

View Source
@spec aroon(String.t(), String.t(), integer(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the Aroon (AROON) values for a given symbol, interval, and time period.

Please reference https://www.alphavantage.co/documentation/#aroon for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

aroonosc(symbol, interval, time_period, opts \\ [])

View Source
@spec aroonosc(String.t(), String.t(), integer(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the Aroon oscillator (AROONOSC) values for a given symbol, interval, and time period.

Please reference https://www.alphavantage.co/documentation/#aroonosc for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

atr(symbol, interval, time_period, opts \\ [])

View Source
@spec atr(String.t(), String.t(), integer(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the average true range (ATR) values for a given symbol, interval, and time period.

Please reference https://www.alphavantage.co/documentation/#atr for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

bbands(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec bbands(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the Bollinger bands (BBANDS) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#bbands for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :nbdevup

    The standard deviation multiplier of the upper band. Positive integers are accepted. By default, nbdevup: 2.

  • :nbdevdn

    The standard deviation multiplier of the lower band. Positive integers are accepted. By default, nbdevdn: 2.

  • :matype

    Moving average type of the time series. By default, matype: 0. Integers 0 - 8 are accepted with the following mappings. 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).

  • :datatype

    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

bop(symbol, interval, opts \\ [])

View Source
@spec bop(String.t(), String.t(), Keyword.t()) :: AlphaVantage.Gateway.response()

Returns the balance of power (BOP) values for a given symbol and interval.

Please reference https://www.alphavantage.co/documentation/#bop for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

cci(symbol, interval, time_period, opts \\ [])

View Source
@spec cci(String.t(), String.t(), integer(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the commodity channel index (CCI) values for a given symbol, interval, and time period.

Please reference https://www.alphavantage.co/documentation/#cci for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

cmo(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec cmo(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the Chande momentum oscillator (CMO) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#cmo for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

dema(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec dema(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the double exponential moving average (DEMA) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#dema for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

dx(symbol, interval, time_period, opts \\ [])

View Source
@spec dx(String.t(), String.t(), integer(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the directional movement index (DX) values for a given symbol, interval, and time period.

Please reference https://www.alphavantage.co/documentation/#ex for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

ema(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec ema(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the exponential moving average (EMA) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#ema for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

ht_dcperiod(symbol, interval, series_type, opts \\ [])

View Source
@spec ht_dcperiod(String.t(), String.t(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the Hilbert transform, dominant cycle period (HT_DCPERIOD) values for a given symbol, interval, and series type.

Please reference https://www.alphavantage.co/documentation/#htdcperiod more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

ht_dcphase(symbol, interval, series_type, opts \\ [])

View Source
@spec ht_dcphase(String.t(), String.t(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the Hilbert transform, dominant cycle phase (HT_DCPHASE) values for a given symbol, interval, and series type.

Please reference https://www.alphavantage.co/documentation/#htdcphase more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

ht_phasor(symbol, interval, series_type, opts \\ [])

View Source
@spec ht_phasor(String.t(), String.t(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the Hilbert transform, phasor components (HT_PHASOR) values for a given symbol, interval, and series type.

Please reference https://www.alphavantage.co/documentation/#htphasor more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

ht_sine(symbol, interval, series_type, opts \\ [])

View Source
@spec ht_sine(String.t(), String.t(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the Hilbert transform, sine wave (HT_SINE) values for a given symbol, interval, and series type.

Please reference https://www.alphavantage.co/documentation/#htsine for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

ht_trendline(symbol, interval, series_type, opts \\ [])

View Source
@spec ht_trendline(String.t(), String.t(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the Hilbert transform, instantaneous trendline (HT_TRENDLINE) values for a given symbol, interval, and series type.

Please reference https://www.alphavantage.co/documentation/#httrendline for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

ht_trendmode(symbol, interval, series_type, opts \\ [])

View Source
@spec ht_trendmode(String.t(), String.t(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the Hilbert transform, trend vs cycle mode (HT_TRENDMODE) values for a given symbol, interval, and series type.

Please reference https://www.alphavantage.co/documentation/#httrendmode for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

kama(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec kama(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the Kaufman adaptive moving average (KAMA) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#kama for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

macd(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec macd(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the moving average convergence / divergence (MACD) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#macd for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :fastperiod

    Positive integers are accepted. By default, fastperiod: 12.

  • :slowperiod

    Positive integers are accepted. By default, slowperiod: 26.

  • :signalperiod

    Positive integers are accepted. By default, signalperiod: 9.

  • :datatype

    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

macdext(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec macdext(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the moving average convergence / divergence values with controllable moving average type (MACDEXT) for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#macdext for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :fastperiod

    Positive integers are accepted. By default, fastperiod: 12.

  • :slowperiod

    Positive integers are accepted. By default, slowperiod: 26.

  • :signalperiod

    Positive integers are accepted. By default, signalperiod: 9.

  • :fastmatype

    Moving average type for the faster moving average. By default, fastmatype: 0. Integers 0 - 8 are accepted with the following mappings. 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).

  • :slowmatype

    Moving average type for the slower moving average. By default, slowmatype: 0. Integers 0 - 8 are accepted with the following mappings. 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).

  • :signalmatype

    Moving average type for the signal moving average. By default, signalmatype: 0. Integers 0 - 8 are accepted with the following mappings. 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).

  • :datatype

    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

mama(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec mama(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the MESA adaptive moving average (MAMA) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#mama for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

mfi(symbol, interval, time_period, opts \\ [])

View Source
@spec mfi(String.t(), String.t(), integer(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the money flow index (MFI) values for a given symbol, interval, and time period.

Please reference https://www.alphavantage.co/documentation/#mfi for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

midpoint(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec midpoint(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the midpoint (MIDPOINT) values for a given symbol, interval, time period, and series type. MIDPOINT = (highest value + lowest value)/2.

Please reference https://www.alphavantage.co/documentation/#midpoint for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

midprice(symbol, interval, time_period, opts \\ [])

View Source
@spec midprice(String.t(), String.t(), integer(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the midprice (MIDPRICE) values for a given symbol, interval, and time period. MIDPRICE = (highest value + lowest value)/2.

Please reference https://www.alphavantage.co/documentation/#midpoint for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

minus_di(symbol, interval, time_period, opts \\ [])

View Source
@spec minus_di(String.t(), String.t(), integer(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the minus directional indicator (MINUS_DI) values for a given symbol, interval, and time period.

Please reference https://www.alphavantage.co/documentation/#minusdi for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

minus_dm(symbol, interval, time_period, opts \\ [])

View Source
@spec minus_dm(String.t(), String.t(), integer(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the minus directional movement (MINUS_DM) values for a given symbol, interval, and time period.

Please reference https://www.alphavantage.co/documentation/#minusdm for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

mom(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec mom(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the momentum (MOM) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#mom for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

natr(symbol, interval, time_period, opts \\ [])

View Source
@spec natr(String.t(), String.t(), integer(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the normalized average true range (NATR) values for a given symbol, interval, and time period.

Please reference https://www.alphavantage.co/documentation/#natr for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

obv(symbol, interval, opts \\ [])

View Source
@spec obv(String.t(), String.t(), Keyword.t()) :: AlphaVantage.Gateway.response()

Returns the on balance volume (OBV) values for a given symbol and interval.

Please reference https://www.alphavantage.co/documentation/#obv for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

plus_di(symbol, interval, time_period, opts \\ [])

View Source
@spec plus_di(String.t(), String.t(), integer(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the plus directional indicator (PLUS_DI) values for a given symbol, interval, and time period.

Please reference https://www.alphavantage.co/documentation/#plusdi for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

plus_dm(symbol, interval, time_period, opts \\ [])

View Source
@spec plus_dm(String.t(), String.t(), integer(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the plus directional movement (PLUS_DM) values for a given symbol, interval, and time period.

Please reference https://www.alphavantage.co/documentation/#plusdm for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

ppo(symbol, interval, series_type, opts \\ [])

View Source
@spec ppo(String.t(), String.t(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the percentage price oscillator (PPO) values for a given symbol, interval, and series type.

Please reference https://www.alphavantage.co/documentation/#ppo for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :fastperiod

    Positive integers are accepted. By default, fastperiod: 12.

  • :slowperiod

    Positive integers are accepted. By default, slowperiod: 26.

  • :matype

    Moving average type. By default, matype: 0. Integers 0 - 8 are accepted with the following mappings. 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).

  • :datatype

    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

roc(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec roc(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the rate of change (ROC) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#roc for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

rocr(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec rocr(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the rate of change ratio (ROCR) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#rocr for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

rsi(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec rsi(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the relative strength index (RSI) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#rsi for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

sar(symbol, interval, opts \\ [])

View Source
@spec sar(String.t(), String.t(), Keyword.t()) :: AlphaVantage.Gateway.response()

Returns the parabolic SAR (SAR) values for a given symbol and interval.

Please reference https://www.alphavantage.co/documentation/#sar for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

Optional (accepted as a keyword list)

  • :acceleration

    The acceleration factor. Positive floats are accepted. By default, acceleration: 0.01.

  • :maximum

    The acceleration factor maximum value. Positive floats are accepted. By default, maximum: 0.20.

  • :datatype

    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

sma(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec sma(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the simple moving average (SMA) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#sma for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

stoch(symbol, interval, opts \\ [])

View Source
@spec stoch(String.t(), String.t(), Keyword.t()) :: AlphaVantage.Gateway.response()

Returns the stochastic oscillator (STOCH) values for a given symbol and interval.

Please reference https://www.alphavantage.co/documentation/#stoch for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

Optional (accepted as a keyword list)

  • :fastkperiod

    The time period of the fastk moving average. Positive integers are accepted. By default, fastkperiod: 5.

  • :slowkperiod

    The time period of the slowk moving average. Positive integers are accepted. By default, slowkperiod: 3.

  • :slowdperiod

    The time period of the slowd moving average. Positive integers are accepted. By default, slowdperiod: 3.

  • :slowkmatype

    Moving average type for the slowk moving average. By default, slowkmatype: 0. Integers 0 - 8 are accepted with the following mappings. 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).

  • :slowdmatype

    Moving average type for the slowd moving average. By default, slowdmatype: 0. Integers 0 - 8 are accepted with the following mappings. 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).

  • :datatype

    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

stochf(symbol, interval, opts \\ [])

View Source
@spec stochf(String.t(), String.t(), Keyword.t()) :: AlphaVantage.Gateway.response()

Returns the stochastic fast (STOCHF) values for a given symbol and interval.

Please reference https://www.alphavantage.co/documentation/#stochf for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

Optional (accepted as a keyword list)

  • :fastkperiod

    The time period of the fastk moving average. Positive integers are accepted. By default, fastkperiod: 5.

  • :fastdperiod

    The time period of the fastd moving average. Positive integers are accepted. By default, fastdperiod: 3.

  • :fastdmatype

    Moving average type for the fastd moving average. By default, fastdmatype: 0. Integers 0 - 8 are accepted with the following mappings. 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).

  • :datatype

    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

stochrsi(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec stochrsi(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the stochastic relative strength index (STOCHRSI) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#stochrsi for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :fastkperiod

    The time period of the fastk moving average. Positive integers are accepted. By default, fastkperiod: 5.

  • :fastdperiod

    The time period of the fastd moving average. Positive integers are accepted. By default, fastdperiod: 3.

  • :fastdmatype

    Moving average type for the fastd moving average. By default, fastdmatype: 0. Integers 0 - 8 are accepted with the following mappings. 0 = Simple Moving Average (SMA), 1 = Exponential Moving Average (EMA), 2 = Weighted Moving Average (WMA), 3 = Double Exponential Moving Average (DEMA), 4 = Triple Exponential Moving Average (TEMA), 5 = Triangular Moving Average (TRIMA), 6 = T3 Moving Average, 7 = Kaufman Adaptive Moving Average (KAMA), 8 = MESA Adaptive Moving Average (MAMA).

  • :datatype

    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

t3(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec t3(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the triple exponential moving average (T3) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#t3 for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

tema(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec tema(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the triple exponential moving average (TEMA) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#tema for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

trange(symbol, interval, opts \\ [])

View Source
@spec trange(String.t(), String.t(), Keyword.t()) :: AlphaVantage.Gateway.response()

Returns the true range (TRANGE) values for a given symbol and interval.

Please reference https://www.alphavantage.co/documentation/#trange for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

trima(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec trima(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the triangular moving average (TRIMA) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#trima for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

trix(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec trix(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the 1-day rate of change of a triple smooth exponential moving average (TRIX) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#trix for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

ultosc(symbol, interval, opts \\ [])

View Source
@spec ultosc(String.t(), String.t(), Keyword.t()) :: AlphaVantage.Gateway.response()

Returns the ultimate oscillator (ULTOSC) values for a given symbol and interval.

Please reference https://www.alphavantage.co/documentation/#ultosc for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

Optional (accepted as a keyword list)

  • :timeperiod1

    The first time period for the indicator. Positive integers are accepted. By default, timeperiod1: 7.

  • :timeperiod2

    The second time period for the indicator. Positive integers are accepted. By default, timeperiod1: 14.

  • :timeperiod3

    The third time period for the indicator. Positive integers are accepted. By default, timeperiod1: 28.

  • :datatype

    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

vwap(symbol, interval, opts \\ [])

View Source
@spec vwap(String.t(), String.t(), Keyword.t()) :: AlphaVantage.Gateway.response()

Returns the volume weighted average price (VWAP) for intraday time series given a symbol and interval.

Please reference https://www.alphavantage.co/documentation/#vwap for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

willr(symbol, interval, time_period, opts \\ [])

View Source
@spec willr(String.t(), String.t(), integer(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the Williams' %R (WILLR) values for a given symbol, interval, and time period.

Please reference https://www.alphavantage.co/documentation/#willr for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.
Link to this function

wma(symbol, interval, time_period, series_type, opts \\ [])

View Source
@spec wma(String.t(), String.t(), integer(), String.t(), Keyword.t()) ::
  AlphaVantage.Gateway.response()

Returns the weighted moving average (WMA) values for a given symbol, interval, time period, and series type.

Please reference https://www.alphavantage.co/documentation/#wma for more detail.

Parameters

Required

  • :symbol

    The name of the security of your choice, provided as a string. For example: "MSFT"

  • :interval

    Time interval between two consecutive data points in the time series. The following values are supported and accepted as strings: "1min", "5min", "15min", "30min", "60min", "daily", "weekly", "monthly"

  • :time_period

    Number of data points used to calculate each moving average value. Positive integers are accepted: (e.g., 60, 200)

  • :series_type

    The desired price type in the time series. Four types are supported and accepted as strings: "close", "open", "high", "low"

Optional (accepted as a keyword list)

  • :datatype
    • "map" returns a map (default);
    • "json" returns JSON format;
    • "csv" returns a CSV (comma separated value) file string.