Proof of concept: read pricing stream from Oanda
This commit is contained in:
@ -29,3 +29,41 @@ gradle init --type java-application
|
||||
#+BEGIN_SRC shell
|
||||
./gradlew build
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_SRC shell
|
||||
./gradlew run
|
||||
#+END_SRC
|
||||
|
||||
|
||||
* Get sample data
|
||||
|
||||
#+BEGIN_SRC shell
|
||||
curl -H "Authorization: Bearer 9a480f0b83e987f4015cf0846790c7d9-695ced635526744abd61bdf0e2ae8b71" https://stream-fxpractice.oanda.com/v3/accounts/101-001-7935538-001/pricing/stream\?instruments\=USD_CAD
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_SRC javascript
|
||||
{"type":"PRICE",
|
||||
"time":"2018-03-06T03:55:26.327901133Z",
|
||||
"bids":[{"price":"1.29728","liquidity":10000000}],
|
||||
"asks":[{"price":"1.29744","liquidity":10000000}],
|
||||
"closeoutBid":"1.29728",
|
||||
"closeoutAsk":"1.29744",
|
||||
"status":"tradeable",
|
||||
"tradeable":true,
|
||||
"instrument":"USD_CAD"}
|
||||
{"type":"HEARTBEAT","time":"2018-03-06T03:55:38.607009935Z"}
|
||||
{"type":"PRICE","time":"2018-03-06T03:55:43.572975078Z","bids":[{"price":"1.29727","liquidity":10000000}],"asks":[{"price":"1.29745","liquidity":10000000}],"closeoutBid":"1.29727","closeoutAsk":"1.29745","status":"tradeable","tradeable":true,"instrument":"USD_CAD"}
|
||||
{"type":"HEARTBEAT","time":"2018-03-06T03:55:43.625479422Z"}
|
||||
{"type":"PRICE","time":"2018-03-06T03:55:43.635882478Z","bids":[{"price":"1.29726","liquidity":10000000}],"asks":[{"price":"1.29745","liquidity":10000000}],"closeoutBid":"1.29726","closeoutAsk":"1.29745","status":"tradeable","tradeable":true,"instrument":"USD_CAD"}
|
||||
#+END_SRC
|
||||
|
||||
|
||||
* eclim server
|
||||
|
||||
http://eclim.org/install.html
|
||||
|
||||
start with:
|
||||
|
||||
#+BEGIN_SRC shell
|
||||
/home/alx/eclipse/java-oxygen/eclipse/eclimd
|
||||
#+END_SRC
|
||||
|
||||
Reference in New Issue
Block a user