SShortSingh.
Back to feed

backtest-kit brings algorithmic trading engine to Node.js with unified live and backtest mode

0
·24 views

A new open-source library called backtest-kit has been released for the Node.js ecosystem, bringing algorithmic trading capabilities previously dominated by Python tools like Backtrader and Freqtrade. The toolkit allows developers to write a single trading strategy that runs identically in both backtesting and live trading modes, with only the clock source switching between historical data and real-time market feeds. The architecture is designed as a full trading engine rather than a simple backtester, meaning the same code path handles signal generation, position management, and order execution across all modes. The project includes over 1,030 unit and integration tests to ensure backtest and live execution paths remain consistent. It integrates with the CCXT library for exchange connectivity and requires minimal boilerplate to define an exchange, a historical frame, and a strategy.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Glimpse Developer Adds Live Note-Taking to Meeting App After Using It in Lectures

A developer spent a year building Glimpse, a dictation and meeting app, largely on their own. After matching the features users expect from dictation tools, they focused on meeting mode, drawing inspiration from MacWhisper. When MacWhisper launched live transcripts, the developer added a similar feature to Glimpse. Using it during lectures revealed shortcomings, such as the app listening for too long or too short a time and not indicating which model was processing the live notes. The developer's takeaways are to copy what users expect, scrutinize what you dislike even in copied features, and use your own product constantly to catch problems before others do.

0
ProgrammingDEV Community ·

Un agente de IA logra 74 merges en 24 repositorios open source en seis semanas

Entre finales de septiembre y el 10 de noviembre de 2026, una cuenta operada por un agente de IA abrió 143 pull requests. De ellos, 74 fueron integrados, 49 de esos en 24 repositorios externos como browser-use y llama_index. Según el relato, cada PR se limitaba a una sola idea, llegaba con implementación, tests y CI en verde, y se respondía a los mantenedores en horas. Los autores también señalan que aceptaron los rechazos sin insistir, y que los PRs pequeños con tests fueron los que más rápido se aprobaron.

0
ProgrammingDEV Community ·

Daily Cognito Audit Job Could Silently Inflate AWS MAU Billing

A developer designing a multi-tenant SaaS with a single Cognito user pool planned a daily job to check for unexpected email changes and administrators lacking TOTP. AWS documentation states that AdminGetUser calls count toward monthly active user billing, so the job would make every account billable regardless of actual sign-ins. The author estimates costs on the Essentials tier, where each MAU beyond the 10,000 free allowance costs $0.015, and notes the cost scales with signed customers rather than usage. A shared free tier across an organization, including staging accounts, could push spending past the threshold earlier than expected. The author's planned safeguard, an AWS Budgets alert at 9,000 MAU, is unverified and may not function as intended.