Skip to main content

Python wrapper for the 'dexscreener.com' API

Project description

Python Wrapper for 'dexscreener.com'

Pull requests GREATLY encouraged!
from dexscreener import DexscreenerClient

client = DexscreenerClient()

history = client.get_recent_trade_history("harmony", "0xfb305344b1b9c8b57b1fa80ebb8a6548490a15ea")

print(history)

"""
schema_verion='1.2.2' 
base_token_symbol='WAIFU' 
quote_token_symbol='WONE' 
trade_history=[
    TradeHistoryEntryModel(
        block=21906751, 
        block_timestamp=1642611592000, 
        txn_hash='0xf5bae798e7bebb3692816e0baed6756cf2444c53200e9879d6f37ed39a0926a4', 
        log_index=92, 
        type='sell', 
        price_usd=0.0001172, 
        volume_usd=11.72,
        token0_amount=100000.0, 
        token1_amount=40.25
    ), 
    ...         
"""

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dexscreener-0.0.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

dexscreener-0.0.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page