-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes for #9 add function to server.js and managed to connect to we…
…bsockets, parse and transform the feed for one currency/symbol. Next to add redis and other currencies. Shell script easy way to parse list into format configuration file can understand.
- Loading branch information
Gerard Moroney
committed
Jan 1, 2018
1 parent
2e6f196
commit c55f20c
Showing
4 changed files
with
96 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
LINE_VAL="ltc_btc eth_btc etc_btc bch_btc btc_usdt eth_usdt ltc_usdt etc_usdt bch_usdt etc_eth bt1_btc bt2_btc btg_btc qtum_btc hsr_btc neo_btc gas_btc qtum_usdt hsr_usdt neo_usdt gas_usdt" | ||
|
||
LIST_VAL=`echo ${LINE_VAL} | tr " " "\n"` | ||
|
||
echo ${LINE_VAL} | tr " " "\n" | while read ITEM | ||
do | ||
ITEM=`echo ${ITEM} | tr '[a-z]' '[A-Z]'` | ||
echo "{ \"symbol\": \"${ITEM}\" }," | ||
done | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters