package com.goldenchart.repository;

import com.goldenchart.entity.GcTradeSignal;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface GcTradeSignalRepository extends JpaRepository<GcTradeSignal, Long> {

    List<GcTradeSignal> findByDeviceIdOrderByCreatedAtDesc(String deviceId);
    List<GcTradeSignal> findByUserIdOrderByCreatedAtDesc(Long userId);
    List<GcTradeSignal> findByDeviceIdAndMarketOrderByCreatedAtDesc(String deviceId, String market);
}
