For use explicitly with strategies data from scoringapi.trava.finance (Trava's BRicher project)
const lib = await import('https://unpkg.com/@ais-ltd/strategyen@latest/build.min.js')
Dynamic library is ESM only
import * as lib from '@ais-ltd/strategyen';
Typescript suppport is present but still limited
const maps = { account: '', amount: '' };
const strategy_id = "bfaa65a1b7a6da9b7324b45de77da673cdf9a008aae4986ba818076826e347e6";
console.log(await lib.process(strategy_id, maps));
console.log(await lib.autoAvailability(strategy_id));
lib.process(strategy_id, maps).catch(
err => lib.processError(err).then(console.log)
);
By scanning through D-App definitions and predefined formulas.
Users no longer need to learn to use an d-app or calculate many steps needed to invest
Many d-apps just straight block indirect calls, make it impossible to generate automatic calls for user.