feat: add Python SDK (agent-trading-sdk) patterns and tool#2
Open
arthur-orderly wants to merge 1 commit into
Open
feat: add Python SDK (agent-trading-sdk) patterns and tool#2arthur-orderly wants to merge 1 commit into
arthur-orderly wants to merge 1 commit into
Conversation
Add get_python_sdk_pattern tool and orderly://sdk/python resource for the Arthur SDK (agent-trading-sdk on PyPI), enabling AI assistants to help developers build Python trading bots and AI agents on Orderly Network. Includes patterns for: - Quick start and initialization - Trading (buy, sell, close, close_all) - Position management and PnL tracking - Account and market data queries - Risk management (leverage, stop loss) - Withdrawals - Error handling - Strategy examples (RSI, AI agent, grid, portfolio rebalance)
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.
What
Adds Python SDK support to the MCP server, enabling AI assistants to help developers build Python trading bots and AI agents on Orderly Network.
New tool:
get_python_sdk_patternSearch and retrieve code examples for the agent-trading-sdk (Arthur SDK).
New resource:
orderly://sdk/pythonBrowsable reference of all Python SDK patterns with search support.
Patterns included
Arthur,Arthur.from_credentials_filebuy,sell,close,close_allpositions,position,pnlbalance,equity,priceset_leverage,set_stop_losswithdrawerror_handlingrsi_strategy,ai_agent_strategy,grid_strategy,portfolio_rebalanceWhy
The existing MCP server covers the TypeScript/React SDK thoroughly but has no Python support. Python is the dominant language for trading bots and AI agents — this fills that gap.
Testing
yarn buildpasses ✅get_sdk_pattern