placeOrders issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Grant75
    Junior Member
    • Jan 2015
    • 1

    #1

    placeOrders issue

    Hi, would anyone know why this placeOrders call doesn't work?

    [{"jsonrpc":"2.0","method":"SportsAPING/v1.0/placeOrders","params":{"marketId":"1.116997298","i nstructions":[{"selectionId":"6318098","handicap":"0","side":"BA CK","orderType":"LIMIT","limitOrder":{"size":"2"," price":"2","persistenceType":"LAPSE"}}]},"id":1}]

    Here is what is returned.

    [{"jsonrpc":"2.0","error":{"code":-32099,"message":"ANGX-0002","data":{"exceptionname":"APINGException","AP INGException":{"errorDetails":"market id passed is invalid","errorCode":"INVALID_INPUT_DATA","request UUID":"prdang015-01082306-00023577df"}}},"id":1}]
    0005.467> error with post https://api-au.betfair.com/exchange/betting/json-rpc/v1
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    Looks like you are trying to place a bet on market that exists on the "UK" servers but sending the request to the AUS API endpoint.

    Markets that start with "1." are "UK" markets and you need to send the request to the UK endpoint.

    Markets that start with "2." are "AUS" markets and you need to send the request to the AUS endpoint.

    Comment

    Working...
    X