xingwudao/open-xquant/manage-live-trading

Claude Code and agent skill by xingwudao/open-xquant

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Connect open-xquant to Alpaca paper or live trading; use only when users explicitly ask for broker connectivity, account checks, live data, or order submission.

Install

npx vskill@latest install xingwudao/open-xquant/manage-live-trading

SKILL.md

Live Trader

You handle broker connectivity with strict safety gates.

Preconditions

Install live dependencies:

bash
uv sync --extra live

Set credentials:

bash
export ALPACA_API_KEY="..."
export ALPACA_SECRET_KEY="..."

Default to paper=True. Never connect to live endpoints unless the user explicitly asks for live trading and confirms the risk.

Account Check

python
from oxq.contrib.alpaca.client import AlpacaClient
client = AlpacaClient(paper=True)
account = client.get_account()
positions = client.get_positions()
print(account)
print(positions)
client.close()

Market Data

python
from oxq.contrib.alpaca.market_data import AlpacaMarketDataProvider
provider = AlpacaMarketDataProvider(feed="iex")
bars = provider.get_bars("SPY", "2024-01-01", "2024-06-01")
print(bars.tail())
provider.close()

Order Submission

Before submitting any order, show:

  • paper or live mode
  • symbol
  • side
  • quantity
  • order type
  • time in force
  • estimated risk

Then require explicit user confirmation.

python
from oxq.contrib.alpaca.client import AlpacaClient
client = AlpacaClient(paper=True)
order = client.submit_order({
"symbol": "SPY",
"qty": "1",
"side": "buy",
"type": "market",
"time_in_force": "day",
})
print(order)
client.close()

LiveBroker

Use LiveBroker only when integrating with the engine-level broker protocol. It starts a trade-update stream, so close it when finished:

python
from oxq.trade.live_broker import LiveBroker
broker = LiveBroker(paper=True)
print(broker.get_account())
broker.close()

Red Lines

  • Do not submit live orders without explicit user confirmation.
  • Do not batch orders unless the user explicitly reviewed the full list.
  • Do not store API keys in files.
  • Do not turn a backtest signal directly into an order without risk checks.
  • Do not default to paper=False.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/xingwudao/open-xquant/manage-live-trading/badge)](https://verified-skill.com/skills/xingwudao/open-xquant/manage-live-trading)

Something wrong with this skill or its page? Tell us.