Hashrate IndexAPI DocumentationStocks

Get Stocks Trend

GET
/stocks/trend

/stocks/trend has rate limitation:

Initially, the API allows for a burst of 20 requests, and afterward, it gradually restores 1 request every 15 seconds until reaching the maximum allowable limit of 20. This limitation is imposed to manage and control the rate at which requests can be made to the API, preventing potential misuse or excessive use of resources.

Stock Market Trends

This endpoint provides detailed trend analysis for stocks, including technical indicators like Moving Averages and Bollinger Bands. This data helps investors and traders identify potential buying or selling opportunities based on market movements.

Authorization

ApiKeyAuth
X-Hi-Api-Key<token>

In: header

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/stocks/trend"
{  "$schema": "https://api.hashrateindex.com/v1/hashrateindex/schemas/StocksTrendData.json",  "data": [    {      "bollingerBandLower": 0,      "bollingerBandUpper": 0,      "companyName": "string",      "currency": "string",      "demarker": 0,      "lastPrice": 0,      "macd": 0,      "rsi": 0,      "slug": "string",      "sma100D": 0,      "sma50D": 0,      "sma5D": 0,      "ticker": "string"    }  ]}
{  "$schema": "https://api.hashrateindex.com/v1/hashrateindex/schemas/ErrorModel.json",  "detail": "Property foo is required but is missing.",  "errors": [    {      "location": "string",      "message": "string",      "value": null    }  ],  "instance": "https://example.com/error-log/abc123",  "status": 400,  "title": "Bad Request",  "type": "https://example.com/errors/example"}
{  "$schema": "https://api.hashrateindex.com/v1/hashrateindex/schemas/ErrorModel.json",  "detail": "Property foo is required but is missing.",  "errors": [    {      "location": "string",      "message": "string",      "value": null    }  ],  "instance": "https://example.com/error-log/abc123",  "status": 400,  "title": "Bad Request",  "type": "https://example.com/errors/example"}
{  "$schema": "https://api.hashrateindex.com/v1/hashrateindex/schemas/ErrorModel.json",  "detail": "Property foo is required but is missing.",  "errors": [    {      "location": "string",      "message": "string",      "value": null    }  ],  "instance": "https://example.com/error-log/abc123",  "status": 400,  "title": "Bad Request",  "type": "https://example.com/errors/example"}