POST
https://api.cryptohopper.com/v1/market/strategies/{strategy_id}/review
Meant to post your review of a strategy you bought or downloaded.
OAuth scope:
read manage About scopes
In the current code this request is always rejected with a 400 error "Incorrect market item type.": the handler passes an item type variable that is never set.
Example request
curl -X POST "https://api.cryptohopper.com/v1/market/strategies/STRATEGY_ID/review" \
-H "access-token: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"review_name":"Steady results","review":"Running it on Binance for two months without issues.","rating":4}'
const response = await fetch('https://api.cryptohopper.com/v1/market/strategies/STRATEGY_ID/review', {
method: 'POST',
headers: {
"access-token": "YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"review_name": "Steady results",
"review": "Running it on Binance for two months without issues.",
"rating": 4
})
});
const data = await response.json();
import requests
response = requests.post(
"https://api.cryptohopper.com/v1/market/strategies/STRATEGY_ID/review",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
json={
"review_name": "Steady results",
"review": "Running it on Binance for two months without issues.",
"rating": 4
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/market/strategies/STRATEGY_ID/review');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'access-token: YOUR_ACCESS_TOKEN',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'review_name' => 'Steady results',
'review' => 'Running it on Binance for two months without issues.',
'rating' => 4,
]),
]);
$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 |
|---|---|---|---|
strategy_id |
string | Required | Marketplace item ID of the strategy. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
review_name | string | Optional | |
review | string | Optional | |
rating | number | Optional | Between 0 and 5. |