Add temporary DCA client creation endpoint for testing and enhance quick deposit UI with new form for adding deposits. Clean up code formatting for consistency.

This commit is contained in:
padreug 2025-06-17 20:09:53 +02:00
parent b3332e585a
commit 46b7a1450d
3 changed files with 182 additions and 124 deletions

View file

@ -223,6 +223,15 @@ async def api_get_dca_client(
# Note: Client creation/update/delete will be handled by the DCA client extension
# Admin extension only reads existing clients and manages their deposits
# TEMPORARY: Test client creation endpoint (remove in production)
@myextension_api_router.post("/api/v1/dca/clients", status_code=HTTPStatus.CREATED)
async def api_create_test_dca_client(
data: CreateDcaClientData,
wallet: WalletTypeInfo = Depends(require_admin_key),
) -> DcaClient:
"""Create a test DCA client (temporary for testing)"""
return await create_dca_client(data)
@myextension_api_router.get("/api/v1/dca/clients/{client_id}/balance")
async def api_get_client_balance(