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.
Click to show internal directories.
Click to hide internal directories.