[
{
"provider": "<string>",
"id": "<string>",
"client_order_id": "<string>",
"symbol": "<string>",
"side": "buy",
"type": "<string>",
"time_in_force": "<string>",
"status": "<string>",
"qty": "<string>",
"notional": "<string>",
"filled_qty": "<string>",
"filled_avg_price": "<string>",
"limit_price": "<string>",
"stop_price": "<string>",
"submitted_at": "2023-11-07T05:31:56Z",
"filled_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"provider_fields": {}
}
]{
"message": "<string>",
"domain": "<string>",
"provider": "<string>",
"details": "<unknown>"
}{
"message": "<string>",
"domain": "<string>",
"provider": "<string>",
"details": "<unknown>"
}Coinbase
list_orders
List Coinbase brokerage orders with optional filters. Returns canonical Order models.
GET
/
tools
/
coinbase
/
list_orders
[
{
"provider": "<string>",
"id": "<string>",
"client_order_id": "<string>",
"symbol": "<string>",
"side": "buy",
"type": "<string>",
"time_in_force": "<string>",
"status": "<string>",
"qty": "<string>",
"notional": "<string>",
"filled_qty": "<string>",
"filled_avg_price": "<string>",
"limit_price": "<string>",
"stop_price": "<string>",
"submitted_at": "2023-11-07T05:31:56Z",
"filled_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"provider_fields": {}
}
]{
"message": "<string>",
"domain": "<string>",
"provider": "<string>",
"details": "<unknown>"
}{
"message": "<string>",
"domain": "<string>",
"provider": "<string>",
"details": "<unknown>"
}coinbase_list_orders
import os
from opentools import trading
tools = trading.coinbase(
api_key=os.environ["COINBASE_KEY"],
api_secret=os.environ["COINBASE_SECRET"],
model="openai",
minimal=True,
include=["coinbase_list_orders"],
)
status: Coinbase order status filterlimit: max orders to returnafter: RFC3339 start timestamp (inclusive)until: RFC3339 end timestamp (exclusive)symbols: list of product IDs, e.g.["BTC-USD"]side:buyorsell
- Returns a list of canonical
Orderobjects.
include/exclude: filter which tools are exposed (use full names likecoinbase_list_orders).minimal: omitproviderandprovider_fieldswhenTrue.
Body
application/json
This is a request to obtain information. Your API keys are required.
Response
Array of orders (OpenTools trading schema).
⌘I