b024b8a03fcb2bb99d84490254c98fbbf4026dbf,QUANTAXIS/QAARP/QAAccount.py,QA_Account,QA_account_update,#QA_Account#Any#Any#,49

Before Change



                }
            }
            QA_signal_send(message,client)
    def QA_account_renew(self):
        //未来发送给R,P的
        pass
    def QA_account_calc_profit(self):

After Change


            }
            
        else:
            message={
                "header":{
                    "source":"account",
                    "cookie":self.account_cookie,
                    "session":{
                        "user":update_message["user"],
                        "strategy":update_message["strategy"]
                    }
                    
                    },
                "body":{
                    "account":{
                        "init_assest":self.assets,
                        "portfolio":self.portfolio,
                        "history":self.history_trade,
                        "assest_now":self.assets,
                        "assest_history":self.total_assest,
                        "assest_free":self.assets_free,
                        "assest_fix":self.assets_market_hold_value,
                        "profit":self.portfit,
                        "cur_profit":self.cur_profit
                    },
                    "bid":update_message["bid"],
                    "market":update_message["market"],
                    "time":datetime.datetime.now(),
                    "date_stamp":str(datetime.datetime.now().timestamp())


                }
            }
            //属于不更新history和portfolio,但是要继续增加账户和日期的
        self.message=message
        
    def QA_account_renew(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: b024b8a03fcb2bb99d84490254c98fbbf4026dbf
Time: 2017-04-11
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAARP/QAAccount.py
Class Name: QA_Account
Method Name: QA_account_update


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: a12380c46286a052eaea6617a9a13d37f74dab5e
Time: 2017-04-11
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAMarket/QAMarket_core.py
Class Name: QA_Market
Method Name: market_make_deal


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: b024b8a03fcb2bb99d84490254c98fbbf4026dbf
Time: 2017-04-11
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAARP/QAAccount.py
Class Name: QA_Account
Method Name: QA_account_update


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: ecc2b9c5e94dfd9875084d5a91ffe58d9dd20ccb
Time: 2017-04-10
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAMarket/QAMarket_core.py
Class Name: QA_Market
Method Name: market_make_deal