diff --git a/freqtrade/rpc/api_server2/api_v1.py b/freqtrade/rpc/api_server2/api_v1.py index 767d72023..c2e7a9172 100644 --- a/freqtrade/rpc/api_server2/api_v1.py +++ b/freqtrade/rpc/api_server2/api_v1.py @@ -18,11 +18,13 @@ def ping(): return {"status": "pong"} +@router.get('/version', response_model=Version) +def version(): + return {"version": __version__} + + @router.get('/balance', response_model=Balances) def balance(rpc=Depends(get_rpc), config=Depends(get_config)): return rpc._rpc_balance(config['stake_currency'], config.get('fiat_display_currency', ''),) -@router.get('/version', response_model=Version) -def version(): - return {"version": __version__}