Twitter
Alpaca
ifttt

An automated workflow using ifttt

Connects Twitter + Alpaca

Buy 1 share of a stock when you tweet.

About this workflow template

This automation scenario allows you to connect Twitter and Alpaca

It can be build using Ifttt, a no-code workflow automation tool. Ifttt allows you to create automated scripts using a simple drag-and-drop interface for non-technical users. This is a ready-made scenario, but it can be customized by adding more apps, actions, filters or branches.

Twitter and Alpaca can also be integrated using automation tools other than ifttt:

Diagram

Buy 1 share of a stock when you tweet.
Workflow diagram: Twitter + Alpaca integration

How it works?

When this trigger fires in Twitter

Twitter

New tweet by you with hashtag in Twitter

This Trigger fires every time you post a new tweet with a specific hashtag.

Then this action happens in Alpaca

Alpaca

Place Market Order in Alpaca

This action will place a new day market order for the given symbol, side and quantity.

How to set up this workflow

This guide contains information on how to set up an automatic workflow that allows to Buy 1 share of a stock when you tweet..

Part I

Configure Applications

First, we need to connect Twitter and Alpaca to IFTTT.

  • Create IFTTT account.

    Create IFTTT account.

    Create IFTTT account if you don't have one.

  • Connect Twitter to IFTTT.

    Connect Twitter to IFTTT.

    Give IFTTT access to your Twitter account, using Twitter credentials.

  • Connect Alpaca to IFTTT.

    Connect Alpaca to IFTTT.

    Give IFTTT access to your Alpaca account, using Alpaca credentials.

Part II

Build an integration workflow

Next, we need to create a workflow automation scenario using graphical no-code web interface of IFTTT.

  • Set up a Trigger action for Twitter

    Set up a Trigger action for Twitter

    Choose the following trigger: New tweet by you with hashtag (This Trigger fires every time you post a new tweet with a specific hashtag.).

  • Then set up an Action for Alpaca

    Choose this action: Place Market Order (This action will place a new day market order for the given symbol, side and quantity.).

Part III

Test and Publish

Finally, we need to test this automation and publish it.

  • Customize data flow

    Customize data flow

    Configure the data that is exchanged between Twitter and Alpaca.

  • Test the workflow and turn it on for production use

    Test the workflow and turn it on for production use

    Test your scenario and publish to production. Now you have an automatic workflow, that will Buy 1 share of a stock when you tweet.!

Supported triggers and actions

  • Twitter

    Search tweets

    Triggers when there is a new tweet matching your search term

    automateiopipedream
    triggerbyautomateiopipedream
  • Twitter

    Search mention

    Triggers when any user creates a new Tweet that contains a specific search term (like a word, phrase, username or hashtag).

    zapier
    triggerbyzapier
  • Twitter

    New tweet by you

    This Trigger fires every time you post a new tweet.

    ifttt
    triggerbyifttt
  • Twitter

    New tweet by a specific user

    This Trigger fires every time the Twitter user you specify tweets.

    ifttt
    triggerbyifttt
  • Twitter

    New follower

    Triggers when a user of your choosing gets a new follower.

    zapieriftttautomateiopabbly-connect
    triggerbyzapieriftttautomateiopabbly-connect
  • Twitter

    User tweet

    Triggers when a specific user tweets.

    zapierpabbly-connect
    triggerbyzapierpabbly-connect
  • Alpaca

    Cancel order

    Cancels the order.

    zapierpipedream
    actionbyzapierpipedream
  • Alpaca

    Close position

    Closes the position.

    zapierpipedream
    actionbyzapierpipedream
  • Alpaca

    Get account info

    Get the account info.

    zapierpipedream
    actionbyzapierpipedream
  • Alpaca

    Place order

    Places a new order.

    zapierpipedream
    actionbyzapierpipedream
  • Alpaca

    Cancel all orders

    Cancel all orders

    pipedream
    actionbypipedream
  • Alpaca

    Close all positions

    Close all positions

    pipedream
    actionbypipedream

Apps you need

Twitter

Twitter

Social Networks

A real-time social networking platform for connecting and engaging with people

Twitter, the real-time social network, lets you share ideas, follow trends, and join conversations worldwide. Stay connected with short messages called "tweets" and engage with a diverse community.

IFTTT

IFTTT

Automation Platforms

An automation service with a simple formula - IF This Then That

IFTTT helps to create applications connections with a simple statement: if this then that. For example: "Tweet your Instagrams as native photos on Twitter". You define a task by a trigger and an action.