{"id":19864638,"url":"https://github.com/dev360/fourierfx","last_synced_at":"2025-05-02T05:31:14.156Z","repository":{"id":2102318,"uuid":"3043515","full_name":"dev360/FourierFx","owner":"dev360","description":"Automatic generation of trade signals on stock and commodity prices","archived":false,"fork":false,"pushed_at":"2012-02-23T00:27:14.000Z","size":1929,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T22:42:57.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"scrooloose/nerdtree","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev360.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-12-24T03:36:58.000Z","updated_at":"2024-06-09T17:46:57.000Z","dependencies_parsed_at":"2022-09-08T03:00:39.672Z","dependency_job_id":null,"html_url":"https://github.com/dev360/FourierFx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev360%2FFourierFx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev360%2FFourierFx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev360%2FFourierFx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev360%2FFourierFx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev360","download_url":"https://codeload.github.com/dev360/FourierFx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251992785,"owners_count":21677020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T15:19:17.323Z","updated_at":"2025-05-02T05:31:10.726Z","avatar_url":"https://github.com/dev360.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n REQUIREMENTS\n==============\n\n1.  ZeroMQ\n\n    Low-level library to build a messaging framework or client/server.\n\n    Install it from source and install some pre-reqs:\n\n    $ sudo apt-get install libtool uuid-dev autoconf automake \n    $ curl http://download.zeromq.org/zeromq-3.1.0-beta.tar.gz \u003e zeromq.tar.gz\n    $ tar -xzf zeromq.tar.gz\n    $ cd zeromq-3.1.0\n    $ ./configure\n    $ make\n    $ make install\n\n    On OSX, you just need to install ossp-uuid with brew.\n\n2.  Haskell\n  \n    Runs the server\n\n    Just get the latest version which comes bundled with cabal. Afaik version doesnt matter.\n\n    $ sudo apt-get update\n    $ sudo apt-get install ghc\n\n3.  Redis\n\n    Will be used to store quotes in.\n\n   $ sudo apt-get update\n   $ sudo apt-get install redis\n\n\n\n\n RUNNING THE CODE\n======================\n\n0.  Get and the data (a sample is found in the data folder).\n\n1.  Run qoute publisher server\n      \n      $ easy_install virtualenv\n      $ cd FourierFx/cfg/ \u0026\u0026 virtualenv fourierfx --no-site-packages\n\n    Save yourself a lot of time and trouble, find your bash profile script\n    and add this alias which activates the virtualenv for you:\n\n      alias cd_fourierfx=\"cd ~/Projects/FourierFx/src/py/quotes \u0026\u0026 . ../../../cfg/fourierfx/bin/activate\"\n\n      $ cd_fourierfx\n      $ pip -E fourierfx install -r pip.requirements.txt \n      $ cd FourierFx/src/py/\n      $ python quotes publisher --file=../../data/EURUSD_sample.csv --symbol=EURUSD --limit=100\n\n\n2.  Run quote analyzer client\n\n    Make sure you upgrade to GHC \u003e== 7.2, it should come with Cabal.\n      \n      $ cd FourierFx/src/hs/\n      $ cabal install\n      \n   There will be a binary created in the dist folder; its usually like this:\n\n      $ FourierFx/src/hs/dist/build/fourierfx/fourierfx  tcp://127.0.0.1:6000\n\n\n3. Verifying that it worked:\n\n   You can use any redis client to verify that it works.\n\n      $ cd_fourierfx\n      $ python -c \"from quotes.utils.redisdb import RedisDB as R; r = R(); print r.llen('symbol_EURUSD')\"\n      $ python -c \"from quotes.utils.redisdb import RedisDB as R; r = R(); print r.lrange('symbol_EURUSD', 0, 10)\"\n\n4. Deleting the quotes:\n\n      $ python -c \"from quotes.utils.redisdb import RedisDB as R; r = R(); r.delete('symbol_EURUSD')\"\n\n\n NEXT STEPS\n============\n\n  - Code that splits up Daily, hourly, and per minute data streams and initiates the corresponding computations.\n    I wrote the DatePart data structure with this in mind.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev360%2Ffourierfx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev360%2Ffourierfx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev360%2Ffourierfx/lists"}