Skip to content

OmLandge/SwipeFi

Repository files navigation

SwipeFi

A modern trading application built with React Native and Expo that allows users to practice trading with simulation and real modes.

Screenshots

Features

Core Trading

  • Swipe Interface: Intuitive card-based trading interface with swipe gestures
  • Simulation Mode: Practice trading with virtual funds without financial risk
  • Real Mode: Connect Solana wallet for actual trading with real funds
  • Risk Management: Automatic protection after 3 consecutive losses
  • Portfolio Tracking: Real-time P&L, win rate, and performance metrics

Wallet Integration

  • Solana Support: Connect mobile wallets via Solana Mobile Wallet Adapter
  • Multi-Wallet: Support for popular Solana mobile wallets
  • Secure Transactions: Safe and secure transaction handling
  • Balance Management: Real-time balance updates and tracking

User Experience

  • Gamification: XP system, levels, and achievement badges
  • Performance Analytics: Detailed trading statistics and insights
  • Push Notifications: Trade alerts and achievement notifications
  • Responsive Design: Optimized for mobile devices

Security Features

  • Loss Protection: Auto-switch to simulation mode after 3 consecutive losses
  • Mode Locking: Prevents real mode trading during high-risk periods
  • Safe Trading: Balance and position size limits for risk management

Technology Stack

Frontend

  • React Native: Cross-platform mobile development framework
  • Expo: Development platform and build tools
  • TypeScript: Type-safe development
  • React Navigation: Bottom tab navigation system
  • React Native Reanimated: Smooth animations and gestures
  • React Native Gesture Handler: Advanced gesture recognition
  • Expo Linear Gradient: Beautiful gradient effects
  • Ionicons: Consistent icon system

Backend Integration

  • Solana Web3.js: Blockchain interaction
  • AsyncStorage: Local data persistence
  • Expo Notifications: Push notification system

Development Tools

  • ESLint: Code quality and consistency
  • TypeScript: Static type checking
  • Git: Version control and collaboration

Project Structure

SwipeFi/
├── app/                    # Main application screens
│   ├── (tabs)/           # Tab navigation screens
│   │   ├── index.tsx      # Home screen
│   │   ├── dashboard.tsx  # Portfolio and stats
│   │   ├── swipe.tsx      # Main trading interface
│   │   ├── profile.tsx    # User profile and achievements
│   │   └── _layout.tsx    # Tab navigation layout
├── assets/                 # Static assets
│   ├── images/            # Trading card images
│   └── coins/             # Cryptocurrency icons
├── components/             # Reusable UI components
├── contexts/               # React context providers
├── hooks/                  # Custom React hooks
├── utils/                  # Utility functions
└── package.json            # Dependencies and scripts

Key Components

Trading Interface

  • SwipeScreen: Main trading interface with gesture-based card swiping
  • TradeCard: Individual trading opportunity cards
  • Risk Agent: Automated risk management and warnings

Portfolio Management

  • DashboardScreen: Portfolio overview and performance metrics
  • Balance Card: Real-time balance and P&L display
  • Trading History: Complete trade execution history

User Management

  • ProfileScreen: User achievements and progress tracking
  • Wallet Integration: Secure wallet connection and management

Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn
  • iOS/Android development environment
  • Solana wallet (for real mode testing)

Installation

# Clone the repository
git clone https://github.com/OmLandge/SwipeFi.git

# Install dependencies
npm install

Build and Run

# Android
npx expo prebuild
npx expo run:android

# IOS (SolanaMobileWalletAdapter is not supported in ios)
npx expo prebuild
expo build:ios

Trading Features

Simulation Mode

  • Virtual Funds: Start with 1000 USDC virtual balance
  • Risk-Free Practice: Trade without financial risk
  • Performance Tracking: Monitor win rate and P&L
  • Strategy Testing: Test different trading approaches

Real Mode

  • Actual Trading: Real funds and market execution
  • Wallet Security: Secure transaction signing
  • Balance Limits: Minimum balance requirements for safety
  • Loss Protection: Automatic mode switching for risk management

Risk Management

  • Consecutive Loss Tracking: Monitor losing streaks
  • Auto-Switch Protection: Force simulation mode after 3 losses
  • Manual Override Prevention: Block real mode during high-risk periods
  • Warning System: Clear visual indicators for risk states

Contributing

We welcome contributions to improve SwipeFi. Please follow these guidelines:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

Code Style

  • Use TypeScript for type safety
  • Follow ESLint configuration
  • Write clear, descriptive comments
  • Use consistent naming conventions

Development Guidelines

  • Ensure responsive design
  • Follow accessibility best practices
  • Maintain performance standards

Support

For support, questions, or feature requests:

  • Create an issue in the GitHub repository
  • Review the documentation
  • Check existing issues before creating new ones

Built with React Native and Expo
Solana Blockchain Integration
Mobile-First Trading Experience

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors