Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PricingCandlesRequest fail #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/com/oanda/v20/pricing/PricingCandlesRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ public class PricingCandlesRequest extends Request {
* <p>
* @param instrument Name of the Instrument
*/
public PricingCandlesRequest(InstrumentName instrument) {
public PricingCandlesRequest(AccountID accountID, InstrumentName instrument) {
this.setPathParam("instrument", instrument);
this.setPathParam("accountID", accountID);

}

Expand Down
4 changes: 2 additions & 2 deletions src/com/oanda/v20/pricing/PricingContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down