diff --git a/package.json b/package.json index 47d2e72..6571133 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "binary-live-api", - "version": "18.5.0", + "version": "18.6.0", "description": "Library to consume Binary.com WebSocket API", "main": "lib/binary-live-api.js", "devDependencies": { diff --git a/src/custom.js b/src/custom.js index 6119356..a8322ac 100644 --- a/src/custom.js +++ b/src/custom.js @@ -108,8 +108,7 @@ export function getDataForContract( } return getContract() - .then(r => { - const contract = r.proposal_open_contract; + .then(contract => { const symbol = contract.underlying; const purchaseT = contract.purchase_time; const sellT = contract.sell_time;