|
|
1 år sedan | |
|---|---|---|
| .. | ||
| express_relay | 46d0d2a02f fix: precommit mypy (#2017) | 1 år sedan |
| README.md | 69cf81d961 feat:Add python support for per in svm (#1962) | 1 år sedan |
| mypy.ini | 69cf81d961 feat:Add python support for per in svm (#1962) | 1 år sedan |
| poetry.lock | 69cf81d961 feat:Add python support for per in svm (#1962) | 1 år sedan |
| pyproject.toml | 53521aa36f feat: Update sdks to use svm opportunities (#2009) | 1 år sedan |
Utility library for searchers and protocols to interact with the Express Relay API.
The SDK includes searcher-side utilities and protocol-side utilities. The searcher-side utilities include a basic Searcher client for connecting to the Express Relay server as well as an example SimpleSearcher class that provides a simple workflow for assessing and bidding on liquidation opportunities.
$ poetry add express-relay
To run the simple searcher script, navigate to python/ and run
$ poetry run python3 -m express_relay.searcher.examples.simple_searcher --private-key <PRIVATE_KEY_HEX_STRING> --chain-id development --verbose --server-url https://per-staging.dourolabs.app/
This simple example runs a searcher that queries the Express Relay liquidation server for available liquidation opportunities and naively submits a bid on each available opportunity.