bitsuperlab / operation_tools

The operation tools for bitshares operations, most in python maybe
15 stars 13 forks source link

btsxfeed: use wallet_publish_feeds #2

Closed maqifrnswa closed 10 years ago

maqifrnswa commented 10 years ago

rather than updating each feed individually, use the new call that allows multiple feeds updated at once. Should be easy to implement: in fetch_price just brek the while loop if you have to update the feed of any asset, and make update_feed update the feeds of all assets when called.

Usage: wallet_publish_feeds publishes a set of feeds for BitAssets, only active delegates may do this publishes a set of feeds for BitAssets, only active delegates may do this

Parameters: delegate_account (account_name, required): the delegate to publish the price under symbol_to_price_map (price_map, required): maps the BitAsset symbol to the price per BTSX

Returns: transaction_record

maqifrnswa commented 10 years ago

I see it has been done, thanks!