{
"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
get_order
Get a single Coinbase brokerage order by order_id. Returns null if the order is not found or not accessible.
GET
/
tools
/
coinbase
/
get_order
{
"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_get_order
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_get_order"],
)
- Required
order_id - Optional
nested
- Returns a canonical
Orderobject, ornullif not found.
include/exclude: filter which tools are exposed (use full names likecoinbase_get_order).minimal: omitproviderandprovider_fieldswhenTrue.
Body
application/json
This is a request to obtain information. Your API keys are required.
Response
object | null
Order (OpenTools trading schema) or null if not found.
⌘I