diff --git a/src/com/oanda/v20/pricing/PricingCandlesRequest.java b/src/com/oanda/v20/pricing/PricingCandlesRequest.java index bffa818..deb691e 100644 --- a/src/com/oanda/v20/pricing/PricingCandlesRequest.java +++ b/src/com/oanda/v20/pricing/PricingCandlesRequest.java @@ -21,8 +21,9 @@ public class PricingCandlesRequest extends Request { *
* @param instrument Name of the Instrument */ - public PricingCandlesRequest(InstrumentName instrument) { + public PricingCandlesRequest(AccountID accountID, InstrumentName instrument) { this.setPathParam("instrument", instrument); + this.setPathParam("accountID", accountID); } diff --git a/src/com/oanda/v20/pricing/PricingContext.java b/src/com/oanda/v20/pricing/PricingContext.java index cfe9ccd..c0a8da6 100644 --- a/src/com/oanda/v20/pricing/PricingContext.java +++ b/src/com/oanda/v20/pricing/PricingContext.java @@ -199,10 +199,10 @@ public PricingGetResponse get(PricingGetRequest request) * @see RequestException * @see ExecuteException */ - public PricingCandlesResponse candles(InstrumentName instrument) + public PricingCandlesResponse candles(AccountID accountID,InstrumentName instrument) throws RequestException, ExecuteException { - PricingCandlesRequest request = new PricingCandlesRequest(instrument); + PricingCandlesRequest request = new PricingCandlesRequest(accountID,instrument); return candles(request); }