Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
markushhh committed Jan 10, 2020
1 parent 45ac348 commit 0dd3ac5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/get_source.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Arguments
- `source_id`: an ID, e.g. 1 for "Board of Governors of the Federal Reserve System (US)""
- `source_id`: an ID, e.g. 1 for "Board of Governors of the Federal Reserve System (US)"
## Examples
Expand Down
11 changes: 6 additions & 5 deletions src/search_symbol.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
# Search for the symbol of an economic data series that matches the search text.
search_variable(search_text, must_contain)
search_symbol(search_text, must_contain)
## Arguments
Expand All @@ -15,16 +15,17 @@ The resulting DataFrame is sorted by popularity.
## Example
```jldoctest
julia> search_variable("Exports", "Mexico")
julia> search_variable("GDP", "Germany")
julia> search_variable("G", "France")
julia> x = search_variable("Exports", "Mexico")
julia> search_symbol("Exports", "Mexico")
julia> search_symbol("GDP", "Germany")
julia> search_symbol("G", "France")
julia> x = search_symbol("Exports", "Mexico")
julia> println(x)
```
"""
function search_symbol(search_title::String, must_contain::String = "")

search_text = replace(search_title, " " => "+")
must_contain = replace(must_contain, " " => "+")
url = "https://api.stlouisfed.org/fred/series/search"

parameters = Dict("api_key" => ENV["API_FRED"],
Expand Down

0 comments on commit 0dd3ac5

Please sign in to comment.