changedInput schema / properties / indicators / description
Previous value: -"Indicators to calculate: sma, ema, rsi, macd (12, 26, 9), bollinger (2 standard deviations), atr, stochastic (%K and %D) and vwap (cumulative over the given candles)"New value: +"Indicators to calculate from the ECB closing rates, such as [\"rsi\", \"macd\"]: sma, ema, rsi, macd (12, 26, 9) and bollinger (2 standard deviations)"
changedInput schema / properties / indicators / items / enum
Previous value: -[
- "sma",
- "ema",
- "rsi",
- "macd",
- "bollinger",
- "atr",
- "stochastic",
- "vwap"
-]New value: +[
+ "sma",
+ "ema",
+ "rsi",
+ "macd",
+ "bollinger"
+]
changedInput schema / properties / indicators / maxItems
Previous value: -8New value: +5
changedInput schema / properties / periods / description
Previous value: -"Lookback length per indicator, in candles; any left out use the default shown"New value: +"Lookback length per indicator, in candles, such as {\"sma\": 50}. Any left out use the default shown. Whole numbers from 2 to 100."
removedInput schema / properties / periods / properties / atr
Removed value: -{
- "description": "14 by default",
- "maximum": 100,
- "minimum": 2,
- "type": "integer"
-}
removedInput schema / properties / periods / properties / stochastic
Removed value: -{
- "description": "14 by default",
- "maximum": 100,
- "minimum": 2,
- "type": "integer"
-}
changedInput schema / properties / series_length / description
Previous value: -"How many of the most recent values to return for each indicator, 5 by default"New value: +"How many of the most recent values to return for each indicator, such as 10. 5 by default."
changedInput schema / properties / symbol / description
Previous value: -"Currency pair of two ISO codes, such as \"EUR/USD\" or \"USDJPY\""New value: +"Currency pair of two ISO codes, such as \"EUR/USD\" or \"USDJPY\". Both codes must be ECB currencies: AUD, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, ILS, INR, ISK, JPY, KRW, MXN, MYR, NOK, NZD, PHP, PLN, RON, SEK, SGD, THB, TRY, USD, ZAR. Not a stock or crypto ticker."
changedOutput schema / properties / asOf / description
Previous value: -"Date or time of the last price used"New value: +"Date or time of the last price used, or the date of the call when no price was read"
changedOutput schema / properties / candles / description
Previous value: -"Number of candles the indicators were calculated over"New value: +"Number of candles the indicators were calculated over. 0 when the call was refused before any price was read."
addedOutput schema / properties / error / properties / code / description
Added value: +"Stable code, such as invalid_symbol, invalid_prices, invalid_periods or nothing_to_calculate"
addedOutput schema / properties / error / properties / hint / description
Added value: +"The next step: what to change in the call or tell the user"
addedOutput schema / properties / error / properties / message / description
Added value: +"What went wrong"
addedOutput schema / properties / indicators / description
Added value: +"One entry per calculated indicator, in the order asked. Empty when status is not ok."
addedOutput schema / properties / indicators / items / oneOf
Added value: +[
+ {
+ "properties": {
+ "indicator": {
+ "enum": [
+ "sma",
+ "ema"
+ ],
+ "type": "string"
+ },
+ "latest": {
+ "description": "One value of the indicator at one candle",
+ "properties": {
+ "index": {
+ "description": "Position of the candle, 0 is the oldest",
+ "type": "integer"
+ },
+ "time": {
+ "description": "Time of the candle as given, or the ECB rate date; null when the candle had none",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "value": {
+ "description": "Moving average, in the price unit",
+ "type": "number"
+ }
+ },
+ "required": [
+ "index",
+ "time",
+ "value"
+ ],
+ "type": "object"
+ },
+ "params": {
+ "description": "The settings used",
+ "properties": {
+ "period": {
+ "description": "Lookback in candles",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "period"
+ ],
+ "type": "object"
+ },
+ "series": {
+ "description": "The most recent values, oldest first, ending with latest",
+ "items": {
+ "description": "One value of the indicator at one candle",
+ "properties": {
+ "index": {
+ "description": "Position of the candle, 0 is the oldest",
+ "type": "integer"
+ },
+ "time": {
+ "description": "Time of the candle as given, or the ECB rate date; null when the candle had none",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "value": {
+ "description": "Moving average, in the price unit",
+ "type": "number"
+ }
+ },
+ "required": [
+ "index",
+ "time",
+ "value"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "indicator",
+ "params",
+ "latest",
+ "series"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "indicator": {
+ "enum": [
+ "rsi"
+ ],
+ "type": "string"
+ },
+ "latest": {
+ "description": "One value of the indicator at one candle",
+ "properties": {
+ "index": {
+ "description": "Position of the candle, 0 is the oldest",
+ "type": "integer"
+ },
+ "time": {
+ "description": "Time of the candle as given, or the ECB rate date; null when the candle had none",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "value": {
+ "description": "RSI, from 0 to 100",
+ "type": "number"
+ }
+ },
+ "required": [
+ "index",
+ "time",
+ "value"
+ ],
+ "type": "object"
+ },
+ "params": {
+ "description": "The settings used",
+ "properties": {
+ "period": {
+ "description": "Lookback in candles",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "period"
+ ],
+ "type": "object"
+ },
+ "series": {
+ "description": "The most recent values, oldest first, ending with latest",
+ "items": {
+ "description": "One value of the indicator at one candle",
+ "properties": {
+ "index": {
+ "description": "Position of the candle, 0 is the oldest",
+ "type": "integer"
+ },
+ "time": {
+ "description": "Time of the candle as given, or the ECB rate date; null when the candle had none",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "value": {
+ "description": "RSI, from 0 to 100",
+ "type": "number"
+ }
+ },
+ "required": [
+ "index",
+ "time",
+ "value"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "indicator",
+ "params",
+ "latest",
+ "series"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "indicator": {
+ "enum": [
+ "macd"
+ ],
+ "type": "string"
+ },
+ "latest": {
+ "description": "One value of the indicator at one candle",
+ "properties": {
+ "histogram": {
+ "description": "MACD minus signal",
+ "type": "number"
+ },
+ "index": {
+ "description": "Position of the candle, 0 is the oldest",
+ "type": "integer"
+ },
+ "macd": {
+ "description": "MACD line",
+ "type": "number"
+ },
+ "signal": {
+ "description": "Signal line",
+ "type": "number"
+ },
+ "time": {
+ "description": "Time of the candle as given, or the ECB rate date; null when the candle had none",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "index",
+ "time",
+ "macd",
+ "signal",
+ "histogram"
+ ],
+ "type": "object"
+ },
+ "params": {
+ "description": "The settings used",
+ "properties": {
+ "fast": {
+ "description": "Fast EMA length (12)",
+ "type": "integer"
+ },
+ "signal": {
+ "description": "Signal EMA length (9)",
+ "type": "integer"
+ },
+ "slow": {
+ "description": "Slow EMA length (26)",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "fast",
+ "slow",
+ "signal"
+ ],
+ "type": "object"
+ },
+ "series": {
+ "description": "The most recent values, oldest first, ending with latest",
+ "items": {
+ "description": "One value of the indicator at one candle",
+ "properties": {
+ "histogram": {
+ "description": "MACD minus signal",
+ "type": "number"
+ },
+ "index": {
+ "description": "Position of the candle, 0 is the oldest",
+ "type": "integer"
+ },
+ "macd": {
+ "description": "MACD line",
+ "type": "number"
+ },
+ "signal": {
+ "description": "Signal line",
+ "type": "number"
+ },
+ "time": {
+ "description": "Time of the candle as given, or the ECB rate date; null when the candle had none",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "index",
+ "time",
+ "macd",
+ "signal",
+ "histogram"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "indicator",
+ "params",
+ "latest",
+ "series"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "indicator": {
+ "enum": [
+ "bollinger"
+ ],
+ "type": "string"
+ },
+ "latest": {
+ "description": "One value of the indicator at one candle",
+ "properties": {
+ "index": {
+ "description": "Position of the candle, 0 is the oldest",
+ "type": "integer"
+ },
+ "lower": {
+ "description": "Lower band",
+ "type": "number"
+ },
+ "middle": {
+ "description": "Middle band (the SMA)",
+ "type": "number"
+ },
+ "time": {
+ "description": "Time of the candle as given, or the ECB rate date; null when the candle had none",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "upper": {
+ "description": "Upper band",
+ "type": "number"
+ }
+ },
+ "required": [
+ "index",
+ "time",
+ "lower",
+ "middle",
+ "upper"
+ ],
+ "type": "object"
+ },
+ "params": {
+ "description": "The settings used",
+ "properties": {
+ "deviations": {
+ "description": "Band width in standard deviations (2)",
+ "type": "integer"
+ },
+ "period": {
+ "description": "Lookback in candles",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "period",
+ "deviations"
+ ],
+ "type": "object"
+ },
+ "series": {
+ "description": "The most recent values, oldest first, ending with latest",
+ "items": {
+ "description": "One value of the indicator at one candle",
+ "properties": {
+ "index": {
+ "description": "Position of the candle, 0 is the oldest",
+ "type": "integer"
+ },
+ "lower": {
+ "description": "Lower band",
+ "type": "number"
+ },
+ "middle": {
+ "description": "Middle band (the SMA)",
+ "type": "number"
+ },
+ "time": {
+ "description": "Time of the candle as given, or the ECB rate date; null when the candle had none",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "upper": {
+ "description": "Upper band",
+ "type": "number"
+ }
+ },
+ "required": [
+ "index",
+ "time",
+ "lower",
+ "middle",
+ "upper"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "indicator",
+ "params",
+ "latest",
+ "series"
+ ],
+ "type": "object"
+ }
+]
removedOutput schema / properties / indicators / items / properties
Removed value: -{
- "indicator": {
- "enum": [
- "sma",
- "ema",
- "rsi",
- "macd",
- "bollinger",
- "atr",
- "stochastic",
- "vwap"
- ],
- "type": "string"
- },
- "latest": {
- "description": "One value of the indicator: the candle's position (0 is the first), its time when one was given, and the value or values",
- "properties": {
- "d": {
- "type": "number"
- },
- "histogram": {
- "type": "number"
- },
- "index": {
- "type": "integer"
- },
- "k": {
- "type": "number"
- },
- "lower": {
- "type": "number"
- },
- "macd": {
- "type": "number"
- },
- "middle": {
- "type": "number"
- },
- "signal": {
- "type": "number"
- },
- "time": {
- "type": [
- "string",
- "null"
- ]
- },
- "upper": {
- "type": "number"
- },
- "value": {
- "type": "number"
- }
- },
- "required": [
- "index",
- "time"
- ],
- "type": "object"
- },
- "params": {
- "description": "The settings used",
- "type": "object"
- },
- "series": {
- "description": "The most recent values, oldest first, ending with latest",
- "items": {
- "description": "One value of the indicator: the candle's position (0 is the first), its time when one was given, and the value or values",
- "properties": {
- "d": {
- "type": "number"
- },
- "histogram": {
- "type": "number"
- },
- "index": {
- "type": "integer"
- },
- "k": {
- "type": "number"
- },
- "lower": {
- "type": "number"
- },
- "macd": {
- "type": "number"
- },
- "middle": {
- "type": "number"
- },
- "signal": {
- "type": "number"
- },
- "time": {
- "type": [
- "string",
- "null"
- ]
- },
- "upper": {
- "type": "number"
- },
- "value": {
- "type": "number"
- }
- },
- "required": [
- "index",
- "time"
- ],
- "type": "object"
- },
- "type": "array"
- }
-}
removedOutput schema / properties / indicators / items / required
Removed value: -[
- "indicator",
- "params",
- "latest",
- "series"
-]
removedOutput schema / properties / indicators / items / type
Removed value: -"object"
addedOutput schema / properties / interval / description
Added value: +"The interval used"
addedOutput schema / properties / latestClose / description
Added value: +"Close of the last candle or ECB rate. null when no price was read."
addedOutput schema / properties / notice / description
Added value: +"Not-financial-advice notice. Show it with the numbers."
changedOutput schema / properties / skipped / description
Previous value: -"Requested indicators that could not be calculated, with the reason"New value: +"Requested indicators that could not be calculated, with the reason. Empty when all were calculated."
addedOutput schema / properties / skipped / items / properties / indicator / enum
Added value: +[
+ "sma",
+ "ema",
+ "rsi",
+ "macd",
+ "bollinger"
+]
addedOutput schema / properties / skipped / items / properties / reason / description
Added value: +"Why, such as too few candles or a missing high, low or volume"
addedOutput schema / properties / status / description
Added value: +"ok, or why nothing was calculated; error.hint then says what to do next"
changedOutput schema / properties / symbol / description
Previous value: -"The pair as BASE/QUOTE; the price is how many QUOTE one BASE costs"New value: +"The pair as BASE/QUOTE; the price is how many QUOTE one BASE costs. Absent when the symbol is not a currency pair."