Tool to calculate Simple Moving Average (SMA) technical indicator for a cryptocurrency ticker. Use when you need trend analysis, support/resistance levels, or trading signal generation for crypto pairs.
limitintegerLimit the number of base aggregates queried to create the aggregate results. Min: 1, Max: 50000. Defaults to 5000.
orderstringThe order in which to return the results, ordered by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'desc'.
windowRequiredintegerThe window size (number of periods) used to calculate the SMA. For example, 50 for a 50-period moving average.
adjustedbooleanWhether or not the aggregates used to calculate the SMA are adjusted for splits. Defaults to True.
timespanRequiredstringThe size of the aggregate time window. Options: minute, hour, day, week, month, quarter, year.
timestampstringQuery by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.
series_typestringThe price in the aggregate which will be used to calculate the SMA. Options: open, high, low, close. Defaults to 'close'.
timestamp.gtstringFilter for timestamps greater than the specified value.
timestamp.ltstringFilter for timestamps less than the specified value.
crypto_tickerRequiredstringThe cryptocurrency ticker symbol in the format X:BTCUSD, X:ETHUSD, etc. Must include the 'X:' prefix for cryptocurrency pairs.
timestamp.gtestringFilter for timestamps greater than or equal to the specified value.
timestamp.ltestringFilter for timestamps less than or equal to the specified value.
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
Aident-managed access. Risk level 0 of 5.
$0.001 / call
No published Skills explicitly reference this Action yet.