Get product
curl --request POST \
--url https://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-product \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product_id": "BTC-USD"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-product"
payload = { "product_id": "BTC-USD" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({product_id: 'BTC-USD'})
};
fetch('https://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-product', 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://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-product",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'product_id' => 'BTC-USD'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-product"
payload := strings.NewReader("{\n \"product_id\": \"BTC-USD\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-product")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"product_id\": \"BTC-USD\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-product")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"product_id\": \"BTC-USD\"\n}"
response = http.request(request)
puts response.read_body{
"auction_mode": false,
"base_currency": "BTC",
"base_increment": "0.00000001",
"cancel_only": false,
"display_name": "BTC-USD",
"fx_stablecoin": false,
"high_bid_limit_percentage": null,
"id": "BTC-USD",
"limit_only": false,
"margin_enabled": false,
"max_slippage_percentage": "0.02000000",
"min_market_funds": "1",
"observed_at_ms": 1790268775997,
"post_only": false,
"quote_currency": "USD",
"quote_increment": "0.01",
"source_url": "https://api.exchange.coinbase.com/products/BTC-USD",
"status": "online",
"status_message": null,
"trading_disabled": false,
"url": "https://api.exchange.coinbase.com/products/BTC-USD"
}Coinbase Exchange
Get product
Validate a product id or read its tick sizes before interpreting prices and sizes.
POST
https://api.aisa.one
/
apis
/
v1
/
api-exchange-coinbase-com
/
markets
/
get-product
Get product
curl --request POST \
--url https://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-product \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product_id": "BTC-USD"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-product"
payload = { "product_id": "BTC-USD" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({product_id: 'BTC-USD'})
};
fetch('https://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-product', 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://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-product",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'product_id' => 'BTC-USD'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-product"
payload := strings.NewReader("{\n \"product_id\": \"BTC-USD\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-product")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"product_id\": \"BTC-USD\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-product")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"product_id\": \"BTC-USD\"\n}"
response = http.request(request)
puts response.read_body{
"auction_mode": false,
"base_currency": "BTC",
"base_increment": "0.00000001",
"cancel_only": false,
"display_name": "BTC-USD",
"fx_stablecoin": false,
"high_bid_limit_percentage": null,
"id": "BTC-USD",
"limit_only": false,
"margin_enabled": false,
"max_slippage_percentage": "0.02000000",
"min_market_funds": "1",
"observed_at_ms": 1790268775997,
"post_only": false,
"quote_currency": "USD",
"quote_increment": "0.01",
"source_url": "https://api.exchange.coinbase.com/products/BTC-USD",
"status": "online",
"status_message": null,
"trading_disabled": false,
"url": "https://api.exchange.coinbase.com/products/BTC-USD"
}请求规范
- 方法与路径: POST /apis/v1/api-exchange-coinbase-com/markets/get-product
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-product
{
"operationId": "api-exchange-coinbase-com.markets.get-product",
"method": "POST",
"path": "/apis/v1/api-exchange-coinbase-com/markets/get-product",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"product_id": "BTC-USD"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"product_id": {
"description": "Trading pair id `BASE-QUOTE` as listed by `list_products`, e.g. `BTC-USD`, `USELESS-USD`. Case-insensitive; the canonical upper-case id is returned. Pattern: ^[A-Za-z0-9]{1,20}-[A-Za-z0-9]{1,20}$.",
"type": "string"
}
},
"required": [
"product_id"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
application/json
响应
One trading pair's definition (GET /products/{product_id}): base and quote currency, price and size increments, minimum order funds, status and trading flags. Unknown ids are not_found.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
auction_mode | boolean | |
base_currency | string | |
base_increment | string | Decimal string exactly as the exchange sends it (never converted to a float). Minimum size step. |
cancel_only | boolean | |
display_name | string | |
fx_stablecoin | boolean | |
high_bid_limit_percentage | string | Decimal string exactly as the exchange sends it (never converted to a float). Null when the exchange sends an empty string. |
id | string | Product id BASE-QUOTE. |
limit_only | boolean | |
margin_enabled | boolean | |
max_slippage_percentage | string | Decimal string exactly as the exchange sends it (never converted to a float). |
min_market_funds | string | Decimal string exactly as the exchange sends it (never converted to a float). Minimum order value in the quote currency. |
observed_at_ms | number | Milliseconds since the Unix epoch when this call ran. |
post_only | boolean | |
quote_currency | string | |
quote_increment | string | Decimal string exactly as the exchange sends it (never converted to a float). Minimum price tick. |
source_url | string | The upstream request URL this record was shaped from. |
status | string | online or delisted as the exchange reports it. Delisted products still answer candles/ticker with stale data. |
status_message | string | Exchange status note; null when the exchange sends an empty string. |
trading_disabled | boolean | |
url | string | Upstream detail URL /products/{id}. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.