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

expose api which return all database data #15

Merged
merged 2 commits into from
Jan 30, 2023

Conversation

vipulsharma21
Copy link

Why this should be merged

It exposes an api to get all data present in orderbook database

How this works

example api call

curl -X POST --data '{
"jsonrpc":"2.0",
"id" :1,
"method" :"orderbook_getOrderBookData",
"params" :[]
}' -H 'content-type:application/json;' http://127.0.0.1:9650/ext/bc/2QVZLgXSs9ZhcUWgppD543x4iw5oCSrXtasU7Yns21SL2Mgu87/rpc

How this was tested

I populated the local database with some data and verified it with the api call above.

plugin/evm/service.go Outdated Show resolved Hide resolved
plugin/evm/limitorders/memory_database.go Outdated Show resolved Hide resolved
@vipulsharma21 vipulsharma21 merged commit 84d9517 into hubble-v2 Jan 30, 2023
@vipulsharma21 vipulsharma21 deleted the orderbook_data_api branch January 30, 2023 08:50
atvanguard pushed a commit that referenced this pull request Sep 30, 2023
expose api which return all database data
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.

3 participants