lighter-sdk 0.1.1

Rust SDK for interacting with the Lighter exchange over REST, WebSocket, and signer-backed transaction flows.
Documentation
1
2
3
4
5
6
7
8
9
use crate::error::Result;
use crate::models::announcement::Announcements;
use crate::rest::client::LighterRestClient;

impl LighterRestClient {
    pub async fn get_announcements(&self) -> Result<Announcements> {
        self.get("/api/v1/announcement").await
    }
}