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.
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({})];
});