Get matched bets

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chrisjones2004
    Junior Member
    • Jan 2015
    • 2

    #1

    Get matched bets

    Lets say the book for an instrument is

    3(10) 4(10) 5(10) - 8(10) 9(10) 10(10)

    If I buy 20 @ 9 I should get the following fills

    8 @ 10
    9 @ 10

    On the website I can see these individual matches, but is their a way to get them via the api-ng?

    I know I can use listCurrentOrders and use getAveragePriceMatched to work out that I have been filled for 20@8.5 , but really I would like to get a list of the individual matches?

    Is this possible?
  • JayBee
    Junior Member
    • Oct 2010
    • 114

    #2
    You can use orders and matches returned in listMarketBook for each individual runner.

    I only recently, discovered that. Rather makes listCurrentOrders superfluous but I am sure it has a use. But why bother using it when you can get prices along with orders and matches with the one call.

    Originally posted by chrisjones2004 View Post
    Lets say the book for an instrument is

    3(10) 4(10) 5(10) - 8(10) 9(10) 10(10)

    If I buy 20 @ 9 I should get the following fills

    8 @ 10
    9 @ 10

    On the website I can see these individual matches, but is their a way to get them via the api-ng?

    I know I can use listCurrentOrders and use getAveragePriceMatched to work out that I have been filled for 20@8.5 , but really I would like to get a list of the individual matches?

    Is this possible?

    Comment

    • chrisjones2004
      Junior Member
      • Jan 2015
      • 2

      #3
      JayBee, when I use listMarketBook for market "1.117057721" which has closed I cannot see the matches? Does this only work for in play markets?


      For example:

      https://developer.betfair.com/visual...ts-operations/

      Market Ids: 1.117057721
      Price Data: EX_ALL_OFFERS
      Virtualise Ex Offers: Use Default (No)
      Price Depth 10
      Rollup Model: None
      RollupLimit:
      Order projection: Dont care
      Match projection: NO_ROLLUP
      Currency Code:
      Locale

      Comment

      • JayBee
        Junior Member
        • Oct 2010
        • 114

        #4
        Oh, for closed markets. By then bets are settled and you won't find them in the marketBook.

        I just count the profit and be happy. You can find the settlements on the website and download to a spreadsheet.

        If someone thinks otherwise then speak up.

        BTW I use ordersProjection and not matchedProjection. params.orderProjection = "EXECUTION_COMPLETE"


        Originally posted by chrisjones2004 View Post
        JayBee, when I use listMarketBook for market "1.117057721" which has closed I cannot see the matches? Does this only work for in play markets?


        For example:

        https://developer.betfair.com/visual...ts-operations/

        Market Ids: 1.117057721
        Price Data: EX_ALL_OFFERS
        Virtualise Ex Offers: Use Default (No)
        Price Depth 10
        Rollup Model: None
        RollupLimit:
        Order projection: Dont care
        Match projection: NO_ROLLUP
        Currency Code:
        Locale

        Comment

        Working...
        X