Obtain horse name from current bets

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tonyC
    Junior Member
    • Aug 2019
    • 9

    #1

    Obtain horse name from current bets

    After placing a bet, and then listing current orders, I have the following result:

    {'jsonrpc': '2.0', 'result': {'currentOrders': [{'betId': '325868935393', 'marketId': '1.220065811', 'selectionId': 55746562, 'handicap': 0.0, 'priceSize': {'price': 1.01, 'size': 2.0}, 'bspLiability': 0.0, 'side': 'LAY', 'status': 'EXECUTABLE', 'persistenceType': 'LAPSE', 'orderType': 'LIMIT', 'placedDate': '2023-10-23T22:08:17.000Z', 'averagePriceMatched': 0.0, 'sizeMatched': 0.0, 'sizeRemaining': 2.0, 'sizeLapsed': 0.0, 'sizeCancelled': 0.0, 'sizeVoided': 0.0, 'regulatorCode': 'MALTA LOTTERIES AND GAMBLING AUTHORITY'}], 'moreAvailable': False}, 'id': 1}

    Could someone please tell me the API call to make to get the horse name from a marketId and selectionId?
  • tonyC
    Junior Member
    • Aug 2019
    • 9

    #2
    Scratch that, I found it in listMarketBook

    Comment

    Working...
    X