blockfill
Local-first smart execution daemon for Binance Futures and OKX Swap. API keys never leave your machine — no cloud, no key leaks. Built-in maker/TWAP execution, multi-exchange support, persistent WebSocket connections. Place, query, and cancel execution tickets via CLI or Python SDK.
What this skill does
## What is blockfill
blockfill is a **local-first smart execution daemon** for crypto trading. It runs entirely on your machine — your API keys are stored locally and never transmitted to any third-party server.
**Why blockfill**:
- **Secure** — API keys stay local, no cloud dependency
- **Smart execution** — built-in maker/TWAP strategies, handles order slicing and timing automatically
- **Multi-exchange** — Binance Futures and OKX Swap from a single daemon
- **Self-healing** — daemon auto-restarts executors on panic; supervises per-exchange WS connections
- **AI-native** — CLI + Python SDK designed for programmatic use by scripts and AI agents
**Key concepts**:
- **Ticket**: an execution order (`exchange + symbol + strategy + target_position + time_constraint_ms`)
- **Daemon**: background process that manages exchange WS connections and executes tickets
- **CLI**: `blockfill` binary — human and agent interface to the daemon
- **Python SDK**: `from blockfill import Blockfill` — zero-overhead programmatic interface
---
## Install
```bash
pip install blockfill # latest
pip install -U blockfill # upgrade (pip never auto-upgrades)
```
The wheel ships with the executor binary bundled inside (no separate
download). PyPI publishes only platform-specific wheels — incompatible
hosts get a clean `No matching distribution`. Currently:
- `manylinux2014_x86_64` (Linux x86_64)
- `manylinux2014_aarch64` (Linux arm64)
- `macosx_11_0_arm64` (Apple Silicon)
- `macosx_10_15_x86_64` (Intel macOS)
The qtex endpoint and API key are hardcoded into the binary at release time —
users never set them.
---
## Supported exchanges
| Exchange | Value | Credentials | Multi-exchange in one daemon |
| ------------------------ | ----------------- | ---------------------------------------------------- | ---------------------------- |
| Binance Futures (USDT-M) | `binance-futures` | `api_key`, `api_secret`, `testnet` | ✓ |
| OKX Swap | `okx-swap` | `api_key`, `api_secret`, `api_passphrase`, `testnet` | ✓ |
A single daemon can run **both** exchanges concurrently. Add credentials for
each one — the daemon spawns a per-exchange executor.
---
## Supported symbols
Each exchange uses its **own native symbol format** — they are not the same.
| Exchange | Format | Examples |
| ----------------- | ----------------------------------------------------- | ------------------------------------------------------------------- |
| `binance-futures` | Lowercase, concatenated (Binance native) | `btcusdt`, `ethusdt`, `solusdt`, `dogeusdt` |
| `okx-swap` | Dash-separated, includes contract suffix (OKX native) | `BTC-USDT-SWAP`, `ETH-USDT-SWAP`, `SOL-USDT-SWAP`, `DOGE-USDT-SWAP` |
Use the exact format the target exchange expects — blockfill does NOT
cross-translate.
---
## Execution strategies
Two strategies are supported via the public ticket API:
| Strategy | Behavior | When to use |
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| `maker` | **Passive maker.** Posts PostOnly limit orders that sit on the book and earn the maker rebate. In the last segment of the time window, falls back to IOC to clean up any unfilled remainder. | Default. Cost-optimal when fill speed is not critical. |
| `twap` | **Pure-taker TWAP.** Places IOC orders on a TWAP schedule across the full time window — no PostOnly phase. Always crosses the spread. | When you need guaranteed completion within the window and accept taker cost. |
Default: `maker`.
---
## Ticket parameters
| Parameter | Type | Required | Default | Description |
| -------------------- | ------ | -------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `exchange` | string | ✅ | — | `binance-futures` or `okx-swap` |
| `symbol` | string | ✅ | — | Lowercase, e.g. `btcusdt` |
| `target_position` | float | ✅ | — | Target position in base asset. Positive = long, negative = short |
| `strategy` | string | | `maker` | `maker` \| `twap` |
| `time_constraint_ms` | int | | `300000` | Execution window in ms (10,000–86,400,000). At the end of the window the executor falls back to taker fills for any unfilled remainder. |
**Auto-supersede**: placing a new ticket for the same `exchange+symbol` automatically cancels existing **NEW and OPEN** tickets for that pair (`cancel_reason: "superseded"`). The superseded ticket remains visible in queries with `status: CANCEL`.
---
## Ticket schema
```json
{
"ticket_id": "tkt_18b2b09ca766001e",
"status": "OPEN",
"exchange": "binance-futures",
"symbol": "btcusdt",
"strategy": "maker",
"target_position": 0.5,
"init_position": 0.0,
"executed_position": 0.13,
"time_constraint_ms": 300000,
"start_time_ms": 1779287926007,
"last_update_time_ms": 1779287935063,
"is_expired": false,
"cancel_reason": null
}
```
| Field | Type | Description |
| --------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `ticket_id` | string | `tkt_<hex>` |
| `status` | string | `NEW` \| `OPEN` \| `COMPLETE` \| `CANCEL` |
| `exchange` | string | `binance-futures` \| `okx-swap` |
| `symbol` | string | Lowercase symbol |
| `strategy` | string | `maker` \| `twap` |
| `target_position` | float | Requested net position |
| `init_position` | float \| null | Exchange position at activation time (null while NEW) |
| `executed_position` | float Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.