https://github.com/caub/jforexjetty
JForex (dukascopy) on the web with Jetty
https://github.com/caub/jforexjetty
Last synced: about 1 year ago
JSON representation
JForex (dukascopy) on the web with Jetty
- Host: GitHub
- URL: https://github.com/caub/jforexjetty
- Owner: caub
- License: apache-2.0
- Created: 2013-11-15T18:55:49.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-20T01:16:43.000Z (over 12 years ago)
- Last Synced: 2025-04-12T13:13:04.740Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 188 KB
- Stars: 8
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
JForexJetty
===========
JForex on the web with Jetty
run WebServer, with a valid JForex account username and password ( [create demo account](http://www.dukascopy.com/swiss/french/forex/demo_fx_account/) )
then go to http://localhost:8080/static/
In this demo page, the ticks informations are pushed for several instruments
from your console type:
ws.send("ticks") // send last ticks of your subscribed instruments
ws.send("subscribe EURJPY") // subscribe to a new instrument
ws.send("close 24646272") // close a given order
//and several others, see DataStrategy
The DataStrategy is using a websocket, (the strategies are picked by url, ex: "ws://localhost:8080/stream/data", or "ws://localhost:8080/stream/foo" will attempt to start DataStrategy, FooStrategy respectively...), and so is launched automatically at the first websocket connection.
You can manage at any time all strategies from http://localhost:8080/cmd/?name=data&stop
http://localhost:8080/cmd/?name=data //start strategy DataStrategy
http://localhost:8080/cmd/?name=data&stop // stop it