Skip to main content

Utilities for searchers and protocols to interact with the Express Relay protocol.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

express_relay-0.12.2.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

express_relay-0.12.2-py3-none-any.whl (59.0 kB view details)

Uploaded Python 3

File details

Details for the file express_relay-0.12.2.tar.gz.

File metadata

  • Download URL: express_relay-0.12.2.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/5.15.0-1073-azure

File hashes

Hashes for express_relay-0.12.2.tar.gz
Algorithm Hash digest
SHA256 cef1cccb7de81c3afdb1b3823949b87d80811b848bdb5c5019f8d1fad94f2afa
MD5 5dd790fc6fcd30876f59bd9ab348c249
BLAKE2b-256 31521d2749c5a1f0913f3f941deacb6ebf11dcd1a1826d3d53c29e14a44e8f56

See more details on using hashes here.

File details

Details for the file express_relay-0.12.2-py3-none-any.whl.

File metadata

  • Download URL: express_relay-0.12.2-py3-none-any.whl
  • Upload date:
  • Size: 59.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/5.15.0-1073-azure

File hashes

Hashes for express_relay-0.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3740f6edc2a826030e24932c02e973a0e2cb3306796df25edd5d6fb216e02f8a
MD5 8a4abe68c8f07ec7a3c4180cd3b6e59d
BLAKE2b-256 36ad2eec005393b5083559ccbc15ce2e0ac95ac2b788de05d3f3c098e9610b1f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page