Skip to content

Example GraphQL subscription on DexTrades for Solana (Pumpfun) on Rust

Notifications You must be signed in to change notification settings

bitquery/graphql-streaming-example-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitquery Graphql Streaming API Example on Rust

API Key

For EAP you use API KEYs from API-V2, you can create token on https://account.bitquery.io/user/api_v2/access_tokens

Usage

API_KEY=ory_... cargo run

Output

 Ok(
    Response {
        data: Some(
            ResponseData {
                solana: Some(
                    DexTradesSolana {
                        dex_trades: Some(
                            [
                                DexTradesSolanaDexTrades {
                                    block: Some(
                                        DexTradesSolanaDexTradesBlock {
                                            slot: Some(
                                                "280120788",
                                            ),
                                            time: Some(
                                                DateTime(
                                                    "2024-07-28T08:01:26Z",
                                                ),
                                            ),
                                        },
                                    ),
                                    trade: Some(
                                        DexTradesSolanaDexTradesTrade {
                                            price_asymmetry: Some(
                                                1.0,
                                            ),
                                            buy: Some(
                                                DexTradesSolanaDexTradesTradeBuy {
                                                    amount: Some(
                                                        "1.537152157",
                                                    ),
                                                    account: Some(
                                                        DexTradesSolanaDexTradesTradeBuyAccount {
                                                            address: Some(
                                                                "AZPEmek7FnZqFRUgzW8mpvaJbNhVDdnHfF73aYbFHrei",
                                                            ),
                                                        },
                                                    ),
                                                    price: Some(
                                                        7522075.820553268,
                                                    ),
                                                    currency: Some(
                                                        DexTradesSolanaDexTradesTradeBuyCurrency {
                                                            name: Some(
                                                                "Solana",
                                                            ),
                                                            mint_address: Some(
                                                                "11111111111111111111111111111111",
                                                            ),
                                                        },
                                                    ),
                                                },
                                            ),

...

About

Example GraphQL subscription on DexTrades for Solana (Pumpfun) on Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages