PlaceOrders Error -32601 "Method not found"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Brinium
    Junior Member
    • Jun 2016
    • 4

    #1

    PlaceOrders Error -32601 "Method not found"

    Issue:
    I always get error -32601 "Method not found" when ever I call placeOrders using my live appKey.
    I just can't work out whats wrong.
    The live appKey is Active (according to Accounts API demo tool).
    I'm setting the headers the same as I do for my other method calls.
    Happens with calls to both UK and AUS Exchange addresses

    Response:
    Code:
    {"jsonrpc":"2.0","error":{"code":-32601,"message":"DSC-0021"},"id":1}
    Request:
    Code:
    {
      "jsonrpc": "2.0",
      "method": "SportsAPING/v1.0/placeOrders",
      "params": {
        "marketId": "1.125181179",
        "instructions": [
          {
            "orderType": "LIMIT",
            "selectionId": 11271289,
            "handicap": 0.0,
            "side": "LAY",
            "limitOrder": {
              "size": 0.83,
              "price": 200.0,
              "persistenceType": "LAPSE"
            }
          },
          {
            "orderType": "LIMIT",
            "selectionId": 11271289,
            "handicap": 0.0,
            "side": "LAY",
            "limitOrder": {
              "size": 7.8,
              "price": 220.0,
              "persistenceType": "LAPSE"
            }
          }
        ],
        "customerRef": "575934534567f01203f3"
      },
      "id": 1
    }
    Any advice is appreciated
    Last edited by Brinium; 10-06-2016, 03:06 PM.
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    This is where to find the error codes in the documentation:
    http://docs.developer.betfair.com/do...on+Error+Codes

    The size of the first bet is set as 0.83. Minimum stakes apply. In the UK it's £2. If you're elsewhere, the documentation should tell you what applies there, or with the currency for the exchange.
    Last edited by jabe; 10-06-2016, 04:50 PM.

    Comment

    • Brinium
      Junior Member
      • Jun 2016
      • 4

      #3
      Thanks for replying Jabe.

      I didn't know the size limit applied to LAYs. I'll try it and see if it makes a difference. I thought that error would be returned as part of the response "PlaceInstructionReport" property in the "errorCode" field as "INVALID_BET_SIZE".

      Regarding the error codes

      "DSC-0021" = NoSuchOperation
      http://docs.developer.betfair.com/do...on+Error+Codes

      "-32601" = "Method not found"
      http://docs.developer.betfair.com/do...ing+Exceptions

      Both hint that maybe I'm calling the API wrong or my account is quietly prevented from access the placeOrders method.

      My Exchange request urls are
      UK : https://api.betfair.com/exchange/betting/json-rpc/v1
      AUS : https://api-au.betfair.com/exchange/betting/json-rpc/v1

      Comment

      • jabe
        Senior Member
        • Dec 2014
        • 705

        #4
        I agree with your assessments of the error message, but I've compared it to others and I can't see anything else wrong.

        Comment

        • Brinium
          Junior Member
          • Jun 2016
          • 4

          #5
          Thanks for taking the time to look into it Jabe.
          I have a support request placed and hopefully something will come of that.

          Comment

          • betdynamics
            Junior Member
            • Sep 2010
            • 534

            #6
            Originally posted by Brinium View Post
            I didn't know the size limit applied to LAYs
            The minimum stake doesn't apply to lays but there is a minimum lay liability (£10 in the UK). It looks like your bets would be ok from that perspective.

            Where are you based (i.e. where does Betfair believe your account to be based)? Some locations are restricted in terms of betting on certain events/sports.

            Comment

            • jabe
              Senior Member
              • Dec 2014
              • 705

              #7
              Originally posted by betdynamics View Post
              The minimum stake doesn't apply to lays but there is a minimum lay liability (£10 in the UK). It looks like your bets would be ok from that perspective.

              Where are you based (i.e. where does Betfair believe your account to be based)? Some locations are restricted in terms of betting on certain events/sports.
              I didn't know there was a £10 limit on lays. I checked the documentation and it mentioned £10, but it was for starting price bets. I guess we'll find out soon.

              Comment

              • Brinium
                Junior Member
                • Jun 2016
                • 4

                #8
                Thanks, saved me a future post
                I was wondering what the "Minimum BSP Liability" was for.
                http://docs.developer.betfair.com/do...ncy+Parameters

                My account is based in Australia so I think it should be OK.
                I experience the same issue on both the AUS and GB exchanges.

                Comment

                • betdynamics
                  Junior Member
                  • Sep 2010
                  • 534

                  #9
                  Originally posted by jabe View Post
                  I didn't know there was a £10 limit on lays. I checked the documentation and it mentioned £10, but it was for starting price bets. I guess we'll find out soon.
                  No - you are correct. My original post was hastily put together and I missed out the vital bit!

                  When placing a normal bet (i.e. a bet with a stake), then the minimum stake values apply (so £2 in the UK, $5 in AUS).

                  When placing a BSP lay bet (which can only be placed with a liability), then the minimum BSP liability comes into play (£10 in the UK; $25, I think, for AUS)

                  If you place a lay bet for a fixed stake, but mark it to be matched at BSP if unmatched before the off, then it will only be matched if the liability is greater than or equal to the minimum BSP liability.
                  Last edited by betdynamics; 12-06-2016, 12:12 PM.

                  Comment

                  Working...
                  X