TriangularArbitrageUniswap
No description available
Install / Use
/learn @felixsc1/TriangularArbitrageUniswapREADME
Uniswap V3 - Triangular arbitrage
For basics about triangular arbitrage, see my other repo for centralized exchanges.
This is the implementation for DeFi. Uniswap V3 uses graphQL to query pool data (see sandbox example).
Features
-
Python part:
- post graphQL query using python requests.
- Group all available uniswap pools into triangular arbitrage tradeable groups.
- Calculate the surface rate arbitrage opportunities (not yet considering slippage, fees, gas, etc.).
- Export data to json to continue in javascript.
-
Javascript part (because uniswap SDK is built in JS):
- For each pair in an arbitrage group, get the individual token information from the blockchain (via ethers.js and infura)
- Get the exact quotes for the three trades and calculate the real arbitrage rate (depth, including price impact)
to be continued...
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
