Skip to content
Logo
Node.js library for building systematic trading strategies in a declarative way.
Use the power of TypeScript and Reactive Programming to research, develop and test your market-winning on-chain and off-chain investments.
Unlike traditional high-frequency trading solutions, this project focuses on:
Quantform is a powerful, efficient, and reliable trading automation framework designed specifically for crypto markets. Built on Node.js with minimal dependencies, it offers exceptional performance and usability for managing both long-term and short-term investments.
Usability
Making it easy to define, modify, and execute strategies.
Building blocks
Create and reuse existing trading components.
Efficiency
Optimize investment processes without unnecessary complexity.
Reliability
Built for continuous operation, minimizing downtime and technical issues.

Create custom reusable functional components to react and act based on market condition.

export function watchPumFunTokenSymbolCreated() {
  const { watchProgramCreate } = usePumpFun();
 
  return watchProgramCreate(Commitment.Finalized).pipe(
    map(({ payload }) => payload.event.symbol)
  );
}

Create custom reusable functional components to react and act based on market condition.

export function sendTelegramTokenCreatedMessage(symbol: string) {
  const { sendMessage } = useTelegram();
 
  return sendMessage(`new token created: ${symbol}`);
}

Combine functional components into strategy

export default strategy(() => {
  behavior(() =>
    watchPumFunTokenSymbolCreated().pipe(
      switchMap((symbol) => sendTelegramTokenCreatedMessage(symbol))
    )
  );
 
  return [...solana(SolanaOptions.mainnet()), ...pumpFun({})];
});