How cryptocj520/jiankong works
Project type and purpose
• This is a static, client-side web application (single-page app) for monitoring price differences between spot and perpetual contracts on Backpack Exchange.
• It provides a GUI in the browser, allowing users to configure parameters, fetch live price data from an external API, display it in a table, and issue alerts and logs.
File structure
• Top-level files:
• index.html – the HTML entry point and GUI layout
• price_monitor.js – main JavaScript module handling data fetch, processing, UI updates, notifications, and logging
• config.js – module for reading/applying user configuration settings
• README.md / .gitattributes – documentation and repo metadata
• There are no server or backend folders; all logic runs in the browser.
• No build scripts or package manifests—this is pure static HTML/JS/CSS.
README for additional insights
• Core features: real-time price table, configuration panel, browser desktop notifications, operation log area
• Workflow hints: user enters API credentials → clicks “Connect” → JS opens a connection (REST or WebSocket) to Backpack Exchange → polls or streams data → computes spreads → triggers UI updates and notifications
• Security note: in a production system you’d move API calls and signing to a backend—this implies potential future separation of client and server.
Elements
• Component labels: e.g., “Config Manager,” “Price Fetcher,” “Spread Calculator,” “UI – Price Table”
• Rectangles for in-browser modules