Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot run on the first time, force update some packages. #609

Open
div4r4k opened this issue Feb 20, 2025 · 4 comments
Open

cannot run on the first time, force update some packages. #609

div4r4k opened this issue Feb 20, 2025 · 4 comments
Assignees

Comments

@div4r4k
Copy link

div4r4k commented Feb 20, 2025

Hello, I realized of the existence of this project, tried to run it on my windows 10 machine..

This is the output when I tried to run it.

C:\binance-trade-bot\binance-trade-bot>python backtest.py
Traceback (most recent call last):
File "C:\binance-trade-bot\binance-trade-bot\backtest.py", line 3, in
from binance_trade_bot import backtest
File "C:\binance-trade-bot\binance-trade-bot\binance_trade_bot_init_.py", line 1, in
from .backtest import backtest
File "C:\binance-trade-bot\binance-trade-bot\binance_trade_bot\backtest.py", line 8, in
from .binance_api_manager import BinanceAPIManager
File "C:\binance-trade-bot\binance-trade-bot\binance_trade_bot\binance_api_manager.py", line 10, in
from .binance_stream_manager import BinanceCache, BinanceOrder, BinanceStreamManager, OrderGuard
File "C:\binance-trade-bot\binance-trade-bot\binance_trade_bot\binance_stream_manager.py", line 11, in
from .config import Config
File "C:\binance-trade-bot\binance-trade-bot\binance_trade_bot\config.py", line 5, in
from .models import Coin
File "C:\binance-trade-bot\binance-trade-bot\binance_trade_bot\models_init_.py", line 5, in
from .pair import Pair
File "C:\binance-trade-bot\binance-trade-bot\binance_trade_bot\models\pair.py", line 8, in
class Pair(Base):
File "C:\binance-trade-bot\binance-trade-bot\binance_trade_bot\models\pair.py", line 22, in Pair
select([func.count(Coin.symbol) == 2])
File "C:\ProgramData\anaconda3\Lib\site-packages\sqlalchemy\sql_selectable_constructors.py", line 485, in select
return Select(*entities)
^^^^^^^^^^^^^^^^^
File "C:\ProgramData\anaconda3\Lib\site-packages\sqlalchemy\sql\selectable.py", line 5338, in init
coercions.expect(
File "C:\ProgramData\anaconda3\Lib\site-packages\sqlalchemy\sql\coercions.py", line 395, in expect
resolved = impl._literal_coercion(
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ProgramData\anaconda3\Lib\site-packages\sqlalchemy\sql\coercions.py", line 634, in _literal_coercion
self._raise_for_expected(element, argname)
File "C:\ProgramData\anaconda3\Lib\site-packages\sqlalchemy\sql\coercions.py", line 1132, in _raise_for_expected
return super()._raise_for_expected(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ProgramData\anaconda3\Lib\site-packages\sqlalchemy\sql\coercions.py", line 695, in _raise_for_expected
super()._raise_for_expected(
File "C:\ProgramData\anaconda3\Lib\site-packages\sqlalchemy\sql\coercions.py", line 518, in _raise_for_expected
raise exc.ArgumentError(msg, code=code) from err
sqlalchemy.exc.ArgumentError: Column expression, FROM clause, or other columns clause element expected, got [<sqlalchemy.sql.elements.BinaryExpression object at 0x0000023DD881ABD0>]. Did you mean to say select(<sqlalchemy.sql.elements.BinaryExpression object at 0x0000023DD881ABD0>)?

Python 3.12.3

Please help and thanks in advance.

@div4r4k
Copy link
Author

div4r4k commented Feb 21, 2025

Here is my config file:

[binance_user_config]

All config params are explained in depth in the repo.

API key and Secret key created on Binance

api_key=
api_secret_key=

Starting coin, leave empty when it's the bridge.

It has to be in the supported_coin_list

current_coin=

#Bridge coin of your choice
bridge=USDT

#com or us, depending on region
tld=com

#Defines how long the scout history is stored
hourToKeepScoutHistory=1

#Defines to use either scout_margin or scout_multiplier
use_margin=no

It's recommended to use something between 3-7 as scout_multiplier

scout_multiplier=5

#It's recommended to use something between 0.3 and 1.2 as scout_margin
scout_margin=0.8

Controls how many seconds bot should wait between analysis of current prices

scout_sleep_time=1

Pre-configured strategies are default and multiple_coins

strategy=multiple_coins

Controls how many minutes to wait before cancelling a limit order (buy/sell) and returning to "scout" mode.

0 means that the order will never be cancelled prematurely.

buy_timeout=20
sell_timeout=20

@div4r4k
Copy link
Author

div4r4k commented Feb 21, 2025

By the way, I have installed SqlAlchemy 2.0.38

@carlosmiei carlosmiei self-assigned this Feb 26, 2025
@carlosmiei
Copy link
Collaborator

@div4r4k Thanks for reporting it, we will try to analyze this issue soon.

@carlosmiei
Copy link
Collaborator

@div4r4k HUm locally seems to be working fine to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants