Introduction
Welcome to the Turnpike API documentation! Build high-performance trading applications on Solana with institutional-grade infrastructure.
Overview
Turnpike provides three powerful ways to integrate trading functionality into your applications:
Lightning API - Quick HTTPS-based integration for rapid development
Local Transaction Builder - Full control with local signing and custom RPC endpoints
WebSocket Streaming - Real-time market data and trade events
Key Features
Lightning Speed - Execute trades in under 25ms with globally distributed infrastructure
Institutional-Grade Security - Full transaction control with local signing and military-grade encryption
Real-time Market Data - Stream live trading data via high-performance WebSocket connections
99.99% Uptime - Enterprise-grade reliability
24/7 Support - Dedicated developer support
Quick Start
Get started with the Lightning API in minutes:
curl -X POST https://api.turnpike.dev/trade/buy \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"publicKey": "YOUR_WALLET_PUBLIC_KEY",
"mint": "TOKEN_MINT_ADDRESS",
"amount": 0.01,
"slippage": 10
}'Documentation Structure
Getting Started - Set up your API key and make your first request
API Reference - Complete API documentation
Lightning API - HTTPS-based trading API
Local Transaction API - Build and sign transactions locally
WebSocket API - Real-time data streaming
Authentication - Learn about API authentication
Rate Limits - Understanding rate limits and quotas
Error Handling - Common errors and how to handle them
Examples - Code examples and integration guides
Support
Documentation Issues: GitHub Issues
Twitter: @turnpikedev
Website: turnpike.dev
Last updated