# Инициализация биржи Binance через библиотеку ccxt exchange = ccxt.binance()
# Функция для получения последних сделок def fetch_trades(symbol='BTC/USDT', limit=50): try: trades = exchange.fetch_trades(symbol, limit=limit) return trades except Exception as e: logging.error(f"Ошибка при получении сделок: {e}") return []
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.