Skip to main content
GET
/
dexs
/
trades
/
{dex}
/
{pair}
DEX and Pair Trades
curl --request GET \
  --url https://mainnet.gomaestro-api.org/v1/markets/dexs/trades/{dex}/{pair} \
  --header 'api-key: <api-key>'
import requests

url = "https://mainnet.gomaestro-api.org/v1/markets/dexs/trades/{dex}/{pair}"

headers = {"api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'api-key': '<api-key>'}};

fetch('https://mainnet.gomaestro-api.org/v1/markets/dexs/trades/{dex}/{pair}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://mainnet.gomaestro-api.org/v1/markets/dexs/trades/{dex}/{pair}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://mainnet.gomaestro-api.org/v1/markets/dexs/trades/{dex}/{pair}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://mainnet.gomaestro-api.org/v1/markets/dexs/trades/{dex}/{pair}")
.header("api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://mainnet.gomaestro-api.org/v1/markets/dexs/trades/{dex}/{pair}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
[
  {
    "a_to_b": 123,
    "coin_a_price": 123,
    "coin_a_size": 123,
    "coin_b_price": 123,
    "coin_b_size": 123,
    "dex": "<string>",
    "pair": "<string>",
    "receiver_address": "<string>",
    "timestamp": "<string>",
    "transaction_hash": "<string>"
  }
]
{
"error": "Bad Request"
}
{
"error": "Bad Request"
}

Authorizations

api-key
string
header
required

Project API Key

Path Parameters

dex
string
required

minswap

pair
string
required

ADA-MIN

Query Parameters

from
string

2023-04-01

to
string

2023-05-15

limit
integer
default:5000

10000

Required range: 1 <= x <= 50000
sort
enum<string>

desc

Available options:
asc,
desc

Response

OK

a_to_b
integer

Direction of trade (1: Coin B received, 0: Coin A received)

coin_a_price
number

Coin A price

coin_a_size
number

Coin A size

coin_b_price
number

Coin B price

coin_b_size
number

Coin B size

dex
string

DEX

pair
string

Pair

receiver_address
string

Receiver address

timestamp
string

Trade timestamp

transaction_hash
string

Transaction hash