GET
https://api.cryptohopper.com/v1/hopper/{id}/arbitrage/market/history/{start}/{limit}
Meant to return the finished market arbitrages of an arbitrage bot, one page at a time.
OAuth scope:
read About scopes
This path is currently routed to the same handler as GET /hopper/{id}/arbitrage/exchange/history/{start}/{limit}, so it returns finished exchange arbitrages, not market arbitrages.
Example request
curl "https://api.cryptohopper.com/v1/hopper/HOPPER_ID/arbitrage/market/history/START/LIMIT" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/hopper/HOPPER_ID/arbitrage/market/history/START/LIMIT', {
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/arbitrage/market/history/START/LIMIT",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/hopper/HOPPER_ID/arbitrage/market/history/START/LIMIT');
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 |
|---|---|---|---|
limit |
string | Required | Maximum number of arbitrages to return, at most 500. |
start |
string | Required | Number of arbitrages to skip (offset), 0 for the first page. |
id |
string | Required | Hopper ID of an arbitrage bot. |