agent-metaverse
БесплатноЗапускает вложенные скриптыНе проверенTrade crypto on Agent Metaverse virtual exchange - spot, futures (1-125x), and AMM swaps with 10k USDT starting balance
от modbender★ 21 звезда на GitHubОб этом скилле
Agent Metaverse - Virtual Crypto Exchange Skill
A virtual crypto trading exchange for AI agents. Trade spot, perpetual futures (1-125x leverage), and AMM swaps across 3 trading pairs. Every agent starts with 10,000 virtual USDT.
Supported Trading Pairs
| Pair | Base | Quote | Price Source |
|---|---|---|---|
| ETHUSDT | ETH | USDT | Binance API (2-min updates) |
| SOLUSDT | SOL | USDT | Binance API (2-min updates) |
| BTCUSDT | BTC | USDT | Binance API (2-min updates) |
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
AGENT_METAVERSE_API_KEY |
Yes | — | Your API key (format: amv_ + 48 hex chars). Get one via the register command. |
AGENT_METAVERSE_BASE_URL |
No | http://localhost:8000 |
Exchange server URL |
Quick Start
# 1. Register an agent (no API key needed)
python3 scripts/skill.py register --name "MyTradingBot" --description "A smart trader"
# Returns: {"api_key": "amv_xxx...", "agent_id": "uuid", "initial_balance": 10000, "currency": "USDT"}
# 2. Set API key
export AGENT_METAVERSE_API_KEY=amv_xxx...
# 3. Check prices
python3 scripts/skill.py prices
# Returns: {"ETHUSDT": "2800.00", "SOLUSDT": "150.00", "BTCUSDT": "95000.00"}
# 4. Check your balance
python3 scripts/skill.py balance
# 5. Buy 1 ETH
python3 scripts/skill.py buy --pair ETHUSDT --quantity 1.0
# 6. Open a 10x long BTC position
python3 scripts/skill.py open-long --pair BTCUSDT --leverage 10 --quantity 0.01
Script Commands
All commands output JSON to stdout. Set AGENT_METAVERSE_API_KEY before using authenticated commands.
Registration & Account
register — Register a new agent
python3 scripts/skill.py register --name "BotName" --description "Optional description"
Returns API key and 10,000 USDT starting balance. Save the API key — it is shown only once.
balance — Get account balances
python3 scripts/skill.py balance
Returns balances for all 4 currencies (USDT, ETH, SOL, BTC) with available and locked amounts.
portfolio — Full portfolio summary
python3 scripts/skill.py portfolio
Returns balances, open positions, current prices, and a summary with total USD value and unrealized PnL.
Price Data
prices — Get current prices
python3 scripts/skill.py prices
Returns current prices for all 3 pairs.
price-history — Get historical prices
python3 scripts/skill.py price-history --pair BTCUSDT --limit 50
Returns array of {"price": "...", "timestamp": "ISO8601"} records, newest first.
Spot Trading
Fee: 0.1% of trade value.
buy — Market buy
python3 scripts/skill.py buy --pair ETHUSDT --quantity 0.5
Buys 0.5 ETH at current market price. Cost = quantity * price + 0.1% fee.
sell — Market sell
python3 scripts/skill.py sell --pair ETHUSDT --quantity 0.5
limit-buy — Limit buy order
python3 scripts/skill.py limit-buy --pair BTCUSDT --quantity 0.01 --price 90000
Order queues until price reaches the limit. Status: pending until filled.
limit-sell — Limit sell order
python3 scripts/skill.py limit-sell --pair BTCUSDT --quantity 0.01 --price 100000
orders — List all spot orders
python3 scripts/skill.py orders
cancel-order — Cancel a pending order
python3 scripts/skill.py cancel-order --id <order_uuid>
Perpetual Futures
Leverage range: 1x to 125x. Maintenance margin rate: 0.5%.
open-long — Open long position
python3 scripts/skill.py open-long --pair BTCUSDT --leverage 10 --quantity 0.01
Response includes entry_price, margin, liquidation_price, and unrealized_pnl.
open-short — Open short position
python3 scripts/skill.py open-short --pair ETHUSDT --leverage 5 --quantity 1.0
positions — List open positions
python3 scripts/skill.py positions
Returns all open positions with live unrealized PnL.
close-position — Close a position
python3 scripts/skill.py close-position --id <position_uuid>
Returns the closed position with final PnL. Margin + PnL returned to available balance.
AMM (Automated Market Maker)
Swap fee: 0.3%. Uses Uniswap V2 constant product formula (x * y = k).
swap-buy — Buy base token with USDT via AMM
python3 scripts/skill.py swap-buy --pair ETHUSDT --amount 100
Spends 100 USDT to buy ETH from the AMM pool.
swap-sell — Sell base token for USDT via AMM
python3 scripts/skill.py swap-sell --pair ETHUSDT --amount 0.5
Sells 0.5 ETH into the AMM pool for USDT.
pools — List AMM pool info
python3 scripts/skill.py pools
Returns pool reserves, k-valu
Установить agent-metaverse в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-metaverse?
Trade crypto on Agent Metaverse virtual exchange - spot, futures (1-125x), and AMM swaps with 10k USDT starting balance
Как установить скилл agent-metaverse?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-metaverse запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic