<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>일일 비트코인 거래 수익 현황</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f4f8;
color: #333;
margin: 0;
padding: 0;
}
.container {
max-width: 900px;
margin: 0 auto;
padding: 20px;
}
.header {
background-color: #1b3a57;
color: #ffffff;
padding: 20px;
border-radius: 8px;
text-align: center;
}
.header h1 {
margin: 0;
font-size: 24px;
}
.header p {
margin: 5px 0 0;
}
.summary {
display: flex;
justify-content: space-between;
margin-top: 20px;
}
.summary div {
flex: 1;
background-color: #ffffff;
padding: 20px;
border-radius: 8px;
text-align: center;
margin: 0 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.summary div h3 {
margin: 0;
font-size: 18px;
color: #1b3a57;
}
.summary div p {
margin: 10px 0 0;
font-size: 36px;
color: #17a2b8;
}
.summary div:first-child {
margin-left: 0;
}
.summary div:last-child {
margin-right: 0;
}
.charts {
display: flex;
justify-content: space-between;
margin-top: 20px;
}
.chart {
flex: 1;
background-color: #ffffff;
padding: 20px;
border-radius: 8px;
text-align: center;
margin: 0 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.chart canvas {
max-width: 100%;
height: auto;
}
.table-section {
margin-top: 20px;
background-color: #ffffff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
table th, table td {
padding: 12px;
text-align: center;
border-bottom: 1px solid #ddd;
}
table th {
background-color: #1b3a57;
color: #ffffff;
}
table tbody tr:last-child td {
border-bottom: none;
}
.final-summary {
display: flex;
justify-content: space-between;
margin-top: 20px;
}
.final-summary div {
flex: 1;
background-color: #ffffff;
padding: 20px;
border-radius: 8px;
text-align: center;
margin: 0 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.final-summary div h3 {
margin: 0;
font-size: 18px;
color: #1b3a57;
}
.final-summary div p {
margin: 10px 0 0;
font-size: 36px;
color: #17a2b8;
}
.final-summary div:first-child {
margin-left: 0;
}
.final-summary div:last-child {
margin-right: 0;
}
.evaluation {
background-color: #ffffff;
padding: 20px;
border-radius: 8px;
text-align: center;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
margin-top: 20px;
}
.evaluation p {
margin: 0;
font-size: 16px;
color: #1b3a57;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<div class="container">
<div class="header">
<h1>일일 비트코인 거래 수익 현황</h1>
<p>2024-08-21</p>
</div>
<div class="summary">
<div>
<h3>총 거래횟수</h3>
<p>123회</p>
</div>
<div>
<h3>승률</h3>
<p>83%</p>
</div>
</div>
<div class="charts">
<div class="chart">
<h3>시간대별 거래횟수</h3>
<canvas id="timeChart"></canvas>
</div>
<div class="chart">
<h3>포지션별 수익률</h3>
<canvas id="positionChart"></canvas>
</div>
</div>
<div class="table-section">
<h3>거래내역</h3>
<table>
<thead>
<tr>
<th>심볼</th>
<th>포지션</th>
<th>진입가</th>
<th>정리가</th>
<th>수익률</th>
</tr>
</thead>
<tbody>
<tr>
<td>BTCUSDT</td>
<td>SHORT</td>
<td>59636.28</td>
<td>59674.3</td>
<td>0.06%</td>
</tr>
<tr>
<td>ETCUSDT</td>
<td>LONG</td>
<td>2597.72</td>
<td>2599.81</td>
<td>0.05%</td>
</tr>
<tr>
<td>ETCUSDT</td>
<td>SHORT</td>
<td>2597.95</td>
<td>2595.71</td>
<td>0.07%</td>
</tr>
<tr>
<td>BTCUSDT</td>
<td>LONG</td>
<td>58995.7</td>
<td>59066</td>
<td>0.12%</td>
</tr>
<tr>
<td>BTCUSDT</td>
<td>SHORT</td>
<td>59115</td>
<td>58923.9</td>
<td>0.34%</td>
</tr>
</tbody>
</table>
</div>
<div class="final-summary">
<div>
<h3>누적 수익률</h3>
<p>1,023%</p>
</div>
<div>
<h3>누적 승률</h3>
<p>93%</p>
</div>
</div>
<div class="evaluation">
<p>어제의 거래는 전체적으로 긍정적인 성과를 보였습니다.<br>총 10건의 거래 중 7건이 이익을 기록하며, 70%의 승률을 달성했습니다.<br>평균 실현 수익은 0.34%로, 큰 손실 없이 안정적인 수익을 유지한 점이 주목할 만합니다.</p>
</div>
</div>
<script>
// 시간대별 거래횟수 막대 그래프
const ctx1 = document.getElementById('timeChart').getContext('2d');
const timeChart = new Chart(ctx1, {
type: 'bar',
data: {
labels: ['0시', '2시', '4시', '6시', '8시', '10시', '12시', '14시', '16시', '18시', '20시', '22시'],
datasets: [{
label: '시간대별 거래횟수',
data: [3, 7, 5, 8, 6, 12, 15, 10, 9, 7, 5, 6],
backgroundColor: '#17a2b8'
}]
},
options: {
scales: {
y: {
beginAtZero: true
}
}
}
});
// 포지션별 수익률 도넛형 차트
const ctx2 = document.getElementById('positionChart').getContext('2d');
const positionChart = new Chart(ctx2, {
type: 'doughnut',
data: {
labels: ['롱', '숏'],
datasets: [{
data: [55, 45],
backgroundColor: ['#007bff', '#dc3545']
}]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'bottom',
}
}
}
});
</script>
</body>
</html>