Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.generalmarket.io/llms.txt

Use this file to discover all available pages before exploring further.

Price Endpoints

Prices. The only fact the market agrees on, and only for an instant. Four endpoints, each with a different tradeoff between freshness and speed.

Get Single Asset Price

asset
string
required
Asset ticker symbol (e.g., BTC, ETH, SOL).
One asset. One price. The source and timestamp are included so you know where the number came from and how old it is.
curl "https://generalmarket.io/api/price?asset=BTC"
FieldTypeDescription
assetstringAsset ticker symbol
pricenumberLatest price in USD
timestampnumberUnix timestamp of the price update
sourcestringData source that provided the price

Get All Latest Prices

Every supported asset. One call.
curl "https://generalmarket.io/api/prices"
FieldTypeDescription
assetstringAsset ticker symbol
pricenumberLatest price in USD

Get Latest Prices (Bulk Map)

Same data as /prices, but keyed by ticker for direct lookup. Use this when you know what you are looking for.
curl "https://generalmarket.io/api/latest-prices"
Keys are tickers. Values are USD prices.

Get Fast Prices

Cached. Possibly a few seconds stale. Faster to serve. Use this for UI display and order previews — not for final execution pricing.
curl "https://generalmarket.io/api/fast-prices"
Fast prices are cached and may lag behind real-time prices by a few seconds. Use /price?asset=X when the most current price for a specific asset is needed.