Get market details
Returns the configuration and metadata for a single market. The one-or-none form of GET /v1/markets?address={address}: the bare market object for an active market, 404 MARKET_NOT_FOUND otherwise, with no list envelope to unwrap.
curl --request GET \
--url https://api.archer.exchange/v1/markets/{address} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.archer.exchange/v1/markets/{address}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.archer.exchange/v1/markets/{address}', 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://api.archer.exchange/v1/markets/{address}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-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://api.archer.exchange/v1/markets/{address}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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://api.archer.exchange/v1/markets/{address}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.archer.exchange/v1/markets/{address}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"address": "u8tnfCb1JSSghuNFquQ2beStYgAN1kmd1f1Lhxbaec4",
"baseToken": {
"decimals": 9,
"logoUri": "<string>",
"mint": "So11111111111111111111111111111111111111112",
"name": "Wrapped SOL",
"symbol": "wSOL"
},
"createdAt": "<string>",
"makerFeePpm": 123,
"minOrderSize": "<string>",
"quoteToken": {
"decimals": 9,
"logoUri": "<string>",
"mint": "So11111111111111111111111111111111111111112",
"name": "Wrapped SOL",
"symbol": "wSOL"
},
"status": "active",
"takerFeePpm": 123,
"tickSize": "<string>",
"limitOrdersEnabled": true
}{
"error": "INVALID_PARAMS",
"message": "Invalid market address: xyz"
}{
"error": "MARKET_NOT_FOUND",
"message": "Market not found: 5Ggx...abc"
}{
"error": "RATE_LIMITED",
"message": "Too many requests. Please slow down."
}Authorizations
Path Parameters
Base58-encoded Solana address of the market.
Response
Market details.
Base58-encoded Solana address of the market.
"u8tnfCb1JSSghuNFquQ2beStYgAN1kmd1f1Lhxbaec4"
Show child attributes
Show child attributes
ISO 8601 timestamp of market creation.
Signed maker fee in parts per million: positive means the maker pays, negative means the maker is rebated. This is the fee a resting limit order pays or earns.
Minimum order size in base tokens (decimal string).
Show child attributes
Show child attributes
On-chain market status. frozen is an emergency stop: swaps, maker withdrawals and fee collection are halted until the market is moved back to paused.
active, paused, closed, frozen Taker fee in parts per million (e.g., 1000 = 0.1%).
Minimum price increment (decimal string).
Whether the market has a maker registry, which placing a limit order requires. false means limit orders cannot be placed here (cancelling an existing one still works).
curl --request GET \
--url https://api.archer.exchange/v1/markets/{address} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.archer.exchange/v1/markets/{address}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.archer.exchange/v1/markets/{address}', 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://api.archer.exchange/v1/markets/{address}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-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://api.archer.exchange/v1/markets/{address}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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://api.archer.exchange/v1/markets/{address}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.archer.exchange/v1/markets/{address}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"address": "u8tnfCb1JSSghuNFquQ2beStYgAN1kmd1f1Lhxbaec4",
"baseToken": {
"decimals": 9,
"logoUri": "<string>",
"mint": "So11111111111111111111111111111111111111112",
"name": "Wrapped SOL",
"symbol": "wSOL"
},
"createdAt": "<string>",
"makerFeePpm": 123,
"minOrderSize": "<string>",
"quoteToken": {
"decimals": 9,
"logoUri": "<string>",
"mint": "So11111111111111111111111111111111111111112",
"name": "Wrapped SOL",
"symbol": "wSOL"
},
"status": "active",
"takerFeePpm": 123,
"tickSize": "<string>",
"limitOrdersEnabled": true
}{
"error": "INVALID_PARAMS",
"message": "Invalid market address: xyz"
}{
"error": "MARKET_NOT_FOUND",
"message": "Market not found: 5Ggx...abc"
}{
"error": "RATE_LIMITED",
"message": "Too many requests. Please slow down."
}