Edit API profile (MCP Tool)
Description
Based on: /docs/rest-api/post-api-profile-edit
Edit API profile for WunderTrading.
Use to ask about:
- edit an API profile
- update a connected exchange account
- change API credentials
- rename an API profile
- change margin mode
- change trade mode
- mark an API profile as favorite
- update exchange account settings
Prompt example
Change name to "My-Super-Binance-API" for the Binance API profile with masterCode e39e86c09f93d792d61c26dd
Prompt example
Change margin mode to isolated for the API profile with masterCode e39e86c09f93d792d61c26dd
Input Schema
The Input Schema Provided to LLM.
Required: api, name, exchangeFamily
{
"inputSchema": {
"type": "object",
"properties": {
"code": {
"type": "string",
"minLength": 4,
"maxLength": 255,
"description": "Master API profile code (masterCode in get_api_profiles), not the exchange profile code."
},
"api": {
"type": [
"string",
"null"
],
"minLength": 2,
"maxLength": 896,
"description": "Optional exchange API key. Sensitive credential."
},
"secret": {
"type": [
"string",
"null"
],
"minLength": 2,
"maxLength": 2048,
"description": "Optional exchange API secret key. Sensitive credential."
},
"name": {
"type": [
"string",
"null"
],
"minLength": 2,
"maxLength": 255,
"pattern": "^[a-zA-Z0-9_.-]+$",
"description": "Optional API profile name. Allowed characters: letters, numbers, underscore, dot and hyphen."
},
"exchangeFamily": {
"type": [
"string",
"null"
],
"minLength": 1,
"maxLength": 255,
"description": "Optional exchange family code. Use get_exchange_families to retrieve supported values."
},
"marginMode": {
"type": "string",
"enum": [
"cross",
"isolated"
],
"description": "Optional margin mode."
},
"tradeMode": {
"type": "string",
"enum": [
"auto",
"one_way_mode",
"hedge_mode"
],
"description": "Optional exchange trading position mode."
},
"password": {
"type": [
"string",
"null"
],
"minLength": 2,
"maxLength": 2048,
"description": "Optional exchange API password or passphrase. Sensitive credential."
},
"applicationId": {
"type": [
"string",
"null"
],
"minLength": 1,
"maxLength": 2048,
"description": "Optional exchange application ID."
},
"paperTrading": {
"type": "boolean",
"description": "Optional paper trading setting. True for demo trading, false for real trading."
}
},
"required": [
"code"
],
"additionalProperties": false
}
}
We are continuously improving the platform, and new endpoints and features will be added soon to make your automated trading more flexible and efficient.