Skip to content

Commit

Permalink
Fix create order method calling
Browse files Browse the repository at this point in the history
  • Loading branch information
MDUYN committed Mar 4, 2024
1 parent 942f249 commit d0eed34
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
from typing import List
from investing_algorithm_framework.domain import OrderStatus, OrderSide, \
Trade, PeekableQueue, ApiException
Trade, PeekableQueue, ApiException, OrderType
from investing_algorithm_framework.services import \
OrderService, PortfolioService, PositionService, MarketDataSourceService

Expand Down Expand Up @@ -243,6 +243,7 @@ def close_trade(self, trade, market=None):
"target_symbol": order.get_target_symbol(),
"amount": amount,
"order_side": OrderSide.SELL.value,
"order_type": OrderType.LIMIT.value,
"price": ticker["bid"]
}
)
Expand Down

0 comments on commit d0eed34

Please sign in to comment.