Cannot retrieve tradedVolume for a runner

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wmash
    Junior Member
    • Feb 2019
    • 12

    #1

    Cannot retrieve tradedVolume for a runner

    Hi, I have a real-time data app key but I am still not pulling through `tradedVolume` on a runner on either listMarketBook or listRunnerBook. This is my example request:

    Code:
    {
        "jsonrpc": "2.0",
        "method": "SportsAPING/v1.0/listMarketBook",
        "params": {
            "marketIds": ["1.237873498"],
            "priceProjection": {
                "priceData": ["EX_BEST_OFFERS"],
                "exBestOffersOverrides": {
                    "bestPricesDepth": 3
                }
            },
        },
        "id": 1
    }

    An example response in `result[0].runner` array is:

    Code:
    {
        "selectionId": 25422,
        "handicap": 0.0,
        "status": "ACTIVE",
        "lastPriceTraded": 1.67,
        "totalMatched": 37363.82,
        "ex": {
            "availableToBack": [
                {
                    "price": 1.67,
                    "size": 50.57
                },
                {
                    "price": 1.66,
                    "size": 396.44
                },
                {
                    "price": 1.65,
                    "size": 841.19
                }
            ],
            "availableToLay": [
                {
                    "price": 1.68,
                    "size": 1214.37
                },
                {
                    "price": 1.69,
                    "size": 1106.81
                },
                {
                    "price": 1.7,
                    "size": 1139.71
                }
            ],
            "tradedVolume": []
        }
    }
    If I go to the website however & click on this runner I can see all the traded volume on it so why am I not getting it back in this API request? I have also tried to add in `virtualise` to see if that was it but I still don't get the data. I also have placed a small matched order on this runner to see if that was the reason but I still didn't get it back.​ ​
    Last edited by wmash; 17-01-2025, 10:27 PM.
  • Sansa
    Member
    • Jan 2019
    • 35

    #2
    Try adding the parameter: PriceData.EX_TRADED.

    Sansa

    Comment

    • wmash
      Junior Member
      • Feb 2019
      • 12

      #3
      Ah, thank you so much! I should have read the documentation more thoroughly

      Will

      Comment

      Working...
      X