===== Logging in to Betfair (interactive) ===== Login OK, 0.382 secs { success: true, sessionKey: 'uywgqbcozikvoiRd3x32YCq07ZSWLdlDoyzXl2UBkog=', duration: 382, responseBody: { token: 'uywgqbcozikvoiRd3x32YCq07ZSWLdlDoyzXl2UBkog=', product: 'BetfairAPI', status: 'SUCCESS', error: '' } } ===== calling listMarketCatalogue... ===== listMarketCatalogue err=null duration=0.303 There are 45 markets ===== select the market... ===== Selected Market marketId="1.125208910", name="Kukushkin v E Gomez" Enable emulator for marketId="1.125208910" ===== Invoke listMarketBook... ===== listMarketBook err=null duration=0.077 Request:{ "jsonrpc": "2.0", "id": 2, "method": "SportsAPING/v1.0/listMarketBook", "params": { "marketIds": [ "1.125208910" ], "matchProjection": "NO_ROLLUP", "priceProjection": { "priceData": [ "EX_BEST_OFFERS", "EX_TRADED" ] }, "orderProjection": "ALL" } } Response:{ "jsonrpc": "2.0", "result": [ { "marketId": "1.125208910", "isMarketDataDelayed": false, "status": "OPEN", "betDelay": 0, "bspReconciled": false, "complete": true, "inplay": false, "numberOfWinners": 1, "numberOfRunners": 2, "numberOfActiveRunners": 2, "totalMatched": 0, "totalAvailable": 392.46, "crossMatching": true, "runnersVoidable": false, "version": 1337242589, "runners": [ { "selectionId": 2609424, "handicap": 0, "status": "ACTIVE", "totalMatched": 0, "ex": { "availableToBack": [ { "price": 1.08, "size": 10 }, { "price": 1.07, "size": 7 }, { "price": 1.06, "size": 7 } ], "availableToLay": [], "tradedVolume": [] }, "orders": [] }, { "selectionId": 4994250, "handicap": 0, "status": "ACTIVE", "totalMatched": 0, "ex": { "availableToBack": [ { "price": 1.08, "size": 10 }, { "price": 1.07, "size": 7 }, { "price": 1.06, "size": 7 } ], "availableToLay": [], "tradedVolume": [] }, "orders": [] } ] } ], "id": 2 } ===== Invoke placeOrders... ===== placeOrders err=null duration=0 Request:{ "jsonrpc": "2.0", "id": 3, "method": "SportsAPING/v1.0/placeOrders", "params": { "marketId": "1.125208910", "instructions": [ { "orderType": "LIMIT", "selectionId": 2609424, "side": "LAY", "limitOrder": { "price": 1.01, "size": 5, "persistenceType": "LAPSE" } }, { "orderType": "LIMIT", "selectionId": 2609424, "side": "BACK", "limitOrder": { "price": 3, "size": 5, "persistenceType": "LAPSE" } } ], "customerRef": "2016-06-10T13:04:23.459Z" } } Response:{ "error": null, "result": { "customerRef": "2016-06-10T13:04:23.459Z", "status": "SUCCESS", "marketId": "1.125208910", "id": 2, "instructionReports": [ { "status": "SUCCESS", "instruction": { "selectionId": 2609424, "limitOrder": { "price": 1.01, "size": 5, "persistenceType": "LAPSE" }, "orderType": "LIMIT", "side": "LAY" }, "betId": 10000000000, "placedDate": "2016-06-10T13:04:23.533Z", "averagePriceMatched": 0, "sizeMatched": 0, "isEmulatorBet": true }, { "status": "SUCCESS", "instruction": { "selectionId": 2609424, "limitOrder": { "price": 3, "size": 5, "persistenceType": "LAPSE" }, "orderType": "LIMIT", "side": "BACK" }, "betId": 10000000001, "placedDate": "2016-06-10T13:04:23.533Z", "averagePriceMatched": 0, "sizeMatched": 0, "isEmulatorBet": true } ] } } ===== Invoke listMarketBook... ===== _matchBets betId= 10000000000 LAY:2609424 5.00@1.01 _matchBets betId= 10000000001 BACK:2609424 5.00@3 listMarketBook err=null duration=0.085 Request:{ "jsonrpc": "2.0", "id": 4, "method": "SportsAPING/v1.0/listMarketBook", "params": { "marketIds": [ "1.125208910" ], "matchProjection": "NO_ROLLUP", "priceProjection": { "priceData": [ "EX_BEST_OFFERS", "EX_TRADED" ] }, "orderProjection": "ALL" } } Response:{ "jsonrpc": "2.0", "result": [ { "marketId": "1.125208910", "isMarketDataDelayed": false, "status": "OPEN", "betDelay": 0, "bspReconciled": false, "complete": true, "inplay": false, "numberOfWinners": 1, "numberOfRunners": 2, "numberOfActiveRunners": 2, "totalMatched": 0, "totalAvailable": 392.46, "crossMatching": true, "runnersVoidable": false, "version": 1337242589, "runners": [ { "selectionId": 2609424, "handicap": 0, "status": "ACTIVE", "totalMatched": 0, "ex": { "availableToBack": [ { "price": 1.08, "size": 10 }, { "price": 1.07, "size": 7 }, { "price": 1.06, "size": 7 } ], "availableToLay": [], "tradedVolume": [] }, "orders": [ { "betId": 10000000000, "orderType": "LIMIT", "status": "EXECUTABLE", "persistenceType": "LAPSE", "side": "LAY", "price": 1.01, "size": 5, "bspLiability": 0, "placedDate": "2016-06-10T13:04:23.533Z", "avgPriceMatched": 0, "sizeMatched": 0, "sizeRemaining": 5, "sizeLapsed": 0, "sizeCancelled": 0, "sizeVoided": 0, "isEmulatorBet": true }, { "betId": 10000000001, "orderType": "LIMIT", "status": "EXECUTABLE", "persistenceType": "LAPSE", "side": "BACK", "price": 3, "size": 5, "bspLiability": 0, "placedDate": "2016-06-10T13:04:23.533Z", "avgPriceMatched": 0, "sizeMatched": 0, "sizeRemaining": 5, "sizeLapsed": 0, "sizeCancelled": 0, "sizeVoided": 0, "isEmulatorBet": true } ] }, { "selectionId": 4994250, "handicap": 0, "status": "ACTIVE", "totalMatched": 0, "ex": { "availableToBack": [ { "price": 1.08, "size": 10 }, { "price": 1.07, "size": 7 }, { "price": 1.06, "size": 7 } ], "availableToLay": [], "tradedVolume": [] }, "orders": [] } ] } ], "id": 4 } ===== Invoke cancelOrders... (PARTIAL CANCEL) ===== cancelOrders err=null duration=0 Request:{ "jsonrpc": "2.0", "id": 5, "method": "SportsAPING/v1.0/cancelOrders", "params": { "marketId": "1.125208910", "instructions": [ { "betId": 10000000000, "sizeReduction": 4.5 }, { "betId": 10000000001, "sizeReduction": 4.5 } ], "customerRef": "2016-06-10T13:04:23.628Z" } } Response:{ "error": null, "result": { "customerRef": "2016-06-10T13:04:23.628Z", "status": "SUCCESS", "marketId": "1.125208910", "instructionReports": [ { "status": "SUCCESS", "instruction": { "betId": 10000000000, "sizeReduction": 4.5 }, "sizeCancelled": 4.5, "cancelledDate": "2016-06-10T13:04:23.700Z" }, { "status": "SUCCESS", "instruction": { "betId": 10000000001, "sizeReduction": 4.5 }, "sizeCancelled": 4.5, "cancelledDate": "2016-06-10T13:04:23.701Z" } ] } } ===== Invoke cancelOrders... (FULL CANCEL) =====