# Track pool data

**URL:** <https://talk.harmony.one/t/track-pool-data/5835>\
**Category:** Web3\
**Created:** [November 18, 2021, 2:54pm UTC](https://talk.harmony.one/t/track-pool-data/5835 "2021-11-18T14:54:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicodd96](https://avatars.discourse-cdn.com/v4/letter/n/e5b9ba/32.png) [@nicodd96](https://talk.harmony.one/u/nicodd96)\
**Post date:** [November 18, 2021, 2:54pm UTC](https://talk.harmony.one/t/track-pool-data/5835/1 "2021-11-18T14:54:26Z")

</div>

Hello everyone.

Forgive my ignorance, but I am relatively new to this area. I would like to know if I can track Harmony pools using web3.py. I have read that Harmony is compatible with Ethereum, but I don’t know if this is possible.

If not, what is the best way to download data from Harmony chain using Python code?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Maffaz](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/maffaz/32/646_2.png) [@Maffaz](https://talk.harmony.one/u/Maffaz)\
**Post date:** [November 18, 2021, 4:45pm UTC](https://talk.harmony.one/t/track-pool-data/5835/2 "2021-11-18T16:45:36Z")

</div>

You can use the Harmony Python SDK

> **[pyhmy/pyhmy at master · harmony-one/pyhmy](https://github.com/harmony-one/pyhmy/tree/master/pyhmy)**
>
> master/pyhmy

(Install from GIT as the pip package is missing dependencies)

Alternatively you can connect to the RPC’s [Harmony Node API](https://api.hmny.io/?version=latest) with your own code and it is compatible with ETH RPC calls.  
[json-rpc | Ethereum Wiki](https://eth.wiki/json-rpc/API)

Because I don’t need the full package, I made this function to call the RPC that we use to gather data from the chain.

> <https://github.com/harmony-one-vdao/validator_info/blob/e1999d67de22fd2c535f3e878e5df672e06a180a/core/common.py#L73>

It also has connections to Smartstake and Prometheus as well…

Feel free to contact me if you need any direction…

---

<div class="post-metadata">

**Author:** ![Severin](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/severin/32/2061_2.png) [@Severin](https://talk.harmony.one/u/Severin)\
**Post date:** [November 19, 2021, 2:40am UTC](https://talk.harmony.one/t/track-pool-data/5835/3 "2021-11-19T02:40:11Z")

</div>

Hey I created this exact use case as example for harmony:. It’s in JavaScript, but it should work quite similar in python:

> <https://github.com/harmony-one/hackathon/blob/main/projects/price-bot/index.js>

Note: The abi is like a description of the structure of a contract, it differs depending on what contract is used.

---

<div class="post-metadata">

**Author:** ![Maffaz](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/maffaz/32/646_2.png) [@Maffaz](https://talk.harmony.one/u/Maffaz)\
**Post date:** [November 19, 2021, 8:45am UTC](https://talk.harmony.one/t/track-pool-data/5835/5 "2021-11-19T08:45:33Z")

</div>

You could use the web3 library for Python and pretty much copy paste this code… It is basically the same…
