quote

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

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.

agentmods
npx agentmods add commands/moshcoder/moshcode/quote
Clone the repo
git clone --depth 1 https://github.com/moshcoder/moshcode
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. Scan, not verified.
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 $0.00014 $0.00312
Opus 5 $0.00007 $0.00156
Sonnet 5 $0.00003 $0.00062
Haiku 4.5 $0.00001 $0.00031

Measured yesterday against content hash ce031fa8fc2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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 (2 stars, last pushed yesterday), licensed MIT. It adds 14 tokens to every session and 312 once invoked, about $0.0001 per session on Opus 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.