last
This commit is contained in:
BIN
bot split/__pycache__/ETC.cpython-313.pyc
Normal file
BIN
bot split/__pycache__/ETC.cpython-313.pyc
Normal file
Binary file not shown.
BIN
bot split/__pycache__/order_new.cpython-313.pyc
Normal file
BIN
bot split/__pycache__/order_new.cpython-313.pyc
Normal file
Binary file not shown.
BIN
bot split/__pycache__/position.cpython-313.pyc
Normal file
BIN
bot split/__pycache__/position.cpython-313.pyc
Normal file
Binary file not shown.
BIN
bot split/__pycache__/value.cpython-313.pyc
Normal file
BIN
bot split/__pycache__/value.cpython-313.pyc
Normal file
Binary file not shown.
@@ -106,7 +106,17 @@ def on_book(message, man: Manager):
|
||||
man.orderMan.buy(message["symbol"], man.valueMan.get_bid(message["symbol"])-1, 10)
|
||||
else:
|
||||
man.orderMan.sell(message["symbol"], man.valueMan.get_ask(message["symbol"])+1, 10)
|
||||
elif message["symbol"] == "WLF":
|
||||
now = time.time()
|
||||
|
||||
if now >= last_print_time+1:
|
||||
last_print_time = now
|
||||
|
||||
if (man.positionMan.get_position("BOND") > 3 and
|
||||
man.positionMan.get_position("GS") > 2 and
|
||||
man.positionMan.get_position("MS") > 3 and
|
||||
man.positionMan.get_position("WFC") > 2):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user