{ API v2.0 }
</REST>
WebSocket
Powerful & Flexible Financial API Platform 2.0

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

25+
API Endpoints
RESTful + WebSocket
4
Languages
Official SDK Support
99.9%
API Availability
Global CDN Acceleration
1500
Requests/min
Rate Limit

Quick Start

Complete your first API call in minutes with the following steps

Step 1

Get API Credentials

Register a developer account and obtain your API keys and authentication credentials for verifying app requests. Supports sandbox and production environments.

Key Tasks:
  • Register developer account
  • Apply for API keys
  • Configure callback URLs
  • Set permission scopes
Step 2

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.

Key Tasks:
  • Choose development language
  • Install SDK package
  • Configure dev environment
  • Read API documentation
Step 3

Sandbox Environment Testing

Test your integration in the sandbox environment, view API response data, and confirm functionality works correctly. Complete test data provided.

Key Tasks:
  • Connect to sandbox
  • Test core functionality
  • Verify data formats
  • Debug error handling
Step 4

Production Deployment

After testing is complete, switch to production environment and start processing real transactions and user data. Configure monitoring and logging.

Key Tasks:
  • Switch to production
  • Configure monitoring alerts
  • Set up logging
  • Performance optimizations

Example Code

Choose your familiar programming language to start integration

// Select a tab
API Response Example

                  {
                    "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

https://api.lightingpay.com
• Supports HTTP/2 and TLS 1.3
• Global CDN Acceleration

Authentication

OAuth 2.0 Bearer Token
API Key + Secret

Performance Metrics

Response Time:< 100ms
Availability:99.1%
Rate Limit:1500/min

Authentication

3 endpoints
POST/auth/tokenGet access tokenstable
POST/auth/refreshRefresh access tokenstable
POST/auth/revokeRevoke tokenstable

Account Management

4 endpoints
GET/v1/account/profileGet account informationstable
GET/v1/account/balanceGet account balancestable
GET/v1/account/transactionsGet transaction historystable
PUT/v1/account/profileUpdate account informationstable

Payment Processing

4 endpoints
POST/v1/paymentsCreate payment orderstable
GET/v1/payments/{id}Get payment detailsstable
POST/v1/payments/{id}/cancelCancel payment orderstable
POST/v1/payments/{id}/refundRequest refundbeta

Wallet Management

4 endpoints
GET/v1/walletsGet wallet liststable
POST/v1/walletsCreate new walletstable
GET/v1/wallets/{id}/addressesGet wallet addressesstable
POST/v1/wallets/{id}/transferInitiate transferstable

Market Data

4 endpoints
GET/v1/market/pricesGet real-time pricesstable
GET/v1/market/ratesGet exchange ratesstable
GET/v1/market/statsGet market statisticsstable
GET/v1/market/historyGet historical databeta

WebSocket Data Streams

4 endpoints
WS/v1/streamReal-time data streamstable
WS/v1/stream/tickerPrice updatesstable
WS/v1/stream/orderbookOrder book updatesbeta
WS/v1/stream/tradesTrade updatesstable

WebSocket Real-time Data

Get real-time market data and trading updates through WebSocket connections

Connection Information

wss://ws.lightingpay.com/v1/stream
Real-time Prices
Trading Data
Order Book
Account Updates

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

Sub-second response
Smart caching
Load balancing
Global CDN

Mobile Optimized

Uses responsive design and mobile SDK support to ensure your app performs excellently on all devices

Mobile SDK
Offline support
Push notifications
Biometric auth

Security & Compliance

Built-in advanced security measures, hosting sensitive data on our servers to help meet PCI compliance requirements

PCI DSS
SOC 2 certified
End-to-end encryption
Multi-signature

Customer Profile Management

Supports creating customer profiles, securely storing multiple payment methods, enabling cross‑transaction user tracking

User profiling
Risk assessment
Behavior analysis
Personalized recommendations

Digital Wallet Support

Compatible with common digital wallets, convenient for users to complete payments using Apple Pay, Google Pay, etc.

Multi-chain support
Hardware wallets
Hot‑cold separation
DeFi integration

Multi‑platform SDKs

Provides official multi‑language SDKs for seamless integration of payment functionality into your applications

4 languages
Open source
Community support
Continuous updates

SDKs & Examples

Download our official SDKs and example code libraries for various languages to accelerate your development

v2.1.0

JavaScript

Node.js and browser environment support

25K+
Downloads
45KB
Package Size
  • TypeScript support
  • Promise/Async
  • Complete type definitions
  • Tree shaking
v1.8.2

Python

Python 3.7+ compatible

18K+
Downloads
120KB
Package Size
  • Async/Await
  • Pandas integration
  • Detailed error handling
  • Type hints
v1.5.0

Java

Java 8+ and Android support

12K+
Downloads
890KB
Package Size
  • Reactive programming
  • Spring integration
  • Connection pooling
  • Maven/Gradle
Examples

cURL

Command line tools and scripts

35K+
Downloads
15KB
Package Size
  • 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

Contact Us →
Average Response Time< 2 hours

FAQ

View frequently asked questions to quickly find the answers you need

View FAQ →
Question Count150+ questions

Developer Community

Join the developer community to exchange experiences with other developers

Join Community →
Active Members5,200+ people

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