npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

lumen-fx

v1.0.8

Published

LumenFX Foreign Exchange System

Downloads

25

Readme

LumenFX

Introduction

LumenFX is an interactive platform that supports real-time financial data visualization, as well as historical data lookup for sparklines and OHLC charts. It executes simple trading rules in real time with an automated trade engine which also executes limit and stop orders. This application was written with Node.JS, SenecaJS and AngularJS.

This application retrieves live rates from Yahoo and OANDA, it can subscribe to multiple source depending on which currency pairs are available from the sources. This applications receives the data from other sources and publish it into its' own API with SenecaJS to be used by other services.

LumenFX is released as Open Source Software under the Apache 2.0 licence

SenecaJS Microservices

Price Service

  • Initialises the currency pairs with day high and day low
  • Retrieves prices from multiple sources
  • Persists data into InfluxDB
  • An automated execution engine that match open orders
  • An automated execution engine that triggers stop or limit orders and executes them

Order Service

  • Inserts order into CouchDB
  • Retrieves the trader's saved currency pairs to show upon starting the app

Historical Service

  • Retrieves data from InfluxDB to show a live trend of the day chart
  • Retrieves data from InfluxDB to populate OHLC charts.

Login Service

  • Creates new trader and insert into CouchDB
  • Authenticates users
  • Saves the trader's trading limits

Initialisedb Service

  • Creates the tables for CouchDB database
  • Creates the views for quering purposes

FixMessage Service

  • Builds fix messages to and from orders
  • Parses fix messages to and from orders

Dependencies:

Configuration:

  • OANDA API Access Token /public/config/OANDAConfig.js
  • Influx Database Configurations /public/config/influxDBConfig.js
  • Currency Subscriptions /public/config/currencySubscriptions.js
  • Host /public/config/host.js

Getting started

Install NodeJS

Install CouchDB

Install InfluxDB

Install application dependencies

npm install

Edit Configuration files

  • Include OANDA Authentication
  • Influx Database Configurations
  • Currency Subscriptions
  • Host

Initialise CouchDB with tables and design views

node initialisedb-service.js

Start the application with PM2

pm2 start ecosystem.json

Or

Run Standalone Services

node order-service.js
node price-service.js
node historical-service.js
node login-service.js
node app-all.js

The Application will start automatically

Login with demo account or Register a new account

  • username : demo
  • password : password

Test

The tests will fail if the application cannot start in test mode on the default port, so make sure no other instances are running on the same port before running the tests.

npm test

Team

LumenFX is built and maintained by thecitysecret(@thecitysecretltd) thecitysecretltd

License

Copyright (C) 2015 thecitysecret

LumenFX is released as Open Source Software under the Apache 2.0