From 3c394feac74230730e0e93b9113b722983b4614a Mon Sep 17 00:00:00 2001 From: justinpolygon <123573436+justinpolygon@users.noreply.github.com> Date: Sun, 17 Sep 2023 10:57:02 -0700 Subject: [PATCH] Swap MACD signal and histogram values --- polygon/rest/models/indicators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polygon/rest/models/indicators.py b/polygon/rest/models/indicators.py index 81252477..aedada5a 100644 --- a/polygon/rest/models/indicators.py +++ b/polygon/rest/models/indicators.py @@ -31,8 +31,8 @@ def from_dict(d): return MACDIndicatorValue( timestamp=d.get("timestamp", None), value=d.get("value", None), - signal=d.get("histogram", None), - histogram=d.get("signal", None), + signal=d.get("signal", None), + histogram=d.get("histogram", None), )