create account

Steemfeed-JS - now with real exchange queries and median averages by someguy123

View this thread on: hive.blogpeakd.comecency.com
· @someguy123 ·
$28.55
Steemfeed-JS - now with real exchange queries and median averages
<center>![](https://i.imgur.com/uGX6wgH.png)</center>

As more people are using Steemfeed-JS, I finally took the time to port over my automatic exchange proxy system used by SteemValue (Python), to NodeJS, allowing me to easily query any exchange, and proxy via BTC/USD where needed.

This means witnesses using my script will have a much more accurate pricefeed, as it uses both Poloniex and BTC-e for the BTC/USD calculation, and Polo+Bittrexx for BTC/STEEM. It obtains the median average from the combined sources, helping to prevent price manipulation. It's also been tested to handle exchanges going offline, or returning bad data.

You can obtain the pricefeed from here: https://github.com/Someguy123/steemfeed-js

It can be ran as both a normal Node V6 application, with just a few dependencies, or it can be ran within the `node:6` docker image as described in the `README` on the Github.

*Current Features*
 - Queries multiple exchanges (and more can be added just by writing a small adapter)
 - Uses median average to filter out bad data
 - Allows you to customise the peg percentage in the config file
 - Rather than alter the price directly, it adjusts the `quote`, allowing sites like [SteemDB](https://steemdb.com/witnesses) to display the bias
 - Extremely reliable. I built this after getting tired of the Python version randomly hanging. This script runs for days and never seems to crash or gets stuck.

---

Do you like what I'm doing for STEEM/Steemit?
----
[Vote for me to be a witness](https://steemit.com/~witnesses) - every vote counts. 
----
Don't forget to follow me for more like this.
-------

---
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 99 others
properties (23)
authorsomeguy123
permlinksteemfeed-js-now-with-real-exchange-queries-and-median-averages
categorywitness-category
json_metadata{"tags":["witness-category","witness-update","steem","sbd","price-feed"],"image":["https://i.imgur.com/uGX6wgH.png"],"links":["https://github.com/Someguy123/steemfeed-js","https://steemdb.com/witnesses","https://steemit.com/~witnesses"]}
created2016-10-16 20:54:18
last_update2016-10-16 20:54:18
depth0
children6
last_payout2016-11-16 22:44:09
cashout_time1969-12-31 23:59:59
total_payout_value25.628 HBD
curator_payout_value2.921 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,627
author_reputation103,945,664,283,580
root_title"Steemfeed-JS - now with real exchange queries and median averages"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,551,363
net_rshares40,194,018,906,591
author_curate_reward""
vote details (163)
@furion ·
I really like the effort you've put in abstracting the exchanges and the library in general.

I have just released documentation for markets module in `steemtools`, so Python coders can have the access to the same features. The code is not as nice as yours, but it works...
👍  
properties (23)
authorfurion
permlinkre-someguy123-steemfeed-js-now-with-real-exchange-queries-and-median-averages-20161016t222743399z
categorywitness-category
json_metadata{"tags":["witness-category"]}
created2016-10-16 22:27:42
last_update2016-10-16 22:27:42
depth1
children2
last_payout2016-11-16 22:44:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length273
author_reputation116,503,940,714,958
root_title"Steemfeed-JS - now with real exchange queries and median averages"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,551,934
net_rshares9,776,632,519
author_curate_reward""
vote details (1)
@someguy123 ·
I used the same kind-of exchange abstraction in SteemValue which is in Python. I would be using that same code for a python price feed, but I've found that python likes to randomly hang when connecting to external sites...
properties (22)
authorsomeguy123
permlinkre-furion-re-someguy123-steemfeed-js-now-with-real-exchange-queries-and-median-averages-20161016t224744840z
categorywitness-category
json_metadata{"tags":["witness-category"]}
created2016-10-16 22:47:45
last_update2016-10-16 22:47:45
depth2
children1
last_payout2016-11-16 22:44:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length222
author_reputation103,945,664,283,580
root_title"Steemfeed-JS - now with real exchange queries and median averages"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,552,019
net_rshares0
@furion ·
I've added a default timeout of 2s for all requests, to avoid waiting due to networking or other issues.
properties (22)
authorfurion
permlinkre-someguy123-re-furion-re-someguy123-steemfeed-js-now-with-real-exchange-queries-and-median-averages-20161016t232630764z
categorywitness-category
json_metadata{"tags":["witness-category"]}
created2016-10-16 23:26:30
last_update2016-10-16 23:26:30
depth3
children0
last_payout2016-11-16 22:44:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length104
author_reputation116,503,940,714,958
root_title"Steemfeed-JS - now with real exchange queries and median averages"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,552,166
net_rshares0
@good-karma ·
great work...
👍  
properties (23)
authorgood-karma
permlinkre-someguy123-steemfeed-js-now-with-real-exchange-queries-and-median-averages-20161017t101127545z
categorywitness-category
json_metadata{"tags":["witness-category"]}
created2016-10-17 10:11:27
last_update2016-10-17 10:11:27
depth1
children0
last_payout2016-11-16 22:44:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length13
author_reputation656,210,817,936,836
root_title"Steemfeed-JS - now with real exchange queries and median averages"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,554,843
net_rshares9,776,632,519
author_curate_reward""
vote details (1)
@jesta ·
Hurray! :)
👍  
properties (23)
authorjesta
permlinkre-someguy123-steemfeed-js-now-with-real-exchange-queries-and-median-averages-20161016t212445906z
categorywitness-category
json_metadata{"tags":["witness-category"]}
created2016-10-16 21:24:45
last_update2016-10-16 21:24:45
depth1
children0
last_payout2016-11-16 22:44:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length10
author_reputation140,605,453,893,072
root_title"Steemfeed-JS - now with real exchange queries and median averages"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,551,581
net_rshares9,776,632,519
author_curate_reward""
vote details (1)
@teamsteem · (edited)
### I've just tipped @someguy123 1 SDB for this work and I'll send another 1 SDB tip if someone else also tip him 1 SDB. 

https://steemit.com/@teamsteem/transfers
👍  , ,
properties (23)
authorteamsteem
permlinkre-someguy123-steemfeed-js-now-with-real-exchange-queries-and-median-averages-20161017t023120916z
categorywitness-category
json_metadata{"tags":["witness-category"],"users":["someguy123"],"links":["https://steemit.com/@teamsteem/transfers"]}
created2016-10-17 02:31:21
last_update2016-10-17 02:31:33
depth1
children0
last_payout2016-11-16 22:44:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length163
author_reputation284,804,541,406,803
root_title"Steemfeed-JS - now with real exchange queries and median averages"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,552,950
net_rshares144,669,994,775
author_curate_reward""
vote details (3)