Agentic Trading Lab
에이전트와 대화하고, 거래 아이디어를 테스트하며, 코드 없이 실제 시장 데이터에 AI 트레이딩 에이전트를 적용
Cryptohopper로 암호화폐 거래를 자동화하고 강력한 봇·DCA·트레일링·AI·복제거래를 주요 거래소에서 무료로 시작
Automate your crypto trading with Cryptohopper. Use powerful trading bots, DCA, trailing features, AI and copy trading on all major exchanges. Start free.
금융TypeScriptGitHub @cryptohopper온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Official Node.js SDK for the Cryptohopper API
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Official Node.js SDK for the Cryptohopper API.
Status: 0.4.0-alpha.1 — full coverage of all 18 public API domains:
user,hoppers,exchange,strategy,backtest,market,signals,arbitrage,marketmaker,template,ai,platform,chart,subscription,social,tournaments,webhooks,app.
Deeper docs: Getting Started · Authentication · Error Handling · Rate Limits
npm install @cryptohopper/sdk
Requires Node.js 20+.
import { CryptohopperClient } from "@cryptohopper/sdk";
const ch = new CryptohopperClient({
apiKey: process.env.CRYPTOHOPPER_TOKEN!,
});
const me = await ch.user.get();
console.log(me.email);
For runnable scripts you can clone and tinker with, see examples/ — covers public ticker, whoami, hopper listing, error handling, and a 30-day backtest.
// User
await ch.user.get();
// Hoppers (trading bots)
await ch.hoppers.list({ exchange: "binance" });
await ch.hoppers.get(42);
await ch.hoppers.create({ name: "My Bot", exchange: "binance" });
await ch.hoppers.update(42, { name: "Renamed" });
await ch.hoppers.delete(42);
await ch.hoppers.positions(42);
await ch.hoppers.orders(42);
await ch.hoppers.buy({ hopper_id: 42, market: "BTC/USDT", amount: 0.001 });
await ch.hoppers.sell({ hopper_id: 42, market: "BTC/USDT", amount: 0.001 });
await ch.hoppers.configGet(42);
await ch.hoppers.configUpdate(42, { /* config fields */ });
await ch.hoppers.panic(42);
// Exchange — market data (still requires a real token; the gateway has no anonymous routes)
await ch.exchange.ticker({ exchange: "binance", market: "BTC/USDT" });
await ch.exchange.candles({ exchange: "binance", market: "BTC/USDT", timeframe: "1h" });
await ch.exchange.orderbook({ exchange: "binance", market: "BTC/USDT" });
await ch.exchange.markets("binance");
await ch.exchange.exchanges();
// Strategy
await ch.strategy.list();
await ch.strategy.get(5);
await ch.strategy.create({ name: "My Strategy", ... });
await ch.strategy.update(5, { name: "Renamed" });
await ch.strategy.delete(5);
// Backtest
await ch.backtest.create({ hopper_id: 42, from_date: "2026-01-01", to_date: "2026-03-01" });
await ch.backtest.get(1);
await ch.backtest.list();
await ch.backtest.cancel(1);
await ch.backtest.limits();
// Marketplace — same auth requirement as everything else
await ch.market.signals({ type: "buy" });
await ch.market.signal(99);
await ch.market.items({ type: "strategy" });
await ch.market.homepage();
Cryptohopper uses OAuth2 bearer tokens. To get one:
client_id and client_secret./oauth-consent?app_id=<client_id>&redirect_uri=<your_uri>&state=<csrf>) to receive a 40-character bearer token scoped to the permissions you requested.Pass the token as apiKey. Optionally pass your OAuth client_id as appKey — it's sent as the x-api-app-key header.
const ch = new CryptohopperClient({
apiKey: process.env.CRYPTOHOPPER_TOKEN!,
appKey: process.env.CRYPTOHOPPER_CLIENT_ID, // optional
});
See api.cryptohopper.com/v1/docs for the full API reference.
| Option | Default | Description |
|---|---|---|
apiKey | — (required) | OAuth2 bearer token |
appKey | — | Optional OAuth client_id, sent as x-api-app-key |
baseUrl | https://api.cryptohopper.com/v1 | Override for staging/dev environments |
timeoutMs | 30000 | Per-request timeout |
maxRetries | 3 | Retries on HTTP 429 (respects Retry-After). Set to 0 to disable. |
fetch | globalThis.fetch | Inject a fetch implementation |
userAgent | — | Appended after cryptohopper-sdk/<version> |
Every non-2xx response becomes a CryptohopperError:
import { CryptohopperClient, CryptohopperError } from "@cryptohopper/sdk";
try {
await ch.user.get();
} catch (err) {
if (err instanceof CryptohopperError) {
console.log(err.code); // "UNAUTHORIZED" | "FORBIDDEN" | "RATE_LIMITED" | ...
console.log(err.status); // HTTP status
console.log(err.serverCode); // numeric unique error code from the server, if any
console.log(err.ipAddress); // client IP the server saw, useful for IP whitelist debugging
console.log(err.retryAfterMs); // ms to wait on 429
}
}
| Code | HTTP | Meaning |
|---|---|---|
UNAUTHORIZED | 401 | Token missing or invalid |
FORBIDDEN | 403 | Missing permission scope or IP whitelist mismatch |
NOT_FOUND | 404 | Resource or endpoint not found |
RATE_LIMITED | 429 | Rate limit exceeded (the SDK retries automatically by default) |
VALIDATION_ERROR | 400 / 422 | Invalid parameters |
DEVICE_UNAUTHORIZED | 402 | Mobile device not authorized (internal flow) |
SERVER_ERROR | 5xx | Upstream error |
NETWORK_ERROR | — | Transport failure |
TIMEOUT | — | Request exceeded timeoutMs |
Unknown server-side codes pass through as-is on .code.
The server enforces three buckets:
normal — 30 requests/minuteorder — 8 orders per 8-second window (buy, sell, order, trade)backtest — 1 request per 2 secondsOn HTTP 429 the SDK retries with exponential backoff up to maxRetries (default 3), respecting Retry-After. Set maxRetries: 0 to disable and handle 429s yourself.
npm install
npm run typecheck
npm test
npm run build
Push a sdk-v<version> git tag. The release workflow typechecks, tests, builds, verifies tag-version parity, then publishes to npm with provenance.
MIT — see LICENSE.