|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
getOrdersHistory() error since Friday, 6th of April |
kurak777
|
Post subject: getOrdersHistory() error since Friday, 6th of April |
Post rating: 0
|
Posted: Mon 09 Apr, 2012, 14:02
|
|
User rating: 7
Joined: Fri 13 Jan, 2012, 20:49 Posts: 94 Location: Poland, Warsaw
|
Hi, I get following error when checking history of orders for all instruments. Everything was working fine till Friday, 6th of April (Real account). com.dukascopy.charts.data.datacache.DataCacheException: Request for orders data for instrument [AUD/JPY] from [2012.04.05 07:29:42 921] to [2012.05.01 00:00:00 000] attempt [1] timed out @ desktop.client.MA_Play.onStart(MA_Play.java:114) Error while loading orders history: com.dukascopy.api.JFException: Error while loading orders history at com.dukascopy.api.impl.HistoryOrderProvider.getOrdersHistory(HistoryOrderProvider.java:48) at com.dukascopy.api.impl.History$17.run(History.java:673) at com.dukascopy.api.impl.History$17.run(History.java:671) at java.security.AccessController.doPrivileged(Native Method) at com.dukascopy.api.impl.History.getOrdersHistory(History.java:671) at desktop.client.MA_Play.onStart(MA_Play.java:114) at com.dukascopy.api.impl.execution.TaskStart.call(TaskStart.java:27) at com.dukascopy.api.impl.connect.StrategyProcessor.onStart(StrategyProcessor.java:147) at com.dukascopy.api.impl.connect.JForexTaskManager$1.call(JForexTaskManager.java:506) at com.dukascopy.api.impl.connect.JForexTaskManager$1.call(JForexTaskManager.java:487) at com.dukascopy.api.impl.execution.TaskCustom.call(TaskCustom.java:34) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.runTask(ScienceThreadPoolExecutor.java:904) at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.run(ScienceThreadPoolExecutor.java:926) at java.lang.Thread.run(Thread.java:636) Caused by: com.dukascopy.charts.data.datacache.DataCacheException: Request for orders data for instrument [AUD/JPY] from [2012.04.05 07:29:42 921] to [2012.05.01 00:00:00 000] attempt [1] timed out at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.loadOrders(CurvesJsonProtocolHandler.java:987) at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadOrders(CurvesDataLoader.java:395) at com.dukascopy.charts.data.datacache.LoadOrdersAction.run(LoadOrdersAction.java:100) at com.dukascopy.charts.data.datacache.FeedDataProvider.loadOrdersHistoricalDataSynched(FeedDataProvider.java:1634) at com.dukascopy.api.impl.HistoryOrderProvider.getOrdersHistory(HistoryOrderProvider.java:46) ... 15 more
I use the following code to retreive the history. It is placed in onStart() method. Line no. 7 here is line no. 114 in the MA_Play.java class. List<IOrder> ord = new ArrayList<IOrder>();
List<IOrder> tmp = new ArrayList<IOrder>(); for (Instrument ins : Instrument.values()){ tmp = history.getOrdersHistory(ins, lastOrder.getTimeInMillis()+1, now.getTimeInMillis()); if (tmp.size()>0) {
ord.addAll(tmp); tmp.clear(); } }
Can you please try to explain the behavior or fix the issue? best regards, kurak
|
|
|
|
 |
API Support
|
Post subject: Re: getOrdersHistory() error since Friday, 6th of April |
Post rating: 0
|
Posted: Wed 11 Apr, 2012, 07:57
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Apparently there has been a temporary data cache server problem. We could not replicate the issue with the following strategy: package jforex.orders;
import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set;
import com.dukascopy.api.*;
public class OrderHistoryLastWeekMultiInstr implements IStrategy {
private IConsole console; private Set<Instrument> instruments = new HashSet<Instrument>( Arrays.asList(new Instrument[] {Instrument.EURUSD, Instrument.NZDCAD, Instrument.EURAUD}) ); @Override public void onStart(IContext context) throws JFException { console = context.getConsole(); context.setSubscribedInstruments(instruments); int i = 5; while(!context.getSubscribedInstruments().containsAll(instruments) && i >0){ try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } i--; }
long time = System.currentTimeMillis(); for(Instrument instrument : instruments){ List<IOrder> orders = context.getHistory().getOrdersHistory(instrument, time - Period.WEEKLY.getInterval(), time); if (orders != null) { for (IOrder order : orders) { console.getOut().println(instrument + " history order: " + order ); } } } }
public void onTick(Instrument instrument, ITick tick) throws JFException {} public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {} public void onMessage(IMessage message) throws JFException {} public void onAccount(IAccount account) throws JFException {} public void onStop() throws JFException {}
}
|
|
|
|
 |
markg
|
Post subject: Re: getOrdersHistory() error since Friday, 6th of April |
Post rating: 0
|
Posted: Wed 11 Apr, 2012, 13:43
|
|
User rating: 1
Joined: Thu 23 Feb, 2012, 11:22 Posts: 23
|
I have started getting the same error today also and can no longer get order history.
Has there been a solution to this problem?
regards
Mark
|
|
|
|
 |
markg
|
Post subject: Re: getOrdersHistory() error since Friday, 6th of April |
Post rating: 0
|
Posted: Wed 11 Apr, 2012, 13:56
|
|
User rating: 1
Joined: Thu 23 Feb, 2012, 11:22 Posts: 23
|
com.dukascopy.charts.data.datacache.DataCacheException: Cannot execute request orders data for instrument [GBP/JPY] from [2012.04.01 00:00:00 000] to [2012.05.01 00:00:00 000] attempt [5] @ Main.Strategy_Order_History.onStart(Strategy_Order_History.java:45) Error while loading orders history: com.dukascopy.api.JFException: Error while loading orders history at com.dukascopy.api.impl.HistoryOrderProvider.getOrdersHistory(HistoryOrderProvider.java:48) at com.dukascopy.api.impl.History$17.run(History.java:668) at com.dukascopy.api.impl.History$17.run(History.java:666) at java.security.AccessController.doPrivileged(Native Method) at com.dukascopy.api.impl.History.getOrdersHistory(History.java:666) at Main.Strategy_Order_History.onStart(Strategy_Order_History.java:45) at com.dukascopy.api.impl.execution.TaskStart.call(TaskStart.java:27) at com.dukascopy.api.impl.connect.StrategyProcessor.onStart(StrategyProcessor.java:147) at com.dukascopy.api.impl.connect.JForexTaskManager$1.call(JForexTaskManager.java:497) at com.dukascopy.api.impl.connect.JForexTaskManager$1.call(JForexTaskManager.java:480) at com.dukascopy.api.impl.execution.TaskCustom.call(TaskCustom.java:34) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.runTask(ScienceThreadPoolExecutor.java:904) at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.run(ScienceThreadPoolExecutor.java:926) at java.lang.Thread.run(Thread.java:722) Caused by: com.dukascopy.charts.data.datacache.DataCacheException: Cannot execute request orders data for instrument [GBP/JPY] from [2012.04.01 00:00:00 000] to [2012.05.01 00:00:00 000] attempt [5] at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.loadOrders(CurvesJsonProtocolHandler.java:1295) at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadAndSaveOrdersChunk(CurvesDataLoader.java:499) at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadOrders(CurvesDataLoader.java:447) at com.dukascopy.charts.data.datacache.LoadOrdersAction.run(LoadOrdersAction.java:100) at com.dukascopy.charts.data.datacache.FeedDataProvider.loadOrdersHistoricalDataSynched(FeedDataProvider.java:1655) at com.dukascopy.api.impl.HistoryOrderProvider.getOrdersHistory(HistoryOrderProvider.java:46) ... 15 more
|
|
|
|
 |
markg
|
Post subject: getOrdersHistory() error since Friday, 11th of April |
Post rating: 0
|
Posted: Thu 12 Apr, 2012, 11:56
|
|
User rating: 1
Joined: Thu 23 Feb, 2012, 11:22 Posts: 23
|
I can no longer get order history, everything was working fine until the 11th April. I now get the following error.. com.dukascopy.charts.data.datacache.DataCacheException: Cannot execute request orders data for instrument [USD/CHF] from [2012.04.01 00:00:00 000] to [2012.05.01 00:00:00 000] attempt [5] @ Main.Strategy_Order_History.onStart(Strategy_Order_History.java:45) Error while loading orders history: com.dukascopy.api.JFException: Error while loading orders history at com.dukascopy.api.impl.HistoryOrderProvider.getOrdersHistory(HistoryOrderProvider.java:48) at com.dukascopy.api.impl.History$17.run(History.java:668) at com.dukascopy.api.impl.History$17.run(History.java:666) at java.security.AccessController.doPrivileged(Native Method) at com.dukascopy.api.impl.History.getOrdersHistory(History.java:666) at Main.Strategy_Order_History.onStart(Strategy_Order_History.java:45) at com.dukascopy.api.impl.execution.TaskStart.call(TaskStart.java:27) at com.dukascopy.api.impl.connect.StrategyProcessor.onStart(StrategyProcessor.java:147) at com.dukascopy.api.impl.connect.JForexTaskManager$1.call(JForexTaskManager.java:497) at com.dukascopy.api.impl.connect.JForexTaskManager$1.call(JForexTaskManager.java:480) at com.dukascopy.api.impl.execution.TaskCustom.call(TaskCustom.java:34) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.runTask(ScienceThreadPoolExecutor.java:904) at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.run(ScienceThreadPoolExecutor.java:926) at java.lang.Thread.run(Thread.java:722) Caused by: com.dukascopy.charts.data.datacache.DataCacheException: Cannot execute request orders data for instrument [USD/CHF] from [2012.04.01 00:00:00 000] to [2012.05.01 00:00:00 000] attempt [5] at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.loadOrders(CurvesJsonProtocolHandler.java:1295) at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadAndSaveOrdersChunk(CurvesDataLoader.java:499) at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadOrders(CurvesDataLoader.java:447) at com.dukascopy.charts.data.datacache.LoadOrdersAction.run(LoadOrdersAction.java:100) at com.dukascopy.charts.data.datacache.FeedDataProvider.loadOrdersHistoricalDataSynched(FeedDataProvider.java:1655) at com.dukascopy.api.impl.HistoryOrderProvider.getOrdersHistory(HistoryOrderProvider.java:46) ... 15 more Has there been a solution to this problem? regards Mark
|
|
|
|
 |
API Support
|
Post subject: Re: getOrdersHistory() error since Friday, 6th of April |
Post rating: 0
|
Posted: Thu 12 Apr, 2012, 14:28
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
We could not replicate the issue, could you please provide a full example strategy and a launch scenario that replicate the issue?
|
|
|
|
 |
kurak777
|
Post subject: Re: getOrdersHistory() error since Friday, 6th of April |
Post rating: 0
|
Posted: Fri 13 Apr, 2012, 09:43
|
|
User rating: 7
Joined: Fri 13 Jan, 2012, 20:49 Posts: 94 Location: Poland, Warsaw
|
It was working fine for couple of days. Today I started to get an error again and I cannot finish checking history of closed orders. 2012-04-13 10:21:51 com.dukascopy.charts.data.datacache.LoadInProgressCandleDataAction run SEVERE: Request for in-progress candle data for instrument [USD/ZAR] period [null] side [null] to [2012.04.13 08:25:26 689] attempt [1] timed out com.dukascopy.charts.data.datacache.DataCacheException: Request for in-progress candle data for instrument [USD/ZAR] period [null] side [null] to [2012.04.13 08:25:26 689] attempt [1] timed out at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.loadData(CurvesJsonProtocolHandler.java:664) at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.loadInProgressCandle(CurvesJsonProtocolHandler.java:680) at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadInProgressCandle(CurvesDataLoader.java:306) at com.dukascopy.charts.data.datacache.LoadInProgressCandleDataAction.run(LoadInProgressCandleDataAction.java:66) at com.dukascopy.charts.data.datacache.FeedDataProvider.loadInProgressCandleDataSynched(FeedDataProvider.java:582) at com.dukascopy.charts.data.datacache.IntraperiodCandlesGenerator$2.run(IntraperiodCandlesGenerator.java:571) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) 2012-04-13 10:21:51 com.dukascopy.charts.data.datacache.IntraperiodCandlesGenerator$2 run SEVERE: Request for in-progress candle data for instrument [USD/ZAR] period [null] side [null] to [2012.04.13 08:25:26 689] attempt [1] timed out com.dukascopy.charts.data.datacache.DataCacheException: Request for in-progress candle data for instrument [USD/ZAR] period [null] side [null] to [2012.04.13 08:25:26 689] attempt [1] timed out at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.loadData(CurvesJsonProtocolHandler.java:664) at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.loadInProgressCandle(CurvesJsonProtocolHandler.java:680) at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadInProgressCandle(CurvesDataLoader.java:306) at com.dukascopy.charts.data.datacache.LoadInProgressCandleDataAction.run(LoadInProgressCandleDataAction.java:66) at com.dukascopy.charts.data.datacache.FeedDataProvider.loadInProgressCandleDataSynched(FeedDataProvider.java:582) at com.dukascopy.charts.data.datacache.IntraperiodCandlesGenerator$2.run(IntraperiodCandlesGenerator.java:571) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636)
My code is as following: for (Instrument ins : Instrument.values()){ tmp = history.getOrdersHistory(ins, lastOrder.getTimeInMillis()+1, now.getTimeInMillis()); if (tmp.size()>0) { LastTick lti = new LastTick(ins); ord.addAll(tmp); tmp.clear(); } } public class LastTick { private long time; private double bid; private double ask; private Instrument instrument; LastTick(Instrument instrument){ this.instrument = instrument; bid = 0; ask = 0; time = 0L; waitForLastTick(); } private void waitForLastTick(){ int counter = 0; boolean isLastTickAvailable = false; while (!isLastTickAvailable && counter<150) { // timeout 15 seconds counter++; try { //Store.history = IHistory time = Store.history.getLastTick(instrument).getTime(); bid = Store.history.getLastTick(instrument).getBid(); ask = Store.history.getLastTick(instrument).getAsk(); isLastTickAvailable = true; } catch (Exception e) { //NullPointerException try {Thread.sleep(100);} catch (InterruptedException e2) {} isLastTickAvailable = false; } } }
public double getAsk() { return ask; }
public double getBid() { return bid; }
public long getTime() { return time; } public Instrument getInstrument() { return instrument; }
}
kind regards, kurak
|
|
|
|
 |
API Support
|
Post subject: Re: getOrdersHistory() error since Friday, 6th of April |
Post rating: 0
|
Posted: Fri 13 Apr, 2012, 11:27
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
please modify your example to work only with subscribed instruments, that is: for(Instrument instrument : context.getSubscribedInstruments()){
Find in attachments our example strategy.
Attachments: |
OrderHistoryLastWeekAllInstr.java [2.02 KiB]
Downloaded 281 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
kurak777
|
Post subject: Re: getOrdersHistory() error since Friday, 6th of April |
Post rating: 0
|
Posted: Sat 14 Apr, 2012, 15:17
|
|
User rating: 7
Joined: Fri 13 Jan, 2012, 20:49 Posts: 94 Location: Poland, Warsaw
|
Thanks for reply. I will check your code in coming week.
regards, kurak
|
|
|
|
 |
markg
|
Post subject: Re: getOrdersHistory() error since Friday, 6th of April |
Post rating: 1
|
Posted: Mon 16 Apr, 2012, 10:28
|
|
User rating: 1
Joined: Thu 23 Feb, 2012, 11:22 Posts: 23
|
Hi Support, I am still getting an exception error while using the code you provided.. I am using the Standalone JForex API I am running two strategies.. the first to submit and adjust orders and the second strategy is called to check history orders and get fills. The strategy to check order history is called when the application starts and whenever a position is closed to get the fill. As previously posted this has been working up until just recently. I am using the following code to run the first strategy for submitting orders. //subscribe to the instruments Set<Instrument> instruments = new HashSet<>(); instruments.add(Instrument.EURUSD); instruments.add(Instrument.GBPUSD); instruments.add(Instrument.USDCHF); instruments.add(Instrument.USDJPY); instruments.add(Instrument.EURJPY); instruments.add(Instrument.GBPJPY); instruments.add(Instrument.AUDUSD); client.setSubscribedInstruments(instruments); // wait max 2 seconds for the instruments to get subscribed int y = 10;
while (!client.getSubscribedInstruments().containsAll(instruments)) { try { LOGGER.info("Instruments not subscribed yet " + y); Thread.sleep(200); } catch (InterruptedException e) { LOGGER.error(e.getMessage()); } i--; } //start the strategy client.startStrategy(new Strategy_PBTBot()); //now it's running
The first strategy for submitting and adjusting orders works ok but the when running the order history strategy I still get the same error. I am running the OrderHistoryLastWeekAllInstr strategy you provided with the following code and getting the error below. try { final IClient client = ClientFactory.getDefaultInstance(); client.startStrategy(new OrderHistoryLastWeekAllInstr()); } catch (ClassNotFoundException | IllegalAccessException | InstantiationException ex) { Logger.getLogger(Main_Form.class.getName()).log(Level.SEVERE, null, ex); }
com.dukascopy.charts.data.datacache.DataCacheException: Cannot execute request orders data for instrument [XAG/USD] from [2012.03.01 00:00:00 000] to [2012.04.01 00:00:00 000] attempt [5] @ Main.OrderHistoryLastWeekAllInstr.onStart(OrderHistoryLastWeekAllInstr.java:40) Error while loading orders history: com.dukascopy.api.JFException: Error while loading orders history at com.dukascopy.api.impl.HistoryOrderProvider.getOrdersHistory(HistoryOrderProvider.java:48) at com.dukascopy.api.impl.History$17.run(History.java:668) at com.dukascopy.api.impl.History$17.run(History.java:666) at java.security.AccessController.doPrivileged(Native Method) at com.dukascopy.api.impl.History.getOrdersHistory(History.java:666) at Main.OrderHistoryLastWeekAllInstr.onStart(OrderHistoryLastWeekAllInstr.java:40) at com.dukascopy.api.impl.execution.TaskStart.call(TaskStart.java:27) at com.dukascopy.api.impl.connect.StrategyProcessor.onStart(StrategyProcessor.java:147) at com.dukascopy.api.impl.connect.JForexTaskManager$1.call(JForexTaskManager.java:497) at com.dukascopy.api.impl.connect.JForexTaskManager$1.call(JForexTaskManager.java:480) at com.dukascopy.api.impl.execution.TaskCustom.call(TaskCustom.java:34) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.runTask(ScienceThreadPoolExecutor.java:904) at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.run(ScienceThreadPoolExecutor.java:926) at java.lang.Thread.run(Thread.java:722) Caused by: com.dukascopy.charts.data.datacache.DataCacheException: Cannot execute request orders data for instrument [XAG/USD] from [2012.03.01 00:00:00 000] to [2012.04.01 00:00:00 000] attempt [5] at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.loadOrders(CurvesJsonProtocolHandler.java:1295) at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadOrders(CurvesDataLoader.java:452) at com.dukascopy.charts.data.datacache.LoadOrdersAction.run(LoadOrdersAction.java:100) at com.dukascopy.charts.data.datacache.FeedDataProvider.loadOrdersHistoricalDataSynched(FeedDataProvider.java:1655) at com.dukascopy.api.impl.HistoryOrderProvider.getOrdersHistory(HistoryOrderProvider.java:46) ... 15 more
Kind regards Mark
|
|
|
|
 |
API Support
|
Post subject: Re: getOrdersHistory() error since Friday, 6th of April |
Post rating: 0
|
Posted: Mon 16 Apr, 2012, 11:43
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Please make sure that the USD/XAG instrument is subscribed, see our example above. We managed to test it successfully also in standalone.
|
|
|
|
 |
markg
|
Post subject: Re: getOrdersHistory() error since Friday, 6th of April |
Post rating: 0
|
Posted: Mon 16 Apr, 2012, 13:05
|
|
User rating: 1
Joined: Thu 23 Feb, 2012, 11:22 Posts: 23
|
Using your example strategy provided above “OrderHistoryLastWeekAllInstr” I am getting the following displayed in the ouput window.. followed by the error message.. Quote: Strategy "OrderHistoryLastWeekAllInstr" is started at 2012-04-16 11:54:29.716 GMT on the local computer with no parameters Quote: subscribed: [XAU/USD, USD/BRL, CHF/SGD, EUR/SEK, EUR/HKD, USD/JPY, ZAR/JPY, HKD/JPY, GBP/JPY, AUD/SGD, USD/NOK, NZD/CHF, EUR/CHF, EUR/AUD, NZD/SGD, EUR/NOK, EUR/DKK, CHF/PLN, USD/RUB, USD/CAD, EUR/HUF, AUD/CAD, GBP/NZD, EUR/RUB, SGD/JPY, NZD/JPY, USD/HKD, CAD/HKD, USD/CHF, CAD/CHF, USD/MXN, AUD/NZD, GBP/CAD, EUR/SGD, HUF/JPY, GBP/CHF, EUR/BRL, EUR/ZAR, MXN/JPY, AUD/USD, AUD/CHF, USD/SEK, USD/DKK, EUR/USD, USD/ZAR, EUR/MXN, EUR/TRY, XAG/USD, GBP/AUD, USD/PLN, USD/CZK, GBP/USD, EUR/JPY, EUR/GBP, NZD/CAD, USD/RON, CAD/JPY, EUR/NZD, USD/SGD, CHF/JPY, USD/TRY, NZD/USD, USD/HUF, AUD/JPY, EUR/CAD, EUR/PLN] Quote: unsubscribed: [] Quote: XAU/USD history orders: [] followed by the error message.. Quote: com.dukascopy.charts.data.datacache.DataCacheException: Cannot execute request orders data for instrument [XAU/USD] from [2012.03.01 00:00:00 000] to [2012.04.01 00:00:00 000] attempt [5] @ Main.OrderHistoryLastWeekAllInstr.onStart(OrderHistoryLastWeekAllInstr.java:40) Error while loading orders history: com.dukascopy.api.JFException: Error while loading orders history at com.dukascopy.api.impl.HistoryOrderProvider.getOrdersHistory(HistoryOrderProvider.java:48) at com.dukascopy.api.impl.History$17.run(History.java:668) at com.dukascopy.api.impl.History$17.run(History.java:666) at java.security.AccessController.doPrivileged(Native Method) at com.dukascopy.api.impl.History.getOrdersHistory(History.java:666) at Main.OrderHistoryLastWeekAllInstr.onStart(OrderHistoryLastWeekAllInstr.java:40) at com.dukascopy.api.impl.execution.TaskStart.call(TaskStart.java:27) at com.dukascopy.api.impl.connect.StrategyProcessor.onStart(StrategyProcessor.java:147) at com.dukascopy.api.impl.connect.JForexTaskManager$1.call(JForexTaskManager.java:497) at com.dukascopy.api.impl.connect.JForexTaskManager$1.call(JForexTaskManager.java:480) at com.dukascopy.api.impl.execution.TaskCustom.call(TaskCustom.java:34) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.runTask(ScienceThreadPoolExecutor.java:904) at com.dukascopy.api.impl.execution.ScienceThreadPoolExecutor$Worker.run(ScienceThreadPoolExecutor.java:926) at java.lang.Thread.run(Thread.java:722) Caused by: com.dukascopy.charts.data.datacache.DataCacheException: Cannot execute request orders data for instrument [XAU/USD] from [2012.03.01 00:00:00 000] to [2012.04.01 00:00:00 000] attempt [5] at com.dukascopy.charts.data.datacache.CurvesJsonProtocolHandler.loadOrders(CurvesJsonProtocolHandler.java:1295) at com.dukascopy.charts.data.datacache.CurvesDataLoader.loadOrders(CurvesDataLoader.java:452) at com.dukascopy.charts.data.datacache.LoadOrdersAction.run(LoadOrdersAction.java:100) at com.dukascopy.charts.data.datacache.FeedDataProvider.loadOrdersHistoricalDataSynched(FeedDataProvider.java:1655) at com.dukascopy.api.impl.HistoryOrderProvider.getOrdersHistory(HistoryOrderProvider.java:46) ... 15 more
|
|
|
|
 |
API Support
|
Post subject: Re: getOrdersHistory() error since Friday, 6th of April |
Post rating: 0
|
Posted: Mon 16 Apr, 2012, 15:03
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
We could not replicate the issue. Have you tried if clearing the local cache solves the issue? If this does not help, could you please provide an example strategy and an example program which runs the strategy that replicate the issue?
|
|
|
|
 |
markg
|
Post subject: Re: getOrdersHistory() error since Friday, 6th of April |
Post rating: 0
|
Posted: Tue 17 Apr, 2012, 13:25
|
|
User rating: 1
Joined: Thu 23 Feb, 2012, 11:22 Posts: 23
|
I have upgraded from API version 2.6.59 to the latest API 2.6.64 and it is now working fine.
I will continue testing..
Regards
Mark
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|