Maker Books
Get a maker book
The maker book at this PDA. 404 NOT_FOUND when no such book exists.
GET
/
v1
/
makerbook
/
{address}
Get a maker book
curl --request GET \
--url https://api.archer.exchange/v1/makerbook/{address} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.archer.exchange/v1/makerbook/{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/makerbook/{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/makerbook/{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/makerbook/{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/makerbook/{address}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.archer.exchange/v1/makerbook/{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{
"asks": [
{
"price": "150.050000",
"size": "10.000000000"
}
],
"baseMint": "So11111111111111111111111111111111111111112",
"baseQty": "125.000000000",
"bids": [
{
"price": "149.950000",
"size": "10.000000000"
},
{
"price": "149.500000",
"size": "25.000000000"
}
],
"makerBook": "DC9gaZyxgJtGyhH8V6nPDd71VB7aE3E7puCZRNqC3iWj",
"market": "u8tnfCb1JSSghuNFquQ2beStYgAN1kmd1f1Lhxbaec4",
"quoteMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"quoteQty": "18750.000000",
"user": "GLKCuotKSjPtQhxHmf6q8GUkw6tUZnzs8W5vEbxdaBdK"
}{
"error": "INVALID_PARAMS",
"message": "Invalid market address: xyz"
}{
"error": "NOT_FOUND",
"message": "Maker book not found: ..."
}{
"error": "RATE_LIMITED",
"message": "Too many requests. Please slow down."
}{
"error": "INTERNAL_ERROR",
"message": "Internal error: ..."
}Authorizations
Path Parameters
Maker book account (PDA).
Response
The maker book.
A maker book: balances (total deposits, free + locked) and resting levels, in human units.
Resting asks, lowest price first.
Show child attributes
Show child attributes
Example:
"So11111111111111111111111111111111111111112"
Base tokens deposited, free + locked (decimal string).
Example:
"125.000000000"
Resting bids, highest price first.
Show child attributes
Show child attributes
The maker book account (PDA).
Example:
"u8tnfCb1JSSghuNFquQ2beStYgAN1kmd1f1Lhxbaec4"
Example:
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
Quote tokens deposited, free + locked (decimal string).
Example:
"18750.000000"
The maker wallet that owns it.
Get a maker book
curl --request GET \
--url https://api.archer.exchange/v1/makerbook/{address} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.archer.exchange/v1/makerbook/{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/makerbook/{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/makerbook/{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/makerbook/{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/makerbook/{address}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.archer.exchange/v1/makerbook/{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{
"asks": [
{
"price": "150.050000",
"size": "10.000000000"
}
],
"baseMint": "So11111111111111111111111111111111111111112",
"baseQty": "125.000000000",
"bids": [
{
"price": "149.950000",
"size": "10.000000000"
},
{
"price": "149.500000",
"size": "25.000000000"
}
],
"makerBook": "DC9gaZyxgJtGyhH8V6nPDd71VB7aE3E7puCZRNqC3iWj",
"market": "u8tnfCb1JSSghuNFquQ2beStYgAN1kmd1f1Lhxbaec4",
"quoteMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"quoteQty": "18750.000000",
"user": "GLKCuotKSjPtQhxHmf6q8GUkw6tUZnzs8W5vEbxdaBdK"
}{
"error": "INVALID_PARAMS",
"message": "Invalid market address: xyz"
}{
"error": "NOT_FOUND",
"message": "Maker book not found: ..."
}{
"error": "RATE_LIMITED",
"message": "Too many requests. Please slow down."
}{
"error": "INTERNAL_ERROR",
"message": "Internal error: ..."
}