from learning import Learning

#instrument: eg. USDCAD, action: buy/sell
class Order(instrument, action, quote, volume):
    def __init__(self):
        self.log = log
        self.logger.info('Initializing Order...')

    def get_open_cost(self):
        return quote*volume

    def 
        
    



@@ -1,146 +1,533 @@
-from learning import Learning%0A%0A#instrument: eg. USDCAD, action: buy/sell%0Aclass Order(instrument, action, quote, volume):%0A    def __init__(self
+%0A#action: buy/sell%0Aclass Order():%0A    def __init__(self):%0A        self.log = log%0A        self.open_cost = %5B%5D%0A        self.close_profit = %5B%5D%0A        self.profit = %5B%5D%0A        %0A    def open_order(self, action, quote, volume):%0A        self.action = action%0A        self.volume = volume%0A        self.open_cost = quote*volume%0A        self.logger.info('%7Baction%7D opened by %7Bagent%7D in %7Bscope%7D learning.'.format(%0A                                                      action=action, agent=self, scope=scope))%0A%0A    def close_order(self, quote
 ):%0A 
@@ -542,68 +542,321 @@
 elf.
+c
 lo
-g = log%0A        self.logger.info('Initializing Order...')%0A
+se_profit = quote*volume%0A        self.profit = self.close_profit - self.open_cost%0A        self.logger.info('%7Baction%7D closed by %7Bagent%7D in %7Bscope%7D learning. Profit = $%7Bprofit%7D.'.format(%0A                                                      action=action, agent=self, scope=scope, profit = self.profit))%0A        
 %0A   
@@ -864,24 +864,21 @@
 def get_
-open_cos
+profi
 t(self):
@@ -897,30 +897,25 @@
 urn 
-quote*volume
+self.profit
 %0A%0A    
-def 
 %0A   

complete order class