Get trading pairs for a symbol
curl --request GET \
--url https://data-tools.prd.arrays.org/api/v1/market/trading-pairsimport requests
url = "https://data-tools.prd.arrays.org/api/v1/market/trading-pairs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data-tools.prd.arrays.org/api/v1/market/trading-pairs', 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://data-tools.prd.arrays.org/api/v1/market/trading-pairs",
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://data-tools.prd.arrays.org/api/v1/market/trading-pairs"
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://data-tools.prd.arrays.org/api/v1/market/trading-pairs")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-tools.prd.arrays.org/api/v1/market/trading-pairs")
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{
"data": [
{
"alias": [
"<string>"
],
"symbol": "<string>",
"trading_pairs": [
{
"instrument_type": "<string>",
"pairs": [
{
"alias": [
"<string>"
],
"contract_type": "<string>",
"description": "<string>",
"exercise_style": "<string>",
"expiration_date": "<string>",
"fee_rate": 123,
"market": "<string>",
"quote": "<string>",
"shares_per_contract": 123,
"strike_price": 123,
"symbol_icon_url": "<string>",
"trading_pair": "<string>",
"type": "<string>",
"underlying_type": "<string>"
}
]
}
]
}
],
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"metadata": "<unknown>",
"pagination": "<unknown>",
"request_id": "<string>",
"success": true
}{
"data": "<unknown>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"metadata": "<unknown>",
"pagination": "<unknown>",
"request_id": "<string>",
"success": true
}Market
Get trading pairs for a symbol
OpenAPI JSON Spec Returns all available trading pairs for a given symbol, grouped by instrument type
GET
/
v1
/
market
/
trading-pairs
Get trading pairs for a symbol
curl --request GET \
--url https://data-tools.prd.arrays.org/api/v1/market/trading-pairsimport requests
url = "https://data-tools.prd.arrays.org/api/v1/market/trading-pairs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data-tools.prd.arrays.org/api/v1/market/trading-pairs', 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://data-tools.prd.arrays.org/api/v1/market/trading-pairs",
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://data-tools.prd.arrays.org/api/v1/market/trading-pairs"
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://data-tools.prd.arrays.org/api/v1/market/trading-pairs")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-tools.prd.arrays.org/api/v1/market/trading-pairs")
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{
"data": [
{
"alias": [
"<string>"
],
"symbol": "<string>",
"trading_pairs": [
{
"instrument_type": "<string>",
"pairs": [
{
"alias": [
"<string>"
],
"contract_type": "<string>",
"description": "<string>",
"exercise_style": "<string>",
"expiration_date": "<string>",
"fee_rate": 123,
"market": "<string>",
"quote": "<string>",
"shares_per_contract": 123,
"strike_price": 123,
"symbol_icon_url": "<string>",
"trading_pair": "<string>",
"type": "<string>",
"underlying_type": "<string>"
}
]
}
]
}
],
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"metadata": "<unknown>",
"pagination": "<unknown>",
"request_id": "<string>",
"success": true
}{
"data": "<unknown>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"metadata": "<unknown>",
"pagination": "<unknown>",
"request_id": "<string>",
"success": true
}⌘I

