GET Markets

Modified on Sat, 09 Sep 2023 at 08:54 PM

The following request will provide you with a list of supported markets by LSports:

Method - POST
URL - https://stm-api.lsports.eu/Markets/Get

Body Scheme

{
    "PackageId": YourPackageId,
    "UserName": "YourUserName",
    "Password": "YourPassword",
    "LocationsId":[122],
    "SportsId":[6046],
    "LeaguesId":[6],
    "IsSettleable":1,
    "MarketType" : 1
}

Parameter breakdown

ParameterDescriptionMandatory Field
UsernameUsername as it appears in the package
PasswordPassword as it appears the package
PackageIdPackageId as it provide by LSports
SportsIdSportsId as a filter opportunity
Type:List <int>
X
LocationsIdLocationsId as a filter opportunity
Type : List <int>
X
LeaguesIdLeaguesId as a filter opportunity
Type : List <int>
X
MarketsIdMarketsId as a filter opportunity
Type : List <int>
X
IsSettleableIsSettleable as a filter opportunity
Type : <bool>
*
The filter meaning is whether settlements is supported for this market and will be provided for this market by LSports.
X
MarketTypeFilter to get Markets per sport type (0 = All, 1 = Standard Sport Markets,2 = Outright Markets). empty field returns all leagues

Response Scheme

{
    "Header": {
        "HttpStatusCode": 200
    },
    "Body": {
      "Markets": [
            {
                "Id": 1,
                "Name": "1X2",
                "IsSettleable": false
            },
            {
                "Id": 2,
                "Name": "Under/Over",
                "IsSettleable": false
            }      ]
    }
}

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article