GET /v2/trade/perps/instruments: Instruments
curl --request GET \
--url https://partner-api.bravadotrade.com/v2/trade/perps/instrumentsimport requests
url = "https://partner-api.bravadotrade.com/v2/trade/perps/instruments"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://partner-api.bravadotrade.com/v2/trade/perps/instruments', 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://partner-api.bravadotrade.com/v2/trade/perps/instruments",
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://partner-api.bravadotrade.com/v2/trade/perps/instruments"
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://partner-api.bravadotrade.com/v2/trade/perps/instruments")
.asString();require 'uri'
require 'net/http'
url = URI("https://partner-api.bravadotrade.com/v2/trade/perps/instruments")
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{
"instrument_id": 123,
"symbol": "<string>",
"mark_price": {},
"price_decimals": 123,
"quantity_decimals": 123,
"price_bounds": "<string>",
"min_notional": "<string>",
"max_limit_notional": "<string>",
"max_market_notional": "<string>"
}Perps
GET /v2/trade/perps/instruments: Instruments
Polymarket Perps instruments with mark, index, funding and the order rules Bravado checks before an order reaches the venue. Scope perps.read.
GET
/
v2
/
trade
/
perps
/
instruments
GET /v2/trade/perps/instruments: Instruments
curl --request GET \
--url https://partner-api.bravadotrade.com/v2/trade/perps/instrumentsimport requests
url = "https://partner-api.bravadotrade.com/v2/trade/perps/instruments"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://partner-api.bravadotrade.com/v2/trade/perps/instruments', 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://partner-api.bravadotrade.com/v2/trade/perps/instruments",
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://partner-api.bravadotrade.com/v2/trade/perps/instruments"
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://partner-api.bravadotrade.com/v2/trade/perps/instruments")
.asString();require 'uri'
require 'net/http'
url = URI("https://partner-api.bravadotrade.com/v2/trade/perps/instruments")
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{
"instrument_id": 123,
"symbol": "<string>",
"mark_price": {},
"price_decimals": 123,
"quantity_decimals": 123,
"price_bounds": "<string>",
"min_notional": "<string>",
"max_limit_notional": "<string>",
"max_market_notional": "<string>"
}Sign each request with a fresh HMAC signature. The cURL and HTTP header values below are placeholders, not reusable credentials. For runnable signing code, use request signing examples.
instrument_id; order placement also accepts symbol (for example BTC-USD) as an alias. Scope perps.read.
This route is always available: it never answers 409 PERPS_CAPABILITY_UNAVAILABLE.
GET https://partner-api.bravadotrade.com/v2/trade/perps/instruments
Query Parameters
string
Only this instrument, by its symbol alias, for example
BTC-USD.Response
Each instrument carries, among its fields, the inputs of the order rules. Read the values from here rather than hard-coding them, because they can change.integer
The venue’s instrument id. Every other Perps route names instruments by it.
string
The alias, for example
BTC-USD.string | null
The mark.
price_bounds is measured from it, and an order without a price is valued at it. null when the mark is unavailable.integer
Maximum decimal places of
price.integer
Maximum decimal places of
quantity.string
A fraction:
|price − mark_price| ≤ mark_price × price_bounds. "0.05" would be 5%.string
Minimum
quantity × (price, or the mark without one). Closes are exempt; see Close a position.string
Maximum notional of an order with a price.
string
Maximum notional of an order without a price.
Example
curl -G https://partner-api.bravadotrade.com/v2/trade/perps/instruments \
-H "X-BRAVADO-API-KEY: $BRAVADO_API_KEY" \
-H "X-BRAVADO-TIMESTAMP: <unix-ms>" \
-H "X-BRAVADO-SIGNATURE: <signature-for-this-request>" \
-d symbol=BTC-USD
Related
- Order rules for how each field is checked.
POST /v2/trade/perps/ordersto place an order on an instrument.