예제 #1
0
    def assertMyTradeIsValid(self, my_trade, testing_symbol_or_symbols=None):
        if not testing_symbol_or_symbols:
            testing_symbol_or_symbols = self.testing_symbol

        AssertUtil.assertMyTradeIsValid(self, my_trade,
                                        testing_symbol_or_symbols,
                                        self.platform_id)
예제 #2
0
    def assertOrderBookDiffIsValid(self,
                                   order_book,
                                   testing_symbol_or_symbols=None):
        if not testing_symbol_or_symbols:
            testing_symbol_or_symbols = self.testing_symbol

        AssertUtil.assertOrderBookDiffIsValid(self, order_book,
                                              testing_symbol_or_symbols,
                                              self.platform_id)
예제 #3
0
 def assertAccountIsValid(self, account):
     AssertUtil.assertAccountIsValid(self, account, self.platform_id)
예제 #4
0
    def assertTickerIsValid(self, ticker, testing_symbol_or_symbols=None):
        # if not testing_symbol_or_symbols:
        #     testing_symbol_or_symbols = self.testing_symbol

        AssertUtil.assertTickerIsValid(self, ticker, testing_symbol_or_symbols,
                                       self.platform_id)
예제 #5
0
    def assertCandleIsValid(self, candle, testing_symbol_or_symbols=None):
        if not testing_symbol_or_symbols:
            testing_symbol_or_symbols = self.testing_symbol

        AssertUtil.assertCandleIsValid(self, candle, testing_symbol_or_symbols,
                                       self.platform_id)