Placing bet unexpected error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pawlo16
    Junior Member
    • Feb 2014
    • 3

    #1

    Placing bet unexpected error

    I'm trying to place a simple bet on the actual market with a valid option.
    Code:
    {
    	"jsonrpc":"2.0",
    	"method":"SportsAPING/v1.0/placeOrders",
    	"params":{
    		"customerRef":"",
    		"instructions":[{
    				"limitOrder":{
    					"persistenceType":"LAPSE",
    					"price":1000,
    					"size":4
    				},
    				"orderType":"LIMIT",
    				"selectionId":2909657,
    				"side":"BACK"
    			}
    		],
    		"marketId":"115097009"
    	}
    }
    But in return I get the following error.
    Code:
    {
    	"error":{
    		"code":-32099,
    		"data":{
    			"APINGException":{
    				"errorCode":"UNEXPECTED_ERROR",
    				"errorDetails":"",
    				"requestUUID":"prdang-288287-08111209-00079971d0"
    			},
    			"exceptionname":"APINGException"
    		},
    		"message":"ANGX-0006"
    	},
    	"jsonrpc":"2.0"
    }
    What am I doing wrong? Thanks in advance for your response
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    At a guess I would say you either have to supply a customer reference (not a blank string), or not supply one at all.

    Comment

    • pawlo16
      Junior Member
      • Feb 2014
      • 3

      #3
      O, I tried to call this service without "customer reference" and with not empty value of "customer reference". As a result, i have got the same answer, unfortunately.

      Comment

      • bnl
        Junior Member
        • Nov 2012
        • 108

        #4
        You have provided a bad marketid. it should start with "1."
        if uk bettting and "2." if australian.
        /Björn

        Comment

        • pawlo16
          Junior Member
          • Feb 2014
          • 3

          #5
          Thank you very much, it really works. Probably the documentation says about a form specifying identifiers market, but I did not meet. But at least we could expect а more informative exception rather than UNEXPECTED_ERROR
          Last edited by pawlo16; 23-08-2014, 02:57 PM.

          Comment

          Working...
          X