revoke_trading_token
DELETE
/admin/trading-tokens/{key_id}
curl --request DELETE \ --url http://localhost:3001/admin/trading-tokens/string \ --header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3001/admin/trading-tokens/string"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.status_code)use std::str::FromStr;use reqwest;
#[tokio::main]pub async fn main() { let url = "http://localhost:3001/admin/trading-tokens/string";
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap());
let client = reqwest::Client::new(); let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url) .headers(headers) .send() .await;
let status = response.unwrap().status();
dbg!(status);}Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”key_id
required
string
Token key id
Responses
Section titled “Responses”Revoked
Not found