Skip to content

Commit

Permalink
Fix @stock
Browse files Browse the repository at this point in the history
  • Loading branch information
EricForgy committed Jul 13, 2020
1 parent 87bdff4 commit 85a942a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ keywords = ["Finance", "Asset"]
license = "MIT"
desc = "Financial assets"
authors = ["Eric Forgy <Eric.Forgy@cavalre.com>", "ScottPJones <scottjones@alum.mit.edu>"]
version = "0.10.1"
version = "0.10.2"

[deps]
Currencies = "0fd90b74-7c1f-579e-9252-02cd883047b9"
Expand Down
2 changes: 1 addition & 1 deletion src/Assets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ stock(S::Symbol, C::Type{<:Currency}=Currency{:USD}) = Stock{S,C}
macro stock(syms)
args = syms isa Expr ? syms.args : [syms]
for nam in args
@eval __module__ const $nam = typeof(Position(Stock{$(QuoteNode(nam)),Currency{:USD}},0))
@eval __module__ const $nam = typeof(Position(Assets.Stock{$(QuoteNode(nam)),Assets.Currency{:USD}},0))
end
end

Expand Down

0 comments on commit 85a942a

Please sign in to comment.