Download frontend/src/constants/api.js from KSS-1227/TradeMind: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/spaces/KSS-1227/TradeMind/resolve/main/frontend/src/constants/api.js
- Command line
-
hf download hf://spaces/KSS-1227/TradeMind/frontend/src/constants/api.js
-
curl -L -o api.js https://huggingface.co/spaces/KSS-1227/TradeMind/resolve/main/frontend/src/constants/api.js
1.14 kB
| /** | |
| * TradeMind API Constants | |
| * Targeting backend stable v2 endpoints. | |
| */ | |
| export const API_BASE_URL = process.env.REACT_APP_API_URL || "https://kss-1227-trademind.hf.space"; | |
| export const ENDPOINTS = { | |
| // Stable V2 Endpoints | |
| V2_SIGNAL_FULL: (symbol) => `/v2/signal/full/${symbol}`, | |
| V2_SIGNAL: (symbol) => `/v2/signal/${symbol}`, | |
| V2_PRICES: (symbol) => `/v2/prices/${symbol}`, | |
| V2_MARKET_QUOTES: "/v2/market/quotes", | |
| V2_BACKTEST: (symbol) => `/v2/backtest/${symbol}`, | |
| V2_GOLD: "/v2/gold", | |
| V2_COMMODITIES: "/v2/commodities", | |
| V2_SCREENER: "/v2/screener", | |
| V2_WEALTH_PROJECT: "/v2/wealth/project", | |
| V2_PORTFOLIO_ANALYZE: "/v2/portfolio/analyze", | |
| V2_SCAM_ANALYZE: "/v2/scam/analyze", | |
| V2_WHATSAPP_WELCOME: "/v2/whatsapp/welcome", | |
| // Direct fallbacks for standard endpoints if needed | |
| SIGNAL: (symbol) => `/signal/${symbol}`, | |
| PRICES: (symbol) => `/prices/${symbol}`, | |
| BACKTEST: (symbol) => `/backtest/${symbol}`, | |
| GOLD: "/gold", | |
| SCREENER: "/screener", | |
| WEALTH_PROJECT: "/wealth/project", | |
| PORTFOLIO_ANALYZE: "/portfolio/analyze", | |
| SCAM_ANALYZE: "/scam/analyze", | |
| WHATSAPP_WELCOME: "/whatsapp/welcome", | |
| }; | |