XLS-66 Lending Protocol insurance and monitoring SDK
Project description
Ward Protocol SDK
Python SDK for monitoring XLS-66 Lending Protocol defaults and calculating vault depositor losses.
Installation
pip install -e .
Quick Start
import asyncio
from ward.monitor import XLS66Monitor, DefaultEvent
async def main():
# Connect to XRPL
monitor = XLS66Monitor("wss://xrplcluster.com")
# Handle defaults
@monitor.on_default
async def handle_default(event: DefaultEvent):
print(f"Default: {event.vault_loss / 1_000_000:.2f} XRP lost")
# Start monitoring
await monitor.start()
asyncio.run(main())
Features
- ✅ Real-time XLS-66 default detection via WebSocket
- ✅ Automatic vault loss calculation
- ✅ Share value impact analysis
- ✅ LoanBroker and Vault state tracking
- ✅ Async/await support
Examples
See /examples directory for complete examples.
Documentation
Full documentation: https://github.com/wflores9/ward-protocol/docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ward_protocol-0.1.0.tar.gz
(23.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ward_protocol-0.1.0.tar.gz.
File metadata
- Download URL: ward_protocol-0.1.0.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c063aca55f84ae7237c25824ace4f3f3d142c4f56f50b70646c6861e12ffae95
|
|
| MD5 |
db6c50a41a2faa4464907159c52295c3
|
|
| BLAKE2b-256 |
aefd2dbefd3dd8f73e25878f10ea4f3b6a84f2623103fd5b8cfe86616be966f7
|
File details
Details for the file ward_protocol-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ward_protocol-0.1.0-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d24afd5d48a0b4453ddb0237b265f866e5021e8f7ea97aa3c16a8c7ff6a54b65
|
|
| MD5 |
b97f3fe167f2c022e1c460c9bd63eadb
|
|
| BLAKE2b-256 |
0fc9b75e570bc16de9b49a4b6f3d55c01b5c5c6e63c5ce4d93fbedbd015d98ba
|