Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 28 Next »

Resource information

URLhttps://api.softnetsport.com/v2/markets
XSDhttps://api.softnetsport.com/assets/API/docs/xsd/markets.index.xsd
MethodGET

Description

Returns markets used in BetPartner product
Cache60 seconds
Authorization requiredNo

Method parameters

NameTypeDescription
There are no method parameters in this resource 

Query parameters

NameTypeDescription
tokenxsd:stringREQUIRED. More information concerning authorization in API introduction section
pagexsd:intDetermines offset of paginated data. Default value is 1 which means first page
limitxsd:int

Determines maximum number of returned records on page. Used in paginated data. Default value is 500

Possible values: 5, 10, 25, 50, 100, 250, 500

market_type_idxsd:intDetermines the market type identifier
scope_idxsd:intDetermines the scope of the market 
subtypexsd:string

Determines the subtype of the market. Possible values:

  • 2-way
  • 3-way
  • n-way
sport_idxsd:intDetermines the sport identifier for the market 
is_livexsd:string
is_prematchxsd:string
timestampxsd:unix_timestampSelection date, format UNIX_TIMESTAMP. Only changes that occurred or were updated after this timestamp will be returned

Method calling examples

LinkDescription
https://api.softnetsport.com/v2/markets.xmlReturns a list of all markets in XML format
https://api.softnetsport.com/v2/marketsReturns a list of all markets in JSON format

Lista marketów dla sportu

Lista marketu dla scope, typu

Ostatnio zmienione markety


Output elements

.markets
..market
idUnique identifier of the market
sport_idIdentifier for the sport
nameName of the market e.g. Fulltime - 1x2
alternative name
market_type_idIdentifier type for the market e.g. Totals, Asian, Corners 
scope_idUnique identifier for the scope 
has_replacer

Possible values:

  • yes - the market and their default outcomes of the market contains replacer
  • no - the market and their default outcomes of the market not contains replacer
is_live

Possible values:

  • yes - the market could be offer in live betting
  • no - the market couldn't be offer in live betting
is_prematch

Possible values:

  • yes - the market could be offer in prematch betting
  • no - the market couldn't be offer in prematch betting
subtype

Possible values:

  • 2-way:  the market includes 2 possible outcomes
  • 3-way: the market includes 3 possible outcomes
  • n-way: the market includes 1 or at least 4 possible outcomes
status

Possible values:

  • active
  • inactive
descriptionDescription of the market
display_orderThe parameter used to sort markets
utInformation about the date and time of when the record was last updated. Format UNIX_TIMESTAMP
...default_outcomes


idIdentifier of the outcome
nameName of the outcome e.g. Home, Under
patternPatter of the outcome name e.g. Under #param#
display_orderThe parameter used to sort outcomes in the market

Samples XML/JSON

<markets>
	<market id="1" sport_id="" name="" alternative_name="">
		<default_outcomes id="12" name="" >

</markets>
  • No labels