diff --git a/backend/routes/exchange.py b/backend/routes/exchange.py index e96f352..ff58619 100644 --- a/backend/routes/exchange.py +++ b/backend/routes/exchange.py @@ -170,6 +170,7 @@ def _to_exchange_response( slot_start=exchange.slot_start, slot_end=exchange.slot_end, direction=exchange.direction.value, + bitcoin_transfer_method=exchange.bitcoin_transfer_method.value, eur_amount=exchange.eur_amount, sats_amount=exchange.sats_amount, market_price_eur=exchange.market_price_eur, @@ -588,6 +589,7 @@ def _to_admin_exchange_response(exchange: Exchange) -> AdminExchangeResponse: slot_start=exchange.slot_start, slot_end=exchange.slot_end, direction=exchange.direction.value, + bitcoin_transfer_method=exchange.bitcoin_transfer_method.value, eur_amount=exchange.eur_amount, sats_amount=exchange.sats_amount, market_price_eur=exchange.market_price_eur, diff --git a/backend/schemas.py b/backend/schemas.py index c7688b4..259c07e 100644 --- a/backend/schemas.py +++ b/backend/schemas.py @@ -198,6 +198,7 @@ class ExchangeRequest(BaseModel): slot_start: datetime direction: str # "buy" or "sell" + bitcoin_transfer_method: str # "onchain" or "lightning" eur_amount: int # EUR cents (e.g., 10000 = €100) @@ -210,6 +211,7 @@ class ExchangeResponse(BaseModel): slot_start: datetime slot_end: datetime direction: str + bitcoin_transfer_method: str eur_amount: int # EUR cents sats_amount: int # Satoshis market_price_eur: float @@ -241,6 +243,7 @@ class AdminExchangeResponse(BaseModel): slot_start: datetime slot_end: datetime direction: str + bitcoin_transfer_method: str eur_amount: int sats_amount: int market_price_eur: float