Skip to content

Retrieve a trifecta line odd

  1. Get the trifecta product information
  2. Send a request to get a trifecta line odd against the product
Authorization header

Remember to include the Authorization header in the request.

Get product information

query GetProducts {
  products(betTypes: [TRIFECTA]) {
    nodes {
      id
      name
      type {
        ... on BettingProduct {
          betType {
            id,
            code
          },
          selling {
            status
          },
          legs {
            nodes {
              id
              selections {
                nodes {
                id
                name
                }
              }
            }
          }
        }
      }
    }
  }
}
Response
{
  "data": {
    "products": {
      "nodes": [
        {
          "id": "315b096e-3b1c-4ab8-81bd-a4a7488d2abd",
          "name": "BATH 13:40 - Trifecta",
          "betType": {
            "id": "1",
            "code": "TRIFECTA"
          },
          "selling": {
            "status": "OPEN"
          },
          "legs": {
            "nodes": [
              {
                "id": "d5604d8e-c6e4-49e1-8c7b-3abea28fbaf8",
                "selections": {
                  "nodes": [
                    {
                      "id": "e8999586-16a6-4a38-9aca-250fa532f267",
                      "name": "Ala Kaifi"
                    },
                    {
                      "id": "4143cdd6-a3b6-4409-a973-ad0984ae0659",
                      "name": "Al Tarfa"
                    },
                    {
                      "id": "b082724c-9b72-49f7-a7d0-2e9f433fd07d",
                      "name": "Ajyad"
                    },
                    {
                      "id": "1f20caa3-1059-4105-9bb8-e87ca5641f34",
                      "name": "Miss Dolly Rocker"
                    },
                    {
                      "id": "12b83c86-ea49-4b42-9b21-2a55429c92e1",
                      "name": "The Famous Mrs B"
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  }
}

Get a trifecta line odd

Request: Get a trifecta line odd
query PositionLinesQuery {
  lines(
    query: { productId: "315b096e-3b1c-4ab8-81bd-a4a7488d2abd",
      selections: [
        {
          finishingPosition: 1,
          selectionId: "e8999586-16a6-4a38-9aca-250fa532f267"
        },
        {
          finishingPosition: 2,
          selectionId: "4143cdd6-a3b6-4409-a973-ad0984ae0659"
        },
        {
          finishingPosition: 3,
          selectionId: "b082724c-9b72-49f7-a7d0-2e9f433fd07d"
        },
      ]
    }
  ) {
    id
    name
    type {
      ... on BettingProduct {
        betType {
          code
        }
        selling {
          status
        }
        lineHistory
        lines {
          nodes {
            id
            legs {
              legId
              lineSelections {
                selectionId
                finishingPosition
              }
            }
            odds {
              name
              decimal
              status
              type
            }
          }
        }
      }
    }
  }
}
  {
    "data": {
      "lines": {
        "id": "315b096e-3b1c-4ab8-81bd-a4a7488d2abd",
        "name": "BATH RACE 1 - TRIFECTA",
        "betType": {
          "code": "TRIFECTA"
        },
        "selling": {
          "status": "OPEN"
        },
        "lineHistory": null,
        "lines": {
          "nodes": [
            {
              "id": "HORSERACING-SALISBURY-GB-2024-06-26-1245",
              "legs": [
                {
                  "legId": "315b096e-3b1c-4ab8-81bd-a4a7488d2abd-1-2-3",
                  "lineSelections": [
                    {
                      "selectionId": "e8999586-16a6-4a38-9aca-250fa532f267",
                      "finishingPosition": "1"
                    },
                    {
                      "selectionId": "4143cdd6-a3b6-4409-a973-ad0984ae0659",
                      "finishingPosition": "2"
                    },
                    {
                      "selectionId": "b082724c-9b72-49f7-a7d0-2e9f433fd07d",
                      "finishingPosition": "3"
                    }
                  ]
                }
              ],
              "odds": [
                {
                  "name": "Base",
                  "decimal": 84.3,
                  "status": "FINAL",
                  "type": "POOL"
                }
              ]
            }
          ]
        }
      }
    }
  }