Flexible, Secure, Easy-to-IntegrateCryptocurrency API
Integrate powerful cryptocurrency payment and trading services in your applications for fast and secure financial interactionsSupport REST API • WebSocket Real-time Data • Multi-language SDKs
Quick Start
Complete your first API call in minutes with the following steps
Get API Credentials
Register a developer account and obtain your API keys and authentication credentials for verifying app requests. Supports sandbox and production environments.
- Register developer account
- Apply for API keys
- Configure callback URLs
- Set permission scopes
Choose SDK or Direct API
Select the appropriate programming language SDK or use REST API directly, refer to example code and best practices in the documentation.
- Choose development language
- Install SDK package
- Configure dev environment
- Read API documentation
Sandbox Environment Testing
Test your integration in the sandbox environment, view API response data, and confirm functionality works correctly. Complete test data provided.
- Connect to sandbox
- Test core functionality
- Verify data formats
- Debug error handling
Production Deployment
After testing is complete, switch to production environment and start processing real transactions and user data. Configure monitoring and logging.
- Switch to production
- Configure monitoring alerts
- Set up logging
- Performance optimizations
Example Code
Choose your familiar programming language to start integration
// Select a tab
{
"success": true,
"data": {
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 3600
},
"message": "Token generated successfully"
}
API Documentation Overview
We provide comprehensive documentation and guides to help you easily integrate our APIs
Basic Information
API Base URL
• Global CDN Acceleration
Authentication
Performance Metrics
Authentication
3 endpoints/auth/tokenGet access tokenstable/auth/refreshRefresh access tokenstable/auth/revokeRevoke tokenstableAccount Management
4 endpoints/v1/account/profileGet account informationstable/v1/account/balanceGet account balancestable/v1/account/transactionsGet transaction historystable/v1/account/profileUpdate account informationstablePayment Processing
4 endpoints/v1/paymentsCreate payment orderstable/v1/payments/{id}Get payment detailsstable/v1/payments/{id}/cancelCancel payment orderstable/v1/payments/{id}/refundRequest refundbetaWallet Management
4 endpoints/v1/walletsGet wallet liststable/v1/walletsCreate new walletstable/v1/wallets/{id}/addressesGet wallet addressesstable/v1/wallets/{id}/transferInitiate transferstableMarket Data
4 endpoints/v1/market/pricesGet real-time pricesstable/v1/market/ratesGet exchange ratesstable/v1/market/statsGet market statisticsstable/v1/market/historyGet historical databetaWebSocket Data Streams
4 endpoints/v1/streamReal-time data streamstable/v1/stream/tickerPrice updatesstable/v1/stream/orderbookOrder book updatesbeta/v1/stream/tradesTrade updatesstableWebSocket Real-time Data
Get real-time market data and trading updates through WebSocket connections
Connection Information
WebSocket Example
// WebSocket real-time data stream
const ws = new WebSocket('wss://ws.lightingpay.com/v1/stream');
ws.onopen = () => {
console.log('WebSocket connection established');
// Subscribe to price data
ws.send(JSON.stringify({
method: 'subscribe',
params: ['btc_usd@ticker', 'eth_usd@ticker']
}));
};
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
console.log('Real-time data:', data);
};
ws.onerror = (error) => {
console.error('WebSocket error:', error);
};API Feature Highlights
With our API, your applications will have the following powerful capabilities
High Performance
Provides fast and smooth trading processes, optimizing user payment experience and increasing satisfaction
Mobile Optimized
Uses responsive design and mobile SDK support to ensure your app performs excellently on all devices
Security & Compliance
Built-in advanced security measures, hosting sensitive data on our servers to help meet PCI compliance requirements
Customer Profile Management
Supports creating customer profiles, securely storing multiple payment methods, enabling cross‑transaction user tracking
Digital Wallet Support
Compatible with common digital wallets, convenient for users to complete payments using Apple Pay, Google Pay, etc.
Multi‑platform SDKs
Provides official multi‑language SDKs for seamless integration of payment functionality into your applications
SDKs & Examples
Download our official SDKs and example code libraries for various languages to accelerate your development
JavaScript
Node.js and browser environment support
- TypeScript support
- Promise/Async
- Complete type definitions
- Tree shaking
Python
Python 3.7+ compatible
- Async/Await
- Pandas integration
- Detailed error handling
- Type hints
Java
Java 8+ and Android support
- Reactive programming
- Spring integration
- Connection pooling
- Maven/Gradle
cURL
Command line tools and scripts
- Quick testing
- Server integration
- Automation scripts
- Example collection
Sandbox Testing Environment
Test your integration in a secure sandbox environment without affecting production data
Complete Testing Environment
Provides API functionality identical to production, including mock data and real response formats
Mock Data
Complete test dataset covering various trading scenarios
Secure Isolation
Completely isolated from production, risk‑free testing
Real-time Response
Real API response times and error handling
Support & Community
If you have questions, we provide multiple resources to help you solve them
Technical Support
24/7 professional technical support team, ready to answer your questions anytime
FAQ
View frequently asked questions to quickly find the answers you need
Developer Community
Join the developer community to exchange experiences with other developers
More Resources
API Reference
Detailed API reference documentation
Code Examples
Code examples for various scenarios
Video Tutorials
Video courses from beginner to advanced
Development Roadmap
Learn about upcoming features
Ready to Start Development?
Join thousands of developers building the future of payments