# ccxt_set_position_mode

Call exchange.setPositionMode(hedged, symbol, params), subject to the trading gate.

Agent View of the PolicyLayer registry record for `ccxt_set_position_mode`. HTML page: https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-set-position-mode

## Facts

- Tool: `ccxt_set_position_mode`
- Server: Codex CCXT MCP (`oci:ghcr.io/lucyfox199818-collab/ccxt-mcp:0.1.0`) — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp.md
- Homepage: https://github.com/lucyfox199818-collab/codex-binance-agent
- Risk category: Execute (High risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Rate-limited

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ccxt_set_position_mode",
    "arguments": {}
  }
}
```

## Why ccxt_set_position_mode is rated High

This tool changes the position mode (hedge vs one-way) on a derivatives exchange. It triggers an external operation on the exchange that affects how all positions and orders behave for the account. While not directly moving money, misconfiguring position mode can cause significant disruption to open positions and orders (e.g., forced liquidations or order rejections).

From the tool's own definition: "Call exchange.setPositionMode(hedged, symbol, params), subject to the trading gate"

## Use case

AI agents invoke ccxt_set_position_mode to trigger actions in Codex CCXT MCP. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Codex CCXT MCP:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "ccxt_set_position_mode": {
      "limits": [
        {
          "counter": "ccxt_set_position_mode_rate",
          "window": "minute",
          "max": 10,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Codex CCXT MCP (112)

- `ccxt_cancel_algo_order` — Destructive — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-cancel-algo-order.md
- `ccxt_cancel_all_algo_orders` — Destructive — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-cancel-all-algo-orders.md
- `ccxt_cancel_all_orders` — Destructive — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-cancel-all-orders.md
- `ccxt_cancel_all_orders_after` — Destructive — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-cancel-all-orders-after.md
- `ccxt_call` — Execute — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-call.md
- `ccxt_cancel_order` — Execute — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-cancel-order.md
- `ccxt_cancel_orders` — Execute — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-cancel-orders.md
- `ccxt_cancel_orders_for_symbols` — Execute — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-cancel-orders-for-symbols.md
- `ccxt_set_margin_mode` — Execute — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-set-margin-mode.md
- `ccxt_add_margin` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-add-margin.md
- `ccxt_create_order` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-create-order.md
- `ccxt_create_order_with_take_profit_and_stop_loss` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-create-order-with-take-profit-and-stop-loss.md
- `ccxt_create_orders` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-create-orders.md
- `ccxt_create_post_only_order` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-create-post-only-order.md
- `ccxt_create_protected_futures_entry` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-create-protected-futures-entry.md
- `ccxt_create_reduce_only_order` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-create-reduce-only-order.md
- `ccxt_create_stop_limit_order` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-create-stop-limit-order.md
- `ccxt_create_stop_loss_order` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-create-stop-loss-order.md
- `ccxt_create_stop_market_order` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-create-stop-market-order.md
- `ccxt_create_stop_order` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-create-stop-order.md
- `ccxt_create_take_profit_order` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-create-take-profit-order.md
- `ccxt_create_trailing_amount_order` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-create-trailing-amount-order.md
- `ccxt_create_trailing_percent_order` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-create-trailing-percent-order.md
- `ccxt_create_trigger_order` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-create-trigger-order.md
- `ccxt_reduce_margin` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-reduce-margin.md
- `ccxt_transfer` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-transfer.md
- `ccxt_withdraw` — Financial — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-withdraw.md
- `audit_analyze_cycles` — Read — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/audit-analyze-cycles.md
- `audit_analyze_trading_decisions` — Read — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/audit-analyze-trading-decisions.md
- `audit_get_cycle_digest` — Read — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/audit-get-cycle-digest.md
- …and 82 more: https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=io-github-lucyfox199818-collab-ccxt-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/io-github-lucyfox199818-collab-ccxt-mcp
