Skip to content

ziptalk/protonArbitrage-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proton Arbitrage Bot

A TypeScript-based arbitrage trading bot that monitors and executes trades across multiple cryptocurrency exchanges including Binance, Astroport, and Duality.

Features

  • Real-time price monitoring across multiple exchanges
  • Automated arbitrage opportunity detection
  • Support for multiple trading pairs
  • WebSocket integration for real-time market data
  • Configurable trading parameters
  • Integration with multiple DeFi protocols

Prerequisites

  • Node.js (v14 or higher)
  • TypeScript
  • Binance API credentials
  • Cosmos wallet with mnemonic
  • Access to Neutron network

Installation

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Copy the environment configuration:
cp .env.example .env
  1. Configure your .env file with your API keys and settings

Configuration

Configure environment variables in your .env file:

Usage

Development

npm run dev

Production

npm run build
npm start

You can also use PM2 for process management:

pm2 start ecosystem.config.js

Project Structure

  • /src
    • /arbitrage - Arbitrage strategies implementation
      • binanceDuality.ts - Binance-Duality arbitrage logic
      • init.ts - Initialization and setup
      • newArbitrage.ts - New arbitrage implementations
    • /exchange - Exchange-specific implementations
      • /binance
        • /rest - REST API client
        • /websocket - WebSocket implementations for public and private data
      • /duality - Duality protocol integration
      • /astroport - Astroport protocol integration
    • /types - TypeScript type definitions
    • /util
      • exchange.ts - Exchange utility functions
      • logger.ts - Logging utilities
      • token.ts - Token configurations and helpers

Scripts

  • npm run build - Build the TypeScript code
  • npm run start - Start the production server
  • npm run dev - Start the development server with hot-reload
  • npm run lint - Run ESLint
  • npm run test - Run tests
  • npm run format - Format code using Prettier

License

ISC

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors