Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
arturogonzalezm committed Jul 29, 2024
1 parent 3cbfb4c commit 522f21f
Showing 1 changed file with 52 additions and 2 deletions.
54 changes: 52 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,56 @@
![Go Test and Coverage](https://github.com/arturogonzalezm/RealTimeBinanceMonitor/actions/workflows/workflow.yml/badge.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-purple.svg)](https://opensource.org/licenses/MIT)

# RealTimeBinanceMonitor
# RealTime Binance Monitor

This project connects to Binance's WebSocket API to process real-time cryptocurrency data using the observer pattern.
RealTime Binance Monitor is a Go application that connects to the Binance WebSocket API to receive real-time cryptocurrency market data. It processes this data and saves it to a CSV file for further analysis.

## Features

- Real-time connection to Binance WebSocket API
- Processing of ticker data for specified cryptocurrency pairs
- Buffered writing of data to CSV files
- Configurable buffer size and flush interval
- Graceful shutdown handling

## Installation

1. Clone the repository:
```bash
git clone https://github.com/arturogonzalezm/RealTimeBinanceMonitor.git
```

2. Change to the project directory:
```bash
cd RealTimeBinanceMonitor
```

3. Build the application:
```bash
go build ./cmd/monitor
```

## Usage

Run the application with:

```bash
./monitor
```

By default, it will monitor the BTC/USDT pair. To monitor a different pair, modify the `symbol` variable in `cmd/monitor/main.go`.

## Configuration

You can adjust the following parameters in `cmd/monitor/main.go`:

- `symbol`: The cryptocurrency pair to monitor (e.g., "btcusdt", "ethusdt")
- Buffer size and flush interval in the `NewBufferedCSVWriter` function call

## License

[MIT License](LICENSE)

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

0 comments on commit 522f21f

Please sign in to comment.