ellisvalentiner / AlphaVantage.jl
Showing 2 of 4 files from the diff.

@@ -44,6 +44,11 @@
Loading
44 44
    return a
45 45
end
46 46
47 +
function _form_uri_tail(client::AVClient)
48 +
    "&apikey=" * key(client)
49 +
end
50 +
51 +
47 52
"""
48 53
Internal function that helps forms the request uri
49 54
"""

@@ -87,3 +87,17 @@
Loading
87 87
        export $fname
88 88
    end
89 89
 end
90 +
91 +
 function earnings_calendar(horizon::Int64; client=GLOBAL[], parser = "default")
92 +
    uri = _form_uri_head(client, "EARNINGS_CALENDAR") * "&horizon=$(horizon)month" * _form_uri_tail(client)
93 +
    data = retry(_get_request, delays=Base.ExponentialBackOff(n=3, first_delay=4, max_delay=1000))(uri)
94 +
    p = _parser(parser, "csv")
95 +
    return p(data)
96 +
 end 
97 +
98 +
 function ipo_calendar(; client = GLOBAL[], parser = "default")
99 +
    uri = _form_uri_head(client, "IPO_CALENDAR") * _form_uri_tail(client)
100 +
    data = retry(_get_request, delays=Base.ExponentialBackOff(n=3, first_delay=4, max_delay=1000))(uri)
101 +
    p = _parser(parser, "csv")
102 +
    return p(data)
103 +
 end
Files Coverage
src 96.60%
Project Totals (8 files) 96.60%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading