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

New horizon.Client methods #47

Merged
merged 2 commits into from
Mar 24, 2017
Merged

New horizon.Client methods #47

merged 2 commits into from
Mar 24, 2017

Conversation

bartekn
Copy link
Contributor

@bartekn bartekn commented Mar 15, 2017

Added three requested methods:

LoadAccountOffers(accountID string, params ...interface{}) (offers OffersPage, err error)
LoadOrderBook(selling Asset, buying Asset) (orderBook OrderBookSummary, err error)
StreamLedgers(cursor *Cursor, handler LedgerHandler) error

Additionally created ClientInterface to ensure both Client and MockClient implement the same methods.

Close #44
Close #45
Close #46

LoadAccountOffers(accountID string, params ...interface{}) (offers OffersPage, err error)
LoadOrderBook(selling Asset, buying Asset) (orderBook OrderBookSummary, err error)
StreamLedgers(cursor *Cursor, handler LedgerHandler) error
@jedmccaleb jedmccaleb merged commit 32a536a into master Mar 24, 2017
@jedmccaleb jedmccaleb deleted the horizon-methods branch March 24, 2017 17:41
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

Successfully merging this pull request may close these issues.

None yet

2 participants