docs.rs failed to build pragma-rs-0.2.9
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
pragma-rs-0.2.8
pragma-rs π¦
pragma-rs is a Rust SDK for the Pragma API, making it easy to fetch offchain and onchain data or get real-time updates via WebSocket.
[!WARNING]
This crate is still in progress and not ready for production
π¦ Installation
Add pragma-rs to your Rust project by tossing this into your Cargo.toml:
[]
= "0.2.7"
Available features:
sync: sync version of http calls,bigdecimal: returns prices asBigDecimal.
π Quick Start
1. Set Up Your Config
Kick things off by setting up your API key and environment:
use ;
let api_key = "MY_API_KEY".to_string;
let config = new;
π Environments:
Development: Perfect for testing and tinkering.Production: not available yet
2. Create a Client
Spin up a PragmaClient with your config:
let client = new.unwrap;
3. Fetch data using http
use ;
async
4. Or using the real-time websocket
use Duration;
use ;
async
π οΈ Contribute
Weβre still building this crate, and weβd love your help! Hereβs how you can chip in:
- π Found a bug? Open an issue.
- π‘ Got an idea? Suggest a feature.
- π§ Want to code? Send us a pull request!
π License
Licensed under the MIT License - see here for details.