static createPositionFromWebsocket(position) {
    const positionAmt = parseFloat(position.pa);
    const entryPrice = parseFloat(position.ep);

    return new Position(
      position.s,
      positionAmt < 0 ? 'short' : 'long',
      positionAmt,
      undefined,
      new Date(),
      entryPrice,
      undefined,
      position
    );
  }
Convert incoming position only if they are open

@param position
@returns {*}