api고 뭐고 다 귀찮은 사람들을 위하여
F12 눌러서 Console에 아래 코드 복붙하면
시장가 - 물량MAX - 매수 매도 랜덤시간으로 반복됨
개초보가 만든거라 감안하고 쓰시길
다계 500 ~ 1000$정도씩 넣어두고 돌리는 중
// =============================
// Lighter Auto Trade Bot - FULL FINAL VERSION
// (모든 기능 포함: 랜덤 대기, BUY/SELL 반복, 체결 대기, React input 강제 반영 등)
// =============================
// -------- React input 강제 적용 함수 --------
function setReactInputValue(el, value) {
const setter = Object.getOwnPropertyDescriptor(
window.HTMLInputElement.prototype,
"value"
).set;
setter.call(el, value);
el.dispatchEvent(new Event("input", { bubbles: true }));
el.dispatchEvent(new Event("change", { bubbles: true }));
el.dispatchEvent(new Event("blur", { bubbles: true }));
}
// -------- % 입력 (100%) --------
function setPercent100() {
const el = document.querySelector('[data-testid="percentage-slider-input"]');
if (el) {
setReactInputValue(el, 100);
console.log("✔️ 100% 입력됨");
} else {
console.log("❌ % 입력창을 찾지 못함");
}
}
// -------- BUY / SELL 탭 전환 --------
function clickBuyTab() {
const btns = document.querySelectorAll("button");
for (const b of btns) {
if (b.innerText.trim() === "Buy") {
b.click();
console.log("✔️ BUY 탭 전환 성공");
return true;
}
}
console.log("❌ BUY 탭 못 찾음");
return false;
}
function clickSellTab() {
const btns = document.querySelectorAll("button");
for (const b of btns) {
if (b.innerText.trim() === "Sell") {
b.click();
console.log("✔️ SELL 탭 전환 성공");
return true;
}
}
console.log("❌ SELL 탭 못 찾음");
return false;
}
// -------- Market Order 실행 --------
function clickMarketOrder() {
const btn = document.querySelector('[data-testid="place-order-button"]');
if (btn) {
btn.click();
console.log("🚀 시장가 주문 실행됨");
} else {
console.log("❌ place-order-button 못 찾음");
}
}
// -------- 유틸 --------
function wait(ms) { return new Promise(r => setTimeout(r, ms)); }
function randomMs(min, max) {
return Math.floor((Math.random() * (max - min) + min) * 1000);
}
// BUY 체결 안정 대기
const BUY_FILL_DELAY = 1200; // 1.2초
// =============================
// -------- 메인 자동매매 루프 --------
// =============================
async function tradingLoop() {
while (true) {
// -------- BUY --------
clickBuyTab();
await wait(150);
setPercent100();
await wait(100);
clickMarketOrder();
console.log("⏳ BUY 체결 대기중...");
await wait(BUY_FILL_DELAY);
// BUY 후 랜덤 1~5초 대기
let buyDelay = randomMs(1, 5);
console.log(⏳ BUY 이후 대기: ${(buyDelay/1000).toFixed(2)}초);
await wait(buyDelay);
// -------- SELL --------
clickSellTab();
await wait(150);
setPercent100();
await wait(100);
clickMarketOrder();
console.log("⏳ SELL 실행됨");
// SELL 후 랜덤 10~90초 대기
let sellDelay = randomMs(10, 90);
console.log(⏳ SELL 이후 대기: ${(sellDelay/1000).toFixed(2)}초);
await wait(sellDelay);
}
}
tradingLoop();
console.log("🔥 FULL FINAL Lighter Auto-Bot STARTED");
랜덤대기시간은 알아서 조절하기
