ELI5
This framework is a toolkit for building bots and agents that can buy and sell digital assets automatically and safely on-chain and off-chain.
Get started
to initialize a quantform project use following command
npm init @quantform
Project structure
you will get a pipeline.ts file generate with a default strategy
export default strategy(() => {
behavior(() => {
// watch binance spot orderbook
const { whenOrderbookTicker } = useBinance();
const { info } = useLogger('binance');
// subscribe for btc-usdt binance spot market and print ticker values
return whenOrderbookTicker(instrumentOf(`binance:btc-usdt`)).pipe(
tap(({ bids, asks }) => info(`current top bid: ${bids.rate}, ask: ${asks.rate}`))
);
});
return [
...binance({
simulator: {
balance: {},
commission: Commission.Zero
}
})
];
});