Interact with Charli3 Network Feeds
The following demo was tested with cardano-node v8.9.3, Ogmios v6.4.0, and Kupo v2.8.0.
Install dependencies using Poetry:
poetry install
Ensure you have a config.json
containing the Blockfrost or Ogmios and Kupo configuration.
To interact with this demo, use:
usage: python charli3 [-h] [--action {feed,configuration}] [--service {blockfrost,ogmios}] [token_pair] [{preprod,mainnet}]
Charli3 Network feed reader
positional arguments:
token_pair Token pair for the data feed
{preprod,mainnet} Environment to use
options:
-h, --help show this help message and exit
--action {feed,configuration}
Retrieve the oracle feed for the specified token pair
--service {blockfrost,ogmios}
External service to read blockhain information
Copyright: (c) 2020 - 2024 Charli3
For your convenience, the configuration file includes lives oracle networks under mainnet-c3-networkds.yaml
and preprod-c3-networks
For example:
poetry run charli3 --action feed --service blockfrost ADA-CHARLI3 mainnet
Or
poetry run charli3 --action feed --service ogmios ADA-CHARLI3 preprod
The provided code includes implementations for:
- Oracle price information using
PriceData
andGenericData
classes. - Network configurations with classes like
OraclePlatform
,PriceRewards
, andOracleSettings
.
To gain a better understanding of the Datum Standard structure, we recommend visiting:
- Datum Standard Lib (PlutusTx).
- Datum Standard Documentation.