basic-portfolio-pilot

command
v0.8.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

WARNING: This is a demonstration example only and is NOT suitable for production use. Using this code in production will almost certainly result in loss of funds. It is intended solely to illustrate the PortfolioPilot RPC interface.

This example demonstrates a basic RPC portfolio pilot server that implements ResolveRequest, VerifyAcceptQuote, and QueryAssetRates. The server returns asset rates fetched live from CoinGecko (or a static rate if configured), supports configurable fill caps, and enforces rate bound, min fill, and fill constraint checks on accepted quotes.

Flags:

-listen             Listen address (default
                    "localhost:8096").
-rate               Rate coefficient in units/BTC.
                    0 (default) fetches live from
                    CoinGecko.
-fillcap-asset-units  Fill cap for buy orders (asset
                    units). 0 = no cap.
-fillcap-msat       Fill cap for sell orders (msat).
                    0 = no cap.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL