Skip to main content

No project description provided

Project description

๐Ÿ“ˆ nadex โ€” Real-Time 5-Minute Binary Options Market Data CLI

nadex is a powerful Python CLI tool that fetches live 5-minute binary options forex data directly from the Nadex exchange. With a single command, you can access comprehensive market data including all available forex pairs, trading levels (strikes), bid/ask prices, and order book quantities โ€” transforming your terminal into a real-time trading dashboard.

Perfect for traders, developers, and financial analysts who need instant access to Nadex's binary options market structure and live pricing data.


๐Ÿš€ Key Features

  • โฑ Real-time 5-minute binary options data for all major forex pairs
  • ๐Ÿ’ต Complete strike levels with bid/ask prices and available quantities
  • ๐Ÿ“Š Full order book visualization in your terminal
  • ๐Ÿ” Built-in test credentials (easily replaceable with your own)
  • ๐ŸŽฏ Clean, parsable CLI output for both human reading and automation
  • ๐Ÿ One-command installation via PyPI (pip install nadex)
  • ๐ŸŒ WebSocket streaming for real-time updates
  • ๐Ÿ“ˆ Professional-grade market data from Nadex exchange

๐Ÿ“ฆ Quick Installation

Install the package globally using pip:

pip install nadex

That's it! No additional setup required.


โšก Quick Start

After installation, simply run:

nadex_dashboard

The CLI will immediately:

  1. Connect to Nadex using built-in test credentials
  2. Subscribe to the live 5-minute binary options feed
  3. Display real-time market data in a clean, organized format

๐ŸŽฏ What You Get

Complete Market Overview

  • All Active Forex Pairs: EUR/USD, GBP/USD, USD/JPY, AUD/USD, USD/CAD, EUR/GBP,
  • Strike Levels: Every available trading level for 5-minute binary options
  • Bid/Ask Prices: Real-time pricing from the Nadex order book
  • Contract Quantities: Available volume at each price level

Real-Time Updates

The dashboard refreshes automatically as new market data arrives via WebSocket connection, ensuring you always see the latest:

  • Price movements
  • Quantity changes
  • New strike levels
  • Market status updates

๐Ÿ”‘ Authentication & Credentials

Default Test Mode

The package comes with built-in test credentials that connect to Nadex's demo environment. This means:

  • โœ… No real money involved
  • โœ… Full access to live market data structure
  • โœ… Perfect for learning and development
  • โœ… No registration required

Using Your Own Credentials

If you have a Nadex account and want to use your own credentials:

Method 1: Environment Variables

export NADEX_USERNAME=your-username
export NADEX_PASSWORD=your-password
nadex_dashboard

Method 2: .env File

Create a .env file in your working directory:

NADEX_USERNAME=your-username
NADEX_PASSWORD=your-password

Then run the command as usual:

nadex_dashboard

Method 3: Direct Configuration

# Custom script using the package
from nadex_dashboard import NadexClient

client = NadexClient(
    username="your-username",
    password="your-password"
)
client.start_dashboard()

๐Ÿ—๏ธ Architecture & Project Structure

nadex/
โ”œโ”€โ”€ nadex_dashboard/
โ”‚   โ”œโ”€โ”€ __init__.py              # Package initialization
โ”‚   โ”œโ”€โ”€ config.py                # Configuration and environment handling
โ”‚   โ”œโ”€โ”€ helpers.py               # Utility functions and data processing
โ”‚   โ”œโ”€โ”€ messages.py              # WebSocket message formats and protocols
โ”‚   โ”œโ”€โ”€ parsing.py               # Market data parsing and validation
โ”‚   โ”œโ”€โ”€ dashboard.py             # CLI formatting and display logic
โ”‚   โ”œโ”€โ”€ websocket_manager.py     # WebSocket connection management
โ”‚   โ””โ”€โ”€ __main__.py              # CLI entry point
โ”œโ”€โ”€ setup.py                     # Package configuration
โ”œโ”€โ”€ requirements.txt             # Dependencies
โ”œโ”€โ”€ README.md                    # This file
โ””โ”€โ”€ LICENSE                      # MIT License

๐Ÿ“Š Market Data Specifications

Supported Instruments

  • EUR/USD - Euro vs US Dollar
  • GBP/USD - British Pound vs US Dollar
  • USD/JPY - US Dollar vs Japanese Yen
  • AUD/USD - Australian Dollar vs US Dollar
  • USD/CAD - US Dollar vs Canadian Dollar
  • EUR/JPY - Euro vs Japanese Yen
  • GBP/JPY - British Pound vs Japanese Yen

Local Development Setup

# Clone the repository
git clone https://github.com/shivamgarg-dev/nadex-dashboard.git
cd nadex-dashboard

# Install in development mode
pip install -e .

# Run tests
python -m pytest tests/

# Run the CLI
nadex_dashboard

โ“ Frequently Asked Questions

General Questions

Q: Is this connected to real money? A: By default, no. The package uses Nadex's test environment with demo credentials. No real funds are involved unless you explicitly provide your own production credentials.

Q: Do I need a Nadex account? A: No, the package works out-of-the-box with built-in test credentials. However, you can use your own Nadex account if you prefer.

Q: Is the data real-time? A: Yes, the data is streamed live via WebSocket from Nadex's servers with minimal latency.

Technical Questions

Q: Can I use this in trading bots? A: Absolutely. The package is designed with automation in mind. You can import modules and build custom applications on top of it.

Q: How often does the data update? A: Updates are pushed in real-time as market conditions change, typically 1-5 times per second during active trading hours.


๐Ÿ—บ๏ธ Roadmap

Upcoming Features

  • Historical data export for backtesting
  • Alert system for price/volume thresholds
  • Multiple timeframes (1-minute, 15-minute options)
  • Advanced filtering by instrument, strike range, etc.
  • REST API mode for web applications
  • Docker container for easy deployment
  • Grafana dashboard integration
  • Telegram/Discord bot notifications

Long-term Vision

  • Support for other Nadex instrument types (indices, commodities)
  • Machine learning integration for pattern recognition
  • Advanced analytics and visualization tools
  • Mobile app companion

๐Ÿ‘จโ€๐Ÿ’ป Author & Maintainer

Shivam Garg


โญ๏ธ Show Your Support

If you find this tool helpful for your trading, development, or learning:

  • โญ Star the repository on GitHub
  • ๐Ÿด Fork it to contribute
  • ๐Ÿ› Report issues to help improve it
  • ๐Ÿ’ก Suggest features for future releases
  • ๐Ÿ“ข Share it with others who might benefit

GitHub Repository: [https://github.com/shivamgarg001/Nadex]


Happy trading! ๐Ÿ“ˆ

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nadex_cli-1.0.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nadex_cli-1.0.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file nadex_cli-1.0.0.tar.gz.

File metadata

  • Download URL: nadex_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for nadex_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b735e63592a6c6521cb1e793b23e74e8853023675fdeaa1ad2d79e3a7d434424
MD5 cdde62b3e0df357c72d52a66630bf39d
BLAKE2b-256 50d7e89ad7720b07a2dc5fde8982f987aa06c2eb54e6097e1abf7a0c438b9712

See more details on using hashes here.

File details

Details for the file nadex_cli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nadex_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for nadex_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf2fc9f2fc0dff551b5f751635afb77e792e39a5702d0d31cbb1044f0d7d81b7
MD5 ccc7270d4cce1277d232672ee1ee4e20
BLAKE2b-256 1955818a0e8400f3c526eacd76a8595cc7f4645beb13baf7c968fe49715f7360

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page