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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file dexscreener-0.0.1.tar.gz.

File metadata

  • Download URL: dexscreener-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for dexscreener-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7f73b0812633e689f5e48c1489d44ba0c9362c971dfe29ead0379c6f783c70e7
MD5 2fe6f7719a5d4ceb621a008486c9cfa5
BLAKE2b-256 4781d4a4c47cc7f58d7b4f5c3f322ac3bdfabfafcc3894f268a9c0acbdd6fe36

See more details on using hashes here.

Provenance

File details

Details for the file dexscreener-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dexscreener-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for dexscreener-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dac333084dfadbff32d946184c2da397447b4b33894e1ebbd3e973f8c82e82a3
MD5 f3e04e4fe197a6fa86e22163559192f6
BLAKE2b-256 f0b4410311f3fb0812e60630f2f4b4f7f5e9e08736bb2acf0538cbcf44d37b45

See more details on using hashes here.

Provenance

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