Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This is an example showing a request for the best prices (back and lay) and trading volume including virtual bets.

 

Code Block
titlelistMarketBook Request
[{
	"jsonrpc": "2.0",
	"method": "SportsAPING/v1.0/listMarketBook",
	"params": {
		"marketIds": ["1.127771425"],
		"priceProjection": {
			"priceData": ["EX_BEST_OFFERS", "EX_TRADED"],
			"virtualise": "true"
		}
	},
	"id": 1
}]
 
 
Code Block
titlelistMarketBook Response
collapsetrue

[{
	"jsonrpc": "2.0",
	"result": [{
		"marketId": "1.127771425",
		"isMarketDataDelayed": false,
		"status": "OPEN",
		"betDelay": 0,
		"bspReconciled": false,
		"complete": true,
		"inplay": false,
		"numberOfWinners": 1,
		"numberOfRunners": 3,
		"numberOfActiveRunners": 3,
		"lastMatchTime": "2016-10-28T12:25:30.235Z",
		"totalMatched": 188959.22,
		"totalAvailable": 172932.96,
		"crossMatching": true,
		"runnersVoidable": false,
		"version": 1469071410,
		"runners": [{
			"selectionId": 44790,
			"handicap": 0.0,
			"status": "ACTIVE",
			"lastPriceTraded": 7.0,
			"totalMatched": 12835.46,
			"ex": {
				"availableToBack": [{
					"price": 7.0,
					"size": 75.53
				}, {
					"price": 6.8,
					"size": 538.6
				}, {
					"price": 6.6,
					"size": 612.2
				}],
				"availableToLay": [{
					"price": 7.2,
					"size": 152.12
				}, {
					"price": 7.4,
					"size": 1446.28
				}, {
					"price": 7.6,
					"size": 1250.26
				}],
				"tradedVolume": [{
					"price": 6.4,
					"size": 3.0
				}, {
					"price": 6.6,
					"size": 3.59
				}, {
					"price": 6.8,
					"size": 1.42
				}, {
					"price": 7.0,
					"size": 1736.55
				}, {
					"price": 7.2,
					"size": 1601.31
				}, {
					"price": 7.4,
					"size": 3580.1
				}, {
					"price": 7.6,
					"size": 4236.59
				}, {
					"price": 7.8,
					"size": 1367.18
				}, {
					"price": 8.0,
					"size": 305.29
				}, {
					"price": 8.2,
					"size": 0.39
				}]
			}
		}, {
			"selectionId": 489720,
			"handicap": 0.0,
			"status": "ACTIVE",
			"lastPriceTraded": 1.63,
			"totalMatched": 163020.94,
			"ex": {
				"availableToBack": [{
					"price": 1.62,
					"size": 4921.06
				}, {
					"price": 1.61,
					"size": 3230.34
				}, {
					"price": 1.6,
					"size": 2237.71
				}],
				"availableToLay": [{
					"price": 1.63,
					"size": 1001.76
				}, {
					"price": 1.64,
					"size": 6737.59
				}, {
					"price": 1.65,
					"size": 1701.27
				}],
				"tradedVolume": [{
					"price": 1.53,
					"size": 31.38
				}, {
					"price": 1.54,
					"size": 3.77
				}, {
					"price": 1.57,
					"size": 3582.76
				}, {
					"price": 1.58,
					"size": 12037.21
				}, {
					"price": 1.59,
					"size": 16530.57
				}, {
					"price": 1.6,
					"size": 54607.84
				}, {
					"price": 1.61,
					"size": 36015.53
				}, {
					"price": 1.62,
					"size": 21108.23
				}, {
					"price": 1.63,
					"size": 17575.94
				}, {
					"price": 1.64,
					"size": 1527.67
				}]
			}
		}, {
			"selectionId": 58805,
			"handicap": 0.0,
			"status": "ACTIVE",
			"lastPriceTraded": 4.2,
			"totalMatched": 13102.81,
			"ex": {
				"availableToBack": [{
					"price": 4.1,
					"size": 3243.85
				}, {
					"price": 4.0,
					"size": 1158.17
				}, {
					"price": 3.95,
					"size": 254.04
				}],
				"availableToLay": [{
					"price": 4.2,
					"size": 1701.15
				}, {
					"price": 4.3,
					"size": 3072.55
				}, {
					"price": 4.4,
					"size": 2365.76
				}],
				"tradedVolume": [{
					"price": 4.0,
					"size": 457.79
				}, {
					"price": 4.1,
					"size": 4434.67
				}, {
					"price": 4.2,
					"size": 7845.01
				}, {
					"price": 4.3,
					"size": 354.7
				}, {
					"price": 4.4,
					"size": 6.6
				}, {
					"price": 4.9,
					"size": 4.0
				}]
			}
		}]
	}],
	"id": 1
}]

...