consolidation process added

This commit is contained in:
David Brazda
2023-04-16 10:37:16 +02:00
parent 2a9ed56fca
commit f869164ed0
11 changed files with 170 additions and 8 deletions

View File

@ -7,7 +7,7 @@ from alpaca.trading.enums import OrderSide, TimeInForce, OrderClass, OrderStatus
from alpaca.trading.models import Order, Position
from alpaca.common.exceptions import APIError
from v2realbot.config import Keys
from interfaces.general_interface import GeneralInterface
from v2realbot.interfaces.general_interface import GeneralInterface
"""""
Live interface with Alpaca for LIVE and PAPER trading.
"""""
@ -149,7 +149,7 @@ class LiveInterface(GeneralInterface):
#order doesnt exist
if e.code == 40410000: return 0,0
else:
print("nepovedlo se zrusit objednavku")
print("nepovedlo se zrusit objednavku", str(e))
#raise Exception(e)
return -1