From 467dfcd10559afa7db05dd383974eeba47a8e56f Mon Sep 17 00:00:00 2001 From: Andrey Oskin Date: Tue, 1 Feb 2022 13:40:56 +0200 Subject: [PATCH] csv deprecation fix (#76) --- Project.toml | 2 +- src/downloads.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 32c7fbd..e3a6909 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "MarketData" uuid = "945b72a4-3b13-509d-9b46-1525bb5c06de" authors = ["JuliaQuant "] -version = "0.13.8" +version = "0.13.9" [deps] CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" diff --git a/src/downloads.jl b/src/downloads.jl index 030e084..05fbe37 100644 --- a/src/downloads.jl +++ b/src/downloads.jl @@ -95,7 +95,7 @@ function yahoo(sym::AbstractString = "^GSPC", opt::YahooOpt = YahooOpt()) url = "https://$host.finance.yahoo.com/v7/finance/download/$sym" res = HTTP.get(url, query = opt) @assert res.status == 200 - csv = CSV.File(res.body, missingstrings = ["null"]) + csv = CSV.File(res.body, missingstring = "null") sch = TimeSeries.Tables.schema(csv) TimeArray(csv, timestamp = first(sch.names)) |> cleanup_colname! end