onPositionUpdate(position) {
    if (position.status && position.status.toLowerCase() === 'closed') {
      delete this.positions[Bitfinex.formatSymbol(position.symbol)];
      return;
    }

    const myPositions = Bitfinex.createPositions([position]);

    if (myPositions.length > 0) {
      const [firstPosition] = myPositions;
      // copy position create time
      if (this.positions[firstPosition.symbol] && this.positions[firstPosition.symbol].createdAt) {
        firstPosition.createdAt = this.positions[firstPosition.symbol].createdAt;
      }

      this.positions[firstPosition.symbol] = firstPosition;
    }
  }
Position events from websocket: New, Update, Delete