DXSP (DeX SwaP), A defi swap helper package. Swap made easy.
Project description
DXSP (DeX SwaP)
A python defi swap helper package. Swap made easy | |
---|---|
Key blockchains (ETH, BSC, ARB, MATIC, OPT...) Key swap protocol (UniV2 0x) |
Key features:
- Any blockchains mainnet or testnet supported by web3py, uniswap type router (uniswap, pancakeswap) or 0x.
Other features:
- Translate token symbol to contract address via user defined tokenlist format or coingecko API
- Connect to web3 automatically or use your own w3
- Approve contract and sign transaction
- Quote a given token
- Use Base trading symbol like stablecoin for risk management approach
- Settings to use the module for your own setup
Install
pip install dxsp
How to use it
from dxsp import DexSwap
dex = DexSwap()
#BUY 10 USDC to SWAP with BITCOIN
demo_tx = await dex.get_swap('USDT','wBTC',10)
print("demo_tx ", demo_tx)
Example
Real use case
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dxsp-3.0.2.tar.gz
(11.0 kB
view hashes)
Built Distribution
dxsp-3.0.2-py3-none-any.whl
(11.6 kB
view hashes)