INNER CODE UNIT · Python

watch_list

renee-jia/trading-bot · ai_sell_put_plan.py:75

def watch_list():
    raw = os.environ.get("AI_PUT_WATCH", "").strip()
    names = [x.strip().upper() for x in raw.split(",") if x.strip()] if raw else list(DEFAULT_WATCH)
    out = []
    for n in names:
        if n not in out:
            out.append(n)
    return out


def _num(v):
    if v is None:
        return None
    try:
        f = float(v)
        return f if np.isfinite(f) else None
    except (TypeError, ValueError):
        return None

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…