How to use symphony-api-client-node - 4 common examples

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
            mergeMap(() => from(Symphony.sendMessage(streamId, message, null, Symphony.MESSAGEML_FORMAT))),
            take(1))
github AdaptiveConsulting / ReactiveTraderCloud / src / server / Adaptive.ReactiveTrader.Server.Bot / src / symphony / SymphonyClient.ts View on Github external
static wrapDataFeed = () => new Observable(obs => {
        try {
            logger.info('Connecting to Symphony...')
            Symphony.getDatafeedEventsService({
                onMessage:
                    (messages: Symphony.Message[]) => {
                        obs.next(messages)
                    },
            })
        } catch (error) {
            logger.error('connection to symphony failed', error)
            obs.error(error)
        }
    })
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))
    }
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