@imwatsi shares an update on the development of the Hive DEX API.
I’m pleased to announce that the Hive DEX API (beta) is now live. It is based on HAF and provides endpoints with market data on the internal decentralized exchange for the HIVE/HBD market.
I designed this API according to Coingecko’s guidelines for possible inclusion on their platform.
What’s new?
With this API, we can leverage the datasets provided by HAF to bring extra data about the internal HBD-HIVE exchange such as:
- Ticker data
- Candlestick data
- More analysis-based endpoints such as for account trading activity, open orders by account, liquidity stats
Features like these will give traders and trading platforms a more detailed look into the decentralized exchange we have and give traders more data to inform their decisions.
Endpoints
The following endpoints are available.
/pairs
This returns the list of available market pairs. (Currently, only HIVE-HBD is available)
Example response:
{
"timezone": "UTC",
"server_time": "2022-11-07T04:57:24",
"symbols": [
{
"ticker": "HIVE_HBD",
"base": "HIVE",
"quote": "HBD"
}
]
}
/orderbook
Returns bids and asks orders that are currently open. Supports custom depth of orderbook, default is 10.
Example response:
{
"timezone": "UTC",
"server_time": "2022-11-07T04:58:05",
"bids": [
[
"0.489209",
"9.035"
],
…
],
"asks": [
[
"0.490401",
"7802.516"
],
…
]
}
/tickers
Returns ticker information for the ticker_id provided. Data returned includes 24 hour stats on trades and prices (high, low, volume, etc)
Example response:
{
"timezone": "UTC",
"server_time": "2022-11-07T14:51:29",
"ticker_id": "HIVE_HBD",
"base_currency": "HIVE",
"quote_currency": "HBD",
"data": {
"ask": 0.487734,
"bid": 0.486077,
"low": 0.475309,
"high": 0.512195,
"last_price": 0.486035,
"base_volume": 47592,
"quote_volume": 56073
}
}
Current Issues
The orderbook is showing a few discrepancies when compared to the one on the Hive nodes. I am investigating the issue.
What’s next?
- Liquidity of order books
- Candlestick data endpoints
- Historical trades
- Open orders by account
- Account based analysis (for example highest volume account)
by @imwatsi - Co-Founder | CEO | Blockchain Developer
Vote for our witness
Witness Name: @imwatsi
We're glad to be building on Hive.
Follow the @freebeings account for more updates.
Can a DEX offer Visa or Mastercard cards?
No, the DEX is the internal decentralized exchange market we have for HIVE-HBD and this API provides access to data about trading activity on there.
thanks for the great work!
@tipu curate
Great to see a new DEC taking shape on the Hive blockchain. Keep it up!
Thanks
This is huge! With this API, Coingecko can finally display accurate prices and the market capitalization should also increase significantly. Hopefully they'll implement this asap. Thank's for your work!
I appreciate your hard effort.
Very interesting. The integration with Coingeko is getting prices from CG or CG will poll state from dex?
CG will poll state from the DEX
Very nice
Great one!
Thanks
A good project so far.
Thanks
I am glad that the Hive DEX API new version is out now y'all just made things easy for users in the Blockchain.
$WINE
Congratulations, @theguruasia You Successfully Shared 0.800 WINEX With @freebeings.
You Earned 0.800 WINEX As Curation Reward.
You Utilized 4/4 Successful Calls.
Contact Us : WINEX Token Discord Channel
WINEX Current Market Price : 0.250
Swap Your Hive <=> Swap.Hive With Industry Lowest Fee (0.1%) : Click This Link
Read Latest Updates Or Contact Us
@freebeings! The Hive.Pizza team manually upvoted your post.
Join us in Discord!
~~~ embed:1589657601834295296 twitter metadata:MTQyOTQxNTI0NjEyOTcyOTUzOHx8aHR0cHM6Ly90d2l0dGVyLmNvbS8xNDI5NDE1MjQ2MTI5NzI5NTM4L3N0YXR1cy8xNTg5NjU3NjAxODM0Mjk1Mjk2fA== ~~~
~~~ embed:1590140795910492160 twitter metadata:MTA2NjgxNjU2MTAyODE4MjAxNnx8aHR0cHM6Ly90d2l0dGVyLmNvbS8xMDY2ODE2NTYxMDI4MTgyMDE2L3N0YXR1cy8xNTkwMTQwNzk1OTEwNDkyMTYwfA== ~~~
~~~ embed:1590482917771608065 twitter metadata:MTUyNzE4NTY3OTU0OTM0NTc5Mnx8aHR0cHM6Ly90d2l0dGVyLmNvbS8xNTI3MTg1Njc5NTQ5MzQ1NzkyL3N0YXR1cy8xNTkwNDgyOTE3NzcxNjA4MDY1fA== ~~~
The rewards earned on this comment will go directly to the people( @shiftrox, @michupa, @steemadi, @jomancub, @fabian98, @documentinghive ) sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.
Congratulations @freebeings! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):
Your next target is to reach 20 posts.
Your next target is to reach 600 upvotes.
You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP
To support your work, I also upvoted your post!
Check out the last post from @hivebuzz:
Support the HiveBuzz project. Vote for our proposal!
Congratulations @freebeings! Your post has been a top performer on the Hive blockchain and you have been rewarded with the following badge:
You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP
Check out the last post from @hivebuzz:
Support the HiveBuzz project. Vote for our proposal!
Tiembla binance 😎😄
great for good blockchain hive
Interesante mucho exito hay mucho por explorar
❤️
Congratulations @freebeings!
You raised your level and are now a Minnow!
Support the HiveBuzz project. Vote for our proposal!
Banyak sesuatu yang baru yang perlu saya ketahui terima kasih
Thank you so much for your support of my @v4vapp proposals in the past, my previous one expired this week.
I'd be really happy if you would continue supporting my work by voting on this proposal for the next 6 months:
Additionally you can also help this work with a vote for Brianoflondon's Witness using KeyChain or HiveSigner
If you have used v4v.app I'd really like to hear your feedback, and if you haven't I'd be happy to hear why or whether there are other things you want it to do.
hey man i saw your comment i came for support i am waiting for your support thank you
The rewards earned on this comment will go directly to the people sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.