Giter Site home page Giter Site logo

wallstreetdollar's Introduction

The Wall Street Dollar

The currency for exposure to conflict of interest risk

This is an experimental site. Ultimately it will expose the world's financial mischief. For now, it shows a time series graph of the USD exchange rate for the Wall Street Dollar, the currency for exposure to conflict of interest risk in the financial markets. The WSD/USD spot exchange rate shows the value of one Wall Street Dollar in US Dollars, and tracks atmospheric noise. The value is updated every three minutes.

The python script wsd.py retrieves a random number from random.org, and rewrites wsd.csv. The file wsd.csv is a comma-separated file containing the header "Date,USD/CSV", followed by 600 pairs of the form "YYYY-MM-DD HH:MM, #.##"; written to wsd.csv; old values are cycled out by wsd.py. The output is formatted using a money formatting routine obtained from python.org. The python library randomdotorg must be installed for wsd.py.

The Dygraph display shows the WSD/USD spot exchange rate at dates and times for five 120 point times spaced 3 minutes apart, beginning at midnight, Eastern Standard Time. One day equals 420 points. The display of 600 points will ensure that at least one date will be visible on the display.

The file wsd.sh is called by a crontab entry every few minutes; this calls wsd.py and writes wsd.csv. The crontab line is something like */3 * * * * /var/www/html/wsd/wsd.sh

Prerequisites

License

(c) 2010-2012, Florian Lengyel [email protected] The text is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA-3.0) license. My code is licensed under the GNU General Public License, version 2. All other code (bootstrap, randomdotorg, dygraph) is licensed separately. Twitter's Bootstrap is licensed under the Apache License v2.0. Dygraphs is copyright (c) 2009 Dan Vanderka, as in LICENCE.txt. RandomDotOrg is licensed under the GPL v3.

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.