bcef12815532aedcd7330036e3bf9064e85bec18
Each buy generates a UUID trade_id stored in positions table. Each sell links via same trade_id in trade_results, enabling round-trip grouping of buy→sell pairs. Additional fields saved per trade: - fee_krw: commission amount (0.05% each side) - krw_profit: net KRW profit/loss after fees - buy_price / sell_price: exact prices - invested_krw: capital deployed - sell_reason: trailing stop / time stop / etc. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Description
Upbit 자동 트레이딩 봇 - Strategy C + 트레일링 스탑
Languages
Python
99.8%
JavaScript
0.2%