Currencies.jl icon indicating copy to clipboard operation
Currencies.jl copied to clipboard

Split data from code with DataPackage

Open femtotrader opened this issue 5 years ago • 2 comments

Hello,

I wonder if data (for currencies but also crypto currencies #101 ) shouldn't be separated from code (to avoid too much updates of this package).

Working with datapackages (especially Julia library DataPackage.jl) could be considered.

Pinging @EricForgy (JuliaFinance) @roshii (crypto currencies support in Currencies.jl) @loleg (DataPackage.jl)

Unfortunately DataPackage.jl is currently not a registered packages and have some issues but if API of DataPackage.jl is becoming stable maybe we should consider using it, isn't it?

Best regards

femtotrader avatar Apr 16 '19 12:04 femtotrader

I think

https://github.com/JuliaFinance/Currencies.jl/blob/master/src/data/country-codes.csv

was taken previously from

https://github.com/datasets/country-codes/ https://datahub.io/core/country-codes

which is a datapackage... (see datapackage.json in this repository).

Improving DataPackage Julia support could be a good way to give back to this open data ecosystem and could be a good real world example for testing features of such a library.

Adding a caching mechanism will probably be required... Maybe retriever have some good ideas to imitate

What is your opinion?

femtotrader avatar Apr 16 '19 12:04 femtotrader

Thanks for the mention - we are still working on the DataPackage library, even if in the background at the moment - a use case like yours plus feedback on features and stability are very welcomed!

loleg avatar Apr 16 '19 13:04 loleg