Retrieve SMA value with the Simple Moving Average Crypto Web API

The simple moving average (SMA) is an arithmetic moving average calculated by adding recent prices and then dividing that figure by the number of time periods in the calculation average.
This API returns the SMA value for a specific market and period.

The following markets are supported:
  • Bitcoin BTC
  • Ethereum ETH
  • Binance Coin BNB
  • Solana SOL
  • Cardano ADA
The following periods are supported:
  • 7
  • 9
  • 24
  • 26
  • 50
The following candle types can be used:
  • Candles
  • HeikinAshi

Request URL

Select GET and enter: in the Request URL.


You must authenticate every API request by including an "Ocp-Apim-Subscription-Key" header.
This header should include your API Key that has already been assigned the necessary permissions.
Click here for more information.

Request parameters

Add the following request parameters:
  • The amount of periods that will be averaged
  • Market for which the candle should be returned
  • The interval of the returned candles
  • Type of candle

Postman Example

In the following example is Postman used to retrieve the SMA value but you can also use other tools or languages.


Postman - Heikin Ashi Candles API