Exemple #1
0
    def testGetCopyAccounts(self):
        tc = TradingCenter()
        tc.createAccountWithMetrix(100000, 0)
        tc.createAccountWithMetrix(200000, 0)

        accounts = tc.getCopyAccounts('.*')
        print([str(account) for account in accounts])
        self.assertEquals(2, len(accounts))
    def testGetCopyAccounts(self):
        tc = TradingCenter()
        tc.createAccountWithMetrix(100000, 0)
        tc.createAccountWithMetrix(200000, 0)

        accounts = tc.getCopyAccounts('.*')
        print([str(account) for account in accounts])
        self.assertEquals(2, len(accounts))
Exemple #3
0
    def testGetCopyAccount(self):
        tc = TradingCenter()
        accountId1 = tc.createAccountWithMetrix(100000, 0)

        account = tc.getCopyAccount(accountId1)
        print(account)
        self.assertEquals(100000, account.cash)
    def testGetCopyAccount(self):
        tc = TradingCenter()
        accountId1 = tc.createAccountWithMetrix(100000, 0)

        account = tc.getCopyAccount(accountId1)
        print(account)
        self.assertEquals(100000, account.cash)