HI guys I am getting an incomplete response from a web server , this is the function I am using and it yeilds to 5 parameters from the server , there should be 11)
##########################
#Getting Runners and Prices
##########################
Function get-marketbook {
$method = “SportsAPING/v1.0/listMarketBook”
$postdata = [ordered]@{“jsonrpc” = “2.0”;
“method” = $method
“params” = @{“marketIds” = @($marketID);“priceProjection” = @{“PriceData” = “EX_All_OFFERS”}}
}
$postdata = $postdata | ConvertTo-Json -depth 5
$getmarketbook = invoke-webrequest -uri https://api.betfair.com/exchange/betting/json-rpc/v1 -Method Post -Headers @{“X-Application”=“”;“X-Authentication”=$sessiontoken} -ContentType “application/ json” -body $postdata
$getmarketbook | convertfrom-json
}
the response I get from the server is :-
slectionId
handicap
status
adjustmentfactor
lastpricetraded
totalMatched
but the complete response should have :-
slectionId
handicap
status
adjustmentfactor
lastpricetraded
totalMatched
removeDate
sp
ex
orders
matches