Bắt đầu xử lý đóng lệnh tự động
Cấu hình database: host=localhost, user=minhkienpro_fu3, db=minhkienpro_fu3
Kết nối database...
Kết nối database thành công
Kiểm tra lệnh Open...
Số lệnh Open: 11
Kiểm tra lệnh BUY Chinh và SELL Nguoc...
Truy vấn BUY Chinh và SELL Nguoc thành công
Kiểm tra lệnh SELL Chinh và BUY Nguoc...
Truy vấn SELL Chinh và BUY Nguoc thành công
Xử lý BUY Chinh và SELL Nguoc...
Symbol: VIRTUALUSDT, Max BUY Chinh: 2.46248800
Max SELL Nguoc: 2.11710000, % Chênh lệch: 14.02597697938
Chênh lệch > 8%, kiểm tra giá hiện tại...
Lấy giá hiện tại cho VIRTUALUSDT
Gọi API: https://fapi.binance.com/fapi/v1/ticker/price?symbol=VIRTUALUSDT
API trả về: {"symbol":"VIRTUALUSDT","price":"0.7199000","time":1776511565671}
Giá hiện tại VIRTUALUSDT: 0.7199
Giá hiện tại: 0.7199, % so với SELL Nguoc: -65.995937839497
Đạt điều kiện (<-1%), đóng tất cả lệnh Open của VIRTUALUSDT
Số lệnh Open của VIRTUALUSDT: 11
Lệnh ID: 124, Side: BUY, Quantity: 25.00
Đóng lệnh: symbol=VIRTUALUSDT, side=SELL, quantity=25.00, type=LONG
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 87 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT SELL: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 87 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 124): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 87 ms: Could not connect to server
Lệnh ID: 143, Side: BUY, Quantity: 25.00
Đóng lệnh: symbol=VIRTUALUSDT, side=SELL, quantity=25.00, type=LONG
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 99 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT SELL: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 99 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 143): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 99 ms: Could not connect to server
Lệnh ID: 146, Side: BUY, Quantity: 25.00
Đóng lệnh: symbol=VIRTUALUSDT, side=SELL, quantity=25.00, type=LONG
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 88 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT SELL: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 88 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 146): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 88 ms: Could not connect to server
Lệnh ID: 147, Side: BUY, Quantity: 25.00
Đóng lệnh: symbol=VIRTUALUSDT, side=SELL, quantity=25.00, type=LONG
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 86 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT SELL: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 86 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 147): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 86 ms: Could not connect to server
Lệnh ID: 151, Side: BUY, Quantity: 25.00
Đóng lệnh: symbol=VIRTUALUSDT, side=SELL, quantity=25.00, type=LONG
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 104 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT SELL: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 104 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 151): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 104 ms: Could not connect to server
Lệnh ID: 152, Side: BUY, Quantity: 25.00
Đóng lệnh: symbol=VIRTUALUSDT, side=SELL, quantity=25.00, type=LONG
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 99 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT SELL: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 99 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 152): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 99 ms: Could not connect to server
Lệnh ID: 153, Side: BUY, Quantity: 25.00
Đóng lệnh: symbol=VIRTUALUSDT, side=SELL, quantity=25.00, type=LONG
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 92 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT SELL: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 92 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 153): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 92 ms: Could not connect to server
Lệnh ID: 157, Side: BUY, Quantity: 25.00
Đóng lệnh: symbol=VIRTUALUSDT, side=SELL, quantity=25.00, type=LONG
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 96 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT SELL: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 96 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 157): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 96 ms: Could not connect to server
Lệnh ID: 169, Side: SELL, Quantity: 25.00
Đóng lệnh: symbol=VIRTUALUSDT, side=BUY, quantity=25.00, type=SHORT
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=BUY&quantity=25.00000000&type=SHORT
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=BUY&quantity=25.00000000&type=SHORT): Failed to connect to future.congtytraxanh.com port 443 after 106 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT BUY: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=BUY&quantity=25.00000000&type=SHORT): Failed to connect to future.congtytraxanh.com port 443 after 106 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 169): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=BUY&quantity=25.00000000&type=SHORT): Failed to connect to future.congtytraxanh.com port 443 after 106 ms: Could not connect to server
Lệnh ID: 170, Side: BUY, Quantity: 25.00
Đóng lệnh: symbol=VIRTUALUSDT, side=SELL, quantity=25.00, type=LONG
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 84 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT SELL: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 84 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 170): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 84 ms: Could not connect to server
Lệnh ID: 171, Side: SELL, Quantity: 25.00
Đóng lệnh: symbol=VIRTUALUSDT, side=BUY, quantity=25.00, type=SHORT
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=BUY&quantity=25.00000000&type=SHORT
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=BUY&quantity=25.00000000&type=SHORT): Failed to connect to future.congtytraxanh.com port 443 after 88 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT BUY: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=BUY&quantity=25.00000000&type=SHORT): Failed to connect to future.congtytraxanh.com port 443 after 88 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 171): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=BUY&quantity=25.00000000&type=SHORT): Failed to connect to future.congtytraxanh.com port 443 after 88 ms: Could not connect to server
Xử lý SELL Chinh và BUY Nguoc...
Đóng kết nối database
Close Orders

Quản lý đóng lệnh tự động

Lỗi đóng lệnh VIRTUALUSDT (ID: 124): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 87 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 143): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 99 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 146): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 88 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 147): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 86 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 151): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 104 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 152): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 99 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 153): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 92 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 157): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 96 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 169): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=BUY&quantity=25.00000000&type=SHORT): Failed to connect to future.congtytraxanh.com port 443 after 106 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 170): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=SELL&quantity=25.00000000&type=LONG): Failed to connect to future.congtytraxanh.com port 443 after 84 ms: Could not connect to server
Lỗi đóng lệnh VIRTUALUSDT (ID: 171): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=VIRTUALUSDT&side=BUY&quantity=25.00000000&type=SHORT): Failed to connect to future.congtytraxanh.com port 443 after 88 ms: Could not connect to server