/v1/trades
Recent trades for a symbol
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/phemex-api/v1/trades" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/phemex-api/v1/trades", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/phemex-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/phemex-api/v1/trades",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"count": 50,
"symbol": "BTCUSDT",
"trades": [
{
"qty": 0.275,
"side": "Sell",
"price": 65891.5,
"timestamp": 1781522130305432600
},
{
"qty": 0.2,
"side": "Sell",
"price": 65890.2,
"timestamp": 1781522129040714200
},
{
"qty": 0.001,
"side": "Buy",
"price": 65889.7,
"timestamp": 1781522128902042400
},
{
"qty": 0.067,
"side": "Sell",
"price": 65890.5,
"timestamp": 1781522127872530700
},
{
"qty": 0.002,
"side": "Sell",
"price": 65890.5,
"timestamp": 1781522127872530700
},
{
"qty": 0.005,
"side": "Sell",
"price": 65890.5,
"timestamp": 1781522127872530700
},
{
"qty": 0.116,
"side": "Sell",
"price": 65890.5,
"timestamp": 1781522127872530700
},
{
"qty": 0.01,
"side": "Sell",
"price": 65890.5,
"timestamp": 1781522127872530700
},
{
"qty": 0.025,
"side": "Sell",
"price": 65890.5,
"timestamp": 1781522126586228700
},
{
"qty": 0.039,
"side": "Sell",
"price": 65890.5,
"timestamp": 1781522126586228700
},
{
"qty": 0.134,
"side": "Sell",
"price": 65890.5,
"timestamp": 1781522126586228700
},
{
"qty": 0.002,
"side": "Sell",
"price": 65890.5,
"timestamp": 1781522126586228700
},
{
"qty": 0.136,
"side": "Sell",
"price": 65892,
"timestamp": 1781522125249353500
},
{
"qty": 0.067,
"side": "Sell",
"price": 65892,
"timestamp": 1781522124890966800
},
{
"qty": 0.006,
"side": "Sell",
"price": 65892,
"timestamp": 1781522124887496400
},
{
"qty": 0.001,
"side": "Sell",
"price": 65892,
"timestamp": 1781522124874879200
},
{
"qty": 0.281,
"side": "Sell",
"price": 65894.7,
"timestamp": 178
…