EricSam commited on
Commit
3168a5a
Β·
verified Β·
1 Parent(s): f24de5b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +47 -2
README.md CHANGED
@@ -6,7 +6,52 @@ colorTo: green
6
  sdk: gradio
7
  pinned: false
8
  tags:
9
- - deepsite
 
 
 
 
 
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  sdk: gradio
7
  pinned: false
8
  tags:
9
+ - trading
10
+ - dashboard
11
+ - bingx
12
+ - classifier
13
+ - gradio
14
+ sdk_version: 5.39.0
15
  ---
16
 
17
+ # BingX Monitoring Dashboard
18
+
19
+ Welcome to the **Nakhoda4X Pro** dashboard, a Gradio-based application for monitoring your BingX trading portfolio and classifying images (e.g., hotdog detection). This Space provides real-time insights into your trading activity and a fun image classification feature.
20
+
21
+ ## Features
22
+ - **Trading Dashboard**: Displays total balance, open trades, today's profit, and risk exposure using BingX API data.
23
+ - **Portfolio Allocation**: Visualizes your portfolio distribution with a doughnut chart.
24
+ - **Monthly Performance**: Tracks profit/loss trends over time with a line chart.
25
+ - **Trading Activity**: Lists open and recent closed trades in a table.
26
+ - **API Management**: Securely manage your BingX API credentials within the app.
27
+ - **Hot Dog Classifier**: Classify uploaded images as "hot dog" or "not hot dog" using a pre-trained model.
28
+
29
+ ## Prerequisites
30
+ - A BingX account with API key and secret (ensure permissions include Spot Trading, Perpetual Futures Trading, and Read access).
31
+ - Stable internet connection to fetch data from BingX API.
32
+
33
+ ## Setup Instructions
34
+ 1. **Access the Space**: Visit [https://huggingface.co/spaces/EricSam/bingx-monitoring](https://huggingface.co/spaces/EricSam/bingx-monitoring).
35
+ 2. **Enter Credentials**: Click "Manage API Credentials" in the Trading Dashboard, input your BingX API key and secret, and save them.
36
+ 3. **Sync Data**: Use the "Sync Now" or "Refresh" button to fetch and display your trading data.
37
+ 4. **Explore Classifier**: Switch to the "Hot Dog Classifier" tab, upload an image, and classify it.
38
+
39
+ ## Troubleshooting
40
+ - **Error: "Failed to sync with BingX API"**: Ensure your API credentials are valid, permissions are correct, and your network allows API requests. Check the browser console (F12) or Space logs for details. Refer to [BingX API Documentation](https://bingx-api.github.io/docs/) for support.
41
+ - **Invalid JSON Response**: If you see "Unexpected token 'E', 'Entry not found'", verify credentials, permissions, or contact BingX support ([email protected]) with your API key ID.
42
+ - **Chart Issues**: Ensure Gradio SDK version 5.39.0 is compatible; update if necessary.
43
+
44
+ ## Configuration
45
+ - **SDK**: Gradio 5.39.0
46
+ - **Dependencies**: Managed via `requirements.txt` (gradio==5.39.0, transformers==4.35.2, requests==2.28.1)
47
+ - **Last Updated**: 09:39 PM +08, Thursday, July 31, 2025
48
+
49
+ ## Notes
50
+ - API credentials are stored in memory for the session only and reset on page refresh.
51
+ - The "New Trade" button is a placeholder and requires additional implementation for full functionality.
52
+ - For configuration reference, see [Hugging Face Spaces Config](https://huggingface.co/docs/hub/spaces-config-reference).
53
+
54
+ ## Contributions
55
+ Feel free to fork this Space, submit issues, or suggest enhancements on the [GitHub repository](https://huggingface.co/spaces/EricSam/bingx-monitoring) or via email.
56
+
57
+ ---