Hi
Over the last few days I have suddenly stopped being able to obtain data from the API such as AccountFunds (liability / balance) and market prices.
This was working a few days ago and I haven't done anything. I can still login to the website AND login to the API with both JSON objects (using C# BOT).
Here is an example of one of my requests to get market data that just returns a null response.
IN SaveGlobalMarkets;
EndPoint = https://api.betfair.com/exchange/betting/json-rpc/v1/;
Calling: SportsAPING/v1.0/listMarketCatalogue With args: {"filter":{"eventTypeIds":["7"],"turnInPlayEnabled":true,"marketCountries":["GB"],"marketTypeCodes":["WIN","PLACE"],"marketStartTime":{"from":"2015-07-28T15:15:47.0219949+01:00","to":"2015-07-29T00:00:00+01:00"}},"marketProjection":["COMPETITION","RUNNER_DESCRIPTION","EVENT","EVENT_ TYPE","MARKET_START_TIME","RUNNER_METADATA"],"sort":"FIRST_TO_START","maxResults":"200","local e":null};
try and get response;
Got Response: null;
EXCEPTION Error occurred at: 28/07/2015 15:15:47; An error occurred running RunPriceChecks - Country: GB; Object reference not set to an instance of an object. Error Info: at Api_ng_sample_code.JsonRpcClient.Invoke[T](String method, IDictionary`2 args) in ...\BetfairBOT2\Api-ng-sample-code\JsonRpcClient.cs:line 251
at Api_ng_sample_code.JsonRpcClient.listMarketCatalog ue(MarketFilter marketFilter, ISet`1 marketProjections, MarketSort marketSort, String maxResult, String locale) in ...\BetfairBOT2\Api-ng-sample-code\JsonRpcClient.cs:line 121
RunPriceChecks RETURNS False;
The error is on this line in the JSON RPC class
I have contacted BDP but heard nothing back so far.
I don't know if it is something I have done or the API or something else.
Thanks
Rob
Over the last few days I have suddenly stopped being able to obtain data from the API such as AccountFunds (liability / balance) and market prices.
This was working a few days ago and I haven't done anything. I can still login to the website AND login to the API with both JSON objects (using C# BOT).
Here is an example of one of my requests to get market data that just returns a null response.
IN SaveGlobalMarkets;
EndPoint = https://api.betfair.com/exchange/betting/json-rpc/v1/;
Calling: SportsAPING/v1.0/listMarketCatalogue With args: {"filter":{"eventTypeIds":["7"],"turnInPlayEnabled":true,"marketCountries":["GB"],"marketTypeCodes":["WIN","PLACE"],"marketStartTime":{"from":"2015-07-28T15:15:47.0219949+01:00","to":"2015-07-29T00:00:00+01:00"}},"marketProjection":["COMPETITION","RUNNER_DESCRIPTION","EVENT","EVENT_ TYPE","MARKET_START_TIME","RUNNER_METADATA"],"sort":"FIRST_TO_START","maxResults":"200","local e":null};
try and get response;
Got Response: null;
EXCEPTION Error occurred at: 28/07/2015 15:15:47; An error occurred running RunPriceChecks - Country: GB; Object reference not set to an instance of an object. Error Info: at Api_ng_sample_code.JsonRpcClient.Invoke[T](String method, IDictionary`2 args) in ...\BetfairBOT2\Api-ng-sample-code\JsonRpcClient.cs:line 251
at Api_ng_sample_code.JsonRpcClient.listMarketCatalog ue(MarketFilter marketFilter, ISet`1 marketProjections, MarketSort marketSort, String maxResult, String locale) in ...\BetfairBOT2\Api-ng-sample-code\JsonRpcClient.cs:line 121
RunPriceChecks RETURNS False;
The error is on this line in the JSON RPC class
Code:
this.HelperLib.LogMsg("Got Response: " + JsonConvert.Serialize<JsonResponse<T>>(jsonResponse));
if (jsonResponse.HasError)
{
this.HelperLib.LogMsg("Got an Error = " + jsonResponse.Error.ToString());
throw ReconstituteException(jsonResponse.Error);
}
else
{
return jsonResponse.Result;
}
I don't know if it is something I have done or the API or something else.
Thanks
Rob


Comment