MCPcopy Create free account
hub / github.com/ccxt/ccxt / run_private_tests

Method run_private_tests

python/ccxt/test/tests_async.py:557–624  ·  view source on GitHub ↗
(self, exchange, symbol)

Source from the content-addressed store, hash-verified

555 return True
556
557 async def run_private_tests(self, exchange, symbol):
558 if not exchange.check_required_credentials(False):
559 dump('[INFO] Skipping private tests', 'Keys not found')
560 return True
561 code = self.get_exchange_code(exchange)
562 # if (exchange.deepExtendedTest) {
563 # await test ('InvalidNonce', exchange, symbol);
564 # await test ('OrderNotFound', exchange, symbol);
565 # await test ('InvalidOrder', exchange, symbol);
566 # await test ('InsufficientFunds', exchange, symbol, balance); # danger zone - won't execute with non-empty balance
567 # }
568 tests = {
569 'signIn': [],
570 'fetchBalance': [],
571 'fetchAccounts': [],
572 'fetchTransactionFees': [],
573 'fetchTradingFees': [],
574 'fetchStatus': [],
575 'fetchOrders': [symbol],
576 'fetchOpenOrders': [symbol],
577 'fetchClosedOrders': [symbol],
578 'fetchMyTrades': [symbol],
579 'fetchLeverageTiers': [[symbol]],
580 'fetchLedger': [code],
581 'fetchTransactions': [code],
582 'fetchDeposits': [code],
583 'fetchWithdrawals': [code],
584 'fetchTransfers': [code],
585 'fetchBorrowInterest': [code, symbol],
586 'cancelAllOrders': [symbol],
587 'fetchCanceledOrders': [symbol],
588 'fetchMarginModes': [symbol],
589 'fetchPosition': [symbol],
590 'fetchDeposit': [code],
591 'createDepositAddress': [code],
592 'fetchDepositAddress': [code],
593 'fetchDepositAddresses': [code],
594 'fetchDepositAddressesByNetwork': [code],
595 'fetchBorrowRateHistory': [code],
596 'fetchLedgerEntry': [code],
597 }
598 if get_cli_arg_value('--fundedTests'):
599 tests['createOrder'] = [symbol]
600 if self.ws_tests:
601 tests = {
602 'watchBalance': [code],
603 'watchMyTrades': [symbol],
604 'watchOrders': [symbol],
605 'watchPosition': [symbol],
606 'watchPositions': [symbol],
607 }
608 market = exchange.market(symbol)
609 is_spot = market['spot']
610 if not self.ws_tests:
611 if is_spot:
612 tests['fetchCurrencies'] = []
613 else:
614 # derivatives only

Callers 1

test_exchangeMethod · 0.95

Calls 6

get_exchange_codeMethod · 0.95
run_testsMethod · 0.95
dumpFunction · 0.90
get_cli_arg_valueFunction · 0.90
marketMethod · 0.45

Tested by

no test coverage detected