add create get exchange endpoint
All checks were successful
Backend CI / unit-test (push) Successful in 34s
All checks were successful
Backend CI / unit-test (push) Successful in 34s
This commit is contained in:
@@ -10,6 +10,15 @@ if TYPE_CHECKING:
|
||||
from trading_journal.models import TradeStrategy, TradeType, UnderlyingCurrency
|
||||
|
||||
|
||||
class ExchangesBase(SQLModel):
|
||||
name: str
|
||||
notes: str | None = None
|
||||
|
||||
|
||||
class ExchangesCreate(ExchangesBase):
|
||||
user_id: int
|
||||
|
||||
|
||||
class TradeBase(SQLModel):
|
||||
user_id: int
|
||||
friendly_name: str | None
|
||||
|
||||
Reference in New Issue
Block a user