Announcement

Collapse
No announcement yet.

Not seeing virtualised prices.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Not seeing virtualised prices.

    Searching i couldn't find anything on virtualised prices, so sorry if this is a repost...I am trying to replicate the view on the website but it looks like there are virtual prices appearing on the site that don't get shown when i call listMarketBook (i think?). E.g. my code shows back $15 and lay $55 but the website shows $15.5 and $44.

    Anyone know what is wrong with this code? I'm using the dev/delayed API key - could that be the issue?

    Code:
    price_filter = betfairlightweight.filters.price_projection(
      price_data=['EX_BEST_OFFERS'],
      ex_best_offers_overrides={
        "rollupModel": "STAKE",
        "rollupLimit": "5"
      },
      virtualise=True
    )
    
    # Request market books
    market_books = trading.betting.list_market_book(
      market_ids=['1.179418253'],
      price_projection=price_filter
    )

  • #2
    Virtualise is expecting a string of "true" not a bool

    Comment


    • #3
      Nothing wrong with the code, it’s the delayed key, don’t bother trying to reconcile with the site if you are using it.

      Comment


      • #4
        Yep thanks, just got back to it and unsurprisingly "is_market_data_delayed" is "True" and "last_match_time" is a couple of minutes in the past. Probably should have checked them first...

        Comment

        Working...
        X