Hi support,
I've problems with IHistory.getOrdersHistory method.
In standalone environment some orders are missing. In jforex client all orders are returned by function.
When I call following code from standalone jforex app (jython code):
t = System.currentTimeMillis()
orders = history.getOrdersHistory(instrument, t - Period.WEEKLY.getInterval()*3, t)
I get following results:
Quote:
[jf78dqo1b]-Instrument: USD/JPY, order command: BUY, amount: 0.01, fill time: 2017-01-11 11:00:28:872, fill price 116.355, close time: 2017-01-11 11:02:43:554, close price 116.349
[jfcecnk4d]-Instrument: USD/JPY, order command: BUY, amount: 0.01, fill time: 2017-01-11 15:18:25:326, fill price 116.843, close time: 2017-01-11 15:21:22:678, close price 116.738
[jf1ai14jy]-Instrument: USD/JPY, order command: BUY, amount: 0.01, fill time: 2017-01-11 15:20:38:063, fill price 116.769, close time: 2017-01-11 15:21:22:677, close price 116.738
[jf1lc3uhi]-Instrument: USD/JPY, order command: SELL, amount: 0.01, fill time: 2017-01-11 15:26:34:728, fill price 116.762, close time: 2017-01-11 15:28:22:445, close price 116.798
[jfitfq37s]-Instrument: USD/JPY, order command: SELL, amount: 0.01, fill time: 2017-01-11 15:31:28:734, fill price 116.732, close time: 2017-01-11 15:37:56:872, close price 116.774
[jf18ur3ys]-Instrument: USD/JPY, order command: SELL, amount: 0.01, fill time: 2017-01-11 15:37:37:165, fill price 116.742, close time: 2017-01-11 15:37:56:872, close price 116.774
and I can see some DEBUG log in stdout:
Quote:
2017-01-13 16:35:00.677 DEBUG DCClientImpl - Unrecognized protocol message : class com.dukascopy.dds3.transport.msg.dfs.OrderGroupHistResponseMessage / <OrderGroupHistResponseMessage(messageOrder=0,historyFinished=true,merges=[<OrderGroupHistMergeData(newOrderGroupId=79050759,mergedTime=1483986168000,orderGroupIds=[79050756, 78918921])>],orderGroups=[<OrderGroupHistData(orderGroupId=78918921,instrument=USD/JPY,status=CLOSE)>, <OrderGroupHistData(orderGroupId=79050759,instrument=USD/JPY,status=OPEN)>],orders=[<OrderHistData(rollOver=false,orderGroupId=79050759,orderDirection=OPEN,orderState=FILLED,orderId=318219488,amount=1300,lastChanged=1483986167296,createdDate=1483986167018,priceClient=116.232,side=SELL,extSysId=A119_77,instrument=USD/JPY,origGroupId=79050756,orderCommission=-0.16)>, <OrderHistData(rollOver=false,orderGroupId=79050759,orderDirection=CLOSE,orderState=FILLED,orderId=318219489,amount=1000,lastChanged=1483986167400,createdDate=1483986167131,priceClient=116.236,side=BUY,extSysId=A119_80,instrument=USD/JPY,origGroupId=78918921,orderCommission=-0.12)>, <OrderHistData(rollOver=true,orderGroupId=79050759,orderDirection=OPEN,orderState=FILLED,orderId=318273604,amount=2560,lastChanged=1483999342000,createdDate=1483986167018,priceClient=116.22753,side=SELL,extSysId=A119_77,instrument=USD/JPY,origGroupId=79050759)>, <OrderHistData(rollOver=true,orderGroupId=79050759,orderDirection=OPEN,orderState=FILLED,orderId=318667717,amount=2560,lastChanged=1484085758000,createdDate=1483986167018,priceClient=116.22307,side=SELL,extSysId=A119_77,instrument=USD/JPY,origGroupId=79050759)>, <OrderHistData(rollOver=true,orderGroupId=79050759,orderDirection=OPEN,orderState=FILLED,orderId=319159653,amount=2560,lastChanged=1484172176000,createdDate=1483986167018,priceClient=116.205282,side=SELL,extSysId=A119_77,instrument=USD/JPY,origGroupId=79050759)>, <OrderHistData(rollOver=true,orderGroupId=79050759,orderDirection=OPEN,orderState=FILLED,orderId=319609802,amount=2560,lastChanged=1484258558000,createdDate=1483986167018,priceClient=116.205282,side=SELL,extSysId=A119_77,instrument=USD/JPY,origGroupId=79050759)>, <OrderHistData(rollOver=true,orderGroupId=79050759,orderDirection=OPEN,orderState=FILLED,orderId=317840438,amount=2260,lastChanged=1483740115000,createdDate=1483645921815,priceClient=115.610689,side=SELL,extSysId=A119_62,instrument=USD/JPY,origGroupId=78918921)>, <OrderHistData(rollOver=true,orderGroupId=78918921,orderDirection=OPEN,orderState=FILLED,orderId=317202088,amount=1780,lastChanged=1483567322000,createdDate=1483436055759,priceClient=118.175072,side=SELL,extSysId=A119_53,instrument=USD/JPY,origGroupId=78656663)>, <OrderHistData(rollOver=false,orderGroupId=78918921,orderDirection=OPEN,orderState=FILLED,orderId=317503515,amount=1480,lastChanged=1483645922088,createdDate=1483645921815,priceClient=115.615,side=SELL,extSysId=A119_62,instrument=USD/JPY,origGroupId=78918917,orderCommission=-0.18)>, <OrderHistData(rollOver=false,orderGroupId=78918921,orderDirection=CLOSE,orderState=FILLED,orderId=317503516,amount=1000,lastChanged=1483645922215,createdDate=1483645921936,priceClient=115.617,side=BUY,extSysId=A119_66,instrument=USD/JPY,origGroupId=78656663,orderCommission=-0.12)>, <OrderHistData(rollOver=true,orderGroupId=78918921,orderDirection=OPEN,orderState=FILLED,orderId=317560426,amount=2260,lastChanged=1483653731000,createdDate=1483645921815,priceClient=115.610689,side=SELL,extSysId=A119_62,instrument=USD/JPY,origGroupId=78918921)>],sessionId=707aca28-b72e-4b19-beca-0aaa2e84cbd9,userId=25621,requestId=329,timestamp=1484325300120)>
When I run same java code in jforex client (in strategy panel) I get correct results:
16:41:24 history order: [jf18ur3ys]-Instrument: USD/JPY, order command: SELL, amount: 0.01, fill time: 2017-01-11 15:37:37:165, fill price 116.742, close time: 2017-01-11 15:37:56:847, close price 116.774
16:41:24 history order: [jfitfq37s]-Instrument: USD/JPY, order command: SELL, amount: 0.01, fill time: 2017-01-11 15:31:28:734, fill price 116.732, close time: 2017-01-11 15:37:56:845, close price 116.774
16:41:24 history order: [jf1lc3uhi]-Instrument: USD/JPY, order command: SELL, amount: 0.01, fill time: 2017-01-11 15:26:34:728, fill price 116.762, close time: 2017-01-11 15:28:22:426, close price 116.798
16:41:24 history order: [jf1ai14jy]-Instrument: USD/JPY, order command: BUY, amount: 0.01, fill time: 2017-01-11 15:20:38:063, fill price 116.769, close time: 2017-01-11 15:21:22:690, close price 116.738
16:41:24 history order: [jfcecnk4d]-Instrument: USD/JPY, order command: BUY, amount: 0.01, fill time: 2017-01-11 15:18:25:326, fill price 116.843, close time: 2017-01-11 15:21:22:690, close price 116.738
16:41:24 history order: [jf78dqo1b]-Instrument: USD/JPY, order command: BUY, amount: 0.01, fill time: 2017-01-11 11:00:28:872, fill price 116.355, close time: 2017-01-11 11:02:43:558, close price 116.349
16:41:24 history order: [jfi46a76i]-Instrument: USD/JPY, order command: SELL, amount: 0.01, fill time: 2017-01-10 10:07:18:060, fill price 115.944, close time: 2017-01-10 10:08:05:238, close price 115.953
16:41:24 history order: [A119_77]-Instrument: USD/JPY, order command: SELL, amount: 0.0013, fill time: 2017-01-09 18:22:47:296, fill price 116.232, close time: 2017-01-09 18:22:48:000, close price 116.232
16:41:24 history order: [jfkg3xm16]-Instrument: USD/JPY, order command: BUY, amount: 0.01, fill time: 2017-01-09 17:00:23:295, fill price 116.091737, close time: 2017-01-10 02:39:05:683, close price 115.614
16:41:24 history order: [A119_62]-Instrument: USD/JPY, order command: SELL, amount: 0.00148, fill time: 2017-01-05 19:52:02:088, fill price 115.615, close time: 2017-01-05 19:52:02:000, close price 115.615
16:41:24 history order: [A119_80]-Instrument: USD/JPY, order command: SELL, amount: 0.00226, fill time: 2017-01-05 19:52:02:000, fill price 115.610689, close time: 2017-01-09 18:22:48:000, close price 116.236
16:41:24 history order: [A119_53]-Instrument: USD/JPY, order command: SELL, amount: 0.001, fill time: 2017-01-03 09:34:16:008, fill price 118.197, close time: 2017-01-03 09:34:17:000, close price 118.197
16:41:24 history order: [A119_66]-Instrument: USD/JPY, order command: SELL, amount: 0.00178, fill time: 2017-01-03 09:34:17:000, fill price 118.175072, close time: 2017-01-05 19:52:02:215, close price 115.617
16:41:24 history order: [A119_56]-Instrument: USD/JPY, order command: SELL, amount: 0.00249, fill time: 2016-12-30 15:44:03:000, fill price 116.699, close time: 2017-01-03 09:34:17:000, close price 118.2
16:41:24 history order: [A119_39]-Instrument: USD/JPY, order command: SELL, amount: 0.00129, fill time: 2016-12-30 15:44:01:431, fill price 116.699, close time: 2016-12-30 15:44:03:000, close price 116.699
16:41:24 history order: [A119_43]-Instrument: USD/JPY, order command: SELL, amount: 0.0022, fill time: 2016-12-29 10:19:11:658, fill price 116.321427, close time: 2016-12-30 15:44:03:000, close price 116.703
Libs used for standalone environment are (latest pull from maven):
Quote:
7zip-4.65.jar commons-lang3-3.3.2.jar lucene-memory-3.4.0.jar
CleanDocking-2.0.23.jar commons-logging-1.1.1.jar lucene-queries-3.4.0.jar
DDS2-Charts-6.23.62.jar ecj-4.3.1.jar mail-1.4.jar
DDS2-TextEditor-1.27.6.jar greed-common-317.66.jar mina-core-1.1.7dc.13.jar
DDS2-jClient-JForex-2.45.61.jar jakarta-oro-2.0.8.jar mina-filter-ssl-1.1.7dc.13.jar
JForex-API-2.12.46-sources.jar jakarta-regexp-1.4.jar msg-1.0.88.jar
JForex-API-2.12.46.jar javaws.jar patterns-1.59.43.jar
Login-Form-1.5.33.jar javax.inject-1.jar slf4j-api-1.7.5.jar
MQL4Connector-2.12.53.jar jcalendar-1.3.3.jar slf4j-log4j12-1.7.5.jar
MQL4Converter-2.51.54.jar jna-3.5.0.jar srp6a-1.5.3.jar
activation-1.1.jar json-20131018.jar ta-lib-0.4.4dc.jar
auth-protocol-client-1.0.7.jar log4j-1.2.17.jar transport-client-0.4.111.jar
commons-beanutils-1.9.2.jar lucene-core-3.4.0.jar transport-common-0.5.91.jar
commons-collections-3.2.1.jar lucene-highlighter-3.4.0.jar ui-core-1.5.34.jar
Please provide support.