Alura

v1.0.0

Integrate with Alura Trading testnet API for user auth, trading sessions, market data, leaderboard, referrals, and USDC verification using Bearer token.

0· 499·0 current·0 all-time
byAjay Gautam@evilboyajay
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
The name/description (Alura Trading testnet integration) matches the SKILL.md content: documented endpoints, EVM-wallet challenge/verify flow, trading session and market-data endpoints. The skill does not request unrelated credentials or binaries.
Instruction Scope
Instructions are narrowly scoped to HTTP calls against the provided base URL and standard auth flow (personal_sign -> /auth/evm/verify -> Bearer token). The SKILL.md does not instruct the agent to read arbitrary files, env vars, or system state, nor to exfiltrate data to unexpected endpoints.
Install Mechanism
There is no install spec and no code files; this is instruction-only, so nothing is written to disk or executed by the platform as part of install.
Credentials
The skill declares no required environment variables or credentials. The API uses ephemeral JWT Bearer tokens obtained at runtime via wallet signature, which is appropriate for the documented endpoints. No unrelated secrets are requested.
Persistence & Privilege
Skill is not forced-always, and does not request persistent privileges. Autonomous invocation is permitted (platform default) but not unusual here and not combined with other risky requests.
Assessment
This is an instruction-only testnet API integration and appears coherent, but the package origin is unverified (no homepage/source). Before installing or using: 1) Verify you trust the alura.testnet domain and the project (look for an official repo or docs). 2) Never paste or upload private keys; signing must be performed locally (MetaMask or other wallet) — the skill expects you to sign messages and return the signature to /auth/evm/verify. 3) Treat any accessToken/JWT as sensitive; do not share it outside intended requests. 4) Be cautious when using withdraw/send-USDC endpoints — confirm you are on testnet and not mainnet to avoid real fund transfers. 5) If you need higher assurance, ask the publisher for a homepage or source repo and double-check the API responses and rate limits mentioned in SKILL.md.

Like a lobster shell, security has layers — review code before you run it.

latestvk974d13r80cpa1yvg4194sxjdn81fk5n
499downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

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

https://testnet-api.alura.fun
  • Swagger docs: https://testnet-api.alura.fun/api/docs
  • All authenticated endpoints require Authorization: Bearer <JWT>

Authentication (EVM Wallet)

1. Get challenge

POST /auth/evm/challenge
Content-Type: application/json

{ "address": "0x..." }

Returns { address, nonce, message }.

2. Sign & verify

User signs message with MetaMask (personal_sign). Then:

POST /auth/evm/verify
Content-Type: application/json

{ "address": "0x...", "signature": "0x...", "referralCode": "OPTIONAL" }

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

POST /trading-sessions
Authorization: Bearer <token>
Content-Type: application/json

{
  "budget": 100,
  "profitTarget": 40,
  "lossThreshold": 5,
  "maxPositions": 3,
  "assetIndex": 0
}

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

Advance trade – create session

POST /trading-sessions/advance
Authorization: Bearer <token>
Content-Type: application/json

{
  "amount": 100,
  "executionStrategy": "Conservative" | "Aggressive" | "Degen",
  "strategyDuration": "1D" | "3D" | "7D" | "30D" | "90D" | "365D",
  "assetIndex": 0,
  "maxWalletBudget": false
}

Other trading endpoints

MethodPathDescription
GET/trading-sessions/activeList active sessions
GET/trading-sessions/current-tradeCurrent trade with positions
GET/trading-sessions/:sessionId/logsSession logs
GET/trading-sessions/trades/:tradeId/logsTrade logs (paginated)
POST/trading-sessions/positions/:positionId/closeClose a position
POST/trading-sessions/positions/:positionId/close-signatureGet signed close tx for frontend
POST/trading-sessions/trades/:tradeId/closeClose trade (all positions)
POST/trading-sessions/trigger-cronManually trigger cron (testing)

User

Base path: /user. All require Bearer token.

MethodPathDescription
GET/user/profileCurrent user profile
POST/user/fills/syncSync fills from Hyperliquid
POST/user/withdrawWithdraw funds
POST/user/close-positionClose position by assetIndex
POST/user/close-all-positionsClose all positions
POST/user/send-usdcSend USDC
GET/auth/evm/trading-keyGet trading agent key (auth)
POST/user/claim-rewardClaim rewards

Indicators & Market Data

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

MethodPathDescription
GET/api/indicators/healthService health
GET/api/indicators/candles/latestLatest candles
GET/api/indicators/candles/history/:symbolHistorical candles
GET/api/indicators/candles/:symbol/:intervalCandles by symbol/interval
GET/api/indicators/candles/aggregated/symbolsAvailable symbols
GET/api/indicators/signals/:symbol/:intervalSignals for symbol
GET/api/indicators/signals/all/:intervalAll symbols signals

Leaderboard

Base path: /api/leaderboard.

MethodPathDescription
GET/api/leaderboard/statsLeaderboard stats
GET/api/leaderboard/rankingsRankings
GET/api/leaderboard/user/:userIdUser ranking
GET/api/leaderboard/analyticsAnalytics
GET/api/leaderboard/healthHealth

Referrals

Base path: /referrals.

MethodPathDescription
GET/referrals/:userIdUser referral info
GET/referrals/:userId/statsReferral stats
POST/referrals/:userId/codeCreate referral code
POST/referrals/checkCheck referral code

USDC Verification

Base path: /usdc-verification.

MethodPathDescription
POST/usdc-verification/verifyVerify USDC deposit
GET/usdc-verification/my-transactionsMy transactions
GET/usdc-verification/total-depositedTotal deposited

Health

MethodPathDescription
GET/healthBasic health
GET/health/kafkaKafka health

Asset Indices (Hyperliquid Perps)

Common perp asset indices:

SymbolIndex
BTC0
ETH1
SOL2
XRP3
DOGE4
AVAX5

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.

Comments

Loading comments...