Technical Indicator
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/market/price-indicatorimport requests
url = "https://api.asksurf.ai/gateway/v1/market/price-indicator"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/market/price-indicator', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"interval": "<string>",
"name": "<string>",
"symbol": "<string>",
"value": 123,
"timestamp": 123,
"updated_at": 123,
"values": {
"bbands_lower": 123,
"bbands_middle": 123,
"bbands_upper": 123,
"dmi_adx": 123,
"dmi_mdi": 123,
"dmi_pdi": 123,
"ichimoku_base": 123,
"ichimoku_conversion": 123,
"ichimoku_current_span_a": 123,
"ichimoku_current_span_b": 123,
"ichimoku_lagging_span_a": 123,
"ichimoku_lagging_span_b": 123,
"ichimoku_span_a": 123,
"ichimoku_span_b": 123,
"macd_hist": 123,
"macd_signal": 123,
"macd_value": 123,
"stoch_d": 123,
"stoch_k": 123,
"supertrend_advice": "<string>",
"supertrend_value": 123
}
}
],
"meta": {
"cached": true,
"credits_used": 123
},
"$schema": "https://example.com/schemas/SimpleListResponseMarketIndicatorItem.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}Market
Technical Indicator
GET
/
gateway
/
v1
/
market
/
price-indicator
Technical Indicator
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/market/price-indicatorimport requests
url = "https://api.asksurf.ai/gateway/v1/market/price-indicator"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/market/price-indicator', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"interval": "<string>",
"name": "<string>",
"symbol": "<string>",
"value": 123,
"timestamp": 123,
"updated_at": 123,
"values": {
"bbands_lower": 123,
"bbands_middle": 123,
"bbands_upper": 123,
"dmi_adx": 123,
"dmi_mdi": 123,
"dmi_pdi": 123,
"ichimoku_base": 123,
"ichimoku_conversion": 123,
"ichimoku_current_span_a": 123,
"ichimoku_current_span_b": 123,
"ichimoku_lagging_span_a": 123,
"ichimoku_lagging_span_b": 123,
"ichimoku_span_a": 123,
"ichimoku_span_b": 123,
"macd_hist": 123,
"macd_signal": 123,
"macd_value": 123,
"stoch_d": 123,
"stoch_k": 123,
"supertrend_advice": "<string>",
"supertrend_value": 123
}
}
],
"meta": {
"cached": true,
"credits_used": 123
},
"$schema": "https://example.com/schemas/SimpleListResponseMarketIndicatorItem.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}Query Parameters
Indicator-specific options as comma-separated key:value pairs. Available options by indicator: period — lookback period for rsi (default 14), sma (default 20), ema (default 20), bbands (default 20), adx (default 14), atr (default 14), cci (default 20), dmi (default 14), stoch (default 14), supertrend (default 10). stddev — standard deviation for bbands (default 2). multiplier — multiplier for supertrend (default 3). fast_period — MACD fast EMA (default 12). slow_period — MACD slow EMA (default 26). signal_period — MACD signal smoothing (default 9). Examples: period:7, period:200, fast_period:8,slow_period:21,signal_period:5, period:10,stddev:1.5.
Example:
"period:7"