[Python] Downloading stocks at once from Yahoo Finance

Discussão em 'Python' iniciado por Stack, Abril 17, 2025.

  1. Stack

    Stack Membro Participativo

    Is the stock data in yahoo finance now only limited to US stocks for the purpose of retrieving data from other countries? for stocks in the Asian region, is it no longer possible? I use it through python and maybe you can give instructions to use other alternatives.

    I took data from telkom indonesia

    dat = yf.Ticker("TLKM")

    # Check if options are available
    if dat.options:
    first_option_date = dat.options[0]
    option_chain = dat.option_chain(first_option_date)
    calls = option_chain.calls
    puts = option_chain.puts
    print("Calls:")
    print(calls)
    else:
    print("Option data is not available for this ticker.")```

    Continue reading...

Compartilhe esta Página