I'm just starting out with writing some API-NG code, but when I use listMarketCatalogue I'm getting "DSC-0008" response. Please see below for debug which shows request and responses. Any ideas what is wrong in the request?
Code:
[API-NG] LOGGING IN...
[API-NG] Headers: {User-Agent=[Mozilla/5.0], X-Application=[xxx], Accept=[application/json]}
[API-NG] Sending 'POST' request to URL : https://identitysso.betfair.com/api/login
[API-NG] Post parameters : username=xxx&password=xxx
[API-NG] Response Code : 200
[API-NG] Login status : SUCCESS
[API-NG] Token: xxx
[API-NG] *** listMarketCatalogue ***
[API-NG] Headers: {X-Authentication=[xxx], User-Agent=[Mozilla/5.0], X-Application=[xxx], Accept=[application/json]}
[API-NG] Sending 'POST' request to URL : https://api.betfair.com/exchange/betting/json-rpc/v1
[API-NG] Post parameters : {"jsonRpc":"2.0","method":"SportsAPING/v1.0/listMarketCatalogue","params":{"filter":{},"maxResults":200,"marketProjection":["RUNNER_DESCRIPTION","EVENT_TYPE","EVENT","MARKET_START_TIME","RUNNER_METADATA","MARKET_DESCRIPTION"]},"id":1}
[B][API-NG] Response Code : 400
[API-NG] Response : {"jsonrpc":"2.0","error":{"code":-32700,"message":"DSC-0008"}}[/B]
[API-NG] LOGGING OUT
[API-NG] Headers: {X-Authentication=[xxx], User-Agent=[Mozilla/5.0], X-Application=[xxx], Accept=[application/json]}
[API-NG] Sending 'POST' request to URL : https://identitysso.betfair.com/api/logout
[API-NG] Post parameters : null
[API-NG] Response Code : 200
[API-NG] Response: {"token":"xxx","product":"xxx","status":"SUCCESS","error":""}


Comment