Autochartist¶
-
class
oandapyV20.endpoints.forexlabs.
Autochartist
(params=None)¶ Bases:
oandapyV20.endpoints.forexlabs.ForexLabs
Autochartist.
Get the ‘autochartist data’.
-
ENDPOINT
= 'labs/v1/signal/autochartist'¶
-
EXPECTED_STATUS
= 200¶
-
METHOD
= 'GET'¶
-
__init__
(params=None)¶ Instantiate an Autochartist request.
Parameters: params (dict (optional)) – query params to send, check developer.oanda.com for details. >>> import oandapyV20 >>> import oandapyV20.endpoints.forexlabs as labs >>> accountID = ... >>> client = oandapyV20.API(access_token=...) >>> params = { "instrument": "EUR_JPY" }
>>> r = labs.Autochartist(params=params) >>> client.request(r) >>> print(r.response)
Output:
{ "signals": [ { "data": { "points": { "support": { "y1": 0.72456, "y0": 0.725455, "x0": 1520420400, "x1": 1520503200 }, "resistance": { "y1": 0.729755, "y0": 0.731095, "x0": 1520323200, "x1": 1520463600 } }, "patternendtime": 1520589600, "prediction": { "pricelow": 0.7316, "timefrom": 1520589600, "pricehigh": 0.7349, "timeto": 1520773200 } }, "meta": { "direction": 1, "completed": 1, "probability": 72.36, "scores": { "clarity": 7, "breakout": 10, "quality": 8, "initialtrend": 10, "uniformity": 6 }, "pattern": "Channel Down", "historicalstats": { "hourofday": { "total": 1909, "percent": 71.08, "correct": 1357 }, "pattern": { "total": 3361, "percent": 73.61, "correct": 2474 }, "symbol": { "total": 429, "percent": 65.5, "correct": 281 } }, "interval": 60, "trendtype": "Continuation", "length": 73 }, "type": "chartpattern", "id": 458552738, "instrument": "NZD_USD" } ], "provider": "autochartist" }
-