hootnot / oanda-api-v20

OANDA REST-V20 API wrapper. Easy access to OANDA's REST v20 API with oandapyV20 package. Checkout the Jupyter notebooks!
MIT License
398 stars 107 forks source link

Custom candle pricing endpoint? #167

Closed almanza-d closed 4 years ago

almanza-d commented 4 years ago

Hello,

First of all, thank you for such a great wrapper. Using some of the modules here, I found myself not being able to access some endpoints for market data. I know that we have the v3/instruments/{instrument/candles endpoint but for some instruments it does not have the proper data. So I was trying to connect to the authenticated endpoint to try and see if data is available there but notice there is no module to construct this endpoint v3/accounts/{accountID}/instruments/{instrument}/candles. Any tips how to construct a custom endpoint I can then use client.request with to gather missing data not available in the instruments endpoint. Example of an instrument with no data in instrument endpoint is AUD_CAD at H4 granularity. Thanks in advance.