quote

quote is a command for Claude Code from moshcoder/moshcode. It costs 14 tokens per session (312 once invoked), scanned A, original, MIT.

A command for viewing the latest trade and current buy and sell quotes for a cryptocurrency pair. The bid is the highest displayed buying price, the ask is the lowest selling price, and their difference is the spread.

In plain words
What is it for?
Use it to inspect a pair's price, trade time, bid and ask sizes, midpoint, and spread on Alpaca's US crypto venue.
Why use it?
It shows both the latest completed trade and the prices currently offered, so a displayed quote is not mistaken for a recent trade.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Part of the crypto plugin — 7 commands shipped together

Good fit Use it to inspect a pair's price, trade time, bid and ask sizes, midpoint, and spread on Alpaca's US crypto venue.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/moshcoder/moshcode/quote
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/moshcoder/moshcode

Made for: Claude Code.

Or install crypto, the plugin that ships this one along with the rest of its 7 commands.

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 quote

README.md
[![agentmods](https://agentmods.dev/badge/commands/moshcoder/moshcode/quote/github.svg)](https://agentmods.dev/commands/moshcoder/moshcode/quote)
Your own site
<a href="https://agentmods.dev/commands/moshcoder/moshcode/quote"><img src="https://agentmods.dev/badge/commands/moshcoder/moshcode/quote/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 quote

Your own site · 80×15
<a href="https://agentmods.dev/commands/moshcoder/moshcode/quote"><img src="https://agentmods.dev/badge/commands/moshcoder/moshcode/quote.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 312 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00014 $0.00312
Opus 5.5 $0.00006 $0.00125
Sonnet 5.5 $0.00003 $0.00062
Haiku 4.5 $0.00001 $0.00031

Measured 1mo ago against content hash ce031fa8fc2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

quote scanned grade A with 1 finding 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 1mo ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

allowed-tools: Bash(moshcode crypto:*), Bash(curl -sS https://advis0r.com/api/crypto/:*)
plugins/crypto/commands/quote.md · 32 lines

What it actually says

Task

Get the current quote for $ARGUMENTS.

moshcode crypto quote $ARGUMENTS --json

Fallback: curl -sS "https://advis0r.com/api/crypto/quote?symbol=$ARGUMENTS"

Reading the response

quotes[] each carry latestTrade (price, size, timestamp), latestQuote (bidPrice/bidSize/askPrice/askSize), spread, spreadBps, and mid.

Rules

  • Give the price at the precision the pair trades at. SHIB near $0.000006 rounded to two decimals is "$0.00", which is wrong, not concise.
  • spreadBps is the cost of crossing. A wide spread means thin liquidity on this venue — report it alongside the price rather than burying it.
  • latestTrade.timestamp and latestQuote.timestamp can differ. If the last trade is old, the mid is a quote, not evidence of a trade at that level.
  • Prices are Alpaca's US crypto venue and trade 24/7 — never "at the close".
  • End with the response's own disclaimer.
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. 1mo ago First seen · 32 lines · 14 tokens per session scan A ce031fa8fc2b

Subscribe to this mod's changes

quote is a command published in the GitHub repository moshcoder/moshcode (3 stars, last pushed 4d ago), licensed MIT. It adds 14 tokens to every session and 312 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.