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

ActionEffectData handledScope
alpaca_get_accountReads the trading account: status, cash, buying power, equity, portfolio value, pattern day trader flag and restrictionsreadPersonal 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 legswritePersonal data
alpaca_list_ordersLists orders by status, newest first by default, optionally for some symbols or a time rangereadPersonal data
alpaca_get_orderReads an order by id, with its status, fills and legsreadPersonal data
alpaca_replace_orderChanges an open order's quantity, time in force or prices; Alpaca replaces it with a new orderwritePersonal data
alpaca_cancel_orderCancels an open orderdestructivePersonal data
alpaca_list_positionsLists open positions with quantity, average entry price, market value and unrealized profit and lossreadPersonal data
alpaca_get_positionReads the open position in one symbolreadPersonal data
alpaca_close_positionCloses all or part of a position with a market order, by quantity or percentagedestructivePersonal data
alpaca_list_assetsLists tradable assets, filtered by status, class and exchange, with tradable, fractionable and shortable flagsreadGeneral
alpaca_get_assetReads one asset by symbol: exchange, class, and whether it is tradable, fractionable, shortable and easy to borrowreadGeneral
alpaca_get_clockReads whether the US market is open now and when it next opens and closesreadGeneral
alpaca_get_calendarLists US market trading days with their open and close times between two datesreadGeneral
alpaca_get_portfolio_historyReads the account's equity and profit and loss over a period at a chosen resolutionreadPersonal data
alpaca_list_activitiesLists account activity such as fills, dividends, transfers and fees, newest firstreadPersonal data