Hi guys,
Trying to get the current football odds via the API.
(Home win, Away win & Draw for both BACK & LAY).
When I run the below code it returns 3 values.
{"jsonrpc": "2.0",
"method": "SportsAPING/v1.0/listMarketBook",
"params": {"marketIds": ["1.172593235"],
"priceProjection": {"priceData": ["SP_AVAILABLE"],
"side": ["BACK"],
"MarketBettingType": "Line",
"virtualise": "true" }},
"id": 1}
LastPriceTraded: 12.0
LastPriceTraded: 3.4
LastPriceTraded: 5.59
However, when I change [BACK] to [LAY] it still returns the exact same values???
i.e. The server response string is the exact same.
I suspect that I have made some sort of typo, but for the life of me I can't seen where.
My limited "understanding" of the API is that the above 3 values represent the BACK home, BACK away, BACK draw.
If I changed the [BACK] to [LAY] then I would get the LAY odds instead.
Any guru out there who can advise where I have gone wrong?
Many thanks,
Pete
Trying to get the current football odds via the API.
(Home win, Away win & Draw for both BACK & LAY).
When I run the below code it returns 3 values.
{"jsonrpc": "2.0",
"method": "SportsAPING/v1.0/listMarketBook",
"params": {"marketIds": ["1.172593235"],
"priceProjection": {"priceData": ["SP_AVAILABLE"],
"side": ["BACK"],
"MarketBettingType": "Line",
"virtualise": "true" }},
"id": 1}
LastPriceTraded: 12.0
LastPriceTraded: 3.4
LastPriceTraded: 5.59
However, when I change [BACK] to [LAY] it still returns the exact same values???
i.e. The server response string is the exact same.
I suspect that I have made some sort of typo, but for the life of me I can't seen where.
My limited "understanding" of the API is that the above 3 values represent the BACK home, BACK away, BACK draw.
If I changed the [BACK] to [LAY] then I would get the LAY odds instead.
Any guru out there who can advise where I have gone wrong?
Many thanks,
Pete


Comment