Skip to content
المشاريع

حول

مكتبة Python لأتمتة التداول في DeFi، وأبحاث البيانات، والتكامل. تدعم Uniswap وAave وChainlink وUSDC وبروتوكولات أخرى.

الأعمال والمالية

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
+١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

PyPI version

Automated test suite

GMX Tests

web3-ethereum-defi

Use eth_defi to trade on decentralised exchanges, read onchain market data and manage vault positions from Python.

Supported protocols, chains and integrations

Protocols supported by eth_defi

Task Where to start
Swap tokens Uniswap v3 swap tutorial
Trade perpetual futures GMX and Derive
Transfer USDC between chains Circle CCTP
Discover vaults and read historical prices Vault protocol catalogue
Check deposit and redemption support Vault adapter capabilities
Check supported networks Chain names and identifiers
Find other integrations Python API reference

Prerequisites

The package declares support for Python 3.10 and later in the 3.x series. The repository uses Python 3.14 for development. Use Linux, macOS or Windows Subsystem for Linux.

Install

pip install web3-ethereum-defi

For a project managed by uv or Poetry, use uv add web3-ethereum-defi or poetry add web3-ethereum-defi. For data analysis, install web3-ethereum-defi[data]. The package configuration lists the optional dependencies for other integrations.

Example code

Uniswap swap example

The Polygon swap script reads token balances, asks for the amount to swap and requests confirmation before signing and broadcasting. It uses JSON_RPC_POLYGON for the connection and PRIVATE_KEY for the signing account. The tutorial collection covers swaps, lending, vaults and historical data.

Development and contributing

Follow the development instructions to install the checkout and run focused tests. The repository guide links to component READMEs, test fixtures and scanner operations.

Vault database maintenance

Use the numbered migration runbook to stop competing writers, preview pending changes, apply them and restart the scanner.

Version history

See the changelog and the releases on PyPI.

Support

Social media

Licence

MIT.

Created by Trading Strategy.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…