Μετάβαση στο περιεχόμενο
GET /v1/trades

Recent public trades for a symbol

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/pacifica-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

curl "https://api.oanor.com/pacifica-api/v1/trades" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/pacifica-api/v1/trades", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/pacifica-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/pacifica-api/v1/trades",
    headers={"x-oanor-key": "oanor_test_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "count": 25,
        "symbol": "BTC",
        "trades": [
            {
                "side": "close_long",
                "price": 65924,
                "amount": 0.25532,
                "created_at": 1781522148592,
                "event_type": "fulfill_taker"
            },
            {
                "side": "close_short",
                "price": 65924,
                "amount": 0.25532,
                "created_at": 1781522148592,
                "event_type": "fulfill_maker"
            },
            {
                "side": "close_long",
                "price": 65924,
                "amount": 0.30049,
                "created_at": 1781522148592,
                "event_type": "fulfill_taker"
            },
            {
                "side": "close_short",
                "price": 65924,
                "amount": 0.30049,
                "created_at": 1781522148592,
                "event_type": "fulfill_maker"
            },
            {
                "side": "close_long",
                "price": 65924,
                "amount": 0.33794,
                "created_at": 1781522148592,
                "event_type": "fulfill_taker"
            },
            {
                "side": "close_short",
                "price": 65924,
                "amount": 0.33794,
                "created_at": 1781522148592,
                "event_type": "fulfill_maker"
            },
            {
                "side": "close_long",
                "price": 65924,
                "amount": 0.3753,
                "created_at": 1781522148592,
                "event_type": "fulfill_taker"
            },
            {
                "side": "close_short",
                "price": 65924,
                "amount": 0.3753,
                "created_at": 1781522148592,
                "event_type": "fulfill_maker"
            },
            {
                "side": "close_long",
                "price": 65924,
                "amount": 0.35429,
                "created_at": 1781522148592,
                "event_type": "fulfill_taker"
            },
            {
                "side": "close_short",
                "price": 65924,
                "amount": 0.35429,
                "created_at": 1781522148592,
                "event_type": "fulfill_maker"
            },
            {
                "side": "close_short",
                "price": 65922,
                "amount": 0.02131,
                "created_at": 1781522146415,
                "event_type": "fulfill_taker"
            },
            {
                "side": "open_short",
                "price": 65922,
                "amount": 0.02131,
                "created_at": 1781522146415,
                "event_type": "fulfill_maker"
            },
            {
                "side": "close_short",
                "price": 65914,
                "amount": 0.00023,
                "created_at": 1781522146415,
                "event_type": "fulfill_taker"
   
…