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.14.1.tar.gz (38.5 kB view details)

Uploaded Source

Built Distribution

express_relay-0.14.1-py3-none-any.whl (66.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for express_relay-0.14.1.tar.gz
Algorithm Hash digest
SHA256 a1f1acc0fdfe4bda007253c49892d2a3544a7f07e2c338a43079b309376b0c4b
MD5 4c31097b5d3d929f9216ae5a569b3c65
BLAKE2b-256 4bfbb3fa395c8e4144d7e8277997dbfadb44129ff025a75afdfc4f40616e0db8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for express_relay-0.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2606a9f61f70dec690f7bb3b0e4110c4a09409d99edf4d4199c940f81cf27c1
MD5 ab0255b7e7f3ccae28e581a13f2b5e45
BLAKE2b-256 79d8a72c9f3d5812b91414aa74c7a1d5e796f05f7995f6affc47bc6217df36e2

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