Developer Tools
Official SDKs, testing tools, machine-readable specs, and AI integrations for the Sharpe API.
Official SDKs
Auto-generated from the OpenAPI specification. Both packages are published on their respective registries and updated on every API release.
Both SDKs follow the standard OpenAPI Generator pattern: a shared Configuration object plus per-category API classes (DerivativesApi, MarketDataApi, ArbitrageApi, CategoriesApi, ExchangeListingsApi, AccountApi, SystemApi).
Python
pip install sharpe-api
from sharpe_api import ApiClient, Configuration, DerivativesApi
config = Configuration(
host="https://www.sharpe.ai/api",
api_key={"ApiKeyAuth": "sk_live_your_key_here"},
)
with ApiClient(config) as client:
derivatives = DerivativesApi(client)
rates = derivatives.get_funding_rates(type="current")
for row in rates.data:
print(f"{row.exchange} {row.symbol}: {row.rate}")
TypeScript
npm install @sharpe-labs/api
import { Configuration, DerivativesApi } from '@sharpe-labs/api'
const config = new Configuration({
basePath: 'https://www.sharpe.ai/api',
headers: { Authorization: 'Bearer sk_live_your_key_here' },
})
const api = new DerivativesApi(config)
const rates = await api.getFundingRates({ type: 'current' })
rates.data.forEach((r) => console.log(`${r.exchange} ${r.symbol}: ${r.rate}`))
Postman Collection
Import the Postman collection to explore every endpoint interactively. All requests are pre-configured with variables for your API key and base URL.
- Download sharpe-api.postman_collection.json
- Open Postman and click Import
- Set the
api_keycollection variable to a key from the API key dashboard - Send any request
API Playground
The interactive API playground lets you explore every endpoint, fill in parameters, send live requests, and see responses — all from your browser. Code snippets are auto-generated in 25+ languages.
- Free endpoints work without authentication — try them instantly
- Authenticated endpoints require your API key (paste it in the auth panel)
- Code generation in Python, TypeScript, cURL, Go, PHP, Ruby, Java, and more
OpenAPI Specification
The full API is described in an OpenAPI 3.0 document. Use it with code generators, API clients, or documentation tools.
curl -O https://www.sharpe.ai/openapi.json
Generate a client
npx openapi-typescript https://www.sharpe.ai/openapi.json -o sharpe-api.d.ts
openapi-python-client generate --url https://www.sharpe.ai/openapi.json
The spec is also available at /openapi.json on the docs site.
MCP Server
The Sharpe MCP server gives AI agents (Claude, Cursor, and any MCP client) direct access to crypto market data through 33 tools (30 endpoint tools plus 3 composite workflows), 5 resources, and 2 guided prompts. No install needed: uvx sharpe-mcp always runs the latest version.
CLI Tool
The Sharpe CLI provides 19 commands for accessing market data from your terminal. Colored tables, JSON output, live watch mode, and a daily briefing command. Run uvx --from sharpe-mcp sharpe market to try it instantly.
llms.txt
The API documentation is available in a plain-text format optimized for LLM consumption at /llms-full.txt. The shorter /llms.txt file is the site-wide agent summary; the full file includes every endpoint, parameter, and response shape in a single reference.
curl https://www.sharpe.ai/llms-full.txt
Authentication reminder
Use header-based authentication in generated clients and API tools. Query-string API keys are rejected by default because URLs are commonly stored in logs, browser history, analytics tools, and referrer headers. See the authentication guide for details.