@coinbase/coinbase-cli 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/coinbase-cli",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Coinbase for agents — CLI and MCP server for trading, wallets, payments, and onchain across the Coinbase platform",
5
5
  "type": "module",
6
6
  "bin": {
@@ -63,6 +63,41 @@ coinbase orders create product_id=BTC-USD side=SELL type=stop_limit \
63
63
 
64
64
  Prefer native order types — they are durable and server-side. Only use a `--until` watcher (see `coinbase-watch`) when the trigger is something a single resting order cannot express (cross-product price, spread/volume, fill sequencing).
65
65
 
66
+ ## Advanced orders (bracket, TWAP, scaled, attached exits)
67
+
68
+ Bracket, TWAP, scaled orders, and attached exits require the default Agent API
69
+ transport.
70
+ Attached exits require eligible market/limit parents: spot BUY or futures
71
+ BUY/SELL, not equities. Stops do not guarantee a fill or cap losses.
72
+
73
+ ```sh
74
+ # Attach take-profit/stop-loss exits to a limit order
75
+ coinbase orders create product_id=BTC-USD side=BUY type=limit base_size=0.01 \
76
+ limit_price=50000 attached_take_profit_price=55000 attached_stop_loss_price=48000
77
+
78
+ # Spot bracket: SELL exit (see orders create --help for futures eligibility)
79
+ coinbase orders create product_id=BTC-USD side=SELL type=bracket \
80
+ base_size=0.01 limit_price=55000 stop_price=48000
81
+
82
+ # TWAP: choose future start/end times for the requested execution window
83
+ coinbase orders create product_id=BTC-USD side=BUY type=twap base_size=0.01 \
84
+ limit_price=55000 time_in_force=GTD start_time='<start-RFC3339>' end_time='<end-RFC3339>'
85
+
86
+ # Scaled: 5 limit child orders spread between min_price and max_price
87
+ coinbase orders create product_id=BTC-USD side=BUY type=scaled base_size=0.01 \
88
+ num_orders=5 min_price=48000 max_price=52000
89
+
90
+ # Change or remove attached exits on an eligible unfilled limit order
91
+ coinbase orders edit <order_id> attached_take_profit_price=56000 attached_stop_loss_price=47000
92
+ coinbase orders edit <order_id> cancel_attached_order=true
93
+ ```
94
+
95
+ Preview first for anything non-trivial — `orders preview` returns the TWAP
96
+ slice schedule or scaled child-order plan before you place the order.
97
+ Read `orders get` before changing attached exits: an attached update replaces
98
+ both legs, so send both prices to retain both. Omit attached fields to keep
99
+ existing exits unchanged.
100
+
66
101
  ## Manage orders
67
102
 
68
103
  ```sh