curl -X GET "https://api.sajuapi.dev/v1/fortunes/tendency?birthDate=1994-12-30" \
-H "X-API-Key: your-api-key"
사주 기반 투자 성향 및 강점/약점 조회
curl -X GET "https://api.sajuapi.dev/v1/fortunes/tendency?birthDate=1994-12-30" \
-H "X-API-Key: your-api-key"
{
"success": true,
"data": {
"investmentTendency": {
"strengths": [
{ "element": "fire", "emoji": "🔥", "trait": "기회 포착, 리더십" },
{ "element": "water", "emoji": "🌊", "trait": "리스크 감지, 타이밍" }
],
"weakness": {
"element": "metal",
"emoji": "❌",
"trait": "손절·규칙 관리 약함"
},
"scores": {
"riskTolerance": 75,
"longTermAptitude": 85,
"trendSensitivity": 45
},
"summary": "장기 성장주 선호, 변동성에 흔들리지 않는 타입",
"warning": "단, 손절 타이밍을 놓치기 쉬움"
}
}
}
function StatsCards({ tendency }) {
return (
<div className="stats-cards">
<div className="strengths">
<h4>강점</h4>
{tendency.strengths.map((s) => (
<span key={s.element}>{s.emoji} {s.trait}</span>
))}
</div>
<div className="weakness">
<h4>약점</h4>
<span>{tendency.weakness.emoji} {tendency.weakness.trait}</span>
</div>
<div className="scores">
<ProgressBar label="리스크 성향" value={tendency.scores.riskTolerance} />
<ProgressBar label="장기 투자력" value={tendency.scores.longTermAptitude} />
<ProgressBar label="트렌드 민감도" value={tendency.scores.trendSensitivity} />
</div>
</div>
);
}
curl -X GET "https://api.sajuapi.dev/v1/fortunes/tendency?birthDate=1994-12-30" \
-H "X-API-Key: your-api-key"