Announcement

Collapse
No announcement yet.

Line Markets Average Price

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

    Line Markets Average Price

    Hi
    I have a strange situation where LINE market 25 Euro Bet GET matched on Different handicap .
    Betfair Returns the Average Price Match but how we determine the Average amount matched on different handicap .

    Order Placed on Side 1 , with Request Price : 109.5

    How Does Betfair Calculate Average Line Position on This Bet .
    priceRequested was 109.5
    Match Price is : 106.47

    How does betfair Calculate Average Price on Score of - 106.47 .

    While Actual some amount matched on 104.5 and some on 108.5 and betfair returned 106.47 .
    (104.5 and 108.5 Were obtained from After settlement of the market from Betfair Websites's profit and loss section)




    for Example


    Bet: SETTLED

    {
    "betCount": 1,
    "betId": "---",
    "commission": 0.0,
    "eventId": "---",
    "eventTypeId": "4",
    "handicap": 0.0,
    "itemDescription": null,
    "marketId": "---",
    "orderType": "LIMIT",
    "persistenceType": "LAPSE",
    "placedDate": "---",
    "priceMatched": 106.47,
    "priceReduced": false,
    "priceRequested": 109.5,
    "profit": 0.32,
    "selectionId": 15316,
    "settledDate": "----",
    "side": 1,
    "sizeCancelled": 0.0,
    "sizeSettled": 25.0
    }








    Last edited by so0; 19-04-2019, 09:26 AM.

    #2
    I might have misunderstood the problem, but
    €12.31 at 108.5
    €12.69 at 104.5

    gives an average of 106.4696, which would round to 106.47.

    Stakes ranging from €12.28 to €12.34 on 108.5 would give an average which would round to €106.47.




    Edit: corrected typo: 16.47 should have said 106.47 where first mentioned.
    Last edited by jabe; 19-04-2019, 02:27 AM.

    Comment


      #3
      While using ListCurrentOrders , i only have two Values . 25 Matched @ Avg 106.47

      How would i calculate how much amount is matched at which Run.


      Originally posted by jabe View Post
      I might have misunderstood the problem, but
      €12.31 at 108.5
      €12.69 at 104.5

      gives an average of 106.4696, which would round to 16.47.

      Stakes ranging from €12.28 to €12.34 on 108.5 would give an average which would round to €106.47.

      Comment


        #4
        I'll give that some thought. If a third price had been matched, it may well have become impossible to work out how much matched with each.

        Easy enough to know how Betfair calculates the average. When you request your bet data, are you using any kind of "roll-up" parameters? I don't know whether it's possible to retrieve which amounts matched at which odds.

        Comment


          #5
          You can get to the two stakes like this:

          =(106.47 - 104.5) * 25 / (108.5 - 104.5)
          =12.3125

          and

          =(106.47 - 108.5) * 25 / (104.5 - 108.5)
          =12.6875
          (or 25 - the first one)

          Comment


            #6
            maybe i didn't understand . how do i get , 104.5 and 108.5 ?

            while i placed a bet on 109.5 and bet matched on 106.47 .


            Originally posted by jabe View Post
            You can get to the two stakes like this:

            =(106.47 - 104.5) * 25 / (108.5 - 104.5)
            =12.3125

            and

            =(106.47 - 108.5) * 25 / (104.5 - 108.5)
            =12.6875
            (or 25 - the first one)

            Comment


              #7
              You mentioned in your first post that some had matched at 104.5 and some at 108.5. I assumed those were the only two prices at which you had matches.

              Comment


                #8
                I'm having second thoughts about that calculation. Leave it with me.


                ...okay, decided I was right.
                Last edited by jabe; 18-04-2019, 03:03 PM.

                Comment


                  #9
                  I was unable to find anything in API Regarding Getting Matches . , InPlay or After Settlement .

                  My Main Goal is Calculating it while market Inplay.

                  104.5 an 108.5 i got from Betfair Website, After market Settlement , My account Section , > Profit and Loss > and then Bet Details .


                  Originally posted by jabe View Post
                  You mentioned in your first post that some had matched at 104.5 and some at 108.5. I assumed those were the only two prices at which you had matches.
                  Last edited by so0; 17-04-2019, 04:18 PM.

                  Comment


                    #10
                    Originally posted by so0 View Post
                    I was unable to find anything in API Regarding Getting Matches . , InPlay or After Settlement .

                    My Main Goal is Calculating it while market Inplay.

                    104.5 an 108.5 i got from Betfair Website, After market Settlement , My account Section , > Profit and Loss > and then Bet Details .

                    What is so difficult with average bet price calculation?

                    Please watch short video:

                    https://youtu.be/pMSkD4WynlM

                    Result: 25.00 @ 106.47

                    Comment


                      #11
                      Originally posted by bfexplorer View Post

                      What is so difficult with average bet price calculation?

                      Please watch short video:

                      https://youtu.be/pMSkD4WynlM

                      Result: 25.00 @ 106.47
                      He didn't have the 12.31 and 12.69. He knew the 25.00 and 106.47.

                      Comment


                        #12
                        Exactly . maybe someone from betfair can shed light on this one.
                        Originally posted by jabe View Post

                        He didn't have the 12.31 and 12.69. He knew the 25.00 and 106.47.

                        Comment


                          #13
                          I still do not understand what is your problem. You are here on developers forum, so you are programmer, just use listClearedOrders and load your bet results.

                          Comment


                            #14
                            I want My Position for my specific Bet , While Market is INPLAY ,

                            Just see the scenario here .

                            A Bet is Placed on Line Score 109.5 , 25$$

                            Betfair return the Result it Matched on 106.47 .. How to do i know what is my Outcome in Each Score .

                            The Final market Score is 108 .

                            When Market settled in Only win 0.32 , while Odds Rate 1.0 .

                            How do i calculate the Outcome while market is in Play , its pretty Basic IMHO.




                            Originally posted by bfexplorer View Post
                            I still do not understand what is your problem. You are here on developers forum, so you are programmer, just use listClearedOrders and load your bet results.

                            Comment


                              #15
                              Isn't there enough information on listCurrentOrders?

                              There's averagePriceMatched and sizeRemaining.
                              Last edited by jabe; 19-04-2019, 02:45 PM.

                              Comment

                              Working...
                              X