You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling response = ctx.pricing.getPriceRange(request);
(where ctx is the context and response is of type PricingGetPriceRangeResponse)
gives me:
com.oanda.v20.ExecuteException: No key {instrument} found in path '/v3/pricing/range'
I believe I have correctly initialized the PricingGetPriceRangeRequest object, including the instrument, like this: PricingGetPriceRangeRequest request = new PricingGetPriceRangeRequest(new InstrumentName("EUR_USD"), new DateTime(beginTime+".0"));
Here, beginTime is a long value in milliseconds; I did try it with a PricingGetRequest and ctx.pricing.get, and there it works fine with the same value for "beginTime".
pricing.get needs the AccountId, and getPriceRange does not... could it be that the missing AccountID parameter is the mistake? When getPriceRange didn't work, I switched to using ctx.pricing.candles, which works, because I locally applied PR #14 - also there, the AccountID parameter was missing, and adding it fixed it, so I suspect that this might be the same problem.
The text was updated successfully, but these errors were encountered:
Calling
response = ctx.pricing.getPriceRange(request);
(where ctx is the context and response is of type PricingGetPriceRangeResponse)
gives me:
com.oanda.v20.ExecuteException: No key {instrument} found in path '/v3/pricing/range'
I believe I have correctly initialized the PricingGetPriceRangeRequest object, including the instrument, like this:
PricingGetPriceRangeRequest request = new PricingGetPriceRangeRequest(new InstrumentName("EUR_USD"), new DateTime(beginTime+".0"));
Here, beginTime is a long value in milliseconds; I did try it with a PricingGetRequest and ctx.pricing.get, and there it works fine with the same value for "beginTime".
pricing.get needs the AccountId, and getPriceRange does not... could it be that the missing AccountID parameter is the mistake? When getPriceRange didn't work, I switched to using ctx.pricing.candles, which works, because I locally applied PR #14 - also there, the AccountID parameter was missing, and adding it fixed it, so I suspect that this might be the same problem.
The text was updated successfully, but these errors were encountered: