Bet only when return is execution_complete

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Amigous
    Junior Member
    • Mar 2021
    • 2

    #1

    Bet only when return is execution_complete

    Hi!

    Is there any way to register the bet so that it is made only if the return is execution_complete?

    Not to register bets when the return is "executable" or other returns.

    Request:
    {"jsonrpc": "2.0","method": "SportsAPING/v1.0/placeOrders", "params": {"marketId": "1.109850906","instructions": [{"selectionId": "237486","handicap": "0","side": "BACK", "orderType": "LIMIT", "limitOrder": {"size": "2","price": "3", "persistenceType": "LAPSE"}}]},"id": 1}

    Thanks a lot!
    Last edited by Amigous; 19-04-2021, 03:26 AM.
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    I'm not certain I understand what you want to do, but look in the documentation for placeOrders and see if the FILL_OR_KILL option does what you require.

    FILL_OR_KILL means that if your entire stake cannot be matched immediately (at required odds or better) then the whole bet is rejected.
    Last edited by jabe; 24-04-2021, 06:01 PM.

    Comment

    • Amigous
      Junior Member
      • Mar 2021
      • 2

      #3
      That was it!

      Thank you very much

      Comment

      Working...
      X