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 .




    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
    }










    #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; Today, 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; Yesterday, 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

                      Working...
                      X