NeaByteLab/IDX-API — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a TypeScript Deno library that wraps the official Indonesian Stock Exchange data endpoints and can also sync the data into a local SQLite database.

I want it to feel easy for another developer to use. They should be able to initialize the database, run sync functions for IDX data, and also call a client directly to fetch things like company profiles, announcements, financial ratios, dividends, index lists, stock summaries, broker summaries, foreign trading, top gainers, top losers, market calendar, and securities.

Please include retry handling for unstable network calls, clean parsing of the API responses, and database upserts so running sync more than once doesn’t duplicate data. Organize the code into clear modules for company data, market data, trading data, participants, statistics, and backend sync tasks.

Add basic Deno tasks for database setup and tests, plus a README and usage examples showing how to sync data and query current IDX market data. Use SQLite with a type safe schema.

Want more depth? Deep Reverse