Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tihamidev/coindcx-api
The CoinDCX WebSocket API project is a Java app that fetches real-time trading data, triggers order operations based on user-defined prices, and offers a user-friendly interface with robust error handling and logging.
https://github.com/tihamidev/coindcx-api
Last synced: about 2 months ago
JSON representation
The CoinDCX WebSocket API project is a Java app that fetches real-time trading data, triggers order operations based on user-defined prices, and offers a user-friendly interface with robust error handling and logging.
- Host: GitHub
- URL: https://github.com/tihamidev/coindcx-api
- Owner: TihamiDev
- Created: 2024-09-22T10:26:42.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-11-08T06:07:06.000Z (2 months ago)
- Last Synced: 2024-11-08T07:19:17.165Z (2 months ago)
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CoinDCX WebSocket Trading Application
**Overview**
This Java application connects to the CoinDCX WebSocket API to fetch real-time trading data and prepares payloads for order operations based on user-defined trigger prices.
The application features a command-line interface (CLI) for user interaction.**Table of Contents**
- Features
- Requirements
- Setup Instructions
- Usage
- Design Decisions
- Libraries Used**Features**
- Establishes a WebSocket connection to the CoinDCX API.
- Subscribes to real-time market data for selected currency pairs.
- Prepares buy and sell order payloads based on user-defined trigger prices.
- Simulates cancellation of orders.
- Simple command-line interface for user input.**Requirements**
- Java 11 or higher
- Maven (for dependency management)
- Internet connection to access the CoinDCX API**Setup Instructions**
1. **Clone the Repository**
```bash
git clone https://github.com/tihamit/CoinDCX-API.git
cd CoinDCX-API2. **Build the Project**
Ensure you have Maven installed, then run:
```bash
mvn clean install
3. **Run the Application**
You can run the application using:
```bash
mvn spring-boot:run**Usage**
- Once the application starts, you will be prompted to enter the market (e.g., BTC/USDT).
- Enter your buy trigger price when prompted.
- Enter your sell trigger price when prompted.
- The application will monitor market data and display the prepared buy and sell order payloads.
**Design Decisions**
- WebSocket Communication: The application utilizes WebSocket for real-time data exchange, which is suitable for applications requiring immediate updates like trading platforms.
- Separation of Concerns: The application is structured with distinct classes for handling WebSocket connections, order payload preparation, and user interactions to enhance maintainability.
- Error Handling: The application includes basic error handling to manage exceptions that may arise during WebSocket communication.**Libraries Used**
- Spring Boot: For creating the application and managing dependencies.
- Java-WebSocket: For establishing WebSocket connections to the CoinDCX API.
- JUnit: For unit testing.
- Maven: For dependency management and project build lifecycle.