Returns an object with recent trades for a crypto pair on an exchange.
{
"exchange": "coinbasepro",
"market": "BTC/USD",
"trades": [
{
"id": "279352169",
"timestamp": "1644524462830",
"price": 44322.55,
"size": 0.02209576,
"cost": 979.340427388,
"side": "buy"
},
{
"id": "279352170",
"timestamp": "1644524463216",
"price": 44322.55,
"size": 0.00030296,
"cost": 13.427959748000001,
"side": "buy"
},
]
}
{
"Unauthorized": "Invaild API Key"
}
curl -H "apiKey: API KEY" https://api.abyiss.com/v1/coinbasepro/BTC-USD/trades
from Abyiss import Abyiss
apiKey = "YOUR API KEY"
client = Abyiss.Client(apiKey)
trades = client.trades("coinbasepro", "BTC-USD", "250")
print(trades)
fetch("https://api.abyiss.com/v1/coinbasepro/BTC-USD/trades?apiKey=*")
.then(response => response.json())
.then(data => console.log(data))
require('axios')
.get("https://api.abyiss.com/v1/coinbasepro/BTC-USD/trades?apiKey=*")
.then(response => console.log(response))
require 'net/http'
uri = URI("https://api.abyiss.com/v1/coinbasepro/BTC-USD/trades?apiKey=*")
puts Net::HTTP.get(uri)
{
"exchange": "coinbasepro",
"market": "BTC/USD",
"trades": [
{
"id": "279352169",
"timestamp": "1644524462830",
"price": 44322.55,
"size": 0.02209576,
"cost": 979.340427388,
"side": "buy"
},
]
}