Developer Platform API
Overview
The 0fees Trading API provides unified access to both Binance Smart Chain (BSC) and Solana trading services. This API enables developers to build trading applications with features like token buying/selling, wallet management, and meme token creation.
Base URL: https://api.0fees.trade
Authentication & Subscription System
Subscription Required
Most trading endpoints require an active subscription. The API uses a wallet-based authentication system.
Headers
All protected endpoints require:
x-wallet-address: YOUR_WALLET_ADDRESS
Content-Type: application/jsonSubscription Plans
Daily: 10 USDC (24 hours)
Weekly: 40 USDC (7 days)
Monthly: 100 USDC (30 days)
Payment Address: 0x17DE1b47328C8e951fb013eDAd21A41f0dF38CF7
Public Endpoints
Health Check
Response:
Subscription Management
Get Subscription Plans
Check Subscription Status
Verify Payment
Binance Smart Chain (BSC) Trading
All BSC endpoints are prefixed with /binance/
Buy Tokens
Response:
Sell Tokens
Consolidate BNB
Distribute BNB
Create Meme Token
Solana Trading
All Solana endpoints are prefixed with /solana/
Buy Tokens
Response:
Sell Tokens
Consolidate SOL
Distribute SOL
Rate Limiting
Rate Limit: 200 requests per minute per IP
Burst Limit: Configurable based on subscription tier
Error Responses
Authentication Errors
Trading Errors
Rate Limit Errors
SDK Integration Examples
WebSocket Support (Future)
WebSocket endpoints for real-time updates will be available at:
ws://localhost:8989/ws/trades- Real-time trade updatesws://localhost:8989/ws/prices- Real-time price feeds
Support & Contact
For API support and questions:
GitHub Issues: [Repository Issues]
Documentation Updates: Check this file for latest changes
Rate Limit Increases: Contact support with your use case
Changelog
v1.0.0
Initial API release
BSC and Solana trading support
Subscription system implementation
Rate limiting and authentication
Last Updated: 2024