-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v3.0.0 - Major updates inc. Hive Support
Not everything is listed below, since there has been a lot of refactoring to make `steemfeed-js` more flexible, and there has also been lots of small changes such as cleaning up syntax to make lines more readable. Overall, this is a major update to `steemfeed-js`, making the system more flexible, potentially usable across forks of Steem, and cleaner code making it easier to understand and develop `steemfeed-js`. **New Exchange Adapter** - Added `IonomyAdapter.js`, allowing price feeds to include prices from ionomy.com **Various Improvements** - Refactored handling of config defaults and parsing CLI options into `lib/settings.py` - `publish_feed` now uses `config.base_symbol` and `config.quote_symbol` instead of hardcoded `STEEM` / `SBD` - Refactored the hardcoded `steem` / `usd` default exchange pair lookup into config options `config.ex_symbol` and `config.ex_compare` - Tons of refactoring to `lib/exchange.js` to improve the adapter initialisation process. **New Additions** - New config options - `ex_symbol` - The symbol we're obtaining the price of. Default: `steem` - `ex_compare` - The symbol we're pricing `ex_symbol` with (i.e. the other half of the exchange pair). Default: `usd` - `base_symbol` - The symbol used for the `"base": "0.512 SBD"` part of the feed. Default: `SBD` - `quote_symbol` - The symbol used for the `"quote": "1.000 STEEM"` part of the feed. Default: `STEEM` - `disable_exchanges` which allows the user to disable one or more exchanges if they're down, or returning bad data. - `exchanges_no_provide` - allowing the user to disable individual coin pairs from being used, per each exchange. - `exchanges_provide` - works similarly to `exchanges_no_provide`, except it allows new coin pairs to be added to existing exchanges, instead of removing them. - `network` - allows Steemfeed-JS to work with forks, such as [Hive](https://hive.io) - Created `lib/adapters/base.js`, which contains `BaseAdapter` - an example adapter with comment blocks explaining how you should layout a new exchange adapter. - Added `has_pair` method to all exchange adapters, and added `has_pair` check in all `get_pair` methods. - Added `code` attribute to all exchange adapters, a unique short string used as the "ID" for the adapter. - Added `available_adapters` list to `lib/exchange.js`, allowing adapters to be programatically enabled/disabled etc. **Using Steemfeed-JS with Hive?** Open up your `config.json` and remove any existing Steem `"node"` config line. (or change it to `https://anyx.io`) Add the config line `"network": "hive"` Stop, re-build, and start steemfeed-js, and you'll be broadcasting a Hive feed :)
- Loading branch information
1 parent
d72f415
commit e52e9c5
Showing
16 changed files
with
580 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"esversion": 9 | ||
} |
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,42 @@ | ||
{ | ||
"name": "your steem name", | ||
"wif": "your active private key", | ||
"interval": 60, | ||
"peg": false, | ||
"peg_multi": 1.0, | ||
"node": "https://steemd.privex.io", | ||
"ex_symbol": "steem", | ||
"ex_compare": "usd", | ||
"base_symbol": "SBD", | ||
"quote_symbol": "STEEM", | ||
"read_this_disable": [ | ||
"If an exchange is down, or has issues resulting in inaccurate prices,", | ||
"then you can add exchanges to the disable_exchanges list, resulting in those ", | ||
"exchanges never being used for any price data." | ||
], | ||
"disable_exchanges": [ | ||
"poloniex", "ionomy" | ||
], | ||
"exchanges_no_provide": { | ||
"read_this": [ | ||
"The below example, disables the use of the BTC:STEEM pair for Poloniex.", | ||
"This feature allows you to disable specific pairs per exchange, if they're", | ||
"unstable, broken, or reporting bad data." | ||
], | ||
"poloniex": [ | ||
["btc", "steem"] | ||
] | ||
}, | ||
"exchanges_provide": { | ||
"read_this": [ | ||
"This feature allows you to enable additional pairs for existing exchanges, which", | ||
"aren't enabled by default", | ||
"The below example, would add the pairs BTC/DASH and USD/EOS to the 'pairs provided' list", | ||
"of the Bittrex adapter." | ||
], | ||
"bittrex": [ | ||
["btc","dash"], | ||
["usd","eos"] | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,7 +1,14 @@ | ||
{ | ||
"name": "your steem name", | ||
"wif": "your active private key", | ||
"network": "steem", | ||
|
||
"interval": 60, | ||
|
||
"peg": false, | ||
"peg_multi": 1.0 | ||
"peg_multi": 1.0, | ||
|
||
"disable_exchanges": [], | ||
"exchanges_no_provide": {}, | ||
"exchanges_provide": {} | ||
} |
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
Oops, something went wrong.