mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-03 02:23:05 +00:00
chore: add explaining comments to some columns
This commit is contained in:
@@ -1672,9 +1672,12 @@ class Trade(ModelBase, LocalTrade):
|
||||
stake_currency: Mapped[str | None] = mapped_column(String(25), nullable=True)
|
||||
is_open: Mapped[bool] = mapped_column(nullable=False, default=True, index=True)
|
||||
fee_open: Mapped[float] = mapped_column(Float(), nullable=False, default=0.0)
|
||||
# Fee cost in quote currency for entry the trade
|
||||
fee_open_cost: Mapped[float | None] = mapped_column(Float(), nullable=True)
|
||||
# Currency the fee was paid in. Has no relation to fee_open_cost.
|
||||
fee_open_currency: Mapped[str | None] = mapped_column(String(25), nullable=True)
|
||||
fee_close: Mapped[float | None] = mapped_column(Float(), nullable=False, default=0.0)
|
||||
# Fee cost in quote currency for exit orders
|
||||
fee_close_cost: Mapped[float | None] = mapped_column(Float(), nullable=True)
|
||||
fee_close_currency: Mapped[str | None] = mapped_column(String(25), nullable=True)
|
||||
open_rate: Mapped[float] = mapped_column(Float())
|
||||
|
||||
Reference in New Issue
Block a user