Traded Amounts not returned by API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • loudsight
    Junior Member
    • Sep 2009
    • 2

    #1

    Traded Amounts not returned by API

    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/

    ​​​​​​​
  • blackfirewings
    Junior Member
    • Aug 2019
    • 9

    #2
    Live & Delayed Application Keys Usage

    The createDeveloperAppKeys service will assign two Application Keys (App Keys) to your Betfair account.

    One 'Live' Application Key and one 'Delayed' Application Key. A Delayed Application Key is displayed as 'Version 1.0-DELAY' via createDeveloperAppKeys/getDeveloperAppKeys

    Key points:
    • Upon creation, the Live Application Key will be inactive.
    • The Delayed App Key operates on the live (production) Betfair Exchange and not a testbed/sandbox environment.
    • The Delayed App Key should be use for development purposes and any functional testing. The key provides delayed Betfair price data. The delay is variable between 1-180 second snapshots.
    • The Delayed App Key must also be used in simulation/practice applications where the facility to bet into live Betfair markets is not available.
    • The Delayed App Key does not return traded volume data 'totalMatched' or EX_ALL_OFFERS via listMarketBook.

    Comment

    • loudsight
      Junior Member
      • Sep 2009
      • 2

      #3
      Thanks - I missed that in the docs.

      Comment

      Working...
      X