Swyftx MCP Connector — InvalidAssetError on Market Buy Orders (POST /orders/) #763
shalvamanjunath-sketch
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Discussion Topic
Summary
Market buy orders placed through the Swyftx MCP connector in Claude AI consistently fail with an InvalidAssetError. All read operations work perfectly — only order placement is broken.
Environment
Platform: Claude AI (Anthropic)
Connector: Swyftx MCP
Endpoint: POST /orders/ — api.swyftx.com.au
Error Message
{"error":{"error":"InvalidAssetError","message":"Values for primary, secondary and assetQuantity must be valid asset codes"}}
Root Cause (confirmed with Swyftx support)
The connector passes a single asset code (e.g. "ETH") instead of the required primary/secondary asset pair format:
❌ Current: asset: "ETH"
✅ Required: primary: "AUD", secondary: "ETH"
Swyftx API Docs
https://docs.swyftx.com.au/
What Works ✅
Portfolio balance retrieval
Live asset price fetching
Account info retrieval
What Doesn't Work ❌
Market buy orders (tested with BTC, ETH, SOL)
Steps to Reproduce
Connect Swyftx MCP connector in Claude AI using a valid API key with trade permissions
Request a market buy (e.g. "Buy $15 AUD of ETH at market price")
Connector calls POST /orders/ and receives InvalidAssetError
Expected Behaviour
Order placed successfully with correct primary/secondary asset pair passed in the request body.
Beta Was this translation helpful? Give feedback.
All reactions