onetick-cloud

onetick-cloud is a skill for Claude Code from KxSystems/kx-skills. It costs 159 tokens per session (5,854 once invoked), scanned A, original, Apache-2.0.

A tool for composing and running OneTick SQL, the query language used to retrieve financial market data from OneTick Cloud. It supports discovering databases and schemas, then executing queries and saving full results to a Feather file.

In plain words
What is it for?
Use it to retrieve tick, bar, daily, order-book, or reference data from OneTick Cloud databases and save the complete query result.
Why use it?
It separates finding the right OneTick data and query syntax from actually running the query. Bounded previews and row counts help inspect large results without returning all rows in the response.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the onetick-knowledge plugin — 1 skill shipped together

Good fit Use it to retrieve tick, bar, daily, order-book, or reference data from OneTick Cloud databases and save the complete query result.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add KxSystems/kx-skills
Claude Code
/plugin install onetick-knowledge

Made for: Claude Code.

Or install onetick-knowledge, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for onetick-cloud

README.md
[![agentmods](https://agentmods.dev/badge/skills/kxsystems/kx-skills/onetick-cloud/github.svg)](https://agentmods.dev/skills/kxsystems/kx-skills/onetick-cloud)
Your own site
<a href="https://agentmods.dev/skills/kxsystems/kx-skills/onetick-cloud"><img src="https://agentmods.dev/badge/skills/kxsystems/kx-skills/onetick-cloud/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for onetick-cloud

Your own site · 80×15
<a href="https://agentmods.dev/skills/kxsystems/kx-skills/onetick-cloud"><img src="https://agentmods.dev/badge/skills/kxsystems/kx-skills/onetick-cloud.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 159 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,854 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00159 $0.05854
Opus 5 $0.00079 $0.02927
Sonnet 5 $0.00032 $0.01171
Haiku 4.5 $0.00016 $0.00585

Measured 10d ago against content hash a8f006a39c34, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

onetick-cloud scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/onetick_exec.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/onetick-knowledge/skills/onetick-cloud/SKILL.md · 197 lines

How it starts

The opening of the file, as written. The whole thing — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OneTick

Compose OneTick SQL via the OneTick MCP server, then execute it via the bundled onetick-py WebAPI helper. This skill is only the residue the MCP server does not cover — auth, execution mechanics, workflow orchestration, and a handful of gotchas. Everything OneTick-specific (database catalogue, schemas, field semantics, SQL function reference) is delegated to MCP tools at runtime.


Architecture — read this first

There are two OneTick surfaces and they do different jobs. Never mix them up.

  • OneTick MCP server (OneTick-Cloud) — discovery and composition only. Use it to find databases, list tick-type variants, look up schemas, read field semantics, and search the SQL function reference. Bulk data does not flow through MCP.
  • OneTick execution (REST fast path + onetick-py wheel fallback) — execution only. The bundled helper (scripts/onetick_exec.py) runs finished SQL over Arrow, writes the full result to a Feather file, and returns a bounded preview + row-count envelope (never the whole result). By default it executes via a lightweight REST call to OneTick Cloud (sub-second per-query startup) and falls back to the onetick-py WebAPI wheel only when REST is genuinely unavailable. See Execution below. Bulk data never floods the chat loop — only the preview does.

If the MCP server is not registered in the current session, the skill cannot do discovery — stop and tell the user to register it (claude mcp add --transport http OneTick-Cloud https://mcp.cloud.onetick.com/mcp).


Workflow

Follow this order. Do not skip ahead — wrong-database, wrong-tick-type, and skipped-field-semantics are the three most common failure modes, and steps 1–4 prevent all of them.

  1. Database discovery — call list_databases with structured filters (country, equities / futures / options / fx / indices, bars, book_depth, real_time, time_zone, mic). Prefer filters over keyword search.
  2. Tick-type discovery — call db_tables(tick_type=…) with the base tick type (e.g. TRD, QTE, NBBO). Returns prefix-matching variants with descriptions, so the agent picks TRD vs TRD_1M vs TRD_1D vs TRD_ODD_LOT on evidence, not memory.
  3. Schema lookup — call db_table_schemas(db_name, tick_type) for authoritative field names and types.
  4. Field semantics — mandatory. For any field you are about to filter on, aggregate, or project that you have not already seen described in this session, call db_field_descriptions(tick_type, field=<FIELD_NAME>) first. This catches the ACC_VOLUME vs VOLUME confusion on TRD, the COND code-set overlap between TRD and NBBO, the per-tick-type field-name aliasing on QTE/NBBO, and similar traps before they become silently-wrong SQL. Do not skip this step on the assumption that the field name is self-explanatory — the eval shows that assumption is wrong roughly two-thirds of the time the step is skipped.
  5. SQL function reference — call search_sql-docs(query=…) for any built-in function the agent is about to use (CORP_ACTIONS, MKT_ACTIVITY, TICK_SHIFT, OB_SNAPSHOT, REF_DATA, TW_AVG, window functions, etc.). Always delegate — never hardcode a signature from memory.
  6. Compose SQL. Mandatory guardrails:
    • Time literals must carry an explicit timezone ('2024-01-03 12:00:00 UTC', '2024-01-03 09:00:00 America/New_York'). Bare timestamps fail or silently default to a venue-inappropriate zone.
    • TIMESTAMP does not support BETWEEN. Always express ranges as TIMESTAMP >= '<lo>' AND TIMESTAMP < '<hi>'. OneTick rejects BETWEEN on TIMESTAMP with ERR_07516820CWNEE. Applies to every tick type (TRD, QTE, *_1M, *_DAILY, DAY, …).
    • Use lower-case limit to match canonical examples (upper-case also accepted).
  7. Execute via the execution helper (scripts/onetick_exec.py). The helper handles auth, the WebAPI transport, the Arrow→Feather write (full result), and the JSON envelope (preview + row count). If the helper prints an error envelope (non-zero exit) or rows: 0 on a question that expected rows, apply the retry contract below — do not loop indefinitely.

Read the full file on GitHub · 197 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 197 lines · 159 tokens per session scan A a8f006a39c34

Subscribe to this mod's changes

onetick-cloud is a skill published in the GitHub repository KxSystems/kx-skills (16 stars, last pushed 7d ago), licensed Apache-2.0. It adds 159 tokens to every session and 5,854 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens

strategy-pivot-designer

Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.

tradermonty/claude-trading-skills · 28 tokens

twitter-reader

Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…

himself65/finance-skills · 161 tokens

chenhao-limit-up

A framework for judging Chinese A-share stocks that have reached the daily price-rise limit, using market mood, sector leadership, and trading momentum.

questflowai/investorskills · 44 tokens

trading-risk-gate

Unified pre-trade safety gate: Ruin check (Law #1), ergodicity audit, and win-rate dominance validation. Absorbs: ergodicity-check, law-of-ruin, win-rate-dominance.

winstonkoh87/Athena-Public · 53 tokens

furusato

A Japanese hometown-tax donation manager for furusato nozei, a system where donations to municipalities can qualify for an income-tax or local-tax deduction. It reads donation receipts, stores donation records, and calculates deduction limits.

kazukinagata/shinkoku · 102 tokens