{"id":28379371,"url":"https://github.com/bitquery/graphql-streaming-example-rs","last_synced_at":"2025-07-09T23:11:55.800Z","repository":{"id":250536959,"uuid":"834740844","full_name":"bitquery/graphql-streaming-example-rs","owner":"bitquery","description":"Example GraphQL subscription on DexTrades for Solana (Pumpfun) on Rust","archived":false,"fork":false,"pushed_at":"2024-07-28T08:06:53.000Z","size":129,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-23T10:50:19.958Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitquery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-28T08:06:01.000Z","updated_at":"2025-05-19T22:17:12.000Z","dependencies_parsed_at":"2024-07-28T09:27:34.708Z","dependency_job_id":"db898abf-e4a9-4627-97a4-0bfd4e9c7e25","html_url":"https://github.com/bitquery/graphql-streaming-example-rs","commit_stats":null,"previous_names":["bitquery/graphql-streaming-example-rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitquery/graphql-streaming-example-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitquery%2Fgraphql-streaming-example-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitquery%2Fgraphql-streaming-example-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitquery%2Fgraphql-streaming-example-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitquery%2Fgraphql-streaming-example-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitquery","download_url":"https://codeload.github.com/bitquery/graphql-streaming-example-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitquery%2Fgraphql-streaming-example-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264505039,"owners_count":23618882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-30T02:38:14.423Z","updated_at":"2025-07-09T23:11:55.795Z","avatar_url":"https://github.com/bitquery.png","language":"Rust","readme":"# Bitquery Graphql Streaming API Example on Rust\n\n## API Key\nFor EAP you use API KEYs from API-V2, you can create token on https://account.bitquery.io/user/api_v2/access_tokens \n\n## Usage\n\n```bash\nAPI_KEY=ory_... cargo run\n```\n\n## Output\n\n```\n Ok(\n    Response {\n        data: Some(\n            ResponseData {\n                solana: Some(\n                    DexTradesSolana {\n                        dex_trades: Some(\n                            [\n                                DexTradesSolanaDexTrades {\n                                    block: Some(\n                                        DexTradesSolanaDexTradesBlock {\n                                            slot: Some(\n                                                \"280120788\",\n                                            ),\n                                            time: Some(\n                                                DateTime(\n                                                    \"2024-07-28T08:01:26Z\",\n                                                ),\n                                            ),\n                                        },\n                                    ),\n                                    trade: Some(\n                                        DexTradesSolanaDexTradesTrade {\n                                            price_asymmetry: Some(\n                                                1.0,\n                                            ),\n                                            buy: Some(\n                                                DexTradesSolanaDexTradesTradeBuy {\n                                                    amount: Some(\n                                                        \"1.537152157\",\n                                                    ),\n                                                    account: Some(\n                                                        DexTradesSolanaDexTradesTradeBuyAccount {\n                                                            address: Some(\n                                                                \"AZPEmek7FnZqFRUgzW8mpvaJbNhVDdnHfF73aYbFHrei\",\n                                                            ),\n                                                        },\n                                                    ),\n                                                    price: Some(\n                                                        7522075.820553268,\n                                                    ),\n                                                    currency: Some(\n                                                        DexTradesSolanaDexTradesTradeBuyCurrency {\n                                                            name: Some(\n                                                                \"Solana\",\n                                                            ),\n                                                            mint_address: Some(\n                                                                \"11111111111111111111111111111111\",\n                                                            ),\n                                                        },\n                                                    ),\n                                                },\n                                            ),\n\n...\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitquery%2Fgraphql-streaming-example-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitquery%2Fgraphql-streaming-example-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitquery%2Fgraphql-streaming-example-rs/lists"}