Bắt đầu kiểm tra cho symbol: COOKIEUSDT
Phản hồi API giá hiện tại: {"symbol":"COOKIEUSDT","price":"0.0122600","time":1780244789578}
Giá hiện tại của COOKIEUSDT: 0.01226
Số lượng đặt lệnh (amount): 300
Số lượng lệnh Open hiện tại: 2
Đã tìm thấy 2 lệnh đang mở
Số lượng lệnh Chính: 1
Số lượng lệnh Ngược: 1
Đ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: 0.02775000
Giá thấp nhất của lệnh SELL Ngược: 0.01635000
Điều kiện 1: Giá hiện tại (0.01226) < Giá BUY Chính * 0.99 (0.0274725)
Điều kiện 2: Giá hiện tại (0.01226) < Giá SELL Ngược * 0.99 (0.0161865)
Đạ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=1780244801000&symbol=COOKIEUSDT&side=BUY&type=MARKET&quantity=300&positionSide=LONG","_httpcode":401}
Notice: Undefined variable: result in /home/kiencoin/coin.congtytraxanh.com/api-binance/future/Vao-lenh-2-chieu.php on line 52
Notice: Trying to access array offset on value of type null in /home/kiencoin/coin.congtytraxanh.com/api-binance/future/Vao-lenh-2-chieu.php on line 52
{"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=1780244802000&symbol=COOKIEUSDT","_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=1780244803000&symbol=COOKIEUSDT&side=SELL&type=MARKET&quantity=300&positionSide=SHORT","_httpcode":401}
Notice: Undefined variable: result in /home/kiencoin/coin.congtytraxanh.com/api-binance/future/Vao-lenh-2-chieu.php on line 52
Notice: Trying to access array offset on value of type null in /home/kiencoin/coin.congtytraxanh.com/api-binance/future/Vao-lenh-2-chieu.php on line 52
{"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=1780244804000&symbol=COOKIEUSDT","_httpcode":401}
Lỗi: Phản hồi API SHORT không hợp lệ
Kết thúc xử lý cho symbol: COOKIEUSDT