28 lines
742 B
Python
28 lines
742 B
Python
from fastapi import APIRouter, Depends
|
|
from app.api.auth import get_current_user
|
|
from app.services.stock_engine import (
|
|
get_scan, get_ribbon, get_smartmoney, get_trend, get_marketintel
|
|
)
|
|
|
|
router = APIRouter()
|
|
|
|
@router.get("/scan")
|
|
def scan(current_user = Depends(get_current_user)):
|
|
return get_scan()
|
|
|
|
@router.get("/ribbon")
|
|
def ribbon(current_user = Depends(get_current_user)):
|
|
return get_ribbon()
|
|
|
|
@router.get("/smartmoney")
|
|
def smartmoney(current_user = Depends(get_current_user)):
|
|
return get_smartmoney()
|
|
|
|
@router.get("/trend")
|
|
def trend(current_user = Depends(get_current_user)):
|
|
return get_trend()
|
|
|
|
@router.get("/marketintel")
|
|
def marketintel(current_user = Depends(get_current_user)):
|
|
return get_marketintel()
|