Skip to content

Commit

Permalink
Added more symbols to config and made minor changes to function relat…
Browse files Browse the repository at this point in the history
…ing to priting out of values. Part of #4
  • Loading branch information
Gerard Moroney committed Jan 2, 2018
1 parent e576e1f commit 1a11332
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@
"docurl": "https://docs.gdax.com/#websocket-feed",
"wssurl": "wss://ws-feed.gdax.com",
"pairs": [
{ "symbol": "ETH-BTC"}
],
{ "symbol": "ETH-BTC"},
{ "symbol": "ETH-USD"},
{ "symbol": "ETH-EUR"},
{ "symbol": "BTC-USD"},
{ "symbol": "BTC-EUR"} ],
"active": "N"
},
{
Expand Down
2 changes: 1 addition & 1 deletion functions/exchange_functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ function processGDAX(client, exchange_name,exchange_wss,exchange_symbol) {
wss.onmessage = (msg) => {

var resp = JSON.parse(msg.data);

// filtering on 'match' as this is only JSON document that seems to have all fields
if (resp.type == 'match') {
var tr_timestamp = resp.time;
Expand Down

0 comments on commit 1a11332

Please sign in to comment.