-
Notifications
You must be signed in to change notification settings - Fork 648
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
[ES plugin] Wrong value of additional_data.fill_data.fill_order #1295
Comments
Ah..another one for the base/quote design :P If you look at the original op, you'll see that it too keeps price at a preferred base/quote order:
and
So the plugin is simply copying the core representation... Dont ask me why though |
@oxarbitrage I see you added this to the release milestone, but did not self assign. Are you actively working this one? I've added it to the Project Board as well to match. If this is in error, please move it |
assigned to myself, thanks. |
@oxarbitrage we need to decide whether we will fix this in 201810 release. |
I was thinking on pros and cons about adding this feature and decided to add it by the following: pros:
In regards to current applications, ES plugin is currently being used by more third parties than i was expecting including openledger, payger, cyptobridge and others so need to be careful when making changes. cons:
In regards to deprecation i have an elasticsearch plugin version from Dascoin that allows to index all the fields from all the operations. I am porting and testing this now, this will eventually deprecate the additional data we have now but at first plugin will support both options to remain compatible. |
closed by #1351 |
@oxarbitrage Could you put an example of the new output for reference? |
Yes, sorry @Zapata , i closed it too fast. We can reopen if you think is needed. The code in the pull request will add some additional stuff to the additional data :) For fee data we have the fee amount calculated with precision and the asset name on what the fee was paid: For transfer data we added the transfer amount in units and the asset name: For fill orders we added pays_asset_name, pays_amount_units, receives_asset_name, receives_amount_units and fill_price_units: |
Bug Description
Value of
additional_data.fill_data.fill_order
is equal on both ways of a filled order and do not take asset precision into account:USD -> BTS:
BTS -> USD:
The fill_price is same in both ways of the deals, wheras pay/recieve assets are inverted.
Impacts
Describe which portion(s) of BitShares Core may be impacted by this bug. Please tick at least one box.
Elastic Search database content.
It is not trivial to compute an average price from filed orders using an Elastic Search query.
Stats displayed in Kibana or Open Explorer might be wrong.
Steps To Reproduce
elasticsearch-visitor=true
Expected Behavior
additional_data.fill_data.fill_order
should be(recieves_asset_amount/recieves_asset_precision) / (pays_asset_amount / pays_asset_precision)
.CORE TEAM TASK LIST
The text was updated successfully, but these errors were encountered: