Really-amin's picture
Upload 577 files
b190b45 verified

API Configuration Helper - Visual Guide

Button Location

The API Configuration Helper button appears in two places:

1. Dashboard Header (Top Right)

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Enhanced Dashboard                    [πŸ’²] [πŸ”„] [πŸŒ™]   β”‚
β”‚  Real-time Market Data                                  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                           ↑
                                    Config Helper Button

2. Global Header (All Pages)

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  ☰  Home                    [πŸ’²] [πŸŒ™] [πŸ””] [βš™οΈ]        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              ↑
                       Config Helper Button

Button Design

The button is a small, circular icon button with:

  • Icon: Dollar sign (πŸ’²) representing API/services
  • Color: Teal gradient matching your design system
  • Size: 20x20px icon, 40x40px clickable area
  • Hover: Slight scale animation
  • Tooltip: "API Configuration Guide"

Modal Layout

When you click the button, a modal opens:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  πŸ’² API Configuration Guide                          βœ•  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                          β”‚
β”‚  Copy and paste these configurations to use our          β”‚
β”‚  services in your application.                           β”‚
β”‚                                                          β”‚
β”‚  Base URL: http://localhost:7860              [Copy]    β”‚
β”‚                                                          β”‚
β”‚  β”Œβ”€ Core Services ────────────────────────────────┐    β”‚
β”‚  β”‚                                                  β”‚    β”‚
β”‚  β”‚  β–Ό Market Data API                              β”‚    β”‚
β”‚  β”‚    Real-time cryptocurrency market data         β”‚    β”‚
β”‚  β”‚                                                  β”‚    β”‚
β”‚  β”‚    Endpoints:                                    β”‚    β”‚
β”‚  β”‚    [GET] /api/market/top          [Copy]        β”‚    β”‚
β”‚  β”‚    [GET] /api/market/trending     [Copy]        β”‚    β”‚
β”‚  β”‚                                                  β”‚    β”‚
β”‚  β”‚    Example Usage:                    [Copy]     β”‚    β”‚
β”‚  β”‚    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”‚    β”‚
β”‚  β”‚    β”‚ fetch('http://localhost:7860/api/... β”‚    β”‚    β”‚
β”‚  β”‚    β”‚   .then(res => res.json())           β”‚    β”‚    β”‚
β”‚  β”‚    β”‚   .then(data => console.log(data));  β”‚    β”‚    β”‚
β”‚  β”‚    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚    β”‚
β”‚  β”‚                                                  β”‚    β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚
β”‚                                                          β”‚
β”‚  β”Œβ”€ AI Services ──────────────────────────────────┐    β”‚
β”‚  β”‚  β–Ά Sentiment Analysis API                       β”‚    β”‚
β”‚  β”‚  β–Ά AI Models API                                β”‚    β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚
β”‚                                                          β”‚
β”‚  β”Œβ”€ Trading Services ─────────────────────────────┐    β”‚
β”‚  β”‚  β–Ά OHLCV Data API                               β”‚    β”‚
β”‚  β”‚  β–Ά Trading & Backtesting API                    β”‚    β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚
β”‚                                                          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Interaction Flow

Step 1: Click Button

User clicks [πŸ’²] button
         ↓
Modal slides in with animation

Step 2: Browse Services

User sees 10 services organized by category
         ↓
Click on any service to expand
         ↓
See endpoints and examples

Step 3: Copy Configuration

User clicks [Copy] button
         ↓
Text copied to clipboard
         ↓
Button shows checkmark βœ“
         ↓
Visual feedback (green color)

Step 4: Use in Code

User pastes into their application
         ↓
Configuration works immediately

Color Scheme

The modal uses your existing design system:

Primary Color:   #14b8a6 (Teal)
Secondary:       #2dd4bf (Teal Light)
Background:      #ffffff (White)
Text:            #0f2926 (Dark)
Border:          #e5e7eb (Light Gray)
Success:         #10b981 (Green)

Responsive Design

Desktop (>768px)

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Full modal with all features       β”‚
β”‚  900px max width                    β”‚
β”‚  85vh max height                    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Mobile (<768px)

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Compact layout   β”‚
β”‚  Full width       β”‚
β”‚  95vh height      β”‚
β”‚  Stacked items    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Service Categories

The modal organizes services into these categories:

  1. Core Services (2 services)

    • Market Data API
    • News Aggregator API
  2. AI Services (2 services)

    • Sentiment Analysis API
    • AI Models API
  3. Trading Services (2 services)

    • OHLCV Data API
    • Trading & Backtesting API
  4. Advanced Services (2 services)

    • Multi-Source Fallback API
    • Technical Analysis API
  5. System Services (2 services)

    • Resources API
    • Real-Time Monitoring API

Copy Button States

Normal State

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Copy   β”‚  ← Teal background
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Hover State

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Copy   β”‚  ← Darker teal, slight lift
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Copied State

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚    βœ“    β”‚  ← Green background, checkmark
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Example Service Card

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  β–Ό Market Data API                                 β”‚
β”‚     Real-time cryptocurrency market data           β”‚
β”‚                                                     β”‚
β”‚  Endpoints:                                         β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚ [GET] /api/market/top                 [Copy] β”‚ β”‚
β”‚  β”‚       Top cryptocurrencies                   β”‚ β”‚
β”‚  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚
β”‚  β”‚ [GET] /api/market/trending            [Copy] β”‚ β”‚
β”‚  β”‚       Trending coins                         β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚                                                     β”‚
β”‚  Example Usage:                          [Copy]    β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚ fetch('http://localhost:7860/api/market/top')β”‚ β”‚
β”‚  β”‚   .then(res => res.json())                   β”‚ β”‚
β”‚  β”‚   .then(data => console.log(data));          β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

HTTP Method Badges

The modal uses color-coded badges for HTTP methods:

[GET]   ← Green badge
[POST]  ← Blue badge
[PUT]   ← Orange badge
[DELETE]← Red badge

Animations

Modal Open

  • Fade in overlay (0.3s)
  • Slide down + scale up (0.3s)
  • Smooth easing

Service Expand

  • Smooth height transition (0.3s)
  • Rotate arrow icon (0.2s)

Copy Feedback

  • Button color change (instant)
  • Icon swap (instant)
  • Reset after 2 seconds

Accessibility

The modal is fully accessible:

βœ… Keyboard Navigation

  • Tab through all interactive elements
  • ESC to close modal
  • Enter to activate buttons

βœ… Screen Readers

  • Proper ARIA labels
  • Semantic HTML
  • Descriptive button text

βœ… Focus Management

  • Focus trapped in modal
  • Focus returns to button on close

Mobile Experience

On mobile devices:

  1. Button: Same size, easy to tap
  2. Modal: Full-screen overlay
  3. Scrolling: Smooth vertical scroll
  4. Copy: Native clipboard integration
  5. Close: Large X button or tap overlay

Performance

The modal is optimized for performance:

  • Lazy Loading: Only loads when button is clicked
  • Singleton Pattern: One instance reused
  • Minimal DOM: Efficient rendering
  • CSS Animations: Hardware accelerated

Browser Support

Tested and working on:

βœ… Chrome 90+ βœ… Firefox 88+ βœ… Safari 14+ βœ… Edge 90+ βœ… Mobile browsers

Tips for Users

  1. Quick Access: Button is always visible in header
  2. Copy Everything: Every URL and code snippet is copyable
  3. Expand as Needed: Only expand services you need
  4. Mobile Friendly: Works great on phones and tablets
  5. Always Updated: Shows current server URL automatically

Visual Design: Clean, modern, professional User Experience: Intuitive, fast, helpful Implementation: Solid, maintainable, extensible