POST
https://api.cryptohopper.com/v1/template/market/{template_id}/load/{hopper_id}
Loads a template the user bought on the Marketplace into one of the user's bots. The bot's config, config pools, triggers and signal subscriptions are replaced by those of the template; the bot keeps its exchange, base currency, API keys and paper trading setting.
OAuth scope:
read manage About scopes
An AI Bot template only loads into an AI Bot and a grid template only into a Grid Bot. When a paid signal of the template has no active subscription, the message asks the user to pay for it.
Example request
curl -X POST "https://api.cryptohopper.com/v1/template/market/TEMPLATE_ID/load/HOPPER_ID" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/template/market/TEMPLATE_ID/load/HOPPER_ID', {
method: 'POST',
headers: {
"access-token": "YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
import requests
response = requests.post(
"https://api.cryptohopper.com/v1/template/market/TEMPLATE_ID/load/HOPPER_ID",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/template/market/TEMPLATE_ID/load/HOPPER_ID');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
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. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
hopper_id |
string | Required | ID of the bot (hopper) to load the template into. |
template_id |
string | Required | ID of the market template (template_id from Get market templates). |
Response
{
"data": "The market template has been loaded into the hopper."
}