Technical Specification: Auto Trading Script ValueScan → Bybit (LONG + SL + Telegram)
Goal
The script automatically:
tracks new assets in ValueScan (Long inflow alert),
opens a LONG position on Bybit,
sets a Stop-Loss,
sends a notification to Telegram.
Signal Source
Website: https://www.valuescan.io
Section: AI Long / Short → Long inflow alert
API is absent
Data retrieval: page parsing or network requests
Logic
Upon launch: current assets are saved (without trades)
Then:
check every 5–15 seconds
if a new asset appears → process
each asset is processed once
The list of processed assets is stored (JSON / SQLite)
Trading (Bybit)
Exchange: Bybit (official API)
Trade type: LONG ONLY
Order: Market
Margin: Isolated
Parameters (via config):
trade amount (USDT)
leverage
Stop-Loss: fixed % from entry
Take-Profit: not needed
If the asset is unavailable on Bybit → skip
Stop-Loss
Calculated from the entry price
Set immediately after opening the trade
No trailing
Telegram notifications
Send a message on each trade attempt:
Content:
ticker
LONG
entry price
Stop-Loss (% and price)
leverage
amount
time
status (open / error)
Protection
prohibition of repeated trades for one asset
error handling for the website and API
logging of all actions