Code Monkey home page Code Monkey logo

tradeconnect's Introduction

TradeConnect: Robust Distributed Trading System

TradeConnect is a Python-based distributed trading system that simulates a robust market environment. It's designed with multi-threaded operations and uses the xmlrpc library for remote method invocation, making it an efficient system for handling multiple transactions simultaneously.

Table of Contents

Features

  • Distributed System: TradeConnect utilizes the xmlrpc library, enabling various components of the system to communicate over the network, establishing a distributed environment.
  • Multi-threaded Operations: Leveraging Python's threading capabilities, TradeConnect can handle multiple transactions simultaneously, providing performance and efficiency.
  • Transaction Logging: Every transaction is meticulously logged, and completed transactions are marked as served, providing a traceable transaction history.

Getting Started

Prerequisites

Ensure you have Python installed on your machine, along with the necessary Python packages listed in the requirements.txt file in the repository.

To install these prerequisites, navigate to the project directory and run:

pip install -r requirements.txt

Installation

  • Clone the repo
git clone https://github.com/pranay-ar/TradeConnect.git
  • Install Python packages
pip install -r requirements.txt

Usage

Navigate to the project directory and execute the run.sh script using the bash command:

bash run.sh

This script sets up the necessary environment and initiates the trading system.

Code Structure

  • run.sh: A bash script to launch the system.
  • market.py: Contains the core classes and methods that handle the trading mechanism.
  • data_ops.py: Contains functions for logging transactions, marking transactions as complete, and retrieving unserved requests.
  • requirements.txt: Lists the Python packages necessary for running the project.
  • output.txt: Demonstrates a sample output from one of the runs.

tradeconnect's People

Contributors

pranay-ar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.