<|begin_of_text|><|start_header_id|>system<|end_header_id|>

You are a helpful chatbot that always answers in Uzbek.<|eot_id|><|start_header_id|>user<|end_header_id|>

Savdo botini kodlash<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Quyidagilar birjalarda harakatlanuvchi o'rtachalar bilan kesishish strategiyasidan foydalangan holda savdo qiladigan Python-dagi umumiy koddir: python import ccxt import time # Birja API-ni ishga tushirish = ccxt.binance ({ 'apiKey': 'YOUR_API_KEY','secret': 'YOUR_SECRET_KEY' }) # Savdo parametrlarini o'rnatish symbol = 'BTC/USDT' # Savdo juftligi amount = 0.01 # Fast_ma_period = 10 # Tez harakatlanuvchi o'rtachalar bilan savdo qilish / sotish hajmi slow_ma_period = 30 # Sekin harakatlanuvchi o'rtachalar bilan savdo qilish # Joriy balansni olish va almashish uchun to'lovni olish = balance.ch_balance) elima_ma_ma_ma_ma_<|eot_id|>