How to use the symphony-api-client-node.getDatafeedEventsService 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
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)
        }
    })

symphony-api-client-node

Symphony API Client for NodeJS

MIT
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis