Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dvisacker/cryo-prices
https://github.com/dvisacker/cryo-prices
amm cryo crypto evm python
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dvisacker/cryo-prices
- Owner: Dvisacker
- Created: 2024-10-24T08:45:47.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-10-28T05:43:30.000Z (3 months ago)
- Last Synced: 2024-11-16T01:56:40.204Z (2 months ago)
- Topics: amm, cryo, crypto, evm, python
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## cryo-prices
Simple python script to get the price of a token from a DEX.
Credits to Cryo and LibEVM (for showcasing cryo-python in his recent livestream)
# Example usage of cryo in python
```python
blocks = cryo.collect('blocks', blocks=['latest'], rpc="https://eth.merkle.io")
print(blocks.head())
txs = cryo.collect('transactions', blocks=['latest'], rpc="https://eth.merkle.io")
print(txs.head())txs = cryo.collect(
'transactions',
blocks=['-10:20000000'],
rpc="https://eth.merkle.io"
)
```