Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
568 changes: 0 additions & 568 deletions AGENTS.md

This file was deleted.

1,080 changes: 0 additions & 1,080 deletions API_REFERENCE.md

This file was deleted.

726 changes: 0 additions & 726 deletions CLAUDE.md

This file was deleted.

348 changes: 0 additions & 348 deletions GEMINI.md

This file was deleted.

4 changes: 4 additions & 0 deletions database/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ class GatewayCLMMPosition(Base):
lower_bin_id = Column(Integer, nullable=True) # For bin-based CLMM (Meteora)
upper_bin_id = Column(Integer, nullable=True)

# Price tracking for PnL calculation
entry_price = Column(Numeric(precision=30, scale=18), nullable=True) # Pool price when position opened
current_price = Column(Numeric(precision=30, scale=18), nullable=True) # Latest price (becomes close price when closed)

# Initial deposit amounts (for PnL calculation)
initial_base_token_amount = Column(Numeric(precision=30, scale=18), nullable=True)
initial_quote_token_amount = Column(Numeric(precision=30, scale=18), nullable=True)
Expand Down
Loading