Symbol Search
On this page
Use --search-symbol to check if a pair is available before running a strategy.
This command is standalone and does not require a strategy file.
whale-e --search-symbol <query> [--exchange name] [--limit N] [--exact] [--json] [--json-pretty]You can run the short form directly:
whale-e --search-symbol btcOptions
| Option | Description |
|---|---|
--search-symbol QUERY | Required. Search text (for example btc, btcusdt, ethusd). |
--exchange NAME | Restricts search to one exchange. Supported values: binance, kucoin, bitget, bybit, okx. |
--limit N | Limits displayed results. Default: 20. |
--exact | Keeps only exact matches against the symbol/ticker identifiers. |
--json | Returns structured JSON to stdout. |
--json-pretty | Pretty-prints the JSON payload. Requires --json. |
Search is case-insensitive and normalizes input by removing non-alphanumeric characters.
Text output
Default output is human-readable text.
whale-e --search-symbol btcusdt --exchange binance --limit 3Example output:
Found 12 matching symbol(s); showing 3.
1. BINANCE:BTCUSDT [spot] ticker=BTCUSDT
2. BINANCE:BTCUSDT.P [usdm_futures] ticker=BTCUSDT
3. BINANCE:BTCUSD.P [coinm_futures] ticker=BTCUSDIf no symbol matches the query:
No symbols matched query 'foo'.JSON output
Enable JSON with --json.
whale-e --search-symbol btc --jsonSuccess payload uses _schema: "whale-e.symbol-search.v1".
success: truemode: "search_symbol"query,exact,limit,total_matchesexchange_filteronly when--exchangeis setresults[]withrank,exchange,symbol,ticker,market_type,score
The score field is an internal relevance score computed by the engine from exact-match, prefix-match, and substring-match rules.
Example (truncated):
{
"success": true,
"_schema": "whale-e.symbol-search.v1",
"mode": "search_symbol",
"query": "btc",
"exact": false,
"limit": 20,
"total_matches": 42,
"results": [
{
"rank": 1,
"exchange": "binance",
"symbol": "BINANCE:BTCUSDT",
"ticker": "BTCUSDT",
"market_type": "spot",
"score": 850
}
]
}Errors in JSON mode use the standard CLI error envelope:
success: false_schema: "whale-e.error.v1"mode: "search_symbol"error: { type: string, message: string }
Restrictions
--search-symbolcannot be combined with--analyze.--search-symbolcannot be combined with--export-pinescript.--search-symbolcannot be combined with a strategy file argument.- In
--search-symbol --jsonmode, only--json-prettyis allowed as a JSON sub-option. - In search mode,
--json-objective-limitand all--json-include-*options are rejected. --exchange,--limit, and--exactrequire--search-symbol.
Prev
JSON Export