Skip to content
No description, website, or topics provided.
JavaScript Vue HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
CONTRIBUTING.md
LICENSE
README.md
index.html
package-lock.json
package.json
webpack.config.js

README.md

Trading Platform Example

This project aims at:

  • showcasing some of the capabilities of Amberdata's Blockchain and Market Data API
  • serving as a starter project for how to use the APIs & websockets
  • starting conversations, generating new ideas and trying new features

Build Setup

Install dependencies

npm install --no-optional

Serve with hot reload at localhost:8080

npm run dev

Once the web application has been started, it will be available at:

http://localhost:8080

Build for production with minification

npm run build

Configuration (environment variables):

For example:

API_KEY=<your_api_key_here> npm run dev

Features

All features (for the exception of one) are live, meaning they request live data from Amberdata's Data API, either via REST endpoints or websockets.

Thanks to that, all dashboards are automatically updated when new data comes in.

Market Data Summary

Summary

This is the main dashboard, which provides a quick summary of all the market data supported features:

  • which exchanges are available
  • with their respective pairs and metrics

More often than not, users are interested in a specific pair, not an exchange directly, and this is when the second tab called "Pairs" comes in handy.

Summary (pairs)

Notice that:

  • not all exchanges support all pairs (in fact, quite often a pair is only supported by one exchange)
  • not all exchanges support all the metrics (some do not support tickers, or OHLCV for example)

OHLCV

This is the main dashboard to visualize price data for each (supported) pair. This includes the standard features:

  • open, high, low, close and volume
  • ability to zoom in to take a closer look at a specific point in time
  • daily, hourly and minutely timeframes are supported

OHLCV (daily) OHLCV (hourly)

Market Depth

Market Depth

This chart is updated every minute - the next iteration will be integrated with websockets and be full real-time.

Blockchain Data

The most interesting feature here is the token transfers analysis. This chart aims at looking at any pending token transfers, ie token transfers which have not been finalized yet.

When compared to the ratio of token transfers which have been confirmed on the blockchain, this can be used as a predictive tool, for example:

  • an imminent increase of token transfers could indicate a liquidation event, most likely to have an impact on the token price
  • as would a sudden drop in token transfers

Of course, not all tokens are create equals, and different behaviors can be observed: Token Transfers Token Transfers

Arbitrage

In this section, we try to identify arbitrage opportunities. Note that these are very simple, and used for showcasing the capabilities of the API, but are nowhere intended to be used in a professional setting.

Arbitrage

Unusual bid-ask spread are highlighted in red. Arbitrage opportunities are highlighted in blue - the heuristic used the is 1% (or more) of the range difference between all the prices of the a pair.

Conclusion

We hope this project achieved some (if not all!) of the goals mentioned at the beginning, and as always we are looking forward to your comments and feedback!

Things on our list:

  • Burn and mint events
  • Best Bid Offers
  • Triangular Arbitrage
  • ...

And looking forward to whatever it is that you will build on top of Amberdata's APIs !!!

Resources

Licensing

This project is licensed under the Apache Licence 2.0.

You can’t perform that action at this time.