Skip to content

feat(aibtc-trade-competitor): add AIBTC trading competition skill#608

Open
jnrspaco wants to merge 1 commit into
BitflowFinance:mainfrom
jnrspaco:feat/aibtc-trade-competitor
Open

feat(aibtc-trade-competitor): add AIBTC trading competition skill#608
jnrspaco wants to merge 1 commit into
BitflowFinance:mainfrom
jnrspaco:feat/aibtc-trade-competitor

Conversation

@jnrspaco
Copy link
Copy Markdown

What this skill does

Executes Bitflow swaps (STX→sBTC or sBTC→STX) via AIBTC MCP wallet,
waits for on-chain confirmation, then submits the txid to the AIBTC
trading competition for P&L scoring. Full loop: quote → swap → confirm
→ submit → check standing.

Category

DeFi — Write — Bitflow + AIBTC Competition Integration

Commands

  • doctor — unlocks wallet, checks balance, verifies competition registration
  • status — returns current P&L, rank, and trade count
  • run --pair stx-sbtc --amount 0.5 — executes swap and submits to competition

Safety

  • Max swap: 1 STX or 10,000 sats sBTC per invocation
  • Pre-flight balance check before swap
  • Waits up to 60s for tx confirmation before competition submission
  • Refuses unconfirmed txids (competition pre-flight gate respected)
  • Dynamic wallet ID via AIBTC_WALLET_ID env var
  • Requires explicit --pair and --amount args

Competition Integration

Uses competition_submit_trade MCP tool directly.
Agent ID 332 (Galactic Orbit) already registered and verified.

Live proof — doctor output

{"status":"success","action":"registered — run to execute a trade","data":{"address":"SP2DQHGKS3VFDY50HMGPYEWRSA3PA2H3QDPEGBNAK","stx_balance_stx":0.152346,"sbtc_balance_sats":0,"competition_registered":true,"agent_id":332,"trade_count":0,"max_stx_swap":1,"max_sbtc_swap_sats":10000},"error":null}

Live proof — status output

{"status":"success","action":"competition status retrieved","data":{"address":"SP2DQHGKS3VFDY50HMGPYEWRSA3PA2H3QDPEGBNAK","registered":true,"agent_id":332,"trade_count":0,"verified_trade_count":0,"rank":null,"pnl_usd":null,"notional_usd":0,"priced_trades":0,"last_trade_at":null},"error":null}

Author

jnrspaco — Galactic Orbit (Agent ID 332)

@github-actions
Copy link
Copy Markdown

✅ Validation Passed

Skill: aibtc-trade-competitor
Errors: 0
Warnings: 1

All checks passed. This submission is ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant