ZKSwap Things

A Python wrapper around the ZKSwap API, with augmented functionality.

ZKSwap Things

Created At

Scaling Ethereum

Project Description

A Python wrapper around the ZKSwap API, which calls the normal endpoints plus has some functions that allow users to more easily access aggregated data, by calling multiple endpoints and combining the data received. It should act as a starting point for someone who wants to build an arbitrage bot on ZKSwap, or anyone who wants to interact with ZKSwap programmatically through python.

How it's Made

It is build using Python & contains some functions similar to the UniswapV2Pair Interface, such as getAmountIn & getAmountOut. Using requests of the python standard library, it calls all the endpoints provided by the REST API (only the post_transaction one is incomplete). It stores in a local dictionary information about all tokens & pairs existent on the platform,

background image mobile

Join the mailing list

Get the latest news and updates