maxgfr/binance-historical/binance-historical
Claude Code and agent skill by maxgfr/binance-historical
- community
Checking that the SKILL.md file is still in the repository.
Download and resume Binance historical candles for Spot and futures markets with JSON, CSV or JSON Lines exports. Use only when the user explicitly asks for binance-historical or a Binance candle download.
Install
npx vskill@latest install maxgfr/binance-historical/binance-historicalSKILL.md
Download Binance historical candles
Use the installed binance-historical CLI. Inside its source checkout, install locked dependencies with pnpm install --frozen-lockfile, build with pnpm run build, and substitute node build/index.js for the command below. The skill installs instructions, not the executable; outside a checkout the executable is installed with npm install -g binance-historical.
Discover the installed contract
Run binance-historical --version and binance-historical describe --json. The latter is the source of truth for markets, intervals, fields, defaults and exit codes. If the installed release lacks describe, use a newer release or the current source build before using these options.
Translate the request
Resolve the market, exact symbol(s), interval, start, exclusive end and output directory from the request. Ask only for missing intent. Use Spot when the user has not requested derivatives. Futures symbols are contract identifiers, such as BTCUSDT for USDⓈ-M and BTCUSD_PERP for COIN-M; dated contracts require their exact exchange symbol. Preserve the requested contract rather than substituting an underlying pair.
Pass --kind only when the request names a futures price series: mark for mark price, index for index price, premium for the premium index. These exist on usd-m and coin-m only and carry prices without volumes. For index, --pair is the underlying pair (BTCUSDT, or BTCUSD on COIN-M). Traded candles, the default trade kind, need no flag.
Dates without a time mean midnight UTC. To request January 2024 in full, use --start 2024-01-01 --end 2024-02-01. Convert a requested local timezone to an explicit ISO timestamp with offset. The exclusive end lets adjacent exports join without duplicates. Closed candles are the default; use --include-open only when the request calls for an unfinished candle.
Execute without prompts
Always pass --non-interactive --json and an explicit output directory. --format selects the file encoding: json, csv, or jsonl (one candle object per line) when the user wants line-oriented or streamable output. --json selects the command report. Prices and volumes remain decimal strings. Read the result report rather than loading a large candle file into the conversation.
COIN-M has different volume units and field names. Consult its fields from describe; do not interpret contract volume as base or quote asset volume.
Check the outcome and resume
A zero exit code and status: "success" mean the requested operation finished. Report the output paths, counts and any failed symbols. An empty result is a valid export, not evidence that Binance must have data for that period. The report and dates describe the requested slice, not a promise of continuous trading or complete exchange history.
For an interrupted export whose result is resumable: true, rerun the same command and add --resume. This includes EXPORT_LOCKED results marked resumable: their lock belongs to a writer that no longer runs, and --resume recovers it. Keep the original market, kind, symbols, dates, format, output path and open-candle policy. The checkpoint preserves the original reference instant; it does not extend the export through the current time.
The downloader retries temporary network errors itself. On a persistent error, use the error code and message to decide whether to resume, correct a symbol, or report an unavailable market. Stop on bans and checkpoint corruption. RESTRICTED_LOCATION means Binance refuses the caller's location: report it, and use --base-url only with an endpoint the user names. Use --overwrite only when replacing the existing export is requested; it is mutually exclusive with --resume. Keep .part and .checkpoint.json files together until the export is finished. After success, the checkpoint is deleted automatically and only the exported file remains. Use that final file directly; --resume requires a checkpoint from an interrupted export.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/binance-historical/SKILL.md
Popularity
- Repository stars
- 47
- Repository forks
- 6
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/maxgfr/binance-historical/binance-historical)