From 0c98de8972100224c35a18625eeceed1f2119625 Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sat, 29 Nov 2025 18:18:41 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 11 ++++++++ README.md | 3 ++ commands/okx-balance.md | 1 + commands/okx-bots.md | 1 + commands/okx-positions.md | 1 + commands/okx-risk.md | 1 + plugin.lock.json | 57 ++++++++++++++++++++++++++++++++++++++ 7 files changed, 75 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 commands/okx-balance.md create mode 100644 commands/okx-bots.md create mode 100644 commands/okx-positions.md create mode 100644 commands/okx-risk.md create mode 100644 plugin.lock.json diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..ed870c1 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,11 @@ +{ + "name": "okxapi-plugin", + "description": "OKX Exchange trading integration with comprehensive position monitoring, account management, and trading bot tracking via MCP", + "version": "1.0.0", + "author": { + "name": "OKX Trading Plugin Contributors" + }, + "commands": [ + "./commands" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..95e31c0 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# okxapi-plugin + +OKX Exchange trading integration with comprehensive position monitoring, account management, and trading bot tracking via MCP diff --git a/commands/okx-balance.md b/commands/okx-balance.md new file mode 100644 index 0000000..9613f1c --- /dev/null +++ b/commands/okx-balance.md @@ -0,0 +1 @@ +Display my OKX account balance including total equity, available balance, and balances broken down by currency (USDT, BTC, ETH, etc.). Show both trading account and funding account balances. \ No newline at end of file diff --git a/commands/okx-bots.md b/commands/okx-bots.md new file mode 100644 index 0000000..18dda89 --- /dev/null +++ b/commands/okx-bots.md @@ -0,0 +1 @@ +Show all my active trading bots on OKX including DCA (Dollar Cost Averaging) bots, grid trading bots, and recurring buy/sell strategies. Display investment amounts, current P&L, and performance metrics for each bot. \ No newline at end of file diff --git a/commands/okx-positions.md b/commands/okx-positions.md new file mode 100644 index 0000000..af6fd50 --- /dev/null +++ b/commands/okx-positions.md @@ -0,0 +1 @@ +Show my current open positions on OKX across all instruments (margin, swap, futures). Include position size, entry price, current P&L, and market value for each position. \ No newline at end of file diff --git a/commands/okx-risk.md b/commands/okx-risk.md new file mode 100644 index 0000000..9e31123 --- /dev/null +++ b/commands/okx-risk.md @@ -0,0 +1 @@ +Get my OKX account risk metrics including total equity, margin requirements (initial and maintenance), margin ratio, and position risk breakdown by currency and instrument. \ No newline at end of file diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..4b06235 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,57 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:destinydesigner/okxapi-claude-plugin:okxapi-plugin", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "83c12a4a9506b5d2f0d55fcb2d7237c430695652", + "treeHash": "a7c1fd45a74c5de2fd5843b85b010ba22d5f47e9798703645d13f7d19790b849", + "generatedAt": "2025-11-28T10:16:18.333303Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "okxapi-plugin", + "description": "OKX Exchange trading integration with comprehensive position monitoring, account management, and trading bot tracking via MCP", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "a6f42793d5e1f577adf198a53b5bf60379a1afd047a724f1bebbb4cd3b1f6e75" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "6a9d57d1009ffebabc5635d4efe8b69c93ef58198f142ab5531760937615a43e" + }, + { + "path": "commands/okx-risk.md", + "sha256": "bf0343e74afe3a65a8d809242e87629ad4eec56c6b17dd570a55818c6c150b8d" + }, + { + "path": "commands/okx-balance.md", + "sha256": "b18ef29a3d39056f83216bef90c808ec2ab113eda62bfe547d4427cd95477b90" + }, + { + "path": "commands/okx-positions.md", + "sha256": "3ec6d6b845d9a67b2406b0aa4438df2a3a2da6c14492a4ed07f2eca549fc5e28" + }, + { + "path": "commands/okx-bots.md", + "sha256": "367b8138d858e8e6667c2cb0983a6adcdb3a0e7c5ec0ec4c4f77732a16163f24" + } + ], + "dirSha256": "a7c1fd45a74c5de2fd5843b85b010ba22d5f47e9798703645d13f7d19790b849" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file