Tijoxa / swap_comparator

MIT License
0 stars 0 forks source link

swap_comparator

Setup

pip install -r requirements.lock

Edit the ./example.env into ./.env and fill the different fields.

Run

python -m swap_comparator

Test

pip install -r requirements-dev.lock

Run all tests:

pytest --run-all

Return value

A ./data/timestamp.csv is created / completed after a few minutes.

Some errors can happen:

Purpose

As part of the marketing samechain swap taskforce, Jumper team wants to better understand the positioning and competitiveness of Jumper in the samechain swap ecosystem in comparison with its competitors.

In this context, we want to have trustful source on data that compares quotes between Jumper and its most famous competitors on samechain swap trades.

Specs

Build a table that could be requested from the Jumper team that has 7 columns:

Pairs
Ethereum USDC - USDT, USDC - DAI, WETH-WBTC , WETH - USDC, WETH - USDT, WETH - WSTETH , WETH - MKR, WETH - PEPE
Arbitrum USDC - USDT, WETH - USDC, WETH - USDT, WETH - ARB

Hour

Stablecoin (USDC-DAI-USDT) WETH WBTC
Size 100 / 1000 / 10000 / 100000 / 1000000 0.1 / 0.1 / 1 / 10 / 100 / 1000 / 10000 0.01 / 0.1 / 1 / 10 / 100 / 1000

timestamp, platform, fromToken, toToken, chainId, gasCost, amountIn, amountOut

Resources

Chain ID: https://chainlist.org/

Contract address and contract decimals: Ethereum: https://etherscan.io/ Arbitrum: https://arbiscan.io/

API PLATFORMS LIST - PRIORITY 1

API LIST - PRIORITY 2