15 releases (5 breaking)
0.7.0 | Jan 25, 2024 |
---|---|
0.6.4 |
|
0.5.6 | Jan 10, 2024 |
0.4.0 | Jan 8, 2024 |
0.1.2 |
|
203 downloads per month
43KB
205 lines
tensor-trade-stream
A client for receiving updates from Tensor Trade NFT marketplace over WebSocket using GraphQL subscriptions via graphql_ws_client
.
Documentation
Example
use anyhow::Result;
use futures::StreamExt;
use tensor_trade_stream::{
subscribe, TensorswapOrderUpdateAllQuery, TensorswapOrderUpdateAllVariables,
};
#[tokio::main]
async fn main() -> Result<()> {
let (_client, mut stream) =
subscribe::<TensorswapOrderUpdateAllQuery>(TensorswapOrderUpdateAllVariables {}).await?;
while let Some(item) = stream.next().await {
dbg!(Some(item));
}
Ok(())
}
Dependencies
~11–23MB
~332K SLoC