canBuy = data => {
  const {
    symbolConfiguration: {
      buy: { currentGridTrade }
    },
    buy: { currentPrice: buyCurrentPrice, triggerPrice: buyTriggerPrice }
  } = data;

  return (
    buyCurrentPrice <= buyTriggerPrice &&
    currentGridTrade !== null &&
    !isLowerThanStopLossTriggerPrice(data)
  );
}
Check whether can buy or not

 - current price must be less than trigger price.
 - current grid trade must be defined.

@param {*} data
@returns