Best way of finding out the amount of money I can bet with

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • monkeymagix
    Junior Member
    • Jul 2010
    • 105

    #1

    Best way of finding out the amount of money I can bet with

    Hi

    On the website you can easily see the amount of money each horse has available for betting, if you want to back bet, the money is in the LAY column and vice-versa.

    However I am "guessing" this doesn't count for the "ladder" where paying bookies like Coral etc are higher up than any bet orders you place and will always take them. E.G If I want to place a £5 BACK bet on a horse and I can see £5 under the LAY section if no-one else went for the bet at the same time I would get it. However if someone more "Important" than me went for it they would

    What is the best way IN CODE (JSON) - C# for obtaining the amounts of money available to place a bet (LAY and BACK) so that I don't have to cancel the bet straight after placing it if it wasn't fully matched - as I trade I need a full matched bet early on one side to give the other side more time to get matched.

    For example at the moment I can do this

    Calling: SportsAPING/v1.0/listMarketBook With args: {"marketIds":["1.121224303"],"priceProjection":{"priceData":["EX_BEST_OFFERS"]},"orderProjection":null,"matchProjection":null,"l ocale":null,"currencyCode":null};

    And get a full list of Runners with a number of amounts for LAY/BACK e.g

    {"jsonrpc":"2.0","result":[{"marketId":"1.121224303","isMarketDataDelayed":fa lse,"status":"OPEN","betDelay":0,"bspReconciled":f alse,"complete":true,"inplay":false,"numberOfWinne rs":1,"numberOfRunners":10,"numberOfActiveRunners" :10,"lastMatchTime":"2015-10-14T12:59:15.478Z","totalMatched":28771.45,"totalAv ailable":142145.5,"crossMatching":true,"runnersVoi dable":false,"version":1134716766,"runners":[{"selectionId":6739276,"handicap":0.0,"status":"AC TIVE","adjustmentFactor":23.017,"lastPriceTraded": 4.3,"totalMatched":13323.13,"ex":{"availableToBack ":[{"price":4.3,"size":182.04},{"price":4.2,"size":17 6.93},{"price":4.1,"size":167.16}],"availableToLay":[{"price":4.4,"size":59.9},{"price":4.5,"size":228. 2},{"price":4.6,"size":42.54}],"tradedVolume":[]}},


    Are these the top X prices/sizes per selection and are they in order e.g if I placed a bet I would get the first price/size not the last listed one?

    What params do I need to supply to get the available amounts of money per horse (so if I had a SelectionID and MarketID - for a cut down version of just prices/sizes for that HORSE) - AND is there a way of knowing whether that if there is only £5 under a horse and I go for it I will get it rather than someone like Coral etc?

    Also is it the same as the site e.g if I want to place a BACK bet I look at the LAY side and to LAY I look at the BACK side or is it more logical and the other way round.

    E.G if I wanted to BACK bet on this horse and saw there was only £5.44 at a price of 46.00 for him I could place a £5 back bet safe in the knowledge it would get matched UNLESS CORAL or someone above me in the importance ladder took it instead,

    {"availableToBack":[{"price":46.0,"size":5.44},{"price":44.0,"size":2. 46},{"price":38.0,"size":9.01}],"availableToLay":[{"price":50.0,"size":3.56},{"price":55.0,"size":10 .5},{"price":60.0,"size":14.71}],"tradedVolume":[]}}]}],"id":1};

    I just want to make sure I can place the size of bets I want without having a MU (Matched/Unmatched) status until the full amount I requested is matched.

    Thanks

    Rob
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    I was under the impression that ALL clients were exactly the same and that matching was done strictly in time order.

    What is this "importance ladder" that you mention?

    Why would someone like Coral have preference on matching over anyone else?

    Comment

    • Nick JD
      Junior Member
      • Jan 2015
      • 47

      #3
      Originally posted by monkeymagix View Post
      Hi

      ...so that I don't have to cancel the bet straight after placing it if it wasn't fully matched...
      I too would love to find a way to cancel a matched back or lay! Preferably after the (less desirable) conclusion of an event...

      Comment

      • monkeymagix
        Junior Member
        • Jul 2010
        • 105

        #4
        Hi

        From what I have read if you are using the free API you are a "2nd class user" whereas big bettors e.g Bookies or Big Gamblers can pay to "jump ahead" off other people on the betting ladder to get their bets placed before you.

        I remember reading this before on the old API so unless it has changed on the new API I guess it remains the same. I suppose Betfair get WAY more money from CORAL/BetFred etc from their trading off liabilities than wee traders such as ourselves placing the odd bet. Millions per day v hundreds. You would need to check.

        As for cancelling a bet after placing it what I meant WAS if the full amount was not matched say £10 - only £2 was matched. I would then cancel the bet, so that the remaining £8 was cancelled leaving me with just £2. Then I can work my trade out from that £2 rather than leaving it in as a MU bet and hoping it will get fully matched before the race AND give me enough time to get the opposite side of the bet matched.

        Therefore do you know the answers to the questions

        a) the best JSON, C# format for requesting the back/lay AMOUNTS available per horse so I don't try and place a £100 bet on a horse with only £2 available to it.
        b) Also if I want to place a LAY bet of £20 do I look in the AvailableToLay section or AvailableToBack section - I know it sounds obvious I would use the AvailableToLay section but on the site you know that if the Pink LAY box only has £2 in it you cannot place a BACK bet of £10 as only £2 is there to be matched.
        c) Also is the order of the Price/Size random or 1st to 5th etc. If there were 3 LayBets Available with over the amount I wanted to place I should be okay to place the amount I want.

        Thanks

        Rob

        Comment

        • monkeymagix
          Junior Member
          • Jul 2010
          • 105

          #5
          Response

          Hi

          Just been told there is no longer any ladder jumping - whoever tod me that must have given me wrong details.

          Also to place a back bet you look at the availableToBack section as that contains the LAY bets and vice versa (like the site).

          I would like a way of returning the prices/sizes per horse and not just by market though.

          Is that possible?

          Thanks

          Rob

          Comment

          • betdynamics
            Junior Member
            • Sep 2010
            • 534

            #6
            Perhaps I am missing something with your question, but the availableToBack and availableToLay details already contain information about how much money is available.

            Also, you are able to set the rollupLimit in ExBestPricesOverrides so that the listMarketBook call returns only those prices that would support bet placement at the specified value. This is the equivalent of the Bet View slider that you at the bottom of the page when you are looking at a single market on the Betfair website.

            Comment

            Working...
            X