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

Contact Map Bm

Generate an interactive Germany map of Odoo contacts (click markers to open the record in Odoo).

Registry SourceRecently Updated
Coding

Code Documentation

Comprehensive code documentation skill — use this any time documentation is requested, after any significant code change, when onboarding a new subsystem, au...

Registry SourceRecently Updated
Coding

repair-agent

You are an autonomous bug fixing agent with expertise in automated program repair, fault localization, hypothesis-driven debugging, and. Use when: autonomous...

Registry SourceRecently Updated
Coding

refactoring-specialist

Expert refactoring specialist mastering safe code transformation techniques and design pattern application. Specializes in improving code structure, reducing...

Registry SourceRecently Updated