Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 0.6.0-alpha.2 — Unreleased

### Fixed
- **Critical: every authenticated API call was rejected by the gateway.** The CLI's underlying `@cryptohopper/sdk` v0.4.0-alpha.1 sent `Authorization: Bearer <token>` on every request, which the AWS API Gateway in front of `api.cryptohopper.com/v1/*` rejects with `405 Missing Authentication Token`. The Public API v1 actually uses an `access-token: <token>` header — confirmed via the official [API documentation](https://www.cryptohopper.com/api-documentation/how-the-api-works) and the legacy iOS/Android SDKs. Picks up the fix from [`@cryptohopper/sdk@0.4.0-alpha.2`](https://github.com/cryptohopper/cryptohopper-node-sdk/pull/9).

### Compatibility
No CLI surface change. Same flags, same JSON output, same exit codes. The only thing that changes is what the underlying SDK sends on the wire.

### Upgrade
- **npm**: `npm install -g @cryptohopper/cli@latest` (or `@0.6.0-alpha.2` explicitly).
- **Standalone binary**: `cryptohopper upgrade` (or download from [GitHub Releases](https://github.com/cryptohopper/cryptohopper-cli/releases)).

If you ran `cryptohopper login` on `0.6.0-alpha.1` and your saved token at `~/.cryptohopper/config.json` worked back then somehow (it shouldn't have — every authenticated call returned 405), no action needed. The token itself is still valid; only the header carrying it changes.

## 0.6.0-alpha.1 — 2026-04-25

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ cryptohopper login # opens your browser to authorize via OAu
cryptohopper whoami # confirm identity
cryptohopper hoppers list # list your bots
cryptohopper positions <hopper-id> # open positions
cryptohopper ticker binance BTC/USDT # public ticker (no auth)
cryptohopper ticker binance BTC/USDT # spot price (still requires `cryptohopper login`)
cryptohopper backtest new <hopper-id> --from 2026-01-01 --to 2026-03-01
cryptohopper backtest status <backtest-id>
cryptohopper upgrade # self-update to latest release
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cryptohopper/cli",
"version": "0.6.0-alpha.1",
"version": "0.6.0-alpha.2",
"description": "Command-line interface for Cryptohopper",
"type": "module",
"bin": {
Expand All @@ -18,7 +18,7 @@
"compile:all": "npm run compile:linux-x64 && npm run compile:darwin-x64 && npm run compile:darwin-arm64 && npm run compile:windows-x64"
},
"dependencies": {
"@cryptohopper/sdk": "^0.4.0-alpha.1",
"@cryptohopper/sdk": "^0.4.0-alpha.2",
"cli-table3": "^0.6.5",
"commander": "^14.0.0",
"picocolors": "^1.1.1"
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const CURRENT_VERSION = "0.6.0-alpha.1";
export const CURRENT_VERSION = "0.6.0-alpha.2";
export const RELEASE_REPO = "cryptohopper/cryptohopper-cli";