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

Documentation of new market API #171

Closed
vikramrajkumar opened this issue Jan 18, 2017 · 14 comments
Closed

Documentation of new market API #171

vikramrajkumar opened this issue Jan 18, 2017 · 14 comments

Comments

@vikramrajkumar
Copy link
Contributor

vikramrajkumar commented Jan 18, 2017

From @theoreticalbts on February 16, 2016 2:44

According to @xeroc comment in cryptonomex/graphene#500 the API implemented in cryptonomex/graphene#500 cryptonomex/graphene#503 needs to be better documented. Discussion of that documentation effort should take place in this ticket.

Copied from original issue: cryptonomex/graphene#582

@vikramrajkumar
Copy link
Contributor Author

From @mvandeberg on February 16, 2016 14:18

With regard to #500, the API is simply to open up methods from the fc crypto suite, which themselves are not documented. This was at the request of @bytemaster

With regard to #503, @xeroc, in what ways does the documentation need to be better? None of the methods are ground breaking from a market perspective, and the parameterization is consistent with the rest of the API with the exception of referencing assets by string instead of id, which was a primary motivation behind the new API calls.

@vikramrajkumar
Copy link
Contributor Author

From @abitmore on February 16, 2016 15:43

Maybe just copy Polo's docs to docs.bitshares.org?

@vikramrajkumar
Copy link
Contributor Author

From @abitmore on February 16, 2016 15:45

And what are the blog_post APIs? Why are they here?

@vikramrajkumar
Copy link
Contributor Author

From @svk31 on February 16, 2016 15:51

While these are a good start it's a shame none of the "all markets" methods were implemented. We desperately need a way to poll for active markets and obtain some stats about them. Approximate equivalents of these two would have been great:

returnTicker: Returns the ticker for all markets
return24Volume: Returns the 24-hour volume for all markets, plus totals for primary currencies

@vikramrajkumar
Copy link
Contributor Author

From @abitmore on February 16, 2016 15:52

@mvandeberg In regards to in-code documents, by a simple comparation of crypto api code to other APIs' code, anyone can see there are big differences.

@vikramrajkumar
Copy link
Contributor Author

From @abitmore on February 16, 2016 15:57

@svk31 We simply have much much more markets than other exchanges, so a "all market" API is not practicable imo. However a "top X volume markets" API would be better.

@vikramrajkumar
Copy link
Contributor Author

From @svk31 on February 16, 2016 16:1

Yea that's why I said approximate equivalent. Even just the top 10 by volume would be amazing, but of course the more the better...

@vikramrajkumar
Copy link
Contributor Author

From @mvandeberg on February 16, 2016 17:7

@svk31 The market volume is being calculated every call. We are currently not saving that information in the database, so there is no quick way for sort on it and look up top 10 markets. That would require modification of how we store markets and orders and is beyond the scope of what I was asked to do.

@vikramrajkumar
Copy link
Contributor Author

From @mvandeberg on February 16, 2016 17:12

@abitmore I am not sure what specific differences you are referring to. Of course the APIs are different, they are different APIs. The point of the crypto API was to expose cryptographic utility methods through the network layer for utilization by the web client. All of the implementation is in fc elliptic. Unfortunately there is no documentation on those methods and I was only given a list of methods to expose. I assumed they were commonly understood methods to anyone familiar with elliptic curve cryptography.

@vikramrajkumar
Copy link
Contributor Author

From @abitmore on February 16, 2016 21:33

@mvandeberg thanks anyway.. I have no idea about these functions at all. Maybe it need to be done by others. @bytemaster @pmconrad? Thanks.

@vikramrajkumar
Copy link
Contributor Author

From @pmconrad on February 16, 2016 22:9

Sorry, I didn't follow this discussion - can you provide a list? Which methods do you want to expose, which need documentation?

@vikramrajkumar
Copy link
Contributor Author

From @abitmore on February 16, 2016 22:14

@pmconrad Please see https://github.com/cryptonomex/graphene/blob/fd09669be3ce017b038e341552552109595d3b0b/libraries/app/include/graphene/app/api.hpp#L199-L235 these are new added APIs without any document. Thanks for help.

@vikramrajkumar
Copy link
Contributor Author

From @pmconrad on February 17, 2016 19:4

blind_sign and unblind_signature belong to this: https://bitsharestalk.org/index.php/topic,17315.msg220421.html#msg220421
I suppose these two shouldn't even be there - AFAIK they're not used anywhere in graphene currently, and if they are the API should include the blind_hash function as well.

I don't know anything about the range stuff nor the blind_factor stuff.

@abitmore
Copy link
Member

I believe this has been done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants