freqtrade UI edits

This revision is from 2024/06/08 13:53. You can Restore it.

Location: /home/x/freqtrade/freqtrade/rpc/api_server/ui

or

Location: /home/x/freqtrade/.venv/lib/python3.x/site-packages/freqtrade/rpc/api_server/ui

To present frequi to the public, all the problem API calls need to be deleted and the username and password of the bots need to be added to auth_rpc.py so that they are not displayed to the public. Furtheron consider running it in sandbox, or container.

These are the API endpoints.

Delete these...

start Starts the trader.

stop Stops the trader.

stopbuy Stops the trader from opening new trades. Gracefully closes open trades according to their rules.

reload_config Reloads the configuration file.

delete_trade <trade_id> Remove trade from the database. Tries to close open orders. Requires manual handling of this trade on the exchange.

show_config Shows part of the current configuration with relevant settings to operation.

logs Shows last log messages.

forcesell <trade_id> Instantly sells the given trade (Ignoring minimum_roi).

forcesell all Instantly sells all open trades (Ignoring minimum_roi).

forcebuy <pair> [rate] Instantly buys the given pair. Rate is optional. (forcebuy_enable must be set to True)

strategies List strategies in strategy directory. Alpha

strategy <strategy> Get specific Strategy content. Alpha

Keep these...

ping Simple command testing the API Readiness - requires no authentication.

trades List last trades.

status Lists all open trades.

count Displays number of trades used and available.

locks Displays currently locked pairs.

profit Display a summary of your profit/loss from close trades and some stats about your performance.

performance Show performance of each finished trade grouped by pair.

balance Show account balance per currency.

daily <n> Shows profit or loss per day, over the last n days (n defaults to 7).

stats Display a summary of profit / loss reasons as well as average holding times.

whitelist Show the current whitelist.

blacklist [pair] Show the current blacklist, or adds a pair to the blacklist.

edge Show validated pairs by Edge if it is enabled.

pair_candles Returns dataframe for a pair / timeframe combination while the bot is running. Alpha

pair_history Returns an analyzed dataframe for a given timerange, analyzed by a given strategy. Alpha

plot_config Get plot config from the strategy (or nothing if not configured). Alpha

available_pairs List available backtest data. Alpha

version Show version.

Files in question...

grep -irln "@router."

freqtrade/rpc/api_server/api_v1.py

freqtrade/rpc/api_server/api_auth.py

freqtrade/rpc/api_server/web_ui.py

freqtrade/rpc/api_server/api_ws.py

freqtrade/rpc/api_server/api_backtest.py

freqtrade/rpc/api_server/api_background_tasks.py

.venv/lib/python3.10/site-packages/fastapi/routing.py

.venv/lib/python3.10/site-packages/fastapi/__pycache__/routing.cpython-310.pyc

  

📝 📜 ⏱️ ⬆️