GET /v2/trade/perps/withdrawals: Withdrawals
curl --request GET \
--url https://partner-api.bravadotrade.com/v2/trade/perps/withdrawalsimport requests
url = "https://partner-api.bravadotrade.com/v2/trade/perps/withdrawals"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://partner-api.bravadotrade.com/v2/trade/perps/withdrawals', 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/withdrawals",
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/withdrawals"
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/withdrawals")
.asString();require 'uri'
require 'net/http'
url = URI("https://partner-api.bravadotrade.com/v2/trade/perps/withdrawals")
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_bodyPerps
GET /v2/trade/perps/withdrawals: Withdrawals
The user’s Polymarket Perps withdrawals, or one withdrawal by withdrawal_id. Scope perps.read.
GET
/
v2
/
trade
/
perps
/
withdrawals
GET /v2/trade/perps/withdrawals: Withdrawals
curl --request GET \
--url https://partner-api.bravadotrade.com/v2/trade/perps/withdrawalsimport requests
url = "https://partner-api.bravadotrade.com/v2/trade/perps/withdrawals"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://partner-api.bravadotrade.com/v2/trade/perps/withdrawals', 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/withdrawals",
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/withdrawals"
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/withdrawals")
.asString();require 'uri'
require 'net/http'
url = URI("https://partner-api.bravadotrade.com/v2/trade/perps/withdrawals")
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_bodySign 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.
withdrawal_id that POST /v2/trade/perps/withdrawals answered. Scope perps.read.
List withdrawals
GET https://partner-api.bravadotrade.com/v2/trade/perps/withdrawals
Query Parameters
string
Opaque. Pass back the previous page’s
next_cursor.Response
The user’s withdrawals. When there are more, pass the page’snext_cursor back as cursor.
After a 504 on a withdrawal, list withdrawals before acting again: the request may have acted.
Get one withdrawal
GET https://partner-api.bravadotrade.com/v2/trade/perps/withdrawals/{withdrawal_id}
Path Parameters
string
required
The
withdrawal_id the POST answered, a UUID.Response
The withdrawal, with itsstate and tx_hash. Poll until state is confirmed.
- When the venue pays out promptly, the withdrawal shows
confirmedwith itstx_hashwithin about 10 seconds of the request, so poll every few seconds at first. - Bravado reports
confirmedonly once the pUSD transfer to the deposit wallet is verified on chain;tx_hashcan appear whilestateis stillpending. - States are
pending,confirmed,failed,rejectedandunknown.
Errors
| Status | When |
|---|---|
404 Not Found | NOT_FOUND: unknown id, or one that belongs to another user |
Example
curl https://partner-api.bravadotrade.com/v2/trade/perps/withdrawals/8b7e6d5c-4a3b-4c2d-9e1f-0a9b8c7d6e5f \
-H "X-BRAVADO-API-KEY: $BRAVADO_API_KEY" \
-H "X-BRAVADO-TIMESTAMP: <unix-ms>" \
-H "X-BRAVADO-SIGNATURE: <signature-for-this-request>"
Related
POST /v2/trade/perps/withdrawalsto make a withdrawal.