GET
https://api.cryptohopper.com/v1/hopper/{id}/reserved
Returns the reserved positions of the hopper: coin amounts moved out of the open positions and set aside.
OAuth scope:
read About scopes
base is the pair without the coin, so the quote currency. Numbers keep their full stored precision. Not available for exchange arbitrage, market maker, copy and grid bots.
Example request
curl "https://api.cryptohopper.com/v1/hopper/HOPPER_ID/reserved" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/hopper/HOPPER_ID/reserved', {
method: 'GET',
headers: {
"access-token": "YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
import requests
response = requests.get(
"https://api.cryptohopper.com/v1/hopper/HOPPER_ID/reserved",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/hopper/HOPPER_ID/reserved');
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. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id |
string | Required | Hopper ID. |
Response
{
"data": [
{
"id": "55501",
"exchange": "binance",
"pair": "ETHUSDT",
"amount": "0.2500000000000000",
"rate": "3120.4500000000000000",
"val": "780.1125000000000000",
"btc": "0.0000000000000000",
"buy_time": "1758790000",
"currency": "ETH",
"base": "USDT"
}
]
}