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
  • XRP XRP
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: https://api.coinslosh.com/sma/v1/ in the Request URL.

Authentication

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.

GET https://api.coinslosh.com/sma/v1/?period=9&market=ETH-EUR&interval=30m&type=Candles

Postman - Heikin Ashi Candles API