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

admin: Add trade info getter functions. #771

Merged
merged 2 commits into from
Nov 18, 2020

Conversation

JoeGruffins
Copy link
Member

closes #727

Adds admin functions to retrieve market data. Separated into getting the orderbook, epoch orders, and matches for a specific market. Matches can also show inactive matches if a token is included.

While some of this data could be taken from memory in other places, I think trusting the database as the ultimate source of truth is reasonable.

@JoeGruffins JoeGruffins marked this pull request as ready for review November 9, 2020 08:20
server/db/driver/pg/internal/matches.go Outdated Show resolved Hide resolved
server/db/driver/pg/orders.go Outdated Show resolved Hide resolved
server/db/driver/pg/orders.go Show resolved Hide resolved
server/admin/api.go Outdated Show resolved Hide resolved
server/admin/api.go Outdated Show resolved Hide resolved
Copy link
Member

@chappjc chappjc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. Just two typos.

server/market/bookrouter.go Outdated Show resolved Hide resolved
spec/admin.mediawiki Outdated Show resolved Hide resolved
server/admin/api.go Outdated Show resolved Hide resolved
dex/msgjson/types.go Outdated Show resolved Hide resolved
Add market endpoints: orderbook, epochorders, and matches.
Add orderbook, epochorders, and matches endpoints.
@chappjc chappjc merged commit 0ce3ec7 into decred:master Nov 18, 2020
@chappjc chappjc added this to the 0.2 milestone Jan 30, 2021
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.

server: admin api to get active orders
2 participants