Naar de inhoud
GET /v1/trades

Most recent executed trades for a pair

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/indodax-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/indodax-api/v1/trades" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/indodax-api/v1/trades", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/indodax-api/v1/trades");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/indodax-api/v1/trades",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "pair": "btcidr",
        "count": 20,
        "source": "Indodax",
        "trades": [
            {
                "id": "72057594142085528",
                "side": "buy",
                "time": 1781132167,
                "price": 1110312000,
                "amount": 8.96e-6
            },
            {
                "id": "72057594142085516",
                "side": "buy",
                "time": 1781132151,
                "price": 1110745000,
                "amount": 8.96e-6
            },
            {
                "id": "72057594142085493",
                "side": "sell",
                "time": 1781132134,
                "price": 1110745000,
                "amount": 9.0e-6
            },
            {
                "id": "72057594142085490",
                "side": "buy",
                "time": 1781132130,
                "price": 1111816000,
                "amount": 8.95e-6
            },
            {
                "id": "72057594142085486",
                "side": "buy",
                "time": 1781132129,
                "price": 1111817000,
                "amount": 8.95e-6
            },
            {
                "id": "72057594142085418",
                "side": "buy",
                "time": 1781132086,
                "price": 1110312000,
                "amount": 7.699e-5
            },
            {
                "id": "72057594142085419",
                "side": "buy",
                "time": 1781132086,
                "price": 1110765000,
                "amount": 0.0080178
            },
            {
                "id": "72057594142085405",
                "side": "buy",
                "time": 1781132065,
                "price": 1110312000,
                "amount": 1.345e-5
            },
            {
                "id": "72057594142085380",
                "side": "sell",
                "time": 1781132036,
                "price": 1110311000,
                "amount": 1.328e-5
            },
            {
                "id": "72057594142085373",
                "side": "sell",
                "time": 1781132020,
                "price": 1110311000,
                "amount": 8.758e-5
            },
            {
                "id": "72057594142085371",
                "side": "buy",
                "time": 1781132015,
                "price": 1110312000,
                "amount": 0.000154
            },
            {
                "id": "72057594142085276",
                "side": "buy",
                "time": 1781131925,
                "price": 1111473000,
                "amount": 0.00018488
            },
            {
                "id": "72057594142085275",
                "side": "buy",
                "time": 1781131923,
                "price": 1111473000,
                "amount": 0.0003584
            },
            {
                "id": "72057594142085270",
                "side": "sell",
                "time": 1781131919,
                "pr
…