Build a crypto asset page
Atom supports thousands of crypto assets, with more being added regularly. This guide will show you how to build your own crypto asset page using Atom's platform APIs. Your crypto page may be as simple or complex as you'd like, and you can customize the layout to match your desired UX and design language.
Note that a production key will give you access to popular crypto assets. Please reach out to your Atom representative if you're interested in additional crypto assets.
Add streaming prices
First, add trade metadata like current price, bid, ask, and volume to the crypto page. This can be accomplished in two ways:
Using streaming prices: This allows your app to update trade metadata in real time as new trades come in throughout the day. To do this, please refer to the Streaming prices endpoint.
Polling for price as needed: If you don't need real-time trade updates and would like to poll trades at your own cadence (e.g., on page load or every minute), please refer to the Price snapshot endpoint.
Be sure to set the Asset Type to crypto when calling price data for cryptocurrencies.
Add a historical price chart
Crypto price charts can be built using the Price history endpoint. Combine this with Streaming prices to create a chart that always shows the latest data point in real time.
Add asset metadata and overview statistics
Use the Crypto Overview endpoint to add all of the data you need to give your users high-level stats and details about a given cryptocurrency, including descriptive information, market data, and other metadata.
Add news to your crypto asset page
News provides constantly updated content and can keep users coming back to your app. To add news to a crypto page, use the News Feed endpoint, making sure to pass in the asset's identifier as a parameter. The endpoint will then return a feed of news tailored to that cryptocurrency. Please contact your Atom representative for access to the News Feed endpoint.
You can also check out our guide to creating custom news feeds for more information about options for adding news to your platform.
Updated 2 months ago