Account
Get connector capabilities
Describes what a connector supports, per market: market and limit orders,
timeInForce, triggerBy, marketUnit and slippage tolerance values,
trailing stops, attached take-profit/stop-loss, how amends behave, and the
unit quantity is counted in.
Read it before building requests for a connector: a field it does not support is rejected. The answer is the same for every caller and changes only with TakeProfit releases.
GET
/
api
/
v1
/
trading
/
connector
/
capabilities
Get connector capabilities
curl --request GET \
--url https://public-api.charting.com/api/v1/trading/connector/capabilities \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SIGNATURE: <api-key>' \
--header 'X-API-TIMESTAMP: <api-key>'import requests
url = "https://public-api.charting.com/api/v1/trading/connector/capabilities"
headers = {
"X-API-KEY": "<api-key>",
"X-API-TIMESTAMP": "<api-key>",
"X-API-SIGNATURE": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-API-KEY': '<api-key>',
'X-API-TIMESTAMP': '<api-key>',
'X-API-SIGNATURE': '<api-key>'
}
};
fetch('https://public-api.charting.com/api/v1/trading/connector/capabilities', 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://public-api.charting.com/api/v1/trading/connector/capabilities",
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>",
"X-API-SIGNATURE: <api-key>",
"X-API-TIMESTAMP: <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://public-api.charting.com/api/v1/trading/connector/capabilities"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-API-TIMESTAMP", "<api-key>")
req.Header.Add("X-API-SIGNATURE", "<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://public-api.charting.com/api/v1/trading/connector/capabilities")
.header("X-API-KEY", "<api-key>")
.header("X-API-TIMESTAMP", "<api-key>")
.header("X-API-SIGNATURE", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.charting.com/api/v1/trading/connector/capabilities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-API-TIMESTAMP"] = '<api-key>'
request["X-API-SIGNATURE"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"connectorCode": "binance_usdm",
"exchanges": [
"CXBNCE"
],
"markets": {
"derivatives": {
"linearQuantityUnit": "baseAsset",
"placeOrder": {
"market": {
"marketUnits": [
"base"
],
"slippageTolerance": [],
"tpSl": {
"withTrigger": true
}
},
"limit": {
"timeInForce": [
"gtc",
"ioc",
"fok"
],
"tpSl": {
"withTrigger": true
}
},
"triggerBy": [
"lastPrice",
"markPrice"
],
"reduceOnly": true,
"isLeverage": false
},
"amendOrder": {
"limitOrders": {
"replacesOrder": false,
"quantityChangeUnsupported": false
}
},
"closePosition": {
"slippageTolerance": []
}
}
}
}{
"error": {
"code": "invalid_argument",
"message": "field \"price\" is required for a limit order"
}
}{
"error": {
"code": "unauthenticated",
"message": "invalid API key or signature"
}
}{
"error": {
"code": "permission_denied",
"message": "permission denied"
}
}{
"error": {
"code": "not_found",
"message": "account not found"
}
}{
"error": {
"code": "rate_limited",
"message": "rate limit exceeded"
}
}Authorizations
Query Parameters
Response
Capabilities of the connector.
Was this page helpful?
⌘I
Get connector capabilities
curl --request GET \
--url https://public-api.charting.com/api/v1/trading/connector/capabilities \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SIGNATURE: <api-key>' \
--header 'X-API-TIMESTAMP: <api-key>'import requests
url = "https://public-api.charting.com/api/v1/trading/connector/capabilities"
headers = {
"X-API-KEY": "<api-key>",
"X-API-TIMESTAMP": "<api-key>",
"X-API-SIGNATURE": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-API-KEY': '<api-key>',
'X-API-TIMESTAMP': '<api-key>',
'X-API-SIGNATURE': '<api-key>'
}
};
fetch('https://public-api.charting.com/api/v1/trading/connector/capabilities', 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://public-api.charting.com/api/v1/trading/connector/capabilities",
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>",
"X-API-SIGNATURE: <api-key>",
"X-API-TIMESTAMP: <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://public-api.charting.com/api/v1/trading/connector/capabilities"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-API-TIMESTAMP", "<api-key>")
req.Header.Add("X-API-SIGNATURE", "<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://public-api.charting.com/api/v1/trading/connector/capabilities")
.header("X-API-KEY", "<api-key>")
.header("X-API-TIMESTAMP", "<api-key>")
.header("X-API-SIGNATURE", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.charting.com/api/v1/trading/connector/capabilities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-API-TIMESTAMP"] = '<api-key>'
request["X-API-SIGNATURE"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"connectorCode": "binance_usdm",
"exchanges": [
"CXBNCE"
],
"markets": {
"derivatives": {
"linearQuantityUnit": "baseAsset",
"placeOrder": {
"market": {
"marketUnits": [
"base"
],
"slippageTolerance": [],
"tpSl": {
"withTrigger": true
}
},
"limit": {
"timeInForce": [
"gtc",
"ioc",
"fok"
],
"tpSl": {
"withTrigger": true
}
},
"triggerBy": [
"lastPrice",
"markPrice"
],
"reduceOnly": true,
"isLeverage": false
},
"amendOrder": {
"limitOrders": {
"replacesOrder": false,
"quantityChangeUnsupported": false
}
},
"closePosition": {
"slippageTolerance": []
}
}
}
}{
"error": {
"code": "invalid_argument",
"message": "field \"price\" is required for a limit order"
}
}{
"error": {
"code": "unauthenticated",
"message": "invalid API key or signature"
}
}{
"error": {
"code": "permission_denied",
"message": "permission denied"
}
}{
"error": {
"code": "not_found",
"message": "account not found"
}
}{
"error": {
"code": "rate_limited",
"message": "rate limit exceeded"
}
}