from binance.enums import HistoricalKlinesType from BinanceSpot import BinanceSpotExchange def test_binance_spot_exchange(): bse = BinanceSpotExchange('bse') print(f'\nTesting name assignment: {bse.name}') print(f'Testing get_client(): {bse.get_client()}') # print(f'Testing get_symbol_info(): {bse.get_exchange_info()}') print(f'Testing get_symbols(): {bse.get_symbols()}') print(f'Testing get_balances(): {bse.get_balances()}') print(f'Testing get_avail_intervals(): {bse.get_avail_intervals()}') print(f'Testing get_historical_klines(): {bse.get_historical_klines(symbol="ETHUSDT",interval="15m",start_str="1 hour ago UTC",klines_type=HistoricalKlinesType.SPOT)}') print(f'Testing get_symbol_precision_rule(): {bse.get_symbol_precision_rule("ETHUSDT")}') print(f'Testing get_min_qty(): {bse.get_min_qty("ETHUSDT")}') print(f'Testing get_min_notional_qty(): {bse.get_min_notional_qty("ETHUSDT")}') print(f'Testing get_price(): {bse.get_price("BTCUSDT")}') # #bse.get_order()