How to use the symphony-api-client-node.initBot function in symphony-api-client-node

To help you get started, we’ve selected a few symphony-api-client-node examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AdaptiveConsulting / ReactiveTraderCloud / src / server / Adaptive.ReactiveTrader.Server.Bot / src / symphony / SymphonyClient.ts View on Github external
constructor(private botConfig: BotConfig, private key: string, debug: boolean, private path: string = 'config/') {
        Symphony.setDebugMode(debug)
        logger.info(`Writing config file to ${path}.`)
        SymphonyClient.writeConfigFiles(this.key, createConfig(this.botConfig, path), path)
        logger.info(`Write complete ${path}`)

        this.botConnnection$ = from(Symphony.initBot(`${this.path}/config.json`)).pipe(shareReplay(1))
    }

symphony-api-client-node

Symphony API Client for NodeJS

MIT
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis