Anirudh Suresh d1d73d4e36 Bug: correct fill rate in ER Limo simple searcher example (#2049) 1 gadu atpakaļ
..
express_relay d1d73d4e36 Bug: correct fill rate in ER Limo simple searcher example (#2049) 1 gadu atpakaļ
README.md ed982400e6 Fix: improvements on express relay sdks and simple searchers (#2045) 1 gadu atpakaļ
mypy.ini 69cf81d961 feat:Add python support for per in svm (#1962) 1 gadu atpakaļ
poetry.lock 69cf81d961 feat:Add python support for per in svm (#1962) 1 gadu atpakaļ
pyproject.toml d1d73d4e36 Bug: correct fill rate in ER Limo simple searcher example (#2049) 1 gadu atpakaļ

README.md

Express Relay Python SDK

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.

Searcher

Installation

poetry

$ poetry add express-relay

Quickstart

To run the simple searcher script, navigate to python/ and run the following command:

Evm

$ poetry run python3 -m express_relay.searcher.examples.simple_searcher_evm \
--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.

Svm

$ poetry run python3 -m express_relay.searcher.examples.simple_searcher_svm \
--endpoint-express-relay https://per-staging.dourolabs.app/ \
--chain-id development-solana \
--private-key-json-file <PATH_TO_JSON_FILE> \
--endpoint-svm https://api.mainnet-beta.solana.com \
--bid 10000000 # Bid amount in lamports