Bắt đầu xử lý đóng lệnh tự động
Cấu hình database: host=localhost, user=kiencoin_fu4, db=kiencoin_fu4
Kết nối database...
Kết nối database thành công
Kiểm tra lệnh Open...
Số lệnh Open: 6
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: FETUSDT, Max BUY Chinh: 0.90230000
Max SELL Nguoc: 0.82550000, % Chênh lệch: 8.5115815139089
Chênh lệch > 8%, kiểm tra giá hiện tại...
Lấy giá hiện tại cho FETUSDT
Gọi API: https://fapi.binance.com/fapi/v1/ticker/price?symbol=FETUSDT
API trả về: {"symbol":"FETUSDT","price":"0.2649000","time":1780244644753}
Giá hiện tại FETUSDT: 0.2649
Giá hiện tại: 0.2649, % so với SELL Nguoc: -67.910357359176
Đạt điều kiện (<-1%), đóng tất cả lệnh Open của FETUSDT
Số lệnh Open của FETUSDT: 6
Lệnh ID: 138, Side: BUY, Quantity: 65.00
Đóng lệnh: symbol=FETUSDT, side=SELL, quantity=65.00, type=LONG
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lỗi đóng lệnh FETUSDT SELL: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lỗi đóng lệnh FETUSDT (ID: 138): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lệnh ID: 139, Side: BUY, Quantity: 65.00
Đóng lệnh: symbol=FETUSDT, side=SELL, quantity=65.00, type=LONG
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lỗi đóng lệnh FETUSDT SELL: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lỗi đóng lệnh FETUSDT (ID: 139): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lệnh ID: 141, Side: BUY, Quantity: 65.00
Đóng lệnh: symbol=FETUSDT, side=SELL, quantity=65.00, type=LONG
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lỗi đóng lệnh FETUSDT SELL: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lỗi đóng lệnh FETUSDT (ID: 141): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lệnh ID: 143, Side: BUY, Quantity: 65.00
Đóng lệnh: symbol=FETUSDT, side=SELL, quantity=65.00, type=LONG
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lỗi đóng lệnh FETUSDT SELL: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lỗi đóng lệnh FETUSDT (ID: 143): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lệnh ID: 145, Side: BUY, Quantity: 65.00
Đóng lệnh: symbol=FETUSDT, side=SELL, quantity=65.00, type=LONG
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lỗi đóng lệnh FETUSDT SELL: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lỗi đóng lệnh FETUSDT (ID: 145): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=SELL&quantity=65.00000000&type=LONG): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lệnh ID: 146, Side: SELL, Quantity: 65.00
Đóng lệnh: symbol=FETUSDT, side=BUY, quantity=65.00, type=SHORT
Gọi API: https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=BUY&quantity=65.00000000&type=SHORT
Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=BUY&quantity=65.00000000&type=SHORT): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lỗi đóng lệnh FETUSDT BUY: Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=BUY&quantity=65.00000000&type=SHORT): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Lỗi đóng lệnh FETUSDT (ID: 146): Lỗi gọi API (https://future.congtytraxanh.com/api-binance/future/Dong-lenh-2-chieu.php?symbol=FETUSDT&side=BUY&quantity=65.00000000&type=SHORT): TLS connect error: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error
Xử lý SELL Chinh và BUY Nguoc...
Đóng kết nối database