跳转到主要内容
POST
List trades

请求规范

  • 方法与路径: POST /apis/v1/api-exchange-coinbase-com/markets/list-trades
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/list-trades
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

按实际用量收费。 默认请求预估费用:$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
product_id
string
必填

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}$.

after
number

Return trades with an id lower than this (older). Use next_after from the previous page. Mutually exclusive with before.

Provider reference: minimum 1.

before
number

Return trades with an id higher than this (newer). Mutually exclusive with after.

Provider reference: minimum 1.

limit
number
默认值:100

Trades per page.

Provider reference: minimum 1; maximum 1000; default 100.

响应

Recent trades for one trading pair (GET /products/{product_id}/trades), newest first, up to 1000 per page. Cursor pagination follows the exchange's cb-after/cb-before headers: pass after (a trade id) to get older trades, before to get newer ones. next_after is the cursor for the next older page.

The response contains the tool result directly.

The provider identifies trades as the primary payload key.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.