snaptrade-trading

Execute trades and retrieve account data via the SnapTrade API using the snaptrade-python-sdk. Use this skill whenever OpenClaw needs to place a buy or sell order, check account balances, get current positions, retrieve order history, fetch symbol quotes, cancel an open order, or refresh account holdings through SnapTrade. Triggers on any trading action or account data request routed through SnapTrade.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "snaptrade-trading" with this command: npx skills add player-1101/snaptrade-api

SnapTrade Trading Skill

Setup

First-time only: run the setup script:

bash scripts/setup.sh

Required env vars:

SNAPTRADE_CLIENT_ID
SNAPTRADE_CONSUMER_KEY
SNAPTRADE_USER_ID
SNAPTRADE_USER_SECRET

SDK Initialization (always required)

import os
from snaptrade_client import SnapTrade

snaptrade = SnapTrade(
    consumer_key=os.environ["SNAPTRADE_CONSUMER_KEY"],
    client_id=os.environ["SNAPTRADE_CLIENT_ID"],
)
user_id = os.environ["SNAPTRADE_USER_ID"]
user_secret = os.environ["SNAPTRADE_USER_SECRET"]

Reference Files — Read the relevant one before proceeding

TaskRead
Get accounts, balances, positions, orders, historical valuereferences/account-data.md
Resolve a ticker to a symbol ID + get quotesreferences/symbol-resolution.md
Place an equity trade (limit, market, bracket)references/place-orders.md
Place an options order (single or multi-leg)references/options-trading.md
Place a crypto orderreferences/crypto-trading.md
Cancel an order or refresh holdingsreferences/cancel-refresh.md
Get historical transactions / activity logreferences/historical-data.md

Important Constraints

  • trade_id from an impact check expires in 5 minutes — place immediately after
  • SnapTrade does not provide OHLCV/candlestick data — use a separate market data provider for technical analysis
  • Not all brokerages support trading — check SnapTrade's broker support matrix
  • Always resolve symbol IDs fresh via references/symbol-resolution.md rather than caching them long-term
  • After placing or cancelling an order, trigger a manual refresh (see references/cancel-refresh.md)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

QQBrowserSkill

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking...

Registry SourceRecently Updated
Coding

Joycode

通过 shell 控制 JoyCode CLI 工具进行代码生成和 AI 辅助编程。使用场景:(1) 用户要求代码生成、代码补全或编程帮助 (2) 需要使用 AI 助手进行代码审查 (3) 需要在终端中进行交互式编程对话 (4) 需要执行自动化代码任务

Registry SourceRecently Updated
Coding

openclaw-memoryos-memory-admin

Inspect, back up, search, export, and update OpenClaw long-term memory stored with MemoryOS. Use when Codex needs to manage MemoryOS memory files for an Open...

Registry SourceRecently Updated
Coding

GitHub to RedNote

Convert GitHub repositories into RedNote (小红书) style technical articles. Use when user wants to generate tech promotion content from GitHub repos - including...

Registry SourceRecently Updated