bitshares / bitshares-core

BitShares Blockchain node and command-line wallet
https://bitshares.github.io/
Other
1.17k stars 646 forks source link

add get_asset_markets #1101

Open oxarbitrage opened 6 years ago

oxarbitrage commented 6 years ago

As a explorer/exchange I want get_asset_markets(asset_id) so that i can get a list of active markets in the last 24 hours for an asset.

This call should be added to asset_api (disabled by default) as it will have some performance issues.

Explorers and exchanges will use this call to populate active markets as: http://open-explorer.io/#/assets/1.3.3262 This is currently done client side looping once every X hours all assets, resulting in no uptodate results.

To be done after https://github.com/bitshares/bitshares-core/pull/1099

Impacts Describe which portion(s) of BitShares Core may be impacted by your request. Please tick at least one box.

Additional Context (optional) Add any other context about your request here.

CORE TEAM TASK LIST

abitmore commented 6 years ago

I think it's easier to implement this with market_history plugin, by making more use of market_ticker data, which should be more efficient.