Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

questradequestrade 搜索

Agent Skill

questrade 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,470

周安装

346

GitHub Stars

公开资料未说明

下载量

2,740
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:questrade(questrade 搜索)
来源仓库:https://github.com/josemiguelherrera/questrade
安装命令:
openclaw skills install questrade
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install questrade

简介

访问 Questrade 经纪账户,获取余额、头寸与市场数据。

  • 适合在加拿大或美国市场进行投资分析与交易决策支持。
  • 通过 clawhub 安装,需绑定有效的 Questrade API 凭证。
  • 实时数据延迟可能受券商接口限制,历史查询建议设定合理时间窗口。
  • 操作订单前应再次确认账户权限与市场状态,避免违规交易。

SKILL.md

name
questrade
description
Query a Questrade brokerage account and Canadian/US market data via the Questrade REST API. Use for account info (balances, positions, orders, executions, activities), Level 1 market quotes, historical OHLCV candles, and symbol search. Use when the user asks about their Questrade portfolio, Canadian/US stock prices, wants to check orders or executions, or search for a ticker. Note: personal API tokens are read-only — order placement requires Questrade partner access.

Questrade Skill

Interact with a Questrade brokerage account and Canadian/US market data via the Questrade REST API.

Setup

1. Activate API Access

Log in to Questrade → App HubAPI CentreActivate API. Generate a manual authorization token (this is your initial refresh token, valid for 7 days).

2. Store Credentials

Option A — environment variables (recommended):

export QUESTRADE_REFRESH_TOKEN="paste-your-token-here"
export QUESTRADE_PRACTICE="false"    # "true" for a practice account
export QUESTRADE_READ_ONLY="true"    # "true" to block order placement/cancellation

Option B — credentials file (~/.openclaw/credentials/questrade.json):

{
  "refreshToken": "paste-your-token-here",
  "practice": false,
  "readOnly": true
}
Important: Questrade refresh tokens *rotate* — every time the token is used to obtain a new access token, Questrade issues a new refresh token. This script automatically saves the new refresh token back to the credentials file, so you only need to paste the initial token once.

3. Install Dependencies

pip install -r requirements.txt

Or manually:

pip install requests

Quick Reference

Server Time

python3 scripts/questrade_cli.py time

Accounts

python3 scripts/questrade_cli.py accounts

Balances

python3 scripts/questrade_cli.py balances 12345678

Positions

python3 scripts/questrade_cli.py positions 12345678

Orders

# Open orders (default)
python3 scripts/questrade_cli.py orders 12345678

# All orders in a date range
python3 scripts/questrade_cli.py orders 12345678 --state All --start 2026-01-01 --end 2026-03-01

# Closed orders
python3 scripts/questrade_cli.py orders 12345678 --state Closed

Order Detail

python3 scripts/questrade_cli.py order-detail 12345678 987654321

Executions

python3 scripts/questrade_cli.py executions 12345678
python3 scripts/questrade_cli.py executions 12345678 --start 2026-01-01 --end 2026-02-28

Account Activities

# Max 30-day window; --end defaults to today if omitted
python3 scripts/questrade_cli.py activities 12345678 --start 2026-02-01
python3 scripts/questrade_cli.py activities 12345678 --start 2026-02-01 --end 2026-02-28

Symbol Search

# Search by ticker prefix
python3 scripts/questrade_cli.py symbol-search SHOP

# Search by company name
python3 scripts/questrade_cli.py symbol-search "Royal Bank"
Note: Questrade market data endpoints use integer symbol IDs, not ticker strings. Always run symbol-search first to get the correct ID before calling quote or candles.

Symbol Info

# Full metadata for a symbol (by Questrade ID)
python3 scripts/questrade_cli.py symbol-info 8049

Level 1 Quotes

# Single symbol
python3 scripts/questrade_cli.py quote 8049

# Multiple symbols (comma-separated IDs)
python3 scripts/questrade_cli.py quote 8049,38738,45340

Historical Candles (OHLCV)

# Daily candles for the past month
python3 scripts/questrade_cli.py candles 8049 --start 2026-02-01

# Hourly candles for a specific range
python3 scripts/questrade_cli.py candles 8049 --start 2026-01-01 --end 2026-02-01 --interval OneHour

# Available intervals:
# OneMinute, TwoMinutes, ThreeMinutes, FourMinutes, FiveMinutes,
# TenMinutes, FifteenMinutes, TwentyMinutes, HalfHour,
# OneHour, TwoHours, FourHours, OneDay, OneWeek, OneMonth, OneYear

Markets

python3 scripts/questrade_cli.py markets

Place Order *(partner API access required)*

# Market order
python3 scripts/questrade_cli.py order buy 12345678 8049 10 Market

# Limit order
python3 scripts/questrade_cli.py order buy 12345678 8049 10 Limit --limit-price 145.50

# Stop-limit order
python3 scripts/questrade_cli.py order sell 12345678 8049 5 StopLimit --stop-price 140.00 --limit-price 139.50

# Skip confirmation prompts
python3 scripts/questrade_cli.py order buy 12345678 8049 10 Market --force

Order Guardrails:

  1. Live quote fetch — retrieves current bid/ask before submitting
  2. Price sanity check — warns if buy limit > ask or sell limit < bid
  3. Order summary — shows notional cost and requires y/n confirmation
  4. Use --force to skip all prompts (automated use only)
Note: Order placement and cancellation require Questrade *partner* API access. Personal API tokens are read-only (GET requests only).

Cancel Order

python3 scripts/questrade_cli.py cancel-order 12345678 987654321

Workflow: Finding a Symbol and Getting a Quote

Because Questrade quotes use integer IDs rather than tickers, the typical two-step flow is:

# Step 1: Find the symbol ID
python3 scripts/questrade_cli.py symbol-search AAPL

# Step 2: Use the ID from the output
python3 scripts/questrade_cli.py quote 8049

Script Location

All commands use: scripts/questrade_cli.py (relative to this skill directory)

API Reference

See references/api.md for full endpoint documentation and response schemas.

Known Limitations

  • Level 1 quotes and candles (quote, candles) may return 403 out of allowed OAuth scopes if your Questrade account does not have a market data subscription or the token was not generated with market data scope enabled. Account data commands (accounts, balances, positions, orders, executions, activities) work with all personal tokens.
  • Activities endpoint has a maximum window of 30 days — always provide both --start and --end. If --end is omitted it defaults to today.

Safety Notes

  • Personal API tokens cannot place trades. Questrade restricts order placement

and cancellation (POST/DELETE /accounts/{id}/orders) to partner-level API access only. Attempting either with a personal token returns 403 Forbidden.

  • The order and cancel-order commands are included for completeness but will

not work unless you have Questrade partner API access.

  • The refresh token rotates on every use; do not share the credentials file.
  • Access tokens expire in ~30 minutes; the script caches and refreshes them automatically.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.91%
按下载量换算2,327

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills