Alpaca
FinanceCredentials form
Place, change and cancel stock, ETF, options and crypto orders and read the account, positions, assets, activity and market calendar in Alpaca paper or live trading.
15 actions
| Action | Effect | Data handled | Scope |
|---|---|---|---|
| alpaca_get_accountReads the trading account: status, cash, buying power, equity, portfolio value, pattern day trader flag and restrictions | read | Personal data | |
| alpaca_create_orderPlaces an order by quantity or dollar notional: market, limit, stop, stop limit or trailing stop, optionally a bracket, OCO or OTO with take profit and stop loss legs | write | Personal data | |
| alpaca_list_ordersLists orders by status, newest first by default, optionally for some symbols or a time range | read | Personal data | |
| alpaca_get_orderReads an order by id, with its status, fills and legs | read | Personal data | |
| alpaca_replace_orderChanges an open order's quantity, time in force or prices; Alpaca replaces it with a new order | write | Personal data | |
| alpaca_cancel_orderCancels an open order | destructive | Personal data | |
| alpaca_list_positionsLists open positions with quantity, average entry price, market value and unrealized profit and loss | read | Personal data | |
| alpaca_get_positionReads the open position in one symbol | read | Personal data | |
| alpaca_close_positionCloses all or part of a position with a market order, by quantity or percentage | destructive | Personal data | |
| alpaca_list_assetsLists tradable assets, filtered by status, class and exchange, with tradable, fractionable and shortable flags | read | General | |
| alpaca_get_assetReads one asset by symbol: exchange, class, and whether it is tradable, fractionable, shortable and easy to borrow | read | General | |
| alpaca_get_clockReads whether the US market is open now and when it next opens and closes | read | General | |
| alpaca_get_calendarLists US market trading days with their open and close times between two dates | read | General | |
| alpaca_get_portfolio_historyReads the account's equity and profit and loss over a period at a chosen resolution | read | Personal data | |
| alpaca_list_activitiesLists account activity such as fills, dividends, transfers and fees, newest first | read | Personal data |