Download the exact captured file
--- name: ask description: >- Puts one market question to Chord's analyst (Ask) and returns its answer with the sources behind its numbers, the assets it is about, and the tables and charts it built. Ask reads live data when asked: Chord's own index of DEX trades, tokens, holders and wallets on nine chains, US stock tokens, token safety, news, posts on X and market prices. It can explain a move, compare assets, read a wallet or write a short research note. Use when the user asks why something moved, wants research or a comparison in one answer, or asks a market question no other ChordSI skill answers directly. Not for placing trades (it describes, it does not act) or for advice on what to buy. Each question is billed. Read only; never signs or moves funds. license: MIT compatibility: Needs python3, HTTPS to api.getchord.xyz and CHORD_API_KEY (from chordsi.xyz/me). metadata: author: Chord (getchord.xyz) homepage: https://chordsi.xyz/s/ask version: "1.0.0" --- # Ask Chord The analyst behind Chord's chat. It picks its own lookups for the question (40 and more tools over Chord's index and outside market data), reads the data at the time of the question, and answers with links to where each number can be checked. An answer can take a minute or more; deep answers take longer. Ask allows up to 8 questions a minute per key. The script waits for the whole answer and never sends a question twice. ## Run it ```bash python3 scripts/ask.py "QUESTION" [--speed quick|auto|deep] [--wallet 0x...] [--timeout SECONDS] python3 scripts/ask.py --status python3 scripts/ask.py --report ID ``` - `QUESTION`: one question, under 1,000 characters. Put the chain or the token address in it when it matters. - `--speed`: `quick` (the shortest answer, fastest), `auto` (default, Chord picks) or `deep` (a judgement written as a report, slowest). - `--wallet 0x...`: the person's own wallet, so "my PnL" or "my positions" resolve. - `--timeout`: seconds to wait (default 300). - `--status`: whether Ask is switched on. No question is asked. - `--report ID`: a saved research report as Markdown; the id is the last part of an answer's `report.url`. Example: `python3 scripts/ask.py "Why did NVDA move today?" --speed quick` ## Read the answer - `text`: the answer in Markdown. Show it as written; `[1]`, `[2]` point at `sources` in order on deep answers. - `details`: the longer analysis behind the answer, when there is one. - `sources`: `label` and `url` of each source used. - `assets`: the assets the answer is about, with `price` (USD), `change24hPct` (percent) and, for tokens, `chain` and `address`. `risk` is Chord's safety verdict when it checked one. - `figures`: tables (first 10 rows) and charts (last points of each series) the tools built. - `quote`: a swap route card when the question asked for one (information only; nothing is signed). - `report`: links to a research report when one was built. `followUps`: questions worth asking next. - `clarify`: Ask asked back instead of answering. Show the person its question and options, then ask again with their pick written into the question. - `lookups`: what Ask read, in order. `elapsedSec`: how long it took. `disclaimer`: show it when present. ## How to answer the user 1. Give Ask's answer faithfully: keep its numbers, units and times, and do not add figures of your own. 2. Cite the sources by name or link; say the answer reflects data at the time of the question. 3. Keep the disclaimer when present. Never turn the answer into a buy or sell instruction or a price target. 4. A question costs money: do not resend it after a timeout or an error without telling the person. ## Cost 5 questions a month are free; then $0.05 a question from your ChordSI credit. Needs CHORD_API_KEY. One question is one call to POST /v1/ask; `--status` and `--report` are ordinary calls (300 a month free, then $0.006 each). If the script exits with code 4, show the person the message: their credit is empty or a limit was reached, and chordsi.xyz/me is where they top up.