返回顶部
a

alura-backend-apiAlura后端API

Integrate with Alura Trading backend API. Use when calling Alura testnet API, trading sessions, user auth, indicators, or leaderboard. Base URL: https://testnet-api.alura.fun

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
551
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

alura-backend-api

Alura Backend API

Use this skill when integrating with or calling the Alura Trading backend API. The testnet API base URL is https://testnet-api.alura.fun.

Base URL

CODEBLOCK0

  • - Swagger docs: INLINECODE0
  • All authenticated endpoints require INLINECODE1

Authentication (EVM Wallet)

1. Get challenge

CODEBLOCK1

Returns { address, nonce, message }.

2. Sign & verify

User signs message with MetaMask (personal_sign). Then:

CODEBLOCK2

Returns { ok: true, accessToken, tokenType: "Bearer", expiresIn: 86400, ... }. Use accessToken for subsequent requests.

Trading Sessions

Base path: /trading-sessions. All require Bearer token.

Quick trade – create session

CODEBLOCK3

Required: budget (min 10), profitTarget (max 500), assetIndex (Hyperliquid perp index: 0=BTC, 1=ETH, 2=SOL, etc.).

Advance trade – create session

CODEBLOCK4

Other trading endpoints

MethodPathDescription
GET/trading-sessions/activeList active sessions
GET
/trading-sessions/current-trade | Current trade with positions | | GET | /trading-sessions/:sessionId/logs | Session logs | | GET | /trading-sessions/trades/:tradeId/logs | Trade logs (paginated) | | POST | /trading-sessions/positions/:positionId/close | Close a position | | POST | /trading-sessions/positions/:positionId/close-signature | Get signed close tx for frontend | | POST | /trading-sessions/trades/:tradeId/close | Close trade (all positions) | | POST | /trading-sessions/trigger-cron | Manually trigger cron (testing) |

User

Base path: /user. All require Bearer token.

MethodPathDescription
GET/user/profileCurrent user profile
POST
/user/fills/sync | Sync fills from Hyperliquid |
| POST | /user/withdraw | Withdraw funds |
| POST | /user/close-position | Close position by assetIndex |
| POST | /user/close-all-positions | Close all positions |
| POST | /user/send-usdc | Send USDC |
| GET | /auth/evm/trading-key | Get trading agent key (auth) |
| POST | /user/claim-reward | Claim rewards |

Indicators & Market Data

Base path: /api/indicators. Most are public.

MethodPathDescription
GET/api/indicators/healthService health
GET
/api/indicators/candles/latest | Latest candles |
| GET | /api/indicators/candles/history/:symbol | Historical candles |
| GET | /api/indicators/candles/:symbol/:interval | Candles by symbol/interval |
| GET | /api/indicators/candles/aggregated/symbols | Available symbols |
| GET | /api/indicators/signals/:symbol/:interval | Signals for symbol |
| GET | /api/indicators/signals/all/:interval | All symbols signals |

Leaderboard

Base path: /api/leaderboard.

MethodPathDescription
GET/api/leaderboard/statsLeaderboard stats
GET
/api/leaderboard/rankings | Rankings |
| GET | /api/leaderboard/user/:userId | User ranking |
| GET | /api/leaderboard/analytics | Analytics |
| GET | /api/leaderboard/health | Health |

Referrals

Base path: /referrals.

MethodPathDescription
GET/referrals/:userIdUser referral info
GET
/referrals/:userId/stats | Referral stats |
| POST | /referrals/:userId/code | Create referral code |
| POST | /referrals/check | Check referral code |

USDC Verification

Base path: /usdc-verification.

MethodPathDescription
POST/usdc-verification/verifyVerify USDC deposit
GET
/usdc-verification/my-transactions | My transactions |
| GET | /usdc-verification/total-deposited | Total deposited |

Health

MethodPathDescription
GET/healthBasic health
GET
/health/kafka | Kafka health |

Asset Indices (Hyperliquid Perps)

Common perp asset indices:

SymbolIndex
BTC0
ETH
1 |
| SOL | 2 |
| XRP | 3 |
| DOGE | 4 |
| AVAX | 5 |

Error Handling

  • - 401: Missing/invalid Bearer token. Re-auth via /auth/evm/challenge and /auth/evm/verify.
  • 400: Validation error. Check message in response body.
  • 429: Rate limit. Retry with backoff.
  • Common messages: Duplicate asset index: you already have an active trading session for this asset, Builder fee approval failed: HTTP request failed: status 429.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 alura-1776419940 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 alura-1776419940 技能

通过命令行安装

skillhub install alura-1776419940

下载

⬇ 下载 alura-backend-api v1.0.0(免费)

文件大小: 2.4 KB | 发布时间: 2026-4-17 20:11

v1.0.0 最新 2026-4-17 20:11
Initial release of Alura backend API integration.

- Provides endpoints for trading sessions, user authentication (EVM wallet), market indicators, leaderboard, referrals, and USDC verification.
- Supports quick and advanced trade session creation with asset index mapping.
- Includes user actions: withdraw, claim rewards, and USDC transfer.
- Exposes leaderboard stats, signals, analytics, and referral management routes.
- Details error handling and authentication requirements for all endpoints.
- Offers testnet base URL and comprehensive endpoint documentation links.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部