コード例 #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))
コード例 #2
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))
コード例 #3
0
    def testGetCopyAccount(self):
        tc = TradingCenter()
        accountId1 = tc.createAccountWithMetrix(100000, 0)

        account = tc.getCopyAccount(accountId1)
        print(account)
        self.assertEquals(100000, account.cash)
コード例 #4
0
    def testGetCopyAccount(self):
        tc = TradingCenter()
        accountId1 = tc.createAccountWithMetrix(100000, 0)

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