nadex-cli 1.0.1__py3-none-any.whl → 1.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nadex_cli-1.0.1.dist-info → nadex_cli-1.0.3.dist-info}/METADATA +6 -65
- {nadex_cli-1.0.1.dist-info → nadex_cli-1.0.3.dist-info}/RECORD +7 -7
- nadex_dashboard/config.py +9 -10
- {nadex_cli-1.0.1.dist-info → nadex_cli-1.0.3.dist-info}/WHEEL +0 -0
- {nadex_cli-1.0.1.dist-info → nadex_cli-1.0.3.dist-info}/entry_points.txt +0 -0
- {nadex_cli-1.0.1.dist-info → nadex_cli-1.0.3.dist-info}/licenses/LICENSE +0 -0
- {nadex_cli-1.0.1.dist-info → nadex_cli-1.0.3.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nadex-cli
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.3
|
4
4
|
Keywords: nadex ,nadex-binary-options ,nadex-forex ,nadex-real-time ,nadex-market-data ,nadex-cli ,nadex-dashboard ,nadex-websocket ,nadex-trading ,nadex-finance ,nadex-python ,nadex-pip-install ,nadex-automation ,nadex-order-book,binary-options ,forex ,real-time ,market-data ,cli ,dashboard ,websocket ,trading ,finance ,python ,pip-install ,automation ,order-book,nadex pypi ,pypi nadex ,pip nadex ,pip i nadex-cli ,pypi nadex-cli ,pip nadex
|
5
5
|
Description-Content-Type: text/markdown
|
6
6
|
License-File: LICENSE
|
@@ -13,9 +13,9 @@ Dynamic: keywords
|
|
13
13
|
Dynamic: license-file
|
14
14
|
Dynamic: requires-dist
|
15
15
|
|
16
|
-
# 📈
|
16
|
+
# 📈 NADEX — Real-Time 5-Minute Binary Options Market Data CLI
|
17
17
|
|
18
|
-
`
|
18
|
+
`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.
|
19
19
|
|
20
20
|
Perfect for traders, developers, and financial analysts who need instant access to Nadex's binary options market structure and live pricing data.
|
21
21
|
|
@@ -28,7 +28,7 @@ Perfect for traders, developers, and financial analysts who need instant access
|
|
28
28
|
- 📊 **Full order book visualization** in your terminal
|
29
29
|
- 🔐 **Built-in test credentials** (easily replaceable with your own)
|
30
30
|
- 🎯 **Clean, parsable CLI output** for both human reading and automation
|
31
|
-
- 🐍 **One-command installation** via PyPI (`pip install nadex`)
|
31
|
+
- 🐍 **One-command installation** via PyPI (`pip install nadex-cli`)
|
32
32
|
- 🌐 **WebSocket streaming** for real-time updates
|
33
33
|
- 📈 **Professional-grade market data** from Nadex exchange
|
34
34
|
|
@@ -39,7 +39,7 @@ Perfect for traders, developers, and financial analysts who need instant access
|
|
39
39
|
Install the package globally using pip:
|
40
40
|
|
41
41
|
```bash
|
42
|
-
pip install nadex
|
42
|
+
pip install nadex-cli
|
43
43
|
```
|
44
44
|
|
45
45
|
That's it! No additional setup required.
|
@@ -85,62 +85,6 @@ The package comes with **built-in test credentials** that connect to Nadex's dem
|
|
85
85
|
- ✅ Perfect for learning and development
|
86
86
|
- ✅ No registration required
|
87
87
|
|
88
|
-
### Using Your Own Credentials
|
89
|
-
|
90
|
-
If you have a Nadex account and want to use your own credentials:
|
91
|
-
|
92
|
-
#### Method 1: Environment Variables
|
93
|
-
```bash
|
94
|
-
export NADEX_USERNAME=your-username
|
95
|
-
export NADEX_PASSWORD=your-password
|
96
|
-
nadex_dashboard
|
97
|
-
```
|
98
|
-
|
99
|
-
#### Method 2: .env File
|
100
|
-
Create a `.env` file in your working directory:
|
101
|
-
```env
|
102
|
-
NADEX_USERNAME=your-username
|
103
|
-
NADEX_PASSWORD=your-password
|
104
|
-
```
|
105
|
-
|
106
|
-
Then run the command as usual:
|
107
|
-
```bash
|
108
|
-
nadex_dashboard
|
109
|
-
```
|
110
|
-
|
111
|
-
#### Method 3: Direct Configuration
|
112
|
-
```python
|
113
|
-
# Custom script using the package
|
114
|
-
from nadex_dashboard import NadexClient
|
115
|
-
|
116
|
-
client = NadexClient(
|
117
|
-
username="your-username",
|
118
|
-
password="your-password"
|
119
|
-
)
|
120
|
-
client.start_dashboard()
|
121
|
-
```
|
122
|
-
|
123
|
-
---
|
124
|
-
|
125
|
-
## 🏗️ Architecture & Project Structure
|
126
|
-
|
127
|
-
```
|
128
|
-
nadex/
|
129
|
-
├── nadex_dashboard/
|
130
|
-
│ ├── __init__.py # Package initialization
|
131
|
-
│ ├── config.py # Configuration and environment handling
|
132
|
-
│ ├── helpers.py # Utility functions and data processing
|
133
|
-
│ ├── messages.py # WebSocket message formats and protocols
|
134
|
-
│ ├── parsing.py # Market data parsing and validation
|
135
|
-
│ ├── dashboard.py # CLI formatting and display logic
|
136
|
-
│ ├── websocket_manager.py # WebSocket connection management
|
137
|
-
│ └── __main__.py # CLI entry point
|
138
|
-
├── setup.py # Package configuration
|
139
|
-
├── requirements.txt # Dependencies
|
140
|
-
├── README.md # This file
|
141
|
-
└── LICENSE # MIT License
|
142
|
-
```
|
143
|
-
|
144
88
|
---
|
145
89
|
|
146
90
|
## 📊 Market Data Specifications
|
@@ -159,15 +103,12 @@ nadex/
|
|
159
103
|
### Local Development Setup
|
160
104
|
```bash
|
161
105
|
# Clone the repository
|
162
|
-
git clone https://github.com/
|
106
|
+
git clone https://github.com/shivamgarg001/Nadex.git
|
163
107
|
cd nadex-dashboard
|
164
108
|
|
165
109
|
# Install in development mode
|
166
110
|
pip install -e .
|
167
111
|
|
168
|
-
# Run tests
|
169
|
-
python -m pytest tests/
|
170
|
-
|
171
112
|
# Run the CLI
|
172
113
|
nadex_dashboard
|
173
114
|
```
|
@@ -1,15 +1,15 @@
|
|
1
|
-
nadex_cli-1.0.
|
1
|
+
nadex_cli-1.0.3.dist-info/licenses/LICENSE,sha256=3u7cBUwc4t0GRkNpKuqj7M7cKldqG0FRIIgNRHP1_qs,1071
|
2
2
|
nadex_dashboard/__init__.py,sha256=_a2dwUetiQjYrOahxY50UOLcXe6VpSgx24pzkD1Z9Ow,27
|
3
3
|
nadex_dashboard/__main__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
-
nadex_dashboard/config.py,sha256=
|
4
|
+
nadex_dashboard/config.py,sha256=wVrcXbFun_YEq0LaxHvkejvK7W1SR0X_-JwMuMgtTg8,4191
|
5
5
|
nadex_dashboard/frontend.py,sha256=QWELbcTebP5KBIuCk-F1MdurykvqHhlTIPWcDEL_sAI,2826
|
6
6
|
nadex_dashboard/helpers.py,sha256=VueSqwUCQg698XDjKe2mVevJVSlX6NhEKF7nNz2TY3E,3906
|
7
7
|
nadex_dashboard/main.py,sha256=0KA7gzktuJ5PbLnK6DRN5A4cJosZCfAeYB38Ia6ZcnM,2868
|
8
8
|
nadex_dashboard/messages.py,sha256=v3sTlpJBMm2gzqU2a_2oOxaOXCkgvSrmRnfM30zES-g,7157
|
9
9
|
nadex_dashboard/parsing.py,sha256=KwcVUh549fIlcwihtmxOh6XyVncBJRCgB7HtVf2K6BA,5130
|
10
10
|
nadex_dashboard/websocket_manager.py,sha256=ufB7HUp4j5P5YZi_cYf_tzjtqKYN5YVH3qZMlVFM4hw,8224
|
11
|
-
nadex_cli-1.0.
|
12
|
-
nadex_cli-1.0.
|
13
|
-
nadex_cli-1.0.
|
14
|
-
nadex_cli-1.0.
|
15
|
-
nadex_cli-1.0.
|
11
|
+
nadex_cli-1.0.3.dist-info/METADATA,sha256=dcqFogOxfJcTQSnMvW0ZC6OObhtwGmlR02KsF0c_1TA,5966
|
12
|
+
nadex_cli-1.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
13
|
+
nadex_cli-1.0.3.dist-info/entry_points.txt,sha256=fLHzipiielS1qZy8tsrK9692ReBsHb327623qr2AF-I,62
|
14
|
+
nadex_cli-1.0.3.dist-info/top_level.txt,sha256=xiH5k9agqsuuhDha_9I31BecV6jXHvfkzhOlE-eHKXQ,16
|
15
|
+
nadex_cli-1.0.3.dist-info/RECORD,,
|
nadex_dashboard/config.py
CHANGED
@@ -14,17 +14,16 @@ load_dotenv()
|
|
14
14
|
|
15
15
|
class Config:
|
16
16
|
# Authentication
|
17
|
-
NADEX_USERNAME = os.getenv('NADEX_USERNAME')
|
18
|
-
NADEX_PASSWORD = os.getenv('NADEX_PASSWORD')
|
19
|
-
NADEX_USER_ID = os.getenv('NADEX_USER_ID')
|
17
|
+
NADEX_USERNAME = os.getenv('NADEX_USERNAME', 'demo-shivam001')
|
18
|
+
NADEX_PASSWORD = os.getenv('NADEX_PASSWORD', 'cBj2AfSSAX4NBXc')
|
19
|
+
NADEX_USER_ID = os.getenv('NADEX_USER_ID', 'SHIVAM001')
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
# WebSocket Configuration
|
21
|
+
NADEX_AUTH_URL = os.getenv('NADEX_AUTH_URL', 'https://demo-trade.nadex.com/iDeal/v2/security/authenticate')
|
22
|
+
NADEX_SESSION_URL = os.getenv('NADEX_SESSION_URL', 'https://demo-upd.nadex.com/lightstreamer/create_session.js')
|
23
|
+
NADEX_MARKET_TREE_URL = os.getenv('NADEX_MARKET_TREE_URL', 'https://demo-trade.nadex.com/iDeal/markets/hierarchy/tree/full')
|
24
|
+
NADEX_NAVIGATION_URL = os.getenv('NADEX_NAVIGATION_URL', 'https://demo-trade.nadex.com/iDeal/markets/navigation')
|
25
|
+
FRONTEND_PORT = os.getenv('FRONTEND_PORT', '8765')
|
26
|
+
|
28
27
|
PING_INTERVAL = int(os.getenv('PING_INTERVAL', 30))
|
29
28
|
RESUBSCRIBE_INTERVAL = int(os.getenv('RESUBSCRIBE_INTERVAL', 300))
|
30
29
|
INITIAL_TABLE_COUNTER = int(os.getenv('INITIAL_TABLE_COUNTER', 15))
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|