Skip to main content
GET
/
updates
Updates
curl --request GET \
  --url https://api.amberdata.com/arc/updates \
  --header 'x-api-key: <api-key>'
import requests

url = "https://api.amberdata.com/arc/updates"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://api.amberdata.com/arc/updates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.amberdata.com/arc/updates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.amberdata.com/arc/updates"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.amberdata.com/arc/updates")
.header("x-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.amberdata.com/arc/updates")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "metadata": {
      "next": null
    },
    "data": {
      "updateType": "instruments",
      "updates": [
        {
          "arcInstrumentId": "AMB:GRA000000002_AMB:USD000000335",
          "arcInstrument": "grass_usdt",
          "baseAssetSymbol": "grass",
          "nativeInstrument": "GRASSUSDT",
          "exchange": "bitget",
          "assetName": "Grass",
          "assetArcId": "AMB:GRA000000002",
          "quoteArcId": "AMB:USD000000335",
          "instrumentType": "spot"
        },
        {
          "arcInstrumentId": "AMB:GRA000000002_AMB:USD000000335",
          "arcInstrument": "grass_usdt",
          "baseAssetSymbol": "grass",
          "nativeInstrument": "GRASSUSDT",
          "exchange": "bybit",
          "assetName": "Grass",
          "assetArcId": "AMB:GRA000000002",
          "quoteArcId": "AMB:USD000000335",
          "instrumentType": "spot"
        },
        {
          "arcInstrumentId": "AMB:GRA000000002_AMB:USD000000335",
          "arcInstrument": "grass_usdt",
          "baseAssetSymbol": "grass",
          "nativeInstrument": "GRASS/USDT",
          "exchange": "huobi",
          "assetName": "Grass",
          "assetArcId": "AMB:GRA000000002",
          "quoteArcId": "AMB:USD000000335",
          "instrumentType": "spot"
        },
        {
          "arcInstrumentId": "AMB:GRA000000002_AMB:USD000000335",
          "arcInstrument": "grass_usdt",
          "baseAssetSymbol": "grass",
          "nativeInstrument": "GRASSUSDT",
          "exchange": "mexc",
          "assetName": "Grass",
          "assetArcId": "AMB:GRA000000002",
          "quoteArcId": "AMB:USD000000335",
          "instrumentType": "spot"
        },
        {
          "arcInstrumentId": "AMB:GRA000000002_AMB:USD000000335",
          "arcInstrument": "grass_usdt",
          "baseAssetSymbol": "grass",
          "nativeInstrument": "GRASS_USDT",
          "exchange": "poloniex",
          "assetName": "Grass",
          "assetArcId": "AMB:GRA000000002",
          "quoteArcId": "AMB:USD000000335",
          "instrumentType": "spot"
        }
      ]
    }
  }
}

Authorizations

x-api-key
string
header
default:API_KEY
required

Query Parameters

groupBy
enum<string>
default:assets
Available options:
assets,
instruments
timeFormat
enum<string>

Represent timestamps in epoch milliseconds or human readable ISO format.

Available options:
iso8601
updatesSince
enum<string>

Look back cutoff for updates made to the ARC dataset, represented in ISO format.

P1D represents 24 hrs (1 day) and P7D represents 7 days.

Available options:
P1D,
P7D

Response

200 - application/json

200

status
integer
default:0
Example:

200

title
string
Example:

"OK"

description
string
Example:

"Successful request"

payload
object