Bắt đầu kiểm tra cho symbol: CAKEUSDT Phản hồi API giá hiện tại: {"symbol":"CAKEUSDT","price":"1.6257000","time":1776430801347} Giá hiện tại của CAKEUSDT: 1.6257 Số lượng đặt lệnh (amount): 25 Số lượng lệnh Open hiện tại: 8 Đã tìm thấy 8 lệnh đang mở Số lượng lệnh Chính: 6 Số lượng lệnh Ngược: 2 Đang xử lý Trường hợp 2: Có cả lệnh Chính và Ngược Lệnh Chính đầu tiên là: BUY Kiểm tra lệnh BUY Chính Giá thấp nhất của lệnh BUY Chính: 2.52910000 Giá thấp nhất của lệnh SELL Ngược: 2.52310000 Điều kiện 1: Giá hiện tại (1.6257) < Giá BUY Chính * 0.99 (2.503809) Điều kiện 2: Giá hiện tại (1.6257) < Giá SELL Ngược * 0.99 (2.497869) Đạt điều kiện 1, vào thêm lệnh BUY Chính Phản hồi API LONG: {"code":-2015,"msg":"Invalid API-key, IP, or permissions for action, request ip: 172.96.185.137","_method":"POST","_url":"https:\/\/fapi.binance.com\/fapi\/v1\/ordertimestamp=1776430810000&symbol=CAKEUSDT&side=BUY&type=MARKET&quantity=25&positionSide=LONG","_httpcode":401}{"code":-2015,"msg":"Invalid API-key, IP, or permissions for action, request ip: 172.96.185.137","_method":"GET","_url":"https:\/\/fapi.binance.com\/fapi\/v1\/ordertimestamp=1776430811000&symbol=CAKEUSDT","_httpcode":401} Lỗi: Phản hồi API LONG không hợp lệ Đạt điều kiện 2, vào thêm lệnh SELL Ngược Phản hồi API SHORT: {"code":-2015,"msg":"Invalid API-key, IP, or permissions for action, request ip: 172.96.185.137","_method":"POST","_url":"https:\/\/fapi.binance.com\/fapi\/v1\/ordertimestamp=1776430813000&symbol=CAKEUSDT&side=SELL&type=MARKET&quantity=25&positionSide=SHORT","_httpcode":401}{"code":-2015,"msg":"Invalid API-key, IP, or permissions for action, request ip: 172.96.185.137","_method":"GET","_url":"https:\/\/fapi.binance.com\/fapi\/v1\/ordertimestamp=1776430814000&symbol=CAKEUSDT","_httpcode":401} Lỗi: Phản hồi API SHORT không hợp lệ Kết thúc xử lý cho symbol: CAKEUSDT