GET
https://api.cryptohopper.com/v1/market/homepage
Returns the item sections of the marketplace homepage: featured items, editor's picks, top signals and best rated strategies and templates. Items in each section are shuffled, and the result is cached for 5 minutes.
OAuth scope:
read About scopes
A section is an empty list when nothing is selected for it. A home_best_rated_signals section is added when one is configured; its items also have avg_profit_trade.
Example request
curl "https://api.cryptohopper.com/v1/market/homepage" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/market/homepage', {
method: 'GET',
headers: {
"access-token": "YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
import requests
response = requests.get(
"https://api.cryptohopper.com/v1/market/homepage",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/market/homepage');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'access-token: YOUR_ACCESS_TOKEN',
],
]);
$data = json_decode(curl_exec($ch), true);
Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
access-token |
string | Required | The OAuth access token of the user. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
in_app |
string | Optional | Set to 1 to get the selection made for the mobile app. Leave it out, or send 0, for the website selection. |
Response
{
"data": {
"featured_home": [
{
"id": "10512",
"item_type": "template",
"logo": "https://cdn.cryptohopper.com/images/marketplace/10512.png",
"name": "Binance Swing Trader",
"description": "Swing trading template for major USDT pairs.",
"total_votes": "12",
"rating": "4.50000",
"sales": "340",
"price": "19.00",
"available_in_app": "1"
}
],
"home_editors_pick": [],
"home_top_signals": [
{
"id": "42",
"item_type": "signal",
"logo": "https://cdn.cryptohopper.com/images/signals/42.png",
"name": "Alpha Signals",
"description": null,
"total_votes": "8",
"rating": "4.25000",
"sales": null,
"price": "29.00",
"available_in_app": "1"
}
],
"home_best_rated_strategies": [],
"home_best_rated_templates": [
{
"id": "10512",
"item_type": "template",
"logo": "https://cdn.cryptohopper.com/images/marketplace/10512.png",
"name": "Binance Swing Trader",
"description": "Swing trading template for major USDT pairs.",
"total_votes": "12",
"rating": "4.50000",
"sales": "340",
"price": "19.00",
"available_in_app": "1"
}
]
}
}