Trading
The Trading section enables users to create, modify, and cancel orders within their brokerage accounts. It provides the tools necessary to manage active trades efficiently, ensuring precise control over order execution and portfolio adjustments.
Prerequisites
You'll need:
- A Tradier Brokerage account and an API access token from web.tradier.com/user/api
- Your Account ID (e.g. 6YA00001), available from the User Profile endpoint
All requests require:
Authorization: Bearer <YOUR_TOKEN>
Accept: application/json
Content-Type: application/x-www-form-urlencoded
Base URLs:
Production: https://api.tradier.com/v1
Sandbox (paper trading): https://sandbox.tradier.com/v1
Tip: Always test your order logic against the sandbox environment before going live. The sandbox supports the full trading API with paper money and delayed market data. Previewing orders is also strongly recommended.
Common Parameters
These parameters apply across all order types:
class | Yes | Order class: equity, option, multileg, combo, oto, oco, otoco |
|---|---|---|
symbol | Yes | Underlying ticker symbol (e.g. AAPL) |
type | Yes | Order type: market, limit, stop, stop_limit |
duration | Yes | How long the order stays active: day, gtc, pre, post |
quantity | Yes | Number of shares (whole numbers for equities) or contracts |
price | Conditional | Required for limit and stop_limit orders |
stop | Conditional | Required for stop and stop_limit orders |
tag | No | Optional user-defined label for the order |
preview | No | Set to true to validate without submitting (see Preview section) |
On this page
- Trading