Skip to content

Commit 7ee136d

Browse files
authored
Add more precision to coingecko (#9)
1 parent 9c364e9 commit 7ee136d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

publisher/coin_gecko.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ async def _update_loop(self) -> None:
2929
await asyncio.sleep(self._update_interval_secs)
3030

3131
def _update_prices(self) -> None:
32-
result = self._api.get_price(ids=list(self._prices.keys()), vs_currencies=USD)
32+
result = self._api.get_price(
33+
ids=list(self._prices.keys()), vs_currencies=USD, decimals=18
34+
)
3335
for id_, prices in result.items():
3436
self._prices[id_] = prices[USD]
3537
log.debug("updated prices from CoinGecko", prices=self._prices)

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
setup(
44
name="example-publisher",
5-
version="0.0.1",
6-
author="Tom Pointon",
7-
author_email="[email protected]",
5+
version="0.0.2",
6+
author="Pyth Data Association",
7+
author_email="",
88
packages=find_packages(exclude=["tests"]),
99
zip_safe=False,
1010
include_package_data=True,

0 commit comments

Comments
 (0)