def METHOD_NAME(pair: Optional[str], now: Optional[datetime] = None,
                   side: str = '*') -> Sequence[PairLock]:
    """
    Get all currently active locks for this pair
    :param pair: Pair to check for. Returns all current locks if pair is empty
    :param now: Datetime object (generated via datetime.now(timezone.utc)).
                defaults to datetime.now(timezone.utc)
    """
    if not now:
        now = datetime.now(timezone.utc)
    if PairLocks.use_db:
        return PairLock.query_pair_locks(pair, now, side).all()
    else:
        locks = [lock for lock in PairLocks.locks if (
            lock.lock_end_time >= now
            and lock.active is True
            and (pair is None or lock.pair == pair)
            and (lock.side == '*' or lock.side == side)
        )]
        return locks