From 23e0f862c6131685c52c0e0510528883f6d927eb Mon Sep 17 00:00:00 2001 From: highcloudwind Date: Wed, 7 Aug 2024 14:25:04 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: highcloudwind --- docs/walkthrough.md | 2 +- njit_funcs_neat_grid.py | 4 ++-- njit_multisymbol.py | 2 +- passivbot.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/walkthrough.md b/docs/walkthrough.md index b2b4e11ee..fe1f4d9f7 100644 --- a/docs/walkthrough.md +++ b/docs/walkthrough.md @@ -97,7 +97,7 @@ Once you're satisfied with the configuration, start the bot: python3 passivbot.py binance_01 XLMUSDT configs/live/myconfig.json ``` -If the bot started succesfully, you should receive a message **Passivbot started!**. After this, you can disconnect +If the bot started successfully, you should receive a message **Passivbot started!**. After this, you can disconnect from the tmux session by pressing `ctrl+b`, following by pressing `d`. !!! Info diff --git a/njit_funcs_neat_grid.py b/njit_funcs_neat_grid.py index 7ee4a5224..3282e602b 100644 --- a/njit_funcs_neat_grid.py +++ b/njit_funcs_neat_grid.py @@ -301,7 +301,7 @@ def eval_(ientry_price_guess, psize_): return grid, diff, i if pprice == 0.0 or psize == 0.0: - raise Exception("cannot appriximate grid without pprice and psize") + raise Exception("cannot approximate grid without pprice and psize") grid, diff, i = eval_(pprice, psize) grid, diff, i = eval_(pprice * (pprice / grid[i][3]), psize) if diff < 0.01: @@ -389,7 +389,7 @@ def eval_(ientry_price_guess, psize_): abs_psize = abs(psize) if pprice == 0.0 or psize == 0.0: - raise Exception("cannot appriximate grid without pprice and psize") + raise Exception("cannot approximate grid without pprice and psize") grid, diff, i = eval_(pprice, psize) grid, diff, i = eval_(pprice * (pprice / grid[i][3]), psize) if diff < 0.01: diff --git a/njit_multisymbol.py b/njit_multisymbol.py index 05454064d..04aded883 100644 --- a/njit_multisymbol.py +++ b/njit_multisymbol.py @@ -944,7 +944,7 @@ def backtest_forager( ): """ hlcs contains all eligible symbols, time frame is 1m - hlcs stucture: (n_minutes, n_markets, 3) + hlcs structure: (n_minutes, n_markets, 3) hlcs: [ [ diff --git a/passivbot.py b/passivbot.py index 49060453f..adbfda11e 100644 --- a/passivbot.py +++ b/passivbot.py @@ -2035,5 +2035,5 @@ async def main() -> None: logging.error(f"There was an error starting the bot: {e}") traceback.print_exc() finally: - logging.info("Passivbot was stopped succesfully") + logging.info("Passivbot was stopped successfully") os._exit(0)