|
Attention! Read the forum rules carefully before posting a topic.
Submit JForex API bug reports in this forum only. Submit Converter issues in Converter Issues. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
isTradable() returning wrong values in test mode |
G4815
|
Post subject: isTradable() returning wrong values in test mode |
Post rating: 0
|
Posted: Fri 19 Feb, 2021, 08:43
|
|
User rating: 1
Joined: Mon 04 Nov, 2019, 03:51 Posts: 8 Location: Canada, Vancouver
|
Seemingly, in test mode :
IEngine.isTradable(Instrument) returns always true Instrument.isTradable() returns always false
Regardless if the market was actually closed or not. It's working fine in live mode. I tested this on COFFEE.CMD.
Can someone else confirm that ?
|
|
|
|
|
ftasso
|
Post subject: Re: isTradable() returning wrong values in test mode |
Post rating: 0
|
Posted: Wed 24 Feb, 2021, 18:16
|
|
User rating: 2
Joined: Fri 27 Jul, 2018, 13:46 Posts: 14 Location: ItalyItaly
|
Hello, I had the same problem in the past. I replaced with this piece of code:
public void onStart(IContext context) throws JFException { this.context = context; }
then
this.context.getDataService().isOfflineTime(timestamp, instrument)
Regards, Fabrizio
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|