oro-gold

ORO GRAIL gold infrastructure for AI agents. Use when building agent integrations that involve: - Checking gold prices (via Pyth oracle) - Buying or selling gold (GRAIL tokens) - Managing user gold balances - Agent treasury/wealth features - Building fintech agents with gold savings, DCA, or rewards Based on Oro GRAIL API: https://docs.grail.oro.finance/

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "oro-gold" with this command: npx skills add behfar-dev/oro-agent-skill/behfar-dev-oro-agent-skill-oro-gold

ORO Gold Agent Skill

Quick reference for building agents that work with ORO GRAIL gold infrastructure.

Base URL

https://oro-tradebook-devnet.up.railway.app/api

Authentication

  1. Request challenge → 2. Sign with wallet → 3. Get API key
// Step 1: Request challenge
POST /auth/challenge
{ "walletAddress": "...", "keyType": "PARTNER", "partnerId": "1" }

// Step 2: Sign message with Ed25519 (nacl.sign.detached)
// Step 3: Exchange for API key
POST /auth/api-key
{ "challengeId": "...", "signature": "...", "keyName": "..." }

API key goes in header: x-api-key: your-key

Core Endpoints

EndpointMethodUse
/trading/gold-priceGETGet current gold price (Pyth oracle)
/trading/estimate/buyPOSTCalculate USDC cost for gold amount
/trading/estimate/sellPOSTCalculate USDC received for selling gold
/trading/purchases/userPOSTBuy gold for a user
/trading/purchases/partnerPOSTBuy gold into partner treasury
/trading/sales/userPOSTSell user's gold
/trading/sales/partnerPOSTSell partner's gold reserves
/usersPOSTCreate a user (KYC'd)
/users/{id}GETGet user details + balance
/distribution/partner/meGETGet partner details

Quick Scripts

See references/ for detailed patterns:

  • references/price-checker.md - Simple gold price fetch
  • references/balance-checker.md - Check user gold balance
  • references/buy-gold.md - Purchase gold flow
  • references/sell-gold.md - Sell gold flow
  • references/dca-agent.md - Dollar Cost Averaging agent

Key Concepts

  • Custodial: You hold user gold, they don't see blockchain
  • Self-Custody: Users hold GRAIL tokens in their own wallets
  • Partner: Your integration account (needs whitelist approval)
  • PDA: Program Derived Address - where gold is stored on-chain

Agent Use Cases

  1. Price Agent - Fetch + alert on gold price movements
  2. DCA Agent - Auto-buy gold on schedule
  3. Balance Agent - Track agent/user gold holdings
  4. Tip Jar - Agent-to-agent gold rewards (via treasury)

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

polymarket-cli

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

Claude Code Bridge

Bridges OpenClaw (QQ, Telegram, WeChat, and other messaging channels) to a persistent Claude Code CLI session running in a background tmux process. Enables s...

Registry SourceRecently Updated
0118
ZLHad
Coding

GitHub 项目分析助手

输入项目想法或 GitHub 链接,自动搜索相关开源项目,生成结构化分析报告(技术栈/优缺点/评分), 并可下载评分最高的前3名代码包。支持意图搜索和直链分析两种模式。

Registry SourceRecently Updated