Alpaca · Capability
Broker API — Trading
Broker API — Trading. 11 operations. Lead operation: Subscribe to Trade Events (SSE). Self-contained Naftiko capability covering one Alpaca business surface.
What You Can Do
GET
Subscribetotradesse
— Subscribe to Trade Events (SSE)
/v1/v1/events/trades
GET
Getallordersforaccount
— Retrieves a list of orders for the account, filtered by the supplied query parameters.
/v1/v1/trading/accounts/{account-id}/orders
POST
Createorderforaccount
— Create an order for an account.
/v1/v1/trading/accounts/{account-id}/orders
DELETE
Deleteallordersforaccount
— Attempts to cancel all open orders. A response will be provided for each order that is attempted to be cancelled.
/v1/v1/trading/accounts/{account-id}/orders
GET
Getorderforaccount
— Retrieves a single order for the given order_id.
/v1/v1/trading/accounts/{account-id}/orders/{order-id}
PATCH
Replaceorderforaccount
— Replaces a single order with updated parameters
/v1/v1/trading/accounts/{account-id}/orders/{order-id}
DELETE
Deleteorderforaccount
— Attempts to cancel an open order.
/v1/v1/trading/accounts/{account-id}/orders/{order-id}
GET
Getpositionsforaccount
— List open positions for an account
/v1/v1/trading/accounts/{account-id}/positions
DELETE
Closeallpositionsforaccount
— Close All Positions for an Account
/v1/v1/trading/accounts/{account-id}/positions
GET
Getpositionsforaccountbysymbol
— Get an Open Position for account by Symbol or AssetId
/v1/v1/trading/accounts/{account-id}/positions/{symbol-or-asset-id}
DELETE
Closepositionforaccountbysymbol
— Close a Position for an Account
/v1/v1/trading/accounts/{account-id}/positions/{symbol-or-asset-id}
MCP Tools
subscribe-trade-events-sse
Subscribe to Trade Events (SSE)
read-only
idempotent
retrieves-list-orders-account-filtered
Retrieves a list of orders for the account, filtered by the supplied query parameters.
read-only
idempotent
create-order-account
Create an order for an account.
attempts-cancel-all-open-orders
Attempts to cancel all open orders. A response will be provided for each order that is attempted to be cancelled.
idempotent
retrieves-single-order-given-order
Retrieves a single order for the given order_id.
read-only
idempotent
replaces-single-order-updated-parameters
Replaces a single order with updated parameters
idempotent
attempts-cancel-open-order
Attempts to cancel an open order.
idempotent
list-open-positions-account
List open positions for an account
read-only
idempotent
close-all-positions-account
Close All Positions for an Account
idempotent
get-open-position-account-symbol
Get an Open Position for account by Symbol or AssetId
read-only
idempotent
close-position-account
Close a Position for an Account
idempotent