Alpaca and Lyra Integration

Demonstration of how apps are integrated in WEXTL workflow builder[4]

Keep Alpaca and Lyra matched by integrating their events and actions. When finance events happen in Alpaca, update the Lyra automatically - without any line of code in visual workflow builder.

  • 3-day trial
  • Cancel anytime
  • Up to 10 minutes quick set up
  • GDPR
  • Data Encryption
  • 2FA
  • Local Data Region

Learn about Alpaca and Lyra

Detailed info you need to know about Alpaca and Lyra integrations in WEXTL. Explore which modules apps support and how you connect them.

  • Alpaca

    • Finance
    • 3 triggers
    • 72 searches
    • 21 actions

    Trading and market data API for stocks, options and crypto.[5]

  • Lyra

    • Finance
    • 2 triggers
    • 5 searches
    • 8 actions

    Payment gateway for charges, refunds, and hosted checkout across cards, wallets, and net banking.[6]

How to connect Alpaca to Lyra

Set up your Alpaca and Lyra integration in 3 simple steps[2]. No coding required. Up to 10 minutes setup.

How does the integration between Alpaca and Lyra work in WEXTL?

WEXTL exposes actions and triggers for Alpaca and Lyra that help you connect apps and automate repetitive tasks[1]. A trigger is an event that happens, and an action is a step that performs when the event has occurred.

Alpaca triggersLyra actions

Alpaca modules

  • Add an Asset to a Watchlist Puts one more Symbol on a watchlist. The updated watchlist is returned with its Name and Assets.
  • Cancel All Orders Cancels every open order in the account once Confirm is turned on. Each canceled order is its own result with its ID and Status.
  • Cancel an Order Cancels one open order and returns its ID.
  • Close a Position Exits an open position in full, or by a Quantity or a Percentage of it. A partial close places a market order, labeled with your Client Order ID.
  • Close All Positions Closes every open position. Turn on Cancel Open Orders First to clear pending orders beforehand, and Confirm to go ahead.
  • Create a Locate Asks Alpaca to locate a Quantity of shares of a Symbol for shorting. Turn on All or None to reject a partial fill and use Limit Price for the highest fee you accept.
  • Create a Multi-Leg Options Order Places one options order across several Legs, each made of a Contract Symbol, Ratio Quantity and Side. The whole order takes a Quantity, Order Type and Time in Force.
  • Create a Watchlist Saves a new watchlist called Name, optionally filled with Symbols.
  • Create a Whitelisted Address Approves a crypto wallet Address for withdrawals of an Asset on a Chain, with optional beneficiary details for the travel rule.
  • Create an Order Submits an order for a Symbol as a market, limit, stop, stop limit or trailing stop. Use Quantity or Notional for the size and Order Class for a bracket, OCO or OTO.
  • Delete a Watchlist Deletes a watchlist and returns its ID.
  • Delete a Whitelisted Address Deletes an approved withdrawal address from the account.
  • Do Not Exercise an Option Position Tells Alpaca to let an option position expire without exercising it, returning its Symbol.
  • Exercise an Option Position Exercises an option position you hold and returns its Symbol with a Success flag.
  • Get a Corporate Action Announcement Fetches one announcement by ID, with its Ca Type, Ca Sub Type, Cash amount and Declaration Date.
  • Get a Crypto Transfer Fetches one wallet transfer, including its Amount, Asset, Chain and Direction.
  • Get a Crypto Transfer Estimate Quotes the Fee and Network Fee of moving an Amount of an Asset between a From Address and a To Address.
  • Get a Locate Reads one locate request by Locate ID and shows its Status, Located Quantity and Total Fee.
  • Get a Logo Downloads the company logo for a Symbol as a File with its Content Type. Turn on Placeholder If Missing to get a stand-in image.
  • Get a Position Shows one open position with its Avg Entry Price and Asset Class.
  • Get a Stock Snapshot Takes a current picture of one Symbol with its Daily Bar, Latest Quote, Latest Trade and Prev Daily Bar.
  • Get a Tokenization Request Fetches one tokenization request by its ID, including what Fees were charged.
  • Get a Tokenization Request by Client Request ID Finds a tokenization request from the Client Request ID that was attached when minting, and shows its full record.
  • Get a Watchlist Opens one watchlist and shows its Name and Assets.
  • Get Account Configurations Reads the trading settings of the account, such as Fractional Trading, Max Margin Multiplier and No Shorting.
  • Get an Asset Looks up an asset by Symbol or Asset ID and returns its Class, Exchange, CUSIP and Borrow Status.
  • Get an Option Chain Snapshots the contracts on an Underlying Symbol, with Greeks, Implied Volatility and the Latest Quote. Narrow by Type, Strike Price From, Strike Price To or Expiration Date.
  • Get an Option Contract Retrieves one contract with its Expiration Date, Close Price and Deliverables.
  • Get an Order Fetches one order by Order ID with its Client Order ID, Created At and Asset Class. Turn on Nest Multi-Leg Orders to show the legs inside it.
  • Get an Order by Client Order ID Finds an order from the Client Order ID you attached when placing it, so a custom reference leads to the full order.
  • Get Latest Crypto Orderbooks Shows the current order book of crypto pairs in a chosen Location, listing Asks and Bids. Use Limit to set the depth.
  • Get Locate Quotes Quotes the Available Quantity and Price of shares you could locate for each of the Symbols.
  • Get Option Condition Codes Looks up what each trade condition code means for a Tick Type on options.
  • Get Option Exchange Codes Lists the exchange codes that appear in options data, so a code can be read as an exchange name.
  • Get Portfolio History Charts account value over time, one row per window with Timestamp, Equity, Profit Loss and Profit Loss Pct. Use Period for a lookback, or Start and End for exact dates, and Timeframe for the window size.
  • Get Stock Auctions Pulls the opening and closing auctions of one ticker from a Start date through to the End. Use Sort to put them in oldest or newest order.
  • Get Stock Bars Reads historical bars of one ticker at the chosen Timeframe, with High, Low, Close and Trade Count. Use Adjustment to account for splits and dividends.
  • Get Stock Condition Codes Explains the condition codes of trades or quotes for a Tick Type on one Tape.
  • Get Stock Exchange Codes Lists the exchange codes that appear in stock data, with the exchange each one stands for.
  • Get Stock Quotes Reads historical bid and ask quotes of one ticker, with Ask Exchange and Ask Price. Use Sort to order them and Start with End to bound the period.
  • Get Stock Trades Reads historical trades of one ticker with Trade ID, Price and Size, across a period from Start to End.
  • Get the Account Pulls the trading account and reports its Account Number, Buying Power and Accrued Fees, along with whether it is blocked.
  • Get the Latest Stock Bar Fetches the newest bar for one Symbol with its High, Low, Close and Trade Count. Switch Feed or Currency for another source or currency.
  • Get the Latest Stock Quote Shows the latest best bid and ask for one Symbol, with Ask Price, Ask Size and Bid Price.
  • Get the Latest Stock Trade Reads the most recent trade of one Symbol, with its Price, Size and Conditions.
  • Get the Market Calendar Lists trading days for a Market from Start to End, with Core Start, Core End and Lunch Start. Use Time Zone to read times in your own zone.
  • Get the Market Clock Shows whether markets are open now, or at a chosen Time, with Phase, Next Market Open and Next Market Close. Use Markets for several codes.
  • List Account Activities Lists account events such as fills and transfers. Filter with Activity Types, Category, Order Id or a Date range using After and Until, and set Direction.
  • List Assets Lists the assets that match Status, Asset Class, Exchange or Attributes.
  • List Corporate Action Announcements Lists announcements of the chosen Types from Since until Until. Add Symbol or CUSIP to follow one security and Date Type to choose which date is matched.

Lyra modules

  • Create a Charge Creates a charge for an order, from its Order ID, Currency, Amount and Customer. Set Webhook URL to have Lyra send payment status updates to your own address.
  • Create a Charge (PG) Sets up a charge through the PG endpoint, from an Order ID, Currency, Amount and Customer. Use Webhook to get status updates and Order Information to describe the order.
  • Create a Refund Requests a refund of a charge for a Refund Amount in a Currency. Use Refund Reference to tag the request, and keep it unique to avoid duplicate refunds.
  • Drop a Charge Cancels a charge and records the Drop Reason. The result includes a Drop reason.
  • Get a Charge by UUID Retrieves the details and payment status of one charge. Output also has the Link to the charge and the Attempts count.
  • Get a Charge Status Retrieves the payment status of a charge. The result shows the Status, how much is Paid or Due, and the number of Attempts.
  • Get a Refund Status Checks how one refund request is progressing, using the UUIDs of the charge and of the refund. The result includes the Status and any Error.
  • Initiate a Net Banking Payment Begins a net banking payment on a charge, paid through the chosen Bank. Returns a Method, URL and Params.
  • List Charges Searches for the charges created with an Order ID. Use Limit to cap how many are returned. Each result has its UUID, Date, Status, Currency and Amount.
  • List Refund Requests Searches the refund requests made against a charge. Use Refund Reference to find the ones created with that merchant reference, and Limit to cap the results.
  • Make an API Call Makes an authorized free-form request to the Lyra REST API with your saved credential.
  • Submit a Card Payment Starts a card payment attempt on a charge, from the Card Number, Expiration Month, Expiration Year, CVV and Card Holder Name. The result has Method, URL and Params fields.
  • Submit a Wallet Payment Pays a charge from a wallet the customer selects. Output gives the Method, URL and Params.
  • Watch Charges Runs on a schedule and reads the charges that share an Order ID, to follow their status. Use Limit to set how many charges each run reads.
  • Watch Refund Requests Polls the refund requests of one charge on your schedule. Narrow it with Refund Reference, and use Limit to control how many each execution returns.

Explore alternative integrations

There are other apps[9] supported by WEXTL that can be paired with Alpaca and Lyra integrations. Pick any from the list below if the current combination isn't the one you need.

Automate Alpaca and Lyra on WEXTL®

Claim your 3-day trial to build Alpaca with Lyra integration and access every WEXTL® feature.

Cancel anytime.

Frequently asked questions

Common questions about connecting Alpaca and Lyra.

How do I connect Alpaca and Lyra?

Connect your Alpaca and Lyra accounts once, pick a trigger in one app and an action in the other, then map the fields so data flows automatically between them.[3]

What can I automate between Alpaca and Lyra?

Example: when the "Watch Account Activity" trigger in Alpaca fires, WEXTL can "Create a Charge" in Lyra. Alpaca has 3 triggers (including Watch Account Activity, Watch New Fills, and Watch New Orders). Lyra has 13 actions (including Create a Charge, Create a Charge (PG), and Create a Refund). Add filters and transforms between steps when you need them.[1]

Can Alpaca trigger actions in Lyra, and Lyra in Alpaca?

Yes. The integration works in both directions. Use the triggers of each app to start a workflow and the actions of the other app to update it.[2]

Do I need to write code to integrate Alpaca and Lyra?

No. Alpaca-to-Lyra automations are built visually on the canvas. You can optionally add custom JavaScript with Functions when you need advanced logic.[4]

Does Alpaca integrate with Lyra in real time?

Yes. Trigger-based automations start the moment Alpaca (or Lyra) fires a new event. Webhook-backed apps run within seconds, and polling-only apps re-check on a schedule you control.[7]

How long does it take to set up a Alpaca + Lyra integration?

A first automation typically takes 5–10 minutes: connect the credential of each app once, drop a trigger + action onto the canvas, map the fields, and turn the workflow on.

Do I need a paid plan to connect Alpaca with Lyra?

You can build your Alpaca + Lyra automation on a 3-day trial with every feature unlocked. Cancel anytime.[8]

References

List of sources used to gather information about the Alpaca and Lyra integration.

  1. Alpaca and Lyra integration source code, module specs and credentials implementation.
  2. Our Alpaca and Lyra integration documentation, structured input and output parameters, scopes, and authentication methods.
  3. Official vendor API documentation for Alpaca and Lyra, used to verify field meanings, authentication flows, and anything our own specs don't fully capture.
  4. WEXTL® visual workflow builder, anonymized data from our technical support team.
  5. Alpaca integration information
  6. Lyra integration information
  7. WEXTL® Scheduling
  8. WEXTL® Pricing and Trial
  9. WEXTL® Apps Library

How we write our apps documentation

Explore how WEXTL® crafted Alpaca and Lyra integration page documentation. Used sources, the role of AI, and how the team validates the result.

Explore Alpaca and Lyra, or get started