A Portfolio Management System generates a set of Orders throughout the day that need - to -
Fantastic news! We've Found the answer you've been seeking!
Question:
A Portfolio Management System generates a set of Orders throughout the day that needtobe traded on a market.
An Orderneeds tobe traded within minutes. Each trade has an associated transaction cost, let's say $ Design a system thatwould minimize the transaction cost by grouping similar Orders.
: BUY GOOG
: BUY MSFT
: SELL GOOG
: BUY GS
: SELL MSFT
: SELL MSFT
Example Output:
: SELL GOOG
: BUY MSFT
: BUY GS
: SELL MSFT
Total.cost : $
: BUY GOOG
: BUY MSFT
: BUY MSFT
: BUY GS
: SELL GOOG
: SELL GOOG
: BUY GS
: SELL GS
: BUY MSFT
Example Output:
: BUY GOOG
: BUY MSFT
: BUY GS
: SELL GOOG
: SELL MSFT
Total.cost : $
Solve this with python.
Posted Date: