-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add APIs to query for general asset info #1896
base: develop
Are you sure you want to change the base?
Conversation
Other fields I thought that would be a bit frequently requested by clients are
@sschiessl-bcp @startailcoon please comment. |
Currently we have Suggestion:
|
@sschiessl-bcp I fixed typos about API names in OP. The idea was to return only minimum required fields but not the full asset objects when querying for many assets, in order to reduce network traffic and improve UI loading speed. The returned fields are listed in OP. These fields should meet the needs of common use cases -- when showing a list in UI, we can get all needed data with one API call. For example, to show balance sheet or account activities, we only need the symbols and precision of related assets. Then, when need details of one asset or multiple assets, call Since For the |
c7d657a
to
fa42e70
Compare
36a5c28
to
7c31f3f
Compare
98de678
to
d51305c
Compare
7c31f3f
to
72b9860
Compare
d51305c
to
62fc622
Compare
- Add a `symbol` field in asset_bitasset_data_object - Add indices related to asset symbol - Add `get_assets_general_info` API - Add `list_assets_general_info` API
72b9860
to
64eae6b
Compare
PR for #1867. @sschiessl-bcp
Added APIs:
( vector asset_symbols_or_ids )
( optional lower_bound, optional limit, optional asset_type )
General asset info is:
asset_type
isImplementation details:
symbol
field in asset_bitasset_data_object