Hi
I'm trying to get traded amounts per runner at each price level via the API
Ex. £2345 @ 1.68 for Peter Heller (see betfair website screenshot attached)
I'm using the Java code below, but an empty array is returned for traded amounts:
ListMarketBookParam param = new ListMarketBookParam();
param.setMatchProjection(MatchProjection.NO_ROLLUP );
param.setOrderProjection(OrderProjection.ALL);
PriceProjection priceProjection = new PriceProjection();
param.setPriceProjection(priceProjection);
priceProjection.setPriceData(new HashSet<>());
priceProjection.getPriceData().add(PriceData.EX_BE ST_OFFERS);
priceProjection.getPriceData().add(PriceData.EX_TR ADED);
priceProjection.setExBestOffersOverrides(new ExBestOffersOverrides());
priceProjection.getExBestOffersOverrides().setBest PricesDepth(5);
res = betfairOperationsAPI.listMarketBook(param);
I see the same behavior when using the "NG API Demonstration Tool" - https://docs.developer.betfair.com/visualisers/api-ng-sports-operations/
I'm trying to get traded amounts per runner at each price level via the API
Ex. £2345 @ 1.68 for Peter Heller (see betfair website screenshot attached)
I'm using the Java code below, but an empty array is returned for traded amounts:
ListMarketBookParam param = new ListMarketBookParam();
param.setMatchProjection(MatchProjection.NO_ROLLUP );
param.setOrderProjection(OrderProjection.ALL);
PriceProjection priceProjection = new PriceProjection();
param.setPriceProjection(priceProjection);
priceProjection.setPriceData(new HashSet<>());
priceProjection.getPriceData().add(PriceData.EX_BE ST_OFFERS);
priceProjection.getPriceData().add(PriceData.EX_TR ADED);
priceProjection.setExBestOffersOverrides(new ExBestOffersOverrides());
priceProjection.getExBestOffersOverrides().setBest PricesDepth(5);
res = betfairOperationsAPI.listMarketBook(param);
I see the same behavior when using the "NG API Demonstration Tool" - https://docs.developer.betfair.com/visualisers/api-ng-sports-operations/


Comment