API that manages stop-limit orders on Uniswap V3. Users send a desired token-swap, price, and time limit and the swap happens if the price is hit during the limit.
This project is a simple API for scheduling stop-limit orders on Uniswap to protect against possible market flucuations. A user will set up the contract with a desired swap at a desired price within a certain time. Our service will store their swap and ping the Uniswap OracleLibrary for current prices, executing the swap if the desired price is hit during the time limit.
This project uses Flask to run a server and web3.py to interact with Ethereum mainnet. We use OracleLibrary and WeightedOracleLibrary to get prices on swaps and execute swaps using Uniswap V3. Users send a desired token-swap, price, and time limit and the swap happens if the price is hit during the limit. Currently not deployed as a smart contract and exists in an API. Hoping to extend to a more User-friendly interface in future development.