Coder Social home page Coder Social logo

currency-trader's Introduction

ForEx-press

A website for foreign exchange traders to receive live spread and historical data regarding various currencies.

viewable: https://forexpress.herokuapp.com/

##Built with the following technologies:

  • Javascript with EcmaScript 6
  • React.js
  • Node.js/Express
  • MongoDB/Mongoose
  • Jquery
  • Underscore
  • Gulp
  • Webpack
  • SASS/CSS3/Bootstrap/HTML5

###Summary:### Forexpress was built to serve the purpose of providing real time price and spread updates as they change in the Foreign Exchange market. The application also allows currency traders to view candlestick charts for each pairing and filter based on their desired currencies. This website was built mainly with React.js for dynamic view updates, and Node.js/MongoDB for retrieving real time data through the Oanda API.

###Install:### 1. Go to the root directory and run npm install --save

2. Create a free trade account with Oanda to obtain a bearer token: http://www.oanda.com/

3. In the instrument.js file, insert your Oanda bearer token in the /prices post request.

instruments.post('/prices', parseText, function(req, res) { 
  var bearer;
  var query = req.body
  var prices = 'https://api-fxpractice.oanda.com/v1/prices?instruments=' + query;
  request(prices, {
    'auth': {
      'bearer': bearer
      }
    }, function (error, response, body) {
    if (error) {
      console.log(error)
    } else if (!error && response.statusCode === 200) {
      res.send(response);            
    };
  });
});

4. Run the server using node app.js. If no data is updating, check Oanda's server status by using the GET server call below:

curl http://api-status.oanda.com/api/v1/services

Currency Table:

Live Demo:

Historical Graph:

currency-trader's People

Contributors

jordac67 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.