# ccxt_set_leverage

Call exchange.setLeverage(leverage, symbol, params), subject to the trading gate.

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

## Facts

- Tool: `ccxt_set_leverage`
- 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: Write (Medium 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_leverage",
    "arguments": {}
  }
}
```

## Why ccxt_set_leverage is rated Medium

Setting leverage is a Write operation—it modifies account state reversibly by adjusting the leverage multiplier for a trading symbol. It is not Destructive (reversible), not Financial (does not move money directly), and not Execute (does not run arbitrary code or trigger external operations beyond the leverage configuration itself).

From the tool's own definition: "Tool calls exchange.setLeverage(leverage, symbol, params) which modifies leverage settings on a derivatives/margin account."

## Use case

AI agents use ccxt_set_leverage to create or update resources in Codex CCXT MCP, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Codex CCXT MCP environment.

## 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_leverage": {
      "limits": [
        {
          "counter": "ccxt_set_leverage_rate",
          "window": "minute",
          "max": 30,
          "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_set_position_mode` — Execute — https://policylayer.com/tools/io-github-lucyfox199818-collab-ccxt-mcp/ccxt-set-position-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
- …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
