Get Exchange Info
curl --request GET \
--url https://api.perpetuals.polymarket.com/v1/info/exchangeimport requests
url = "https://api.perpetuals.polymarket.com/v1/info/exchange"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.perpetuals.polymarket.com/v1/info/exchange', 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.perpetuals.polymarket.com/v1/info/exchange",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.perpetuals.polymarket.com/v1/info/exchange"
req, _ := http.NewRequest("GET", url, nil)
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.perpetuals.polymarket.com/v1/info/exchange")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.perpetuals.polymarket.com/v1/info/exchange")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"name": "Polymarket",
"version": "1",
"chain_id": 137,
"contract": "0x1234567890abcdef1234567890abcdef12345678"
}{
"status": "err",
"error": "insufficient_margin"
}{
"status": "err",
"error": "insufficient_margin"
}Get exchange information.
GET
/
v1
/
info
/
exchange
Get Exchange Info
curl --request GET \
--url https://api.perpetuals.polymarket.com/v1/info/exchangeimport requests
url = "https://api.perpetuals.polymarket.com/v1/info/exchange"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.perpetuals.polymarket.com/v1/info/exchange', 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.perpetuals.polymarket.com/v1/info/exchange",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.perpetuals.polymarket.com/v1/info/exchange"
req, _ := http.NewRequest("GET", url, nil)
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.perpetuals.polymarket.com/v1/info/exchange")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.perpetuals.polymarket.com/v1/info/exchange")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"name": "Polymarket",
"version": "1",
"chain_id": 137,
"contract": "0x1234567890abcdef1234567890abcdef12345678"
}{
"status": "err",
"error": "insufficient_margin"
}{
"status": "err",
"error": "insufficient_margin"
}Request Weight: 2
Response
Successful exchange information response.
Exchange name used in the EIP-712 domain.
Example:
"Polymarket"
Exchange version used in the EIP-712 domain.
Example:
"1"
Chain ID of the network the exchange is deployed on.
Example:
137
Verifying contract address or the EIP-712 domain.
Example:
"0x1234567890abcdef1234567890abcdef12345678"
Was this page helpful?
⌘I