Get maker vault balances
Returns the owner’s maker vault balances (free/locked, base/quote) on a market, in human units. Returns zeros and exists:false when no maker book exists for the pair.
curl --request GET \
--url https://api.archer.exchange/v1/maker/account \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.archer.exchange/v1/maker/account"
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/maker/account', 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/maker/account",
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/maker/account"
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/maker/account")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.archer.exchange/v1/maker/account")
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{
"baseFree": "<string>",
"baseLocked": "<string>",
"exists": true,
"market": "u8tnfCb1JSSghuNFquQ2beStYgAN1kmd1f1Lhxbaec4",
"owner": "<string>",
"quoteFree": "<string>",
"quoteLocked": "<string>"
}{
"error": "INVALID_PARAMS",
"message": "Invalid market address: xyz"
}{
"error": "INVALID_PARAMS",
"message": "<string>"
}{
"error": "MARKET_NOT_FOUND",
"message": "Market not found: 5Ggx...abc"
}Authorizations
Query Parameters
Maker book owner wallet. For a book owned by an ArcherAccount, pass the account's address here — the book is keyed by its maker of record. Passing a wallet whose ArcherAccount owns books, instead of the account address, returns 400 INVALID_PARAMS naming the account address to use, rather than an empty result.
Market address.
Response
Maker vault balances.
Base tokens free to withdraw / lock into new asks (human units).
Base tokens locked behind resting ask orders.
Whether a maker book exists for this (owner, market). false comes with zero balances.
"u8tnfCb1JSSghuNFquQ2beStYgAN1kmd1f1Lhxbaec4"
Quote tokens free to withdraw / lock into new bids.
Quote tokens locked behind resting bid orders.
curl --request GET \
--url https://api.archer.exchange/v1/maker/account \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.archer.exchange/v1/maker/account"
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/maker/account', 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/maker/account",
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/maker/account"
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/maker/account")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.archer.exchange/v1/maker/account")
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{
"baseFree": "<string>",
"baseLocked": "<string>",
"exists": true,
"market": "u8tnfCb1JSSghuNFquQ2beStYgAN1kmd1f1Lhxbaec4",
"owner": "<string>",
"quoteFree": "<string>",
"quoteLocked": "<string>"
}{
"error": "INVALID_PARAMS",
"message": "Invalid market address: xyz"
}{
"error": "INVALID_PARAMS",
"message": "<string>"
}{
"error": "MARKET_NOT_FOUND",
"message": "Market not found: 5Ggx...abc"
}