@@ -457,6 +457,16 @@ def get_technical_indicator_data(
457457 date_to : str = None ,
458458 order : str = "a" ,
459459 splitadjusted_only : str = "0" ,
460+ agg_period : str = None ,
461+ fast_kperiod : int = None ,
462+ slow_kperiod : int = None ,
463+ slow_dperiod : int = None ,
464+ fast_dperiod : int = None ,
465+ fast_period : int = None ,
466+ slow_period : int = None ,
467+ signal_period : int = None ,
468+ acceleration : float = None ,
469+ maximum : float = None
460470 ) -> list :
461471 """Available args:
462472 ticker (required) - consists of two parts: [SYMBOL_NAME].[EXCHANGE_ID]. Example: AAPL.US
@@ -467,16 +477,35 @@ def get_technical_indicator_data(
467477 'cci', 'sar', 'bbands', 'format_amibroker', 'splitadjusted']
468478 Description for possible functions you get here:
469479 https://eodhistoricaldata.com/financial-apis/technical-indicators-api/
470- period – the number of data points used to calculate each moving average value.
471- Valid range from 2 to 100000 with the default value – 50.
480+ period - the number of data points used to calculate each moving average value.
481+ Valid range from 2 to 100000 with the default value - 50.
472482 date_from (not required) - date from with format Y-m-d. Example: 2000-01-01
473483 date_to (not required) - date from with format Y-m-d. Example: 2000-01-01
474- order – use ‘a’ for ascending dates (from old to new) and ‘d’ for descending dates (from new to old).
484+ order - use 'a' for ascending dates (from old to new) and 'd' for descending dates (from new to old).
475485 By default, dates are shown in ascending order.
476- splitadjusted_only – default value is ‘0’ .
486+ splitadjusted_only - default value is '0' .
477487 By default, we calculate data for some functions by closes adjusted with splits and dividends.
478- If you need to calculate the data by closes adjusted only with splits, set this parameter to ‘1’ .
488+ If you need to calculate the data by closes adjusted only with splits, set this parameter to '1' .
479489 Works with the following functions: sma, ema, wma, volatility, rsi, slope, and macd.
490+
491+ For some functions can be used additional parameters:
492+ 1. For splitadjusted:
493+ agg_period [optional] – aggregation period. Default value – 'd'. Possible values: d – daily, w – weekly, m – monthly.
494+ 2. For stochastic:
495+ fast_kperiod [optional] – Fast K-period, the default value is 14. Valid range from 2 to 100000.
496+ slow_kperiod [optional] – Slow K-period, the default value is 3. Valid range from 2 to 100000.
497+ slow_dperiod [optional] – Slow D-period, the default value is 3. Valid range from 2 to 100000.
498+ 3. For stochrsi:
499+ fast_kperiod [optional] – Fast K-period, the default value is 14. Valid range from 2 to 100000.
500+ fast_dperiod [optional] – Fast D-period, the default value is 14. Valid range from 2 to 100000.
501+ 4. For macd:
502+ fast_period [optional] – the default value is 12. Valid range from 2 to 100000.
503+ slow_period [optional] – the default value is 26. Valid range from 2 to 100000.
504+ signal_period [optional] – the default value is 9. Valid range from 2 to 100000.
505+ 5. For sar:
506+ acceleration [optional] – Acceleration Factor used up to the Maximum value. Default value – 0.02.
507+ maximum [optional] – Acceleration Factor Maximum value. Default value – 0.20.
508+ For those functions use this parameters to set periods.
480509 """
481510
482511 api_call = TechnicalIndicatorAPI ()
@@ -489,6 +518,16 @@ def get_technical_indicator_data(
489518 date_to = date_to ,
490519 order = order ,
491520 splitadjusted_only = splitadjusted_only ,
521+ agg_period = agg_period ,
522+ fast_kperiod = fast_kperiod ,
523+ slow_kperiod = slow_kperiod ,
524+ slow_dperiod = slow_dperiod ,
525+ fast_dperiod = fast_dperiod ,
526+ fast_period = fast_period ,
527+ slow_period = slow_period ,
528+ signal_period = signal_period ,
529+ acceleration = acceleration ,
530+ maximum = maximum
492531 )
493532
494533 def get_live_stock_prices (self , ticker , date_to = None , date_from = None , s = None ) -> list :
0 commit comments