Skip to content

Commit edc8a2a

Browse files
kevin1chunclaude
andcommitted
fix: correct orderStock parameter order in skill docs
The docs had orderStock(symbol, quantity, side) but the actual code signature is orderStock(symbol, side, quantity). Fixed in SKILL.md, client-api.md, and trade.md. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3e0bbf9 commit edc8a2a

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

skills/robinhood-for-agents/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ If it throws, follow [setup.md](setup.md) to authenticate.
8888
| `getOptionMarketData(symbol, exp, strike, type)` | Options | Greeks and pricing |
8989
| `getIndexValue(symbol)` | Options | Current index value (SPX, NDX, etc.) |
9090
| `getMovers()` | Markets | Top market movers |
91-
| `orderStock(symbol, qty, side, opts?)` | Trading | Place stock order |
91+
| `orderStock(symbol, side, qty, opts?)` | Trading | Place stock order |
9292
| `orderOption(symbol, legs, price, qty, dir, opts?)` | Trading | Place option order |
9393
| `orderCrypto(symbol, side, amount, opts?)` | Trading | Place crypto order |
9494
| `getAllStockOrders()` / `getOpenStockOrders()` | Trading | View stock orders |

skills/robinhood-for-agents/client-api.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ All methods are `async`. Multi-account is first-class: account-scoped methods ac
3131
| `robinhood_get_options` (instruments) | `findTradableOptions(symbol, opts?)` |
3232
| `robinhood_get_options` (greeks) | `getOptionMarketData(symbol, expDate, strike, type)` |
3333
| `robinhood_get_options` (index value) | `getIndexValue(symbol)` |
34-
| `robinhood_place_stock_order` | `orderStock(symbol, quantity, side, opts?)` |
34+
| `robinhood_place_stock_order` | `orderStock(symbol, side, quantity, opts?)` |
3535
| `robinhood_place_option_order` | `orderOption(symbol, legs, price, quantity, direction, opts?)` |
3636
| `robinhood_place_crypto_order` | `orderCrypto(symbol, side, amount, opts?)` |
3737
| `robinhood_get_orders` (stock) | `getAllStockOrders()` / `getOpenStockOrders()` |
@@ -120,12 +120,12 @@ const spx = await rh.getIndexValue("SPX");
120120

121121
**Safety**: Always confirm with the user before calling any order method.
122122

123-
### `orderStock(symbol, quantity, side, opts?)`
123+
### `orderStock(symbol, side, quantity, opts?)`
124124
```typescript
125-
await rh.orderStock("AAPL", 10, "buy"); // market
126-
await rh.orderStock("AAPL", 10, "buy", { limitPrice: 150.0 }); // limit
127-
await rh.orderStock("AAPL", 10, "sell", { stopPrice: 145.0, limitPrice: 144.0 }); // stop-limit
128-
await rh.orderStock("AAPL", 10, "sell", { trailAmount: 5, trailType: "percentage" }); // trailing stop
125+
await rh.orderStock("AAPL", "buy", 10); // market
126+
await rh.orderStock("AAPL", "buy", 10, { limitPrice: 150.0 }); // limit
127+
await rh.orderStock("AAPL", "sell", 10, { stopPrice: 145.0, limitPrice: 144.0 }); // stop-limit
128+
await rh.orderStock("AAPL", "sell", 10, { trailAmount: 5, trailType: "percentage" }); // trailing stop
129129
```
130130
Options: `{ limitPrice, stopPrice, trailAmount, trailType, accountNumber, timeInForce, extendedHours }`
131131

skills/robinhood-for-agents/trade.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ bun -e '
4747
import { getClient } from "robinhood-for-agents";
4848
const rh = getClient();
4949
await rh.restoreSession();
50-
const order = await rh.orderStock("AAPL", 10, "buy", { limitPrice: 150.0, accountNumber: "ACCT" });
50+
const order = await rh.orderStock("AAPL", "buy", 10, { limitPrice: 150.0, accountNumber: "ACCT" });
5151
console.log(JSON.stringify(order, null, 2));
5252
'
5353
```

0 commit comments

Comments
 (0)