price_service_client 1.0.0 copy "price_service_client: ^1.0.0" to clipboard
price_service_client: ^1.0.0 copied to clipboard

A Dart SDK for pyth price service client.

Pyth Client for Dart #

A Dart port of the Pyth JavaScript SDK, originally developed by the Pyth Data Association.

This package allows Dart and Flutter developers to interact with the Pyth Network, query price feeds, and work with web socketi wan.


✨ Features #

  • HTTP API
    • getPriceFeedIds() – list of available price IDs
    • getLatestPriceFeeds(ids) – latest price feeds (supports verbose / binary)
    • getLatestVaas(ids) – latest VAAs for feeds
    • getVaa(id, publishTime) – earliest VAA since a timestamp
  • WebSocket API
    • Subscribe/unsubscribe to live feed updates
    • Auto-reconnect with exponential backoff
    • Heartbeat/timeout detection (Node/VM)
    • Resubscribe on reconnect
  • Configurable
    • Timeouts, retry count (HTTP)
    • Verbose/binary price payloads
    • Optional logger (logger package)

🚀 Installation #

Add to your pubspec.yaml:

dependencies:
  price_service_client: ^0.1.0
1
likes
140
points
7
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Dart SDK for pyth price service client.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, dio, logger, price_service_sdk

More

Packages that depend on price_service_client