# Any lib for getting Hong Kong stock data?

**URL:** <https://discourse.julialang.org/t/any-lib-for-getting-hong-kong-stock-data/55500>\
**Category:** Finance and Economics\
**Tags:** question\
**Created:** [February 18, 2021, 1:41am UTC](https://discourse.julialang.org/t/any-lib-for-getting-hong-kong-stock-data/55500 "2021-02-18T01:41:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellojason](https://avatars.discourse-cdn.com/v4/letter/h/7c8e57/32.png) [@hellojason](https://discourse.julialang.org/u/hellojason)\
**Post date:** [February 18, 2021, 1:41am UTC](https://discourse.julialang.org/t/any-lib-for-getting-hong-kong-stock-data/55500/1 "2021-02-18T01:41:38Z")

</div>

I have tried Alpha Vantage, that I can plot chart easily, but it seems no way to retrieve Hong Kong stock data. Does any lib. supporting for it? If really no way then I considering to try it by python …

Btw, as I am interesting to detect the VCP model, any of you experience on it please advise me.

Many many thanks!~~

---

<div class="post-metadata">

**Author:** ![mthelm85](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mthelm85/32/224164_2.png) [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Post date:** [February 18, 2021, 1:50am UTC](https://discourse.julialang.org/t/any-lib-for-getting-hong-kong-stock-data/55500/2 "2021-02-18T01:50:44Z")

</div>

I would take a look at the [HTTP.jl](https://github.com/JuliaWeb/HTTP.jl) package and then just find an API that you can call ([here](https://www.quandl.com/data/HKEX-Hong-Kong-Exchange/documentation) is one that came up after a quick Google search). To be honest, I’ve never really understood the value in packages that are built to call one specific API - IMHO your time is much better spent learning a little bit about how APIs work and how to call them from your programming language of choice, and then you don’t need a library to do it. I would highly recommend [Postman](https://www.postman.com/) for practicing/experimenting with API calls. Postman will actually generate code examples in multiple languages for API calls that you have set up within that application - unfortunately, Julia isn’t on the list (who can we light a fire under to make that happen?! 😄).

8 or 9 times out of 10 you just need to make a GET request to a REST API and include an API key either in the header of the request or as a parameter. You probably also will need to include some query string parameters to narrow down the data returned. Figure out how to do that and then you’ll be liberated from needing a library to get data via an API.

---

<div class="post-metadata">

**Author:** ![iblis17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iblis17/32/649_2.png) [@iblis17](https://discourse.julialang.org/u/iblis17)\
**Post date:** [February 19, 2021, 3:27am UTC](https://discourse.julialang.org/t/any-lib-for-getting-hong-kong-stock-data/55500/3 "2021-02-19T03:27:46Z")

</div>

You can try MarketData.jl. There is a function for querying data from Yahoo.

> **[GitHub - JuliaQuant/MarketData.jl: Time series market data](https://github.com/JuliaQuant/MarketData.jl#remote-data-source)**
>
> Time series market data. Contribute to JuliaQuant/MarketData.jl development by creating an account on GitHub.
