微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📈

官方 API 交易与社交投资

eToro Trading API · v1.0.0
专业技能 安全 A 级 作者 yoniassia 公开目录收录
982 下载 0 安装 3.4k 收藏 19 浏览

简介

连接 eToro 官方公共 API,支持交易执行、市场数据、社交功能及自选股管理,适合自动化交易与投资组合追踪

原始描述

eToro Public API — full trading, market data, social, and watchlist integration. Supports SSO, Bearer, and API key auth.

通过你的 Agent 添加

安装目录:etoro-api/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/etoro-trading-api/
Codex CLI~/.codex/skills/etoro-trading-api/
DeepSeek Harness~/.agents/skills/etoro-trading-api/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心功能概述

eToro Public API 是一套完整的金融交易接口,覆盖从市场数据获取到实际交易执行的全链路能力。该 API 分为公开数据接口(无需认证)和私有交易接口(需 SSO 或 API Key 认证)两大类别。

核心能力矩阵

交易执行(Trading Execution)

  • 支持市价单开仓(按金额/按单位两种模式)
  • 市价单平仓、限价单管理
  • 真实账户与模拟账户双模式切换
  • 完整的订单取消能力(开仓/平仓/限价单)

市场数据(Market Data)

  • 实时行情搜索与多资产价格查询
  • K 线历史数据获取(支持多周期)
  • 交易所信息、资产类别分类
  • 收盘价批量查询

社交功能(Social)

  • 热门投资者(Popular Investors)列表
  • 用户搜索与投资组合透视
  • 帖子发布与评论互动
  • 资产动态信息流

自选股管理(Watchlists)

  • 自定义观察列表 CRUD
  • 精选列表(Curated Lists)浏览
  • 标的增删管理

显著优点

  • 官方背书:直接对接 eToro 官方 API,非第三方爬虫方案,数据合规性与稳定性有保障
  • 双模式支持:Production 与 Demo 环境无缝切换,便于策略回测与沙盒验证
  • 社交化交易:独家支持 Copy Trading 生态的数据获取,可追踪明星投资者动态
  • 多因子认证:支持 SSO Bearer Token、User ID、API Key 三种鉴权方式,灵活适配不同场景

潜在局限与风险

  • 地域限制:eToro 服务受监管限制,部分国家/地区用户可能无法使用
  • Instrument ID 映射:交易需使用内部数字 ID 而非直观股票代码,需额外查询转换
  • 速率限制:100 req/min 的限流对高频策略构成约束
  • 金融合规:自动化交易可能触发平台风控,需严格遵守 eToro 使用条款
  • 资金风险:真实交易直接涉及资金划转,API 误操作可能导致实际亏损

适合人群

  • 量化交易者与算法策略开发者
  • 需要追踪 Popular Investors 表现的 Copy Trading 研究者
  • 投资组合自动化管理需求的个人投资者
  • 金融数据分析与学术研究用户(利用公开市场数据)

常规风险提示

  • 市场风险:API 交易不消除金融市场固有风险
  • 操作风险:程序化错误可能导致非预期仓位或重复下单
  • 密钥安全:API Key 与 SSO Token 需严格保密,泄露将导致账户失控
  • 合规审查:频繁或异常交易模式可能被平台标记审查

技能正文


name: etoro-api description: "eToro Public API — full trading, market data, social, and watchlist integration. Supports SSO, Bearer, and API key auth." metadata: {"clawdbot":{"emoji":"📈","always":false,"requires":{"bins":["curl","python3"]}}}

eToro Public API 📈

Full eToro Public API integration with trading execution, market data, social feed, and watchlists.

API Docs: https://etoro-6fc30280.mintlify.app/ Base URL: https://public-api.etoro.com/api/v1

Authentication

Three auth modes (priority order):

  1. SSO Access Token — Authorization: Bearer <access_token>
  2. SSO Auth Token — Authorization: <etoro_user_id>
  3. API Keys — x-api-key + x-user-key + x-request-id (UUID)

Endpoints

Portfolio & Account

Tool Method Endpoint Auth
get_portfolio GET /trading/info/portfolio (demo: /trading/info/demo/portfolio) Personal
get_trading_history GET /trading/info/real/history (demo: /trading/info/demo/history) Personal

Trading Execution

All trading endpoints support real/demo mode. Demo adds /demo/ after /execution/.

Tool Method Endpoint
open_position_by_amount POST /trading/execution/market-open-orders/by-amount
open_position_by_units POST /trading/execution/market-open-orders/by-units
close_position POST /trading/execution/market-close-orders/{positionId}
place_limit_order POST /trading/execution/limit-orders
cancel_limit_order DELETE /trading/execution/limit-orders/{orderId}
cancel_open_order DELETE /trading/execution/market-open-orders/{orderId}
cancel_close_order DELETE /trading/execution/market-close-orders/{orderId}

Market Data (Public)

Tool Method Endpoint
get_market_data GET /market-data/search?internalSymbolFull=AAPL
get_market_rates GET /market-data/rates?instrumentIds=1001,1002
get_price_history GET /market-data/instruments/{id}/candles?period=OneMonth
get_trading_info GET /trading/info/instrument/{id}
get_asset_classes GET /market-data/instrument-types
get_exchanges GET /market-data/exchanges
get_instrument_metadata GET /market-data/instruments?instrumentIds=1001,1002
get_closing_prices GET /market-data/closing-prices

Social

Tool Method Endpoint
get_instrument_feed GET /feeds/instruments/{id}?limit=5
get_popular_investors GET /copy/popular-investors?limit=10
search_users GET /users/search?query=...
get_user_portfolio GET /users/{username}/portfolio
get_user_stats GET /users/{username}/stats
get_user_feed GET /feeds/users/{username}?limit=5
create_post POST /feeds/posts
create_comment POST /feeds/posts/{postId}/comments

Watchlists

Tool Method Endpoint
get_watchlists GET /watchlists
get_curated_lists GET /watchlists/curated
create_watchlist POST /watchlists
add_to_watchlist POST /watchlists/{watchlistId}/items
remove_from_watchlist DELETE /watchlists/{watchlistId}/items/{instrumentId}

Key Notes

  • Instrument IDs are numeric (not tickers). Resolve via /market-data/search?internalSymbolFull=AAPL
  • Trading tools default to mode=real. Only use demo if explicitly requested.
  • All trading execution is logged with full request details before sending.
  • Rate limit: 100 req/min

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

tradinginvestmentapisocial-tradingcopy-tradingmarket-dataportfoliofintechstockscrypto

同类 Skill