Anyone having any problems getting Euro markets today?
I'm trying to call GetAllMarkets using the following code:
Date now = new Date();
long atm = System.currentTimeMillis();
long oneTwoFive = ((60 * 1000) * 125);
long gtm = atm - oneTwoFive;
now.setTime(gtm);
GregorianCalendar gToday = new GregorianCalendar();
gToday.setTime(now);
GregorianCalendar tomorrow = new GregorianCalendar();
tomorrow.setTime(now);
tomorrow.add(GregorianCalendar.DATE, 1);
DatatypeFactory df = DatatypeFactory.newInstance();
XMLGregorianCalendar xmlGToday = df.newXMLGregorianCalendar(gToday);
XMLGregorianCalendar xmlTomorrow = df.newXMLGregorianCalendar(tomorrow);
request.setFromDate(xmlGToday);
request.setToDate(xmlTomorrow);
APIRequestHeader theHeader = ExHeader.makeHeader();
request.setHeader(theHeader);
ArrayOfInt returnEvents = new ArrayOfInt();
returnEvents.getInt().add(1);
request.setEventTypeIds(returnEvents);
com.betfair.publicapi.types.exchange.v5.GetAllMarketsResp result = port.getAllMarkets(request);
and All I'm getting is a poxy Chile v Venezuala return. Whats more, for some reason it isn't going into the JTable the way it should. Now if I change the request.setFromDate() period to tomorrow and the request.setToDate() period to three days from now, I'm getting results which are doing what they are supposed to do, but for some bizarre reason, I can't seem to get the Germany/Portugal match.
I've tried setting the setEventTypeIds parameter to 14, but I'm still not getting that match. I don't understand whats happening and its driving me insane.
-
- Founder:
- bmsleight
-
- Members:
- 68
-
- Posts:
- 795
-
- Founded:
- 6 months ago
-
- Newest Member:
-
christianp3
