Overview
GweAI’s Trading interface provides a professional-grade platform for buying and selling cryptocurrencies with real-time price charts, order placement, and trade history.All trading occurs on Base Sepolia Testnet with gas fees paid in USDC. The platform uses verified smart contracts for secure transactions.
Accessing the Trading Page
Trading Interface Components
Market List View
Before entering a specific pair, you’ll see the market overview:Live Prices
Real-time prices from CoinGecko API
24h Change
Price movement percentage
Volume
Trading volume in USD
Sparkline Charts
Mini price history visualization
Trading Pair Selection
Supported trading pairs:| Pair | Token | Market Cap Rank |
|---|---|---|
| BTC/USDC | Bitcoin | #1 |
| ETH/USDC | Ethereum | #2 |
| XRP/USDC | Ripple | #3 |
| BNB/USDC | BNB Chain | #4 |
| SOL/USDC | Solana | #5 |
| DOGE/USDC | Dogecoin | #6 |
| ADA/USDC | Cardano | #7 |
| TRX/USDC | TRON | #8 |
| AVAX/USDC | Avalanche | #9 |
| TON/USDC | Toncoin | #10 |
Trading Page Layout
Left Panel: Order Placement

- Toggle Buy/Sell - Switch between buying and selling
- Enter Amount - Specify quantity in USDC or token amount
- View Estimates - See estimated output before execution
- Place Order - Execute the trade
Right Panel: TradingView Chart
Integrated TradingView widget provides:- Real-time candles from major exchanges
- Technical indicators (moving averages, RSI, etc.)
- Drawing tools for analysis
- Multiple timeframes (1m, 5m, 1h, 1d, etc.)
Bottom Panel: Trade History
Your personal trade history shows:- Price at execution
- Amount traded
- Total value in USDC
- Time of transaction
- Type (Buy/Sell)
- Transaction Hash with explorer link
Placing Orders
Buy Order Flow
Sell Order Flow
Enter Token Amount
Type the amount of tokens to sellExample:
0.5 (for 0.5 SOL)Or click MAX to sell entire balanceOrder Execution Details
Smart Contract Integration
Trades execute through the verified Router contract:Transaction Steps
Step 1: Approval
Step 1: Approval
For First-Time Trading:The contract requests approval to spend your tokens:Why? ERC-20 tokens require explicit permission for contracts to transfer them.
Step 2: Swap Execution
Step 2: Swap Execution
After Approval:The swap transaction executes:The router contract handles the exchange logic.
Step 3: Confirmation
Step 3: Confirmation
Waiting for Blockchain:Base Sepolia confirmations are typically under 5 seconds.
Step 4: Balance Update
Step 4: Balance Update
Automatic Refresh:
Price Discovery
Real-Time Price Feeds
Prices come from multiple sources:Slippage Protection
All trades include 0.5% slippage tolerance:Trade History
Fetching Your Trades
The platform fetches your personal trade history from the blockchain:History Display

- Price (USDC): Execution price per token
- Amount: Quantity of tokens traded
- Total (USDC): Total transaction value
- Time: Local timestamp
- Type: Buy (green) or Sell (red) badge
- Transaction: Link to Base Sepolia explorer
Pagination
- 10 trades per page (configurable)
- Previous/Next navigation
- Total count display
Advanced Features
Market Sorting
On the Markets page, sort by:- Rank (default) - Market cap ranking
- Price - Highest to lowest
- 24h Change - Biggest gainers/losers
- Volume - Most actively traded
Quick Actions
- Click row → Opens trading page for that pair
- Trade button → Direct access to buy/sell
- Chart preview → Sparkline shows recent trend
Wallet Balance Display
The order panel always shows your current balance:
- For Buy: Available USDC balance
- For Sell: Available token balance
Gas and Fees
Transaction Costs
| Fee Type | Amount | Paid In |
|---|---|---|
| Gas Fee | ~$0.01-0.50 | USDC |
| Protocol Fee | 0.3% | Output token |
| Slippage | Up to 0.5% | Built into quote |
Gas Optimization
Security Features
Verified Contracts
All contract addresses are verified on BaseScan
Whitelisted Tokens
Only approved tokens can be traded
Slippage Protection
Automatic limits prevent front-running
Non-Custodial
You always control your private keys
Contract Validation
Troubleshooting
”Insufficient Balance” Error
Cause: You don’t have enough tokens Solution:- Check your balance in the Portfolio page
- For buy orders, ensure you have USDC
- For sell orders, verify token balance
”Transaction Failed” Error
Cause: Multiple possible reasons Solutions:- Gas: Ensure you have USDC for fees
- Slippage: Price moved too much - try again
- Approval: First-time trades need approval
- Network: Check Base Sepolia status
Chart Not Loading
Cause: TradingView script timeout Solution:- Refresh the page
- Check internet connection
- Try a different browser
Retry Logic: The trading page automatically retries loading TradingView up to 3 times with 2-second delays.
Best Practices
Check Prices Before Trading
Check Prices Before Trading
Always review the current price and 24h change before placing orders
Use Limit Orders (Future)
Use Limit Orders (Future)
Currently market orders only - limit orders coming soon
Monitor Slippage
Monitor Slippage
Large orders may experience slippage beyond the 0.5% tolerance
Keep Transaction Records
Keep Transaction Records
Save transaction hashes for tax purposes
Test with Small Amounts
Test with Small Amounts
Start with small trades to understand the interface
Next Steps
Portfolio Tracking
Monitor your trading performance
Token Swaps
Direct token-to-token exchanges
AI Chat
Trade using natural language
DCA Investing
Automate your investments