Skip to content
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

omni_gettradehistoryforaddress : Add blocktime for each match in matches array of JSON response #1264

Open
msgilligan opened this issue Sep 8, 2022 · 1 comment

Comments

@msgilligan
Copy link
Member

When trying to build a list of all DEX matching transactions for an Omni Core wallet, the omni_gettradehistoryforaddress method is very useful. However, in order to get a timestamp for each matching transaction an additional call for each match must be made to get the transaction (block) time.

Adding a blocktime property to each object in the matches array would eliminate the need for these extra calls. (The blocktime property in the root object is the blocktime for the sell offer, but we also need the time for each matching transaction.)

It might also make sense to add a blocktime property to each match in the response to omni_gettradehistoryforpair.

@msgilligan
Copy link
Member Author

PR #1270 looks good!

dexX7 added a commit that referenced this issue Oct 25, 2022
Pull request description:

  This pull request adds `blocktime` to `omni_gettrade`, `omni_gettradehistoryforaddress` and `omni_gettradehistoryforpair`.

  This resolves #1264.
counos pushed a commit to CounosH/counoslayer that referenced this issue Sep 27, 2023
Pull request description:

  This pull request adds `blocktime` to `omni_gettrade`, `omni_gettradehistoryforaddress` and `omni_gettradehistoryforpair`.

  This resolves OmniLayer#1264.

# Conflicts:
#	src/counoscore/rpc.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant