diff --git a/src/api.js b/src/api.js index 3f01a47..a146af6 100644 --- a/src/api.js +++ b/src/api.js @@ -695,3 +695,12 @@ export const getReviewHistory = (limit = 4) => export const bulkPurchase = ({ draw_no, tier_mode, sets, amount }) => apiPost('/api/lotto/purchase/bulk', { draw_no, tier_mode, sets, amount }); +// ---- Stock Screener ---- +export const getScreenerNodes = () => apiGet ('/api/stock/screener/nodes'); +export const getScreenerSettings = () => apiGet ('/api/stock/screener/settings'); +export const saveScreenerSettings = (body) => apiPut ('/api/stock/screener/settings', body); +export const runScreener = (body) => apiPost('/api/stock/screener/run', body); +export const refreshScreenerSnap = () => apiPost('/api/stock/screener/snapshot/refresh'); +export const listScreenerRuns = (limit = 30) => apiGet (`/api/stock/screener/runs?limit=${limit}`); +export const getScreenerRun = (id) => apiGet (`/api/stock/screener/runs/${id}`); +