M3 #32: SDK examples: Market data, trading, and market making#72
Merged
Conversation
Rust SDK examples (sdk/examples/): - market_data.rs: Fetch markets, order book, and trades - user_data.rs: Fetch user orders, trades, and balances - README.md: Setup and usage documentation TypeScript SDK examples (ts-sdk/examples/): - market-data.ts: Fetch market data via HTTP client - place-order.ts: Build place order transactions - stream-book.ts: WebSocket order book streaming - simple-mm.ts: Educational market maker example - README.md: Setup and usage documentation All examples include: - Clear comments explaining each step - Error handling - Configuration via environment variables - Devnet setup instructions Closes #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds comprehensive example applications demonstrating how to use the Rust and TypeScript SDKs for common use cases.
Changes
Rust SDK Examples (
sdk/examples/)market_data.rsuser_data.rsREADME.mdTypeScript SDK Examples (
ts-sdk/examples/)market-data.tsplace-order.tsstream-book.tssimple-mm.tsREADME.mdTechnical Decisions
Example Features
Each example includes:
Testing
cargo clippypasses)Checklist
cargo clippyCloses #32