Returns an object containing the latest trade for a crypto pair on an exchange.
{
"exchange": "coinbasepro",
"market": "BTC/USD",
"id": "279363545",
"timestamp": "1644525461042",
"price": 43990.48,
"size": 0.00608355,
"cost": 267.618284604,
"side": "buy"
}
{
"Unauthorized": "Invaild API Key"
}
curl -H "apiKey: API KEY" https://api.abyiss.com/v1/coinbasepro/BTC-USD/lasttrade
import urllib.request
url = "https://api.abyiss.com/v1/coinbasepro/BTC-USD/lasttrade?apiKey=*"
print(urllib.request.urlopen(url).read())
fetch("https://api.abyiss.com/v1/coinbasepro/BTC-USD/lasttrade?apiKey=*")
.then(response => response.json())
.then(data => console.log(data))
require('axios')
.get("https://api.abyiss.com/v1/coinbasepro/BTC-USD/lasttrade?apiKey=*")
.then(response => console.log(response))
require 'net/http'
uri = URI("https://api.abyiss.com/v1/coinbasepro/BTC-USD/lasttrade?apiKey=*")
puts Net::HTTP.get(uri)
{
"exchange": "coinbasepro",
"market": "BTC/USD",
"id": "279363545",
"timestamp": "1644525461042",
"price": 43990.48,
"size": 0.00608355,
"cost": 267.618284604,
"side": "buy"
}