Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi modules requiring in QuoteSummary.jl #31

Closed
rzhli opened this issue Feb 16, 2025 · 1 comment
Closed

Multi modules requiring in QuoteSummary.jl #31

rzhli opened this issue Feb 16, 2025 · 1 comment

Comments

@rzhli
Copy link
Contributor

rzhli commented Feb 16, 2025

Can we require two or more modules such as "summaryDetail" & "defaultKeyStatistics" at the same time?
In QuoteSummary.jl

 res = HTTP.get("https://query2.finance.yahoo.com/v10/finance/quoteSummary/$(symbol)",query =q, proxy=_PROXY_SETTINGS[:proxy],headers=merge(_HEADER,_PROXY_SETTINGS[:auth]),cookies=_COOKIE)    
    res = JSON3.read(res.body)
    if typeof(item) <: AbstractString
        return res.quoteSummary.result[1][Symbol(item)]
    else
         return res.quoteSummary.result[1]
    end

If I require "summaryDetail" & "defaultKeyStatistics" simultaneously, will it excute return res.quoteSummary.result[1]? and that contains both "summaryDetail" & "defaultKeyStatistics" ?

@eohne
Copy link
Owner

eohne commented Feb 16, 2025

Hi yes if you just use the get_quoteSummary(ticker) function you will get both.

julia>  get_quoteSummary("AAPL")
JSON3.Object{Vector{UInt8}, SubArray{UInt64, 1, Vector{UInt64}, Tuple{UnitRange{Int64}}, true}} with 31 entries:
  :assetProfile                      => {
  :recommendationTrend               => {
  :cashflowStatementHistory          => {
  :indexTrend                        => {
  :defaultKeyStatistics              => {
  :industryTrend                     => {
  :quoteType                         => {
  :incomeStatementHistory            => {
  :fundOwnership                     => {
  :summaryDetail                     => {
  :insiderHolders                    => {
  :calendarEvents                    => {
  :upgradeDowngradeHistory           => {
  :price                             => {
  :balanceSheetHistory               => {
  :earningsTrend                     => {
  :secFilings                        => {
  :institutionOwnership              => {
  :majorHoldersBreakdown             => {
  :balanceSheetHistoryQuarterly      => {
  :earningsHistory                   => {
  :majorDirectHolders                => {
  :esgScores                         => {
  :summaryProfile                    => {
  :netSharePurchaseActivity          => {
  :insiderTransactions               => {
  :sectorTrend                       => {
  :incomeStatementHistoryQuarterly   => {
  :cashflowStatementHistoryQuarterly => {
  :earnings                          => {
  :financialData                     => {

@rzhli rzhli closed this as completed Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants