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:
The following candle types can be used:
Select GET and enter: https://api.coinslosh.com/sma/v1/
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.
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
In the following example is Postman
used to retrieve the SMA value but you can also use other tools or languages.