-
Notifications
You must be signed in to change notification settings - Fork 650
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
Update / Add API to query for open orders with pagination #463
Comments
Related issue: bitshares/bitshares-ui#393, which was closed by using |
it will need to be call should be added to the cli wallet. |
I'll add my opinion here and rely on other Core Team members to comment further (looking at you: @abitmore @oxarbitrage @pmconrad ). I will also request the UI Team to review and add their thoughts on API naming and the dataset returned (@wmbutler @svk31 ). The OP defines the API names in a format I support. I'm not sure if we have a naming convention defined, but this seems to work in this case: I will suggest to change the API names (but, please await others to comment). As for the ordering of the parameters for each call, I feel they should begin with and iterate through the <filter_set>. It seems in this case that we have either Note: One struggle I had (as the new guy here) with this Issue/PR was most of the refactoring/comments taking place within the PR rather than the Issue. My preference is for the Review to happen in the PR, while keeping the refinement dialog within the Issue, so those reviewing the Issue can more quickly be up to date on progress. Thanks. |
Agree with the proposed APIs. One question:
There can be at most one call_order per account and asset. Do we still want to return a list, with pagination, for symmetry? |
@pmconrad right now we don't have many MPA's or PM's in the system, so pagination for |
|
Oh. Thought you're talking about another API. Yes, this one will return one or zero entry. I'm fine if change it to return an |
Due to #1749, the |
Implemented |
IIRC we have 2 sets of API's related to query for open orders of one account in one market:
get_full_accounts
get_limit_orders
+get_settle_orders
+get_call_orders
However, both will return extra data and have some limitations, E.G. no pagination.
IMHO we need these API's:
limit_order
get_limit_orders_by_account
: all markets, for one account, with paginationget_limit_orders_by_account_marketget_account_limit_orders
: one market, for one account, with paginationcall_order
get_call_orders_by_account
: all assets, for one account, with pagination- [ ] get_call_orders_by_account_asset: one asset, for one account, with pagination(note:get_call_orders_by_account
can be used for this)settle_order
get_settle_orders_by_account
: all assets, for one account, with paginationThe text was updated successfully, but these errors were encountered: