Error when placing bet: DSC-0018 / -32602

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rickdosgreens
    Junior Member
    • Feb 2023
    • 1

    #1

    Error when placing bet: DSC-0018 / -32602

    I've been using the example at and the API documentation to try and place an order, but get error code "-32602".

    I'm pretty sure I put in all the required parameters in my request:​

    Error : SportsAPING/v1.0/placeOrders
    Params: {'marketId': '1.210561438', 'instructions': [{'selection_id': '30246', 'side': 'Back', 'order_type': 'LIMIT', 'limit_order': {'size': 10.0, 'price': 4.0, 'persistence_type': 'PERSIST'}}]}
    Exception: None
    Error: {'code': -32602, 'message': 'DSC-0018'}
    Full Response: {'jsonrpc': '2.0', 'error': {'code': -32602, 'message': 'DSC-0018'}, 'id': 1}​
  • jptrader
    Junior Member
    • Nov 2009
    • 82

    #2
    Make sure that all spelling and upper/lower case is correct. E.g selection_id should be selectionId and Back should be BACK.

    Comment

    • davidmarco
      Junior Member
      • Aug 2023
      • 2

      #3
      Originally posted by rickdosgreens View Post
      I've been using the example at and the API documentation to try and place an order, but get error code "-32602".

      I'm pretty sure I put in all the required parameters in my request:​ dino game

      Error : SportsAPING/v1.0/placeOrders
      Params: {'marketId': '1.210561438', 'instructions': [{'selection_id': '30246', 'side': 'Back', 'order_type': 'LIMIT', 'limit_order': {'size': 10.0, 'price': 4.0, 'persistence_type': 'PERSIST'}}]}
      Exception: None
      Error: {'code': -32602, 'message': 'DSC-0018'}
      Full Response: {'jsonrpc': '2.0', 'error': {'code': -32602, 'message': 'DSC-0018'}, 'id': 1}​
      The error code DSC-0018 / -32602 indicates an issue with the input parameters passed when trying to place a bet via the Betfair API.

      Comment

      Working...
      X